Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions static/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
`reactRouterBrowserTracingIntegration` and `wrapCreateBrowserRouter`.
- Lazy load route components when possible

### Settings Navigation

- `useSettingsV3()` gates the new settings navigation (`organizations:settings-v3`). Keep the old behavior when it is off.
- `useSettingsScope()` derives the scope (`org`, `project`, `account`) from the URL. `getSettingsScopeTitle` gives each scope's title.
- Under v3, account pages appear only in the Account scope, never in the organization navigation.
- Pass `settingsV3` to the navigation config functions (`getUserOrgNavigationConfiguration`, `getUserNavigationConfiguration`, `getNavigationConfiguration`), including from Cmd+K and other callers.

### Frontend API Calls

Use `apiOptions` with `useQuery` from TanStack Query; **never** use the deprecated `useApiQuery`/`getApiQueryData`/`setApiQueryData`. `staleTime` is required. For the full guide (conditional fetching, no call-site generics, response headers/pagination) → use the **`frontend-data-fetching`** skill.
Expand Down
Loading