Repository navigation
feat(Navigation): Switch organisation and project from one popover - #9203
talissoncosta wants to merge 20 commits into
Conversation
Replaces the breadcrumb dropdown with OrgProjectSwitcher, built on Popover: a two pane popover on desktop (organisations, then the projects of the one picked) and a bottom sheet on phones that opens on projects and steps into organisations. Each list has its own search, loading, error, empty and no results states, and the create actions show only with permission. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The project switcher moves focus through its rows the same way, so nextMenuIndex becomes nextFocusIndex in common/utils. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… sheet layout Renames OrgProjectSwitcher to ProjectSwitcher. SwitcherPanel only wires the data; each layout renders its own create actions, and the sheet keeps its step. Lists own their search. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rganisation's projects The organisation and project names stay links to their home pages, with the ids the E2E tests use; the chevron beside each opens the switcher. The projects list reads currentData, so switching organisation shows loading rather than the previous organisation's projects, and it counts as loading until the organisation is known. List states and search move into listState.ts, with tests. Loading is announced. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n its projects load Moves the two rules out of useSwitcher into listedOrganisation.ts with table tests, and names the dialog after both things it switches. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… organisation getOrganisationHomePage falls back to AccountStore without an id, so pass the selected organisation's id. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…long names Each component imports only its own stylesheet; the sheet's taller rows come from a variant prop rather than a selector reaching into the list. Long names end in an ellipsis (flex-1 made them flex containers), the check keeps its size and action colour, and the create actions are centred. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps the breadcrumb dropdowns for everyone until the flag is on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ks and utils Co-Authored-By: Claude Opus 5.5 <[email protected]>
SwitcherContainer loads the data and picks a panel: SwitcherColumnsPanel (side by side) or SwitcherStepsPanel (one list at a time). Also drops the wrapper around the back button. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the project list loading rule Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion name Opening a project ignores repeat clicks while environments load and shows an error if they fail. The projects header reads "Projects" until the organisation is known. Restores the Storybook comments that still apply. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Visual Regression31 screenshots compared. See report for details. |
There was a problem hiding this comment.
0 issues found across 4 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Auto-approval blocked by 3 unresolved issues from previous reviews.
Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 30 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…and hide create until permission is known Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: This adds a new organisation/project switcher, but the omitted diffs prevent verifying that it stays behind the claimed off-by-default flag and that cross-organisation project navigation updates the active organisation.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai Both points from the last review, with references:
|
@talissoncosta Both prior comments don't hold — the current state of the PR addresses them. Flag: You're right. The gating matches the code in this PR itself: Organisation selection: Your flow is coherent. Opening a project navigates to One honest caveat to wrap up: the flag point I can verify from this PR's own commits and description; the organisation mechanism relies on your cited lines beyond the diff. Nothing in the provided code contradicts it, so I'd accept both as resolved. Tip: get faster answers by chatting with cubic’s review copilot in the review UI |
There was a problem hiding this comment.
All reported issues were addressed across 30 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…ked in the switcher Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds a new organisation/project switcher behind a claimed off-by-default flag. The diff does not show the flag wiring, and cross-organisation project navigation relies on project-page code outside the diff to update the active organisation.
Turn on auto-fix | Re-trigger cubic
…om the switcher Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
0 issues found across 6 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds a new org/project switcher behind a claimed off-by-default flag and extracts the legacy breadcrumb; the diff omits the flag wiring and the SelectOrgAndProject fallback fix, so the rollout boundary is unverified.
Turn on auto-fix | Re-trigger cubic
docs/if required so people know about the feature.Changes
Contributes to ENG-643.
Replaces the breadcrumb dropdowns with one switcher for organisations and projects: a popover on desktop, a bottom sheet on phones. The organisation and project names stay links; the chevron next to each opens the switcher.
Behind
new_project_switcher(off by default). With the flag off, the old breadcrumb renders unchanged fromLegacyOrgAndProjectLinks, which goes withBreadcrumbSeparatorwhen the flag is removed.Also moves DropdownMenu's focus helper to
common/utils/listFocusso both menus share it.Reviewing this
The switcher is behind
new_project_switcher(off by default), inSelectOrgAndProject.tsx:Opening a project from another organisation selects that organisation (
openProjectinuseSwitcher).How did you test this code?
Components/Navigation/OrganisationProjectSwitchercovers loading, error, empty, no results, long names, no create permission and the phone sheet.organisation-linkandproject-linkids are kept on both paths.