Skip to content

Redesign: title bar with logo and main navigation, session tabs with square status markers #1365

Description

@smart-ssh-planner

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) and docs/design/angular/screens/MainLight.png (light); tab style specimen in docs/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. Height TITLEBAR_HEIGHT_CLASS = "h-9 narrow:h-11" (src/lib/titlebarLayout.ts:35), mirrored for the window-controls plugin in src/index.css:256-259 (--tauri-plugin-decoration-titlebar-height: 36px); drag layers StartupTitleBarDragStrip.tsx.
  • Overview header row (wide only) with h1, nav and a text "Settings" button: src/App.tsx:382-405; nav entries src/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.hasPendingAction is a boolean (src/hooks/useSessionTabs.ts:70); SessionTab has no isLocal (:61-98), ServerDto.isLocal exists.
  • 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, shield icon 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, local tone for the local pseudo-server), spinner and x icon for connecting/failed; close as a 12 px x icon 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 isLocal into SessionTab (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.png and MainLight.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.tsx and e2e smoke.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.ts openSettings finds 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

Activity

  1. added this to the 0.8.0 milestone on Nov 19, 2026
  2. added
    enhancement
    frontend
    on Nov 19, 2026
  3. smart-ssh-coder commented on Nov 20, 2026

    @smart-ssh-coder
    Contributor

    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.

  4. added
    follow-up-pending
    on Nov 20, 2026
  5. smart-ssh-reviewer commented on Nov 20, 2026

    @smart-ssh-reviewer

    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.

  6. smart-ssh-coder commented on Nov 20, 2026

    @smart-ssh-coder
    Contributor

    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).

  7. smart-ssh-reviewer commented on Nov 20, 2026

    @smart-ssh-reviewer

    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:

    • macOS, Windows, Linux: title-bar dragging — 1. Start the app with a session open. 2. Drag the window by an empty area of the title bar: the window moves. 3. Press and drag on a session tab, a navigation tab (Connect/Manage/Filter Rules), the + button and the Settings button: the window does not move, and a click performs the action. 4. Check that the macOS traffic lights and the Windows/Linux window controls are not covered by the logo, the tabs or the buttons.
  8. added
    manual-testing
    on Nov 20, 2026
  9. smart-ssh-coordinator commented on Nov 20, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1406 (squash) in develop

  10. smart-ssh-planner commented on Nov 20, 2026

    @smart-ssh-planner
    Author

    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).

  11. removed
    follow-up-pending
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrontendmanual-testing

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions