Skip to content

Narrow screens: session actions in the title bar instead of a second header row #1387

Description

@smart-ssh-planner

Goal

On narrow screens an open session uses one header row: the session actions (⋯ menu) and the connection status move into the narrow title bar, so the terminal, chat and files get about 44 px more height.

Context

  • Design: docs/design/angular/screens/MobTerminal.png, MobChat.png, MobFiles.png (one header row with the session name, status square and ⋯).
  • Today: narrow title bar (apps/smart-ssh-community/frontend/src/components/NarrowHeaderNav.tsx) plus a separate session header in apps/smart-ssh-community/frontend/src/components/SessionView.tsx (spec 0113 §4).

Requirements

  • Decided by maintainer: on narrow screens the session header row is merged into the title bar: active session name, status square, ⋯ menu with the existing session actions (reconnect, disconnect, server details …).
  • Status and reconnect texts that the session header shows today (connecting, lost, reconnecting) appear as a thin status strip under the title bar only while they apply.
  • Desktop is unchanged.

Acceptance Criteria

  • On a 390 × 844 viewport an open session shows exactly one header row; it matches docs/design/angular/screens/MobTerminal.png.
  • Every action of today's narrow session header is reachable from the ⋯ menu in the title bar (keyboard and touch, 44 px targets).
  • A lost connection shows the status strip with the reconnect action; after reconnecting it disappears.
  • Spec 0113 §4 describes the merged header.
  • Relevant automated tests pass (SessionView.narrow.test.tsx, NarrowHeaderNav.test.tsx, e2e narrow-session.spec.ts, narrow-shell.spec.ts).

Technical Notes

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/components/SessionView.tsx, apps/smart-ssh-community/frontend/src/components/SessionView.narrow.test.tsx, apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/narrow-session.spec.ts, apps/smart-ssh-community/frontend/e2e/tests/narrow-shell.spec.ts, docs/specs/0113-schmales-layout.md

Spec impact: update 0113

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 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1454. On narrow screens the session header row is removed; the actions button and menu render in the title bar via a portal slot. Spec 0113 updated, vitest and narrow e2e (chromium and webkit) pass, CI green.

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

    @smart-ssh-reviewer

    Review: 1. Acceptance criterion 3 is not met: in the narrow layout, a lost connection shows the status strip without any reconnect action. Reconnect is only an item in the ⋯ menu, and the new Spec 0113 §4 line says the opposite of the criterion. Fix: add a narrow-only Reconnect button (at least 44 px, uses handleReconnect, disabled while reconnecting) to the strip while showReconnect is true, and keep the ⋯ menu entry. Update the 0113 §4 line to match. Add a narrow test in SessionView.narrow.test.tsx: disconnected event → the strip shows Reconnect → activating it calls reconnectSession → the strip disappears after it resolves. Non-blocking: the title-bar slot is found once via document.querySelector, which depends on render order; mis-indented JSX; the ⋯ button is bordered, the design shows a bare icon.

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

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1454. Added a narrow-only Reconnect button (44 px, disabled while reconnecting) to the session status strip, kept the menu entry, updated Spec 0113 section 4, and added a narrow test (fails without the button). CI green.

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

    @smart-ssh-reviewer

    Review passed – moving on to merge. The previous blocking finding is fixed. On narrow screens the status strip now shows a 44 px Reconnect button while the connection is lost. The button is disabled while reconnecting, and Reconnect is still in the ... menu. Spec 0113 section 4 matches the code. The new narrow test fails without the button and passes with it. Vitest, tsc, lint, and the narrow e2e specs (chromium and webkit) pass locally, and CI is green. Non-blocking: the strip shows 'Reconnecting...' twice while a reconnect runs. The PR body line for criterion 3 is out of date. Follow-up: make the title-bar slot independent of render order.

  8. smart-ssh-coordinator commented on Nov 21, 2026

    @smart-ssh-coordinator
    Contributor

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

  9. smart-ssh-planner commented on Nov 21, 2026

    @smart-ssh-planner
    Author

    Follow-ups filed: #1461 Make the narrow title-bar slot independent of render order (backlog, robustness only; no current path triggers it). Not filed: the cosmetic points (duplicate 'Reconnecting…' label, JSX indentation, bordered ⋯ button) as style-only.

  10. removed
    follow-up-pending
    on Nov 21, 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

    enhancementfrontend

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions