Skip to content

feat: grouped sidebar, compact header, command palette and Add menu (Spec 109-i) - #1427

Merged
github-actions[bot] merged 17 commits into
mainfrom
109-i-navigation-header
Sep 30, 2026
Merged

github-actions[bot] merged 17 commits into
mainfrom
109-i-navigation-header

Conversation

@Dumbris

@Dumbris Dumbris commented Sep 30, 2026

Copy link
Copy Markdown
Member

Implements PR 109-i (navigation-header) of specs/109-ux-navigation-consistency: one sidebar structure and a compact, responsive header, on the Web UI and the macOS app. Requirements FR-050, FR-052, FR-053, FR-054, FR-058 (the FR-057 interim stays). Audit findings addressed: H1 (crowded header), H3 (mode and endpoints in the header), N7 and the N1/N2 residual (sidebar regroup, retired entries), and the navigation half of X6. Tasks T135 to T143 are ticked in specs/109-ux-navigation-consistency/tasks.md.

User-visible changes

Web UI

  • The sidebar reads Home, then Connect (Clients, Servers, Tools; Profiles appears once a /profiles route exists), Protect (Review queue, Secrets) and Monitor (Activity, Usage). Settings, Docs, Feedback and Theme sit in the footer above the version row. Agent Tokens, Sessions and Add Server no longer have sidebar entries. The Clients row carries a live-client badge (clients with an active session), refreshed silently so the Clients page never flashes a spinner. Names, order and targets come from one model, navigation/navModel.ts, which the "+ Add" menu and the palette also read.
  • The header is one row: search, an optional Viewing slot, a status pill, the attention pill and "+ Add". The status pill counts servers by health.usable (a connected but quarantined server is not online), shows tools reachable now and the routing mode, and links to Servers. Below 1100 px the search becomes an icon and the pills and Add button collapse; the row never overflows, including at 390 px.
  • Search is a launcher for a command palette (Cmd/Ctrl+K, or "/" when nothing is focused). Sections: Search, Pages, Actions, Servers, Tools, Settings. Opening it sends no request; tool search is debounced 150 ms with limit 8, and stale responses are dropped. Enter on free text opens Tools with the query.
  • "+ Add" offers Server, Client (opens the connect dialog) and Token (opens the Agent tokens create dialog and strips the create flag from the URL). Server edition admins get a single "Personal server" item; tenants get no menu and no status pill.
  • The mode switcher and the MCP endpoints dropdown leave the header. Endpoint copy buttons and descriptions now live on Clients, Endpoint and mode.
  • Home usage-strip links go through useScopeQuery.linkTo so sticky scope carries into Activity. The /overview redirect keeps query and hash explicitly.

macOS

  • The sidebar has the same groups and names, in the order the hidden Cmd-1 to Cmd-7 shortcuts follow. Home gets the attention badge. A toolbar "+" menu offers Server, Client and Token; each opens its own sheet through AppState.pendingAddAction, including when the window was just created. "Activity Log" is now "Activity" in the sidebar.

No Go, REST, CLI or MCP change. contracts.ts, swagger and the frozen MCP goldens are untouched.

Decisions worth a look

  • The Viewing slot's fallback content is the interim ProfileSwitcher, so Spec 108-i only passes the slot and deletes the fallback. The contract Spec 108-i must honour is recorded in specs/108-profiles-v3/tasks.md (T101) and the navigation map: register /profiles by that path, honour /profiles?create=1, fill the slot from App.vue, keep the chip collapsible below 1100 px. Spec 108-k adds the macOS Profiles entry and extends NavigationStructureTests.
  • The Setup sidebar entry stays always present (pulse while incomplete, a check after) because removing it would remove wizard re-entry; the navigation map now says so.
  • For a server edition admin the palette lists the server-edition menus instead of the personal pages, and only the "Add server" action.
  • The stacking scale in the navigation map now states what main ships (header below sidebar, so the open drawer covers the header).
  • Follow-ups, not in this PR: page headings and the Web route title still say "Activity Log" (109-m parity docs); the tray "Add Server..." item could use pendingAddAction.

Tests added

  • vitest: sidebar-structure, header-layout, status-pill, add-menu, command-palette, navigation-redirects, agent-tokens-create-param; updated top-header-tenant-gating, usage-summary-strip-link, clients-page (endpoint copy), settings-naming, sidebar-home-badge, home-attention. Full unit suite passes (217 files).
  • Playwright (navigation-consistency.spec.ts, already run by scripts/run-web-smoke.sh): a width by theme matrix at 1440, 1100, 900 and 390 across five routes (no overflow, no clipped control, exact phone header controls), sidebar order, palette request behaviour, the Add menu, the six redirects with their queries, and filtered deep-link rows. The old header search-button and header Add Server tests left visual-a11y-sweep.spec.ts. The run-web-smoke.sh sweep with the fixture passes 55 with 4 explicit skips (usage chart bars, sessions rows, and two activity checks that need call history).
  • Swift: NavigationStructureTests (sections, order, names, toolbar items, add-action consumption) plus the existing MainWindowRoutingTests, TrayAuditMenuTests and ReviewQueueMenuTests.
  • Docs: web-ui-verification, release-gate and a macOS verification checklist in macos-tray.md.

…c 109-i)

One navigation model (navigation/navModel.ts) now drives the sidebar. Home
sits alone, then Connect (Clients, Servers, Tools), Protect (Review queue,
Secrets) and Monitor (Activity, Usage). Settings, Docs, Feedback and Theme
move to the footer above the version row. Agent Tokens, Sessions and Add
Server leave the sidebar; the Clients row gets a live-client badge fed by a
silent clientsStore.refreshPresence().
The header becomes search, an optional Viewing slot, a status pill, the
attention pill and a + Add menu. The pill counts servers by health.usable
and names the routing mode; mode switcher and endpoints leave the header.
The search field opens a command palette (Cmd/Ctrl+K or /) with Pages,
Actions, Servers, Tools and Settings sections, no request on open, and a
debounced limit-8 tool search.
…(Spec 109-i)

UsageSummaryStrip builds links through useScopeQuery.linkTo so sticky scope
carries into Activity. /clients?tab=tokens&create=1 opens the create dialog
and strips the flag. Endpoint copy buttons and descriptions move from the
retired header dropdown to Clients, Endpoint and mode. /overview redirect
keeps query and hash explicitly.
The sidebar reads Home, then Connect (Clients, Servers, Tools), Protect
(Review Queue, Secrets) and Monitor (Activity), in the order the shortcuts
follow. Home gets the attention badge. A toolbar + menu offers Server,
Client and Token through AppState.pendingAddAction, so each destination
opens its own sheet even when the window was just created.
…Spec 109-i)

navigation-consistency.spec.ts gains the width and theme matrix, the
sidebar order, the command palette, the + Add menu, the redirect table and
the filtered deep-link rows. The header search button and header Add Server
tests leave visual-a11y-sweep.spec.ts; the palette and Add menu tests
replace them.
…n (Spec 109-i)

Updates the navigation map, spec, plan, tasks, research and quickstart to
what ships, adds the verification notes to the web UI, release gate and
macOS docs, and states the contract Spec 108-i must honour for the Viewing
slot and the /profiles route.
Session open and close have no SSE event, so refresh live-client presence
on tool-call activity (debounced) and on a 30 second tick, in addition to
mount, auth recovery and the connect dialog.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 33ac9ca
Status: ✅  Deploy successful!
Preview URL: https://94d92636.mcpproxy-docs.pages.dev
Branch Preview URL: https://109-i-navigation-header.mcpproxy-docs.pages.dev

View logs

refreshPresence() now merges GET /clients rows by id and keeps the detail-only fields (sessions, connected, connection_unverified) that loadDetail() resolved for an expanded Clients row, so the sidebar badge poll no longer wipes them. Adds a vitest covering loadDetail then refreshPresence. Dropped luna findings 4.F1.1 (false positive: macOS badges are specified only for Home and Review Queue) and 5.F1.1 (below bar: two-theme list matches the existing sweep).
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: 109-i-navigation-header

Available Artifacts

  • archive-darwin-amd64 (30 MB)
  • archive-darwin-arm64 (27 MB)
  • archive-linux-amd64 (18 MB)
  • archive-linux-arm64 (16 MB)
  • archive-windows-amd64 (30 MB)
  • archive-windows-arm64 (27 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (25 MB)
  • installer-dmg-darwin-arm64 (22 MB)
  • smart-mcp-proxymcpproxy-go6C3TEE.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 36705948386 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

# Conflicts:
#	ROADMAP.md
#	internal/server/forward_headers_integration_test.go
…resh (109-i O.1)

refreshPresence() only preserved detail data when sessions was defined, but the backend omits sessions when empty, so state/installed/connected/connection_unverified/config paths were wiped on every 30s poll. Track ids whose detail was loaded and preserve all detail-resolved fields for them.
internal/server under -race now runs about 10 minutes on macos-latest, so the
default 10m package timeout panics on a slow runner and fail-fast then
cancels the Windows leg. Mirror the 20m timeout the Windows leg already has.
…ng URL

Resolves CodeQL alert 634 (incomplete string escaping): the previous
escape covered only ? and . and left backslashes unescaped.
…rage runs

On Windows two coverage-instrumented helper processes can collide renaming the
shared covmeta file and print 'coverage meta-data emit failed' to stderr, which
CombinedOutput folded into the printed id and failed the legacy-claim test.
Read the id from stdout only.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved (Model B): Paperclip review verdicts = ACCEPT and qa-gate green at this head SHA. Arming auto-merge; GitHub merges when all required checks pass.

@github-actions
github-actions Bot merged commit 07554c6 into main Sep 30, 2026
70 of 71 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 1, 2026
…de, settings edits, upgrade preview, toolbar add (Spec 108-retro-mac) (#1452)

Fixes the verified post-merge review findings of the macOS profiles work
(#1442, Spec 108-k) and of the toolbar hand-off (#1427, Spec 109-i).
Code changes are under `native/macos/` only; the REST, CLI, MCP and Web
surfaces and the wire contract are unchanged.

Spec: `specs/108-profiles-v3/` (tasks T120a-T120f, FR-047 note,
quickstart unit-gate filter) and `specs/109-ux-navigation-consistency/`
(task T141a). Findings R1-R6 are Spec 108 work; F4.1 (with F6.1) belongs
to Spec 109-i and is fixed in `ServersView.swift`, which both specs
touch.

## User-visible changes (macOS app)

- R1, Forget: the sheet now runs the forget itself and always shows the
outcome, with the Web UI's wording. A credential that was revoked while
its config entry could not be removed shows a warning ("Credential
revoked; the config entry could not be removed: ...") instead of closing
silently. A Close button dismisses it, the list reloads either way, and
the result is announced to VoiceOver. New accessibility ids:
`forget-result`, `forget-close`.
- R2, Try it: a new, never-saved profile now offers Try it (the draft is
sent to `POST /profiles/try` without a name). A new profile has no tool
table because there is no saved profile to compute effective tools for.
The editor layout is driven by `ProfileEditorModel.sections`.
- R3, Reload: "Changed elsewhere - Reload" now discards the draft and
adopts the saved profile. Before, it raised the banner again. Edits
typed while the reload is in flight are kept and re-raise the marker, so
a draft is never overwritten without a click.
- R4, Assign: the sheet sends the profile and the wanted lock in one
`PUT /clients/{id}/binding`, so it can change only the lock of a client
already on the profile. When the binding already matches, nothing is
sent and the sheet says "already on ...".
- R5, Anonymous callers: saving adopts only the `anonymous_profile` key
in the Settings store (`ConfigStore.adoptSaved`) instead of reloading
everything, so other unsaved edits on the same tab survive. The Raw tab
still shows the saved value.
- R6, Admin-key upgrade: changing the profile after a preview drops the
preview (a generation counter also drops a late response), disables
Apply, and loads a fresh preview. Apply sends exactly the previewed
request.
- F4.1 and F6.1, toolbar "+ -> Server": the hand-off and pending routes
are consumed by `ServersView.body`, which stays mounted, so the Add
Server sheet opens over an open server detail and is no longer replayed
when the detail closes. A route that arrives while a detail is open is
consumed immediately.

## Decisions

- F6.1 is folded in because it has the same root cause and fix as F4.1.
- The duplicate `.onReceive(.showAddServer/.showServerDetail)` handlers
inside `serverListView` are left as they are; they are harmless and will
be tracked as a low follow-up.
- The checklist lines for `docs/development/macos-tray.md` stay with the
docs PR (108-l, T124).

## Tests

All new tests were written first. Red was a compile failure for the
model, section and settings tests (missing `ForgetResult`, `assign`,
`AssignOutcome`, `sections`, `adoptSaved`, `commitSaved`); the two
source-guard tests for the toolbar hand-off failed at runtime before the
`ServersView` change.

- `ClientBindingModelTests`: Forget result texts and announcement,
Assign (one request, lock-only change, unchanged sends nothing, refused
without a client credential, guard refusal kept, note wording), upgrade
preview invalidation, previewed profile is what Apply sends, a late
preview is dropped.
- `ProfileEditorModelTests`: Reload adopts the server version, edits
during a reload are kept, sections for new and existing profiles, Try on
a new profile sends the unsaved draft, the view renders
`model.sections`.
- `AnonymousProfileSectionTests`: unrelated unsaved edits survive a
save, `adoptSaved` before load is a no-op, the section never calls
`store.load()`.
- `ServersViewRoutingTests`: the add hand-off and route consumers live
on `body`, not `serverListView`.

`swift build` and the full `swift test` suite pass (1611 tests).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants