Skip to content

Known issues

  • OpenAPI migration incomplete. Many utils still call apiClient(...) with manual paths and .then(res => res.json()) instead of using openApiQueryOptions / OpenAPI-generated types. Reviews, areas, offices, and finance are partly migrated; alaners, crews, oncall, roles, and others still use the legacy pattern. Migrating the rest would improve type safety and consistency with the backend spec.

  • Cache invalidation for the logged-in user. The authenticated user is written to several TanStack Query keys: ["users", "authenticated"] (from GET /alaners/authenticated) and also ["users", slack_handle] and ["users", id] (see utils/auth.ts). When another part of the app updates or invalidates one of these (e.g. after editing the alaner profile), the others are not automatically invalidated, so the UI can show stale data for the current user (e.g. in the layout or header). Fixing this would require a shared invalidation strategy (e.g. invalidate all user-related keys when the authenticated user or a specific user by id is updated).