Skip to content

feat(dashboard): List every nav page and Send feedback in the command palette - #3807

Merged
BYK merged 2 commits into
mainfrom
fix/palette-nav-registry
Nov 19, 2026
Merged

BYK merged 2 commits into
mainfrom
fix/palette-nav-registry

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

The new UI's ⌘K palette had no Send feedback (JUNIOR-147), and it listed only the primary and profile nav items. Most pages that a menu links to could not be found by name.

What changes

  • Send feedback is a palette action. It opens the same FeedbackDialog as the profile menu. It shows under the same rule: a signed-in viewer and a Sentry DSN.

  • Every nav page is in the palette. Pages that were in a menu but not in ⌘K:

    • Pane: Snoozed, Done, Conversations, Pull requests, Decisions
    • Profile menu: My profile, Settings, Admin (admins only)
    • Automations area: Runs (as "Automation runs")
    • System area: People, Locations, Workspaces, Plugins
    • Memories area: Memories library (as "Memory library"), plus the Overview sections Activity, Cost, What Junior remembers, How they got here
    • Settings sections: General, Interface, API Tokens, Identities, MCP

    With no typed text, the palette shows the same short list as before. The other pages show once you type. Each area page shows its area (such as "Settings") on the right. It uses the area root's icon.

Shape: one registry, one lint rule

src/client/navPages.ts owns NAV_PAGES: every page that a link names, with its label, path, access (account or admin), and the area that lists it. The nav reads it: the pane area lists (areas.ts), System, Automations, and Memories secondary nav, the profile menu, and primaryNav. paletteNavPages() turns the same record into palette rows. An area's pages show only when its root shows, so the Memories pages need the memory plugin. A page added to the registry is in the palette, with no second list to keep in step.

nav-pages/listed-page-path (in packages/junior-dashboard/oxlint/) makes the registry the only way to link to a page. It flags a to with a literal dashboard path ("/…" or `/…${x}`). It checks the to JSX attribute and the to property of an object literal. It does not flag:

  • navPages.ts itself
  • <Navigate> redirects, which no menu shows
  • record paths built by a helper, such as conversationPath(id) or `${workspacePath(id)}/edit`

The rule is on for src/client/**. It is off for the classic UI (classic/** and the modules that only ClassicShell imports). The classic UI has its own nav and palette, and no feedback dialog.

Known gap: a path stored in a constant first (const P = "/x"; <Link to={P}>) passes the rule.

Screenshots (mock data)

Send feedback, dark and light, desktop:

feedback dark desktop
feedback light desktop

Send feedback, dark and light, mobile:

A Settings section by name, with its area:

pages dark desktop

via @BYK.

--

View Session [Sentry]

… palette

Nav pages now come from one registry, src/client/navPages.ts. The pane,
area lists, secondary nav, and profile menu read it, and the command
palette lists every page in it. A new lint rule,
nav-pages/listed-page-path, rejects a literal page path in a link
outside the registry.

The palette also offers Send feedback, which opens the same dialog as
the profile menu.

Refs JUNIOR-147

Co-Authored-By: BYK <[email protected]>
@sentry-junior
sentry-junior Bot requested a review from BYK November 19, 2026 17:42
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 19, 2026 6:24pm UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 19, 2026
@BYK
BYK enabled auto-merge (squash) November 19, 2026 17:50
@BYK
BYK merged commit 1ab3969 into main Nov 19, 2026
48 checks passed
@BYK
BYK deleted the fix/palette-nav-registry branch November 19, 2026 18:40

This branch was successfully deployed

1 active deployment
Preview – junior-docs — a8d10470 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant