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 terminal sits full-bleed on the terminal background with inner padding, and the touch key row becomes a flush block of two fixed rows with eight keys each, so every key is visible without horizontal scrolling. Key behaviour does not change.
Context
- Design reference:
docs/design/angular/screens/MobTerminal.png(mobile key row and terminal), terminal area ofdocs/design/angular/screens/Main.png(desktop) anddocs/design/angular/screens/MainLight.png(light terminal). - Key row
apps/smart-ssh-community/frontend/src/components/TerminalKeyRow.tsx: one row with horizontal scrolling (flex gap-1 overflow-x-auto pt-2,:38-43), rounded bordered keys (:17), 16 keys in the order Esc, Ctrl, Alt, Tab, ↑ ↓ ← →, Home, End, PgUp, PgDn, |, ~, /, - (:20-78), arrows as ↑↓←→ glyphs with translated labels (:23-26), modifier "on" style:36, focus kept byonPointerDown preventDefault(:19),role="toolbar". - Modifier logic in
TerminalView.tsx: one-shot Ctrl/Alt (:124-134,:204-221), sequences insrc/lib/terminalKeys.ts; xterm theme read from--term-*tokens (TerminalView.tsx:16-42, live re-read on theme change:95-101), font size 13 (:87). - Spec 0114 §2a: "eine Tastenreihe" with the order Esc, Ctrl, Alt, Tab …, 44 × 44 px minimum, screen-reader labels in all languages.
- The terminal wrapper padding and background frame live in
SessionView.tsx:513(p-2onsurface-sunken); that line belongs to the session-header issue of the redesign.
Requirements
- Key row: two rows of eight keys, order row 1
Esc Tab Ctrl Alt ↑ ↓ ← →, row 2Home End PgUp PgDn | ~ / -; keys flush (no gaps, no radius), separated by 1 pxborderrules, block with a 1 pxborder-strongtop rule onsurface-raised; each keyflex-1with at least 44 × 44 px, so the row fits a 360 px wide screen without scrolling or clipping. - Named and modifier keys in Barlow Condensed uppercase, symbol keys in mono; arrow keys show
chev-style icons from the icon set (rotated as needed) and keep their translatedaria-labels. - Ctrl/Alt "on" state: accent fill with
on-accenttext,aria-pressedas today. - Keep
role="toolbar", the accessible group label,data-testid="terminal-key-row", focus retention and the one-shot modifier behaviour; the row still appears only on touch devices. - Terminal: full-bleed
term-bgwith 14-16 px inner padding on desktop and 10 px on narrow screens, drawn byTerminalView(so it no longer depends on the wrapper's padding); cursor uses the accent colour from the tokens. - No change to the bytes sent by any key.
Acceptance Criteria
- On a 390 × 844 viewport with a coarse pointer, the key row shows 16 keys in two rows in the order above, matches
docs/design/angular/screens/MobTerminal.png, and has no horizontal scrollbar; on 360 px width every key is at least 44 × 44 px and fully visible. - Ctrl then
csends Ctrl+C, Alt thenbsendsEsc b, a second tap on Ctrl releases it; the soft keyboard keeps focus when a key is tapped. - Every key has an accessible name in all 25 locales; the row is a toolbar with its label.
- The terminal shows the new terminal colours in dark and light theme and the inner padding of the design on desktop and narrow screens.
- The key row is absent on desktop with a fine pointer.
- The colour guard (
src/theme/colourGuard.test.ts) passes. - Spec 0114 §2a describes two fixed rows and the new key order.
- Unit tests
TerminalView.keys.test.tsx,TerminalView.test.tsx,lib/terminalKeys.test.tsand e2ee2e/tests/terminal-key-row.spec.ts,e2e/tests/narrow-session.spec.ts,e2e/tests/reconnect.spec.tspass with updated selectors. - Relevant automated tests pass
Technical Notes
TerminalView.keys.test.tsx:108asserts themin-h-11class; assert the size via role and computed layout or a test id instead.- xterm needs a
fitafter the padding change; check the resize path inTerminalView.tsx.
Files: apps/smart-ssh-community/frontend/src/components/TerminalKeyRow.tsx, apps/smart-ssh-community/frontend/src/components/TerminalView.tsx, apps/smart-ssh-community/frontend/src/components/TerminalView.keys.test.tsx, apps/smart-ssh-community/frontend/src/components/TerminalView.test.tsx, apps/smart-ssh-community/frontend/e2e/tests/terminal-key-row.spec.ts, apps/smart-ssh-community/frontend/e2e/tests/narrow-session.spec.ts, docs/specs/0114-android.md
Spec impact: update 0114 (§2a)
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: shared SVG icon set replaces emoji and glyph icons #1363 (icon-set).
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): terminal surface and two-row touch key row (#1370)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1403. Terminal surface (full-bleed term-bg with padding in TerminalView) and two-row, 8-keys-each flush touch key row implemented; Spec 0114 updated; unit and e2e tests green, CI green on PR #1403. Pixel match to the design needs manual check.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. TerminalView.tsx:217 switches the terminal padding at Tailwind
md(768 px) instead of the project's narrow breakpoint (640 px, Spec 0113,narrow:variant / useIsNarrow). A desktop window between 640 and 767 px wide uses the wide layout but gets 10 px padding, although the issue requires 14-16 px on desktop and 10 px on narrow screens. Usep-4 narrow:p-2.5, or useIsNarrow() so Android's always-narrow layout is covered too. Ideally add an e2e check of the computed padding at 360 px and at 1280 px. Optional in the same round: assert the row-2 key order, align key colours/sizes with MobTerminal.html (fg-muted for named keys, 13 px symbols), and fix the spec grammar ('fehlt er').fix(frontend): use narrow breakpoint for terminal padding (#1370)
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1403. Review fix: terminal padding now switches at the project narrow breakpoint (p-4 narrow:p-2.5) with an e2e padding check on phone width; spec grammar fixed. CI green.
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. Approved. The previous blocking finding is fixed in c5a8b9c: the terminal padding now switches at the 640 px narrow breakpoint, and Android's always-narrow layout is covered too. An e2e check for the 10 px narrow padding is added; it fails when the narrow padding is removed and passes with it. Unit tests, lint, tsc and the three e2e specs pass locally; CI is green. Non-blocking: the PR body still mentions the old
mdbreakpoint, and the 16 px desktop padding is not asserted.Manual testing after the merge:
feat(frontend): terminal surface and two-row touch key row (#1403)
smart-ssh-coordinator commentedon Nov 20, 2026
Merged and branch deleted: PR #1403 (squash) in develop