Repository navigation
feat(console): open a project's Settings as its own list, as Settings on Projects does - #3005
Conversation
… on Projects does On Projects, Settings carried an arrow and swapped the sidebar for its own list; inside a project, Settings opened a page with General and Admins tabs. Same name and icon, two behaviours. Now both drill down: the project's Settings is a layout route that reads the project and draws its header, with General and Admins as pages in a `project-settings` list. The root Settings stay the platform project's and keep their own pages. Recorded as D37 in console ADR 0001. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🦋 Changeset detectedLatest commit: a879df8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 25 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
main renamed Logs to Events (#3004, D38) and made search one ranked list (#2968, D37). The project's Settings list keeps its place beside Events' in the shell, its pages join the ranked list marked "Settings · <project>", and its decision is renumbered D39 and logged in docs/design/decisions.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
The change is accompanied by comprehensive updates across routing, navigation, search, documentation, and regenerated route tree, with corresponding unit and e2e test adjustments to match the new Project Settings list behavior and no active issues noted in the review evidence.
No open issues 🎉
What changed in this PR
Aligns project-level Settings navigation with the existing Settings-as-a-list pattern by turning Project Settings into a dedicated sidebar list (General/Admins) with a shared layout that keeps the project header consistent across subpages.
Changes:
- Introduces a
/projectlayout route that loads the project once and renders a persistent project header across nested pages. - Splits Project Settings into dedicated routes (
/project/general,/project/admins) and adds a new nav view ("project-settings") so the shell swaps to the Settings list. - Updates search, tests, route tree generation, screenshots, docs, and a changeset to reflect the new navigation structure.
| File | Description |
|---|---|
| e2e/console/src-real/console-real.spec.ts | Updates real-instance e2e flows to navigate Project Settings via the new sidebar list (e.g., Admins link) instead of the old tab UI. |
| e2e/console/scripts/screenshot-grid.mts | Adjusts screenshot capture to record Project Settings General and Admins as separate pages rather than a single /project screen. |
| apps/console/src/routeTree.gen.ts | Regenerates the TanStack Router route tree to include the new /project layout route and its nested settings routes. |
| apps/console/src/routes/_authed/project/route.tsx | Adds the /project layout route that loads project data and renders a persistent project header with an outlet for child pages. |
| apps/console/src/routes/_authed/project/project-detail.spec.tsx | Updates project detail route tests to reflect the new default landing behavior that routes users into /project/general. |
| apps/console/src/routes/_authed/project/project-admins.spec.tsx | Refactors admins-related tests to navigate through the Project Settings list and align mocked behavior with the new structure. |
| apps/console/src/routes/_authed/project/index.tsx | Converts the /project/ entry route into a redirect/portal entry that forwards to the General settings page. |
| apps/console/src/routes/_authed/project/general.tsx | Implements the Project Settings General page route and associated loading/rendering under the new layout. |
| apps/console/src/routes/_authed/project/admins.tsx | Implements the Project Settings Admins page route with its own loader and page-level actions/heading layout. |
| apps/console/src/nav.ts | Extends navigation types/config to include the "project-settings" view used to render the Project Settings list. |
| apps/console/src/features/project-settings/components/project-admins.tsx | Updates the project admins component usage/docs to match its new placement as a dedicated settings page rather than a tab. |
| apps/console/src/app-shell/use-nav-items.ts | Introduces shared constants/logic (e.g., PROJECT_SETTINGS_PATH) so the shell can consistently detect and render the Project Settings list. |
| apps/console/src/app-shell/search.tsx | Adjusts search indexing/results so Project Settings appears as page entries (General/Admins) grouped under Settings rather than a single Settings row. |
| apps/console/src/app-shell/app-shell.tsx | Adds shell behavior for the "project-settings" view, including list swapping and a “‹ Settings” heading/back behavior for /project/** routes. |
| apps/console/src/app-shell/app-shell.spec.tsx | Updates/adds unit tests covering the Project Settings list behavior, list-opening/heading behavior, and related search/navigation expectations. |
| apps/console/docs/adrs/0001-console-routing.md | Documents the routing/navigation change as an ADR amendment describing Project Settings as a list implemented via a layout route. |
| apps/console/AGENTS.md | Adds guidance that project settings should be added as pages in the Project Settings list rather than as tabs. |
| .changeset/console-project-settings-list.md | Adds a changeset/release note describing the new Project Settings list behavior (General/Admins) in the console. |
Review effort: Balanced
The project's Settings land on /project/general, and Admins is a page of their list rather than a tab: the console-real and console-platform URL checks and the claim journey's Admins steps follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Context
Summary
On Projects, Settings has an arrow and swaps the sidebar for its own list. Inside a project, Settings had no arrow and opened a page with General and Admins tabs. Same name and icon, two behaviours. Now both open a list, as Vercel's team and project Settings do.
The project's Settings is a list
/projectis now a layout route (routes/_authed/project/route.tsx): it reads the project and draws its header (name, Project ID, Created) on every page.nav.view: "project-settings":/project/generalholds the name, origins, variables and policies./project/adminsholds the admins table, with "Add admin" next to an "Admins" heading instead of on the old tab row./project/only carries the portal entry and forwards to General, so/project,/projects/<id>and the projects list's "View project" still land there.Root Settings stay the platform's
Shell and search
NavView"project-settings"inapp-shell.tsx:/projectwith anything beneath it shows the list under a "‹ Settings" heading back to the project's landing (/), like Events' heading. The arrow on the project's Settings row comes from the existing depth rule (opensList).navResults).Docs
docs/design/decisions.md(amends D35) and as an amendment in console ADR 0001.apps/console/AGENTS.md: add a project setting as a page in this list, never as a tab.Validation
main(now at feat(api): search every project a session can act on, each type from an index #2972):moon run console:lint console:typecheck console:test: 56 files, 951 tests pass.moon run e2e:typecheck: passes.node scripts/check-pr-title.mjs --title "…": ok.console:dev-real(before the merge):moon run workspace:check -- --only releasedid not finish: two timing-sensitive tests inapps/cli/tests/integration/status.spec.ts("a server that never answers") failed whileconsole:dev-realwas running alongside. The spec passes on its own (16/16), and this PR does not touch the CLI.console-real.spec.tsandsrc-platform/platform-console.spec.tsnow expect/project/general?project=…, and the claim journey (e2e/journey/src/claim.spec.ts) and threeconsole-realsteps open Admins from the "Project settings" navigation instead of a tab.moon run e2e:typecheckpasses; the lanes themselves were not run locally (a local run was stopped), so this CI run is their check.build-testalso failed once on the Users spec "reads only the rows for a new term, keeping the older revisions filter", the flake test(console): name the schema read the Users search test did not expect #3002 instrumented. That run printed the unexpected read:/api/v1/schemas/sch_business?project_id=proj_test. Not touched here.Release notes / changeset
.changeset/console-project-settings-list.md(@zitadel/server, minor): a project's Settings opens its own list (General, Admins), as Settings on Projects does.Notes
src/routeTree.gen.tswas regenerated with the TanStack router generator using the plugin's options fromvite.config.ts.e2e/console/scripts/screenshot-grid.mtsnow captures General and Admins separately instead of/project.mainmerged in to resolve conflicts with fix(console): name the events screen Events #3004 (Logs → Events), feat(console): rank search results in one list and say where each is #2968 (ranked search) and feat(api): search every project a session can act on, each type from an index #2972 (search across projects, which took D39). Seen while resolving, not changed here: console ADR 0001 onmainlabels two amendments D38 (the selected project staying selected, and Events).🤖 Generated with Claude Code