Repository navigation
Description
Goal
The title bar becomes the design's single 44 px bar: Trace logo and "SMART SSH" wordmark, the main navigation (Connect, Manage, Filter Rules) as flat tabs, the session tabs with square status markers and a labelled "pending" badge, and icon buttons for Activities and Settings on the right. The second header row of the overview disappears.
Context
- Design reference: header of
docs/design/angular/screens/Main.png(dark) anddocs/design/angular/screens/MainLight.png(light); tab style specimen indocs/design/angular/screens/Tokens.png. - Title bar
apps/smart-ssh-community/frontend/src/components/AppHeader.tsx: brand block with an inline ">_" mark (:103-116), "Smart SSH", version, edition, early-access, data-dir and dev markers (:122-158, spec 0052), hidden in the narrow layout (:101); ActivityCenter trigger mounted at:176. HeightTITLEBAR_HEIGHT_CLASS = "h-9 narrow:h-11"(src/lib/titlebarLayout.ts:35), mirrored for the window-controls plugin insrc/index.css:256-259(--tauri-plugin-decoration-titlebar-height: 36px); drag layersStartupTitleBarDragStrip.tsx. - Overview header row (wide only) with h1, nav and a text "Settings" button:
src/App.tsx:382-405; nav entriessrc/lib/navEntries.ts:6-10. - Session tabs
SessionTabBar.tsx: "Overview" tile (:85-98, spec 0017 §3), bordered pill tabs (:119-123), close glyph (:155);SessionTabParts.tsx: status dot colours (:7-12,32), spinner/✗ while connecting/failed (:25-30), pending pulse dot for user tabs (:64-68), MCP badge (:51-63).SessionTab.hasPendingActionis a boolean (src/hooks/useSessionTabs.ts:70);SessionTabhas noisLocal(:61-98),ServerDto.isLocalexists. - Spec 0014 §4 (logo and wordmark left, tab bar in the middle), spec 0017 §3/§5, spec 0052 (version/edition text).
Requirements
- One title bar of 44 px on wide screens (narrow layout unchanged at 44 px; the narrow header is redesigned in the mobile navigation issue). Update
TITLEBAR_HEIGHT_CLASS, the plugin height variable and the drag layers together; macOS traffic-light and Windows/Linux control clearances stay correct. - Left:
Logo(lockup, 20 px mark) followed by version, edition, early-access, data-dir and dev markers in small mono/label style (all kept, spec 0052). - Main navigation Connect / Manage / Filter Rules in the title bar as flat 44 px tabs (
text-label-style, 2 px accent top rule when active, 1 px separators,shieldicon on Filter Rules), shown in the title bar instead of the overview's second header row, which is removed. Decided by maintainer: the navigation tabs stay visible while a session is shown, and they replace the "Overview" tile (spec 0017 §3): "Connect" leads back to the overview. Update spec 0017 §3 and the e2e tests that click "Overview". - Decided by maintainer: a "+" icon button at the end of the session tab strip opens the Connect view (no new picker UI); the existing new-session context menu stays.
- Session tabs: same flat tab style; label in mono 12.5 px; 8 px
StatusSquare(success connected, neutral disconnected, warning awaiting host key / reconnecting,localtone for the local pseudo-server), spinner andxicon for connecting/failed; close as a 12 pxxicon button with the existing accessible name; numbering "name (2)" and MCP label/badge unchanged. - Pending confirmation on a user tab: warning
Badge"Pending" (new string) next to the label in addition to the tooltip; the MCP "Needs confirmation" badge stays. - Pass
isLocalintoSessionTab(from the server list the app already loads) for the local marker. - Right: Activities trigger (unchanged component, placed here) and Settings as an icon-only button (
sliders,aria-label"Settings"), reachable in every state where the old Settings button was reachable. - Keyboard: tab order and arrow-key behaviour of the tab bar unchanged; drag region rules of spec 0014 §5 unchanged.
- New strings in all 25 locales.
Acceptance Criteria
- The wide title bar matches the header of
docs/design/angular/screens/Main.pngandMainLight.png(no Overview tile; navigation tabs visible during a session). - The overview has no second header row; Connect, Manage and Filter Rules switch views from the title bar; Settings opens from the icon button.
- A connected tab shows a green square, a disconnected one a neutral square, a local-shell tab the local colour; a background tab with a pending confirmation shows the "Pending" badge and its tooltip.
- Version, edition, early-access, data-dir and dev markers are still shown.
- The window can be dragged by the free title-bar area on macOS, Windows and Linux; clicks on tabs and buttons do not drag; native controls are not covered.
- Keyboard tab order through the title bar is logical and every button has an accessible name; axe scans pass.
- Spec 0014 §4 and spec 0017 §3/§5 describe the new bar, markers and badge.
- New strings exist in all 25 locales; colour guard passes.
- Unit tests
AppHeader.test.tsx,TitleBarDragLayer.test.tsx,StartupTitleBarDragStrip.test.tsx,SessionTabBar.test.tsx,App.hostKeyPrompt.test.tsxand e2esmoke.spec.ts,session-tabs.spec.ts,app-shell-review.spec.ts,accessibility.spec.ts,connecting-tab.spec.ts,manage-connect.spec.ts,long-content-dialogs.spec.ts(Overview clicks, header heading) are updated. - With a session open, the Connect / Manage / Filter Rules tabs are visible in the title bar; clicking Connect shows the overview; no "Overview" tile exists.
- The "+" button at the end of the tab strip opens the Connect view and is keyboard-operable with an accessible name.
- Relevant automated tests pass
Technical Notes
e2e/support/app.tsopenSettingsfinds the button by the name "Settings"; keep that accessible name.- Several e2e tests click "Overview"; switch them to the Connect tab.
Files: apps/smart-ssh-community/frontend/src/components/AppHeader.tsx, apps/smart-ssh-community/frontend/src/App.tsx (overview header only), apps/smart-ssh-community/frontend/src/components/SessionTabBar.tsx, SessionTabParts.tsx, NewSessionMenu.tsx, StartupTitleBarDragStrip.tsx (under src/components/), apps/smart-ssh-community/frontend/src/lib/navEntries.ts, apps/smart-ssh-community/frontend/src/lib/titlebarLayout.ts, apps/smart-ssh-community/frontend/src/hooks/useSessionTabs.ts (isLocal only), apps/smart-ssh-community/frontend/src/index.css (title-bar height variable only), tests listed above, apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/, docs/specs/0014-custom-titlebar.md, docs/specs/0017-multi-tab-sessions.md
Spec impact: update 0014 (§4), update 0017 (§3, §5)
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: new "Trace" logo as app icon (all platforms), favicon and Logo component #1364 (logo-app-icons) — uses
Logo. Blocks: Redesign: session header with server details and pane switch #1366 (session-header-panes), Redesign: Connect server tree with counts, connector lines and status markers #1367 (connect-tree), Redesign: narrow header and navigation sheet #1369 (mobile-navigation), Redesign: activity center trigger and panel #1382 (activity-center), Redesign: host key dialog, auth prompt, connecting and unusable-server panels, toasts #1384 (dialogs-connection). - Activities stays hidden while idle (spec 0116 §1), as decided by maintainer.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
feat(frontend): single 44 px title bar with logo, main navigation and…
test(frontend): default listServers in the shared api mock (#1365)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1406. Single 44 px title bar with Trace logo, main navigation tabs, flat session tabs with square markers, Pending badge, + button and Settings icon; Overview tile and second header row removed; specs 0014/0017, 25 locales, unit and e2e tests updated. CI green on PR #1406.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. Session tabs lose their names: the strip is now overflow-hidden and each tab is min-w-0 shrink with no minimum width. At 800 px with 5 open tabs, and at 1280 px with 8, every tab button collapses to 0 px; only the square and the close button stay visible. This contradicts Spec 0017 §3 ('names are shortened'). Fix: give tabs a minimum width with a truncated label, let the strip scroll again when that does not fit, and add an e2e test with 6 tabs at 800 px. 2. Spec 0017 §5 says MCP tabs show 'Bestätigung nötig' in addition to 'Ausstehend'; the code shows one or the other, so the wording must change to 'instead'. 3. Spec 0104 lines 75-77 still describe the pending marker of user tabs as a square; update it to the 'Ausstehend' badge.
fix(frontend): keep tab names readable, scroll the strip; align specs…
test(e2e): layout helpers accept content inside a horizontal scroller (…
ci: re-trigger checks after a cancelled browser-test job (#1365)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1406. Review points fixed: tabs have a 7rem minimum width and the strip scrolls (e2e test with 6 tabs added, counter-proof done); Spec 0017 and 0104 wording corrected; e2e layout helpers now accept content in a horizontal scroller. CI green on all jobs (an earlier browser-test job was cancelled by the runner and re-triggered).
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. All three findings from round 1 are fixed. Session tabs now keep a 7rem minimum width and the strip scrolls; the new e2e test fails without the fix and passes with it (counter-proof reproduced). Spec 0017 §5 and spec 0104 now match the code. Local runs passed: tsc, vitest (23 tests), session-tabs e2e with --repeat-each=5 (80/80), app-shell-review/accessibility/smoke e2e (117 passed). CI is green. Follow-ups (non-blocking): the tab-strip overflow is hard to see for mouse users because the scrollbar is hidden, and spec 0017 §3 should mention the scrolling; robust isLocal; an aria-label for the title-bar nav; harden the many-tabs e2e test (poll the widths, assert the overflow).
Manual testing after the merge:
feat(frontend): title bar with logo, main navigation and square-marke…
smart-ssh-coordinator commentedon Nov 20, 2026
Merged and branch deleted: PR #1406 (squash) in develop
smart-ssh-planner commentedon Nov 20, 2026
Follow-ups filed: #1408 Make the session tab strip overflow visible, document the scrolling in Spec 0017 and harden the many-tabs e2e test; #1409 Derive the local-session tab marker without a single startup request; #1410 Give the title-bar main navigation an accessible name (backlog, minor).