Repository navigation
Labels
enhancementNew feature or requestfrontendFrontend (React/TypeScript)manual-testingMerged; some criteria need a manual check on real hardware or another OS
Milestone
Description
Goal
The narrow header and the burger navigation sheet follow the design: a 56 px header with burger, logo and wordmark (or the active session), and a sheet with a brand header and close button, icon entries for the main views, open sessions with square markers and badges, and Settings at the bottom.
Context
- Design reference:
docs/design/angular/screens/MobMenu.png(sheet), header indocs/design/angular/screens/MobServers.pnganddocs/design/angular/screens/MobTerminal.png. apps/smart-ssh-community/frontend/src/components/NarrowHeaderNav.tsx: title as plain text "Smart SSH" (:64), burger and active session (:58-62), sheet as abareDialogFramewithout a close button (:100), widthmin(20rem,85vw)onbg-surface(:105), entries Connect, Manage, Rules fromsrc/lib/navEntries.ts:6-10plus Settings in the same group (:123-125), "Open sessions" with close glyph (:128-162,:155). Narrow title-bar heightTITLEBAR_HEIGHT_CLASS(src/lib/titlebarLayout.ts:35).- Status parts shared with the wide tab bar:
SessionTabParts.tsx(restyled by the title bar issue). - Spec 0113 §3 (title bar with burger and title, menu with "Verbinden, Verwalten, Regeln und Einstellungen", open sessions).
Requirements
- Header 56 px on narrow screens (update the narrow part of
TITLEBAR_HEIGHT_CLASS): burger (44 px target), thenLogolockup when no session is active, orStatusSquare+ mono session name when a session is active. - Sheet 330 px (max 85 vw) on
surface-raisedwith the overlay scrim: brand header withLogoand a Close icon button (accessible name), entries Connect, Manage, Filter Rules as 48 px rows with icons (terminal/server,sliders/edit,shieldas in the design) and uppercase labels, the active entry marked; sectiontext-label"Open sessions" with rows (square marker, mono name, "Needs confirmation" badge for a pending confirmation, close icon button 48 px); Settings as a row pinned at the bottom of the sheet. - Focus trap, Escape, backdrop click and focus return unchanged; the sheet still closes on navigation.
- The "Open sessions" section appears only when sessions exist (as today); MCP labels and connecting/failed states stay.
- New strings in all 25 locales.
Acceptance Criteria
- On a 390 × 844 viewport the header matches
docs/design/angular/screens/MobServers.pngand the sheet matchesdocs/design/angular/screens/MobMenu.png(with the "+ New session" entry; the Activities entry only while activities exist). - The Close button and Escape close the sheet and return focus to the burger.
- Selecting an entry or a session navigates and closes the sheet; closing a session from the sheet works.
- A session with a pending confirmation shows the "Needs confirmation" badge in the sheet.
- Every target is at least 44 px; axe scan of the open sheet passes.
- Spec 0113 §3 describes header, brand header, close button, icons and Settings at the bottom.
- New strings exist in all 25 locales; colour guard passes.
- Unit test
NarrowHeaderNav.test.tsxand e2enarrow-shell.spec.ts,narrow-layout.spec.tsare updated. - The sheet has a "+ New session" entry that opens the Connect view.
- While at least one activity exists, the sheet shows an "Activities · N running" entry that opens the activity center; with no activities the entry is absent.
- Relevant automated tests pass
Technical Notes
- Attach before/after screenshots (
SCREENSHOT_LABEL=before|after,e2e/support/screenshots.ts) in both themes to the PR.
Files: apps/smart-ssh-community/frontend/src/components/NarrowHeaderNav.tsx, apps/smart-ssh-community/frontend/src/components/NarrowHeaderNav.test.tsx, apps/smart-ssh-community/frontend/src/lib/titlebarLayout.ts (narrow height), apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/narrow-shell.spec.ts, narrow-layout.spec.ts, docs/specs/0113-schmales-layout.md
Spec impact: update 0113 (§3)
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: title bar with logo and main navigation, session tabs with square status markers #1365 (titlebar-session-tabs) — shares
SessionTabParts.tsx,navEntries.ts,titlebarLayout.ts. - Decided by maintainer: "+ New session" entry (opens Connect) and an Activities entry only while activities exist. Merging the session actions into the narrow title bar is a separate issue.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestfrontendFrontend (React/TypeScript)manual-testingMerged; some criteria need a manual check on real hardware or another OS
Type
Fields
Priority
P2 - Normal
Activity
feat(frontend): redesign narrow header and navigation sheet (#1369)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1419. Narrow header (56 px, logo/session) and navigation sheet (brand header, close button, icon rows, New session, Activities entry, Settings pinned) implemented; spec 0113 and 25 locales updated; unit and e2e tests updated, CI green on PR #1419. Before/after screenshots in both themes were not produced.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. Before/after screenshots in light and dark are missing (AC 1, Technical Notes). The PR body says 'screenshot below', but it has no image. Attach header (overview and session) and open-sheet captures at 390x844. 2. docs/specs/0014-custom-titlebar.md:51-52 still says the narrow layout stays 44 px. Update it to the new 56 px narrow title bar. 3. AC 8: e2e/tests/narrow-layout.spec.ts is not updated. Assert a 56 px header at 639 px and 44 px at 640 px, which covers the narrow:h-14 switch. 4. sessionTabs.menu.activitiesRunning has no plural forms ('1 laufen' in German, wrong forms in cs/pl/ru/uk and others). Use i18next _one/_other (and _few/_many where needed) keys.
fix(frontend): plural forms for running activities, title bar height …
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1419. Addressed all four review points: before/after screenshots (both themes) in the PR body, spec 0014 updated to the 56 px narrow title bar, e2e assertion for 56 px at 639 px and 44 px at 640 px, and CLDR plural forms for the running-activities text in all locales. CI green.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. The 'menu' before/after screenshots in the PR body do not show the open navigation sheet; they show the session view with the closed header. captureScreen resizes the viewport (e2e/support/screenshots.ts:29-31), and the resize closes the sheet. AC 1 (sheet matches MobMenu.png) is therefore still not shown. In narrow-shell.spec.ts:38, capture the open sheet with captureCurrent(page, ...), then attach the open-sheet captures in light and dark, ideally with a pending-confirmation session and a running activity. The other three findings from the last round are fixed (spec 0014, the 56/44 px test, plural forms). CI is green.
test(frontend): capture the open navigation sheet in screenshots (#1369)
screenshots: open navigation sheet (#1369)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1419. Fixed the review point: the menu screenshots now capture the open navigation sheet (captureCurrent, light and dark), attached to the PR body. CI green.
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. All earlier findings are fixed. The menu screenshots now show the open navigation sheet in light and dark mode. I ran the narrow-shell e2e spec locally five times on chromium and webkit: all passed. The axe check passes in dark mode too. CI is green. Non-blocking: the old 'menu' row in the PR's before/after table still links the closed-header captures.
Manual testing after the merge:
feat(frontend): redesign narrow header and navigation sheet (#1419)
smart-ssh-coordinator commentedon Nov 20, 2026
Merged and branch deleted: PR #1419 (squash) in develop