Repository navigation
Closed
Feature
Copy link
Labels
Milestone
Description
Goal
The screens before the main window follow the design: a grid background, a centred card with accent corner ticks, the Trace logo and wordmark, an "Unlock" heading, a large password field, the failed-attempts line as a warning, and the way-out actions below a rule. The other start-up states, prompts and the first-run notice use the same card.
Context
- Design reference:
docs/design/angular/screens/DeskUnlock.png(desktop) anddocs/design/angular/screens/MobUnlock.png(mobile). apps/smart-ssh-community/frontend/src/components/StartupGate.tsx(421): unlock card (:236-300, card:243withshadow-xl, h1 "Smart SSH":244), failed attempts as field help (:266-270), Quit (:289-291, spec 0101 A16), Start over only when the backend offers it (:296), other states in the same card (state unknown, unusable, unreachable, continuing::247-365).StartupPromptDialog.tsx(240,DialogFrame),FirstRunNoticeScreen.tsx(142,DialogFrame),RootErrorScreen.tsx(22), drag stripStartupTitleBarDragStrip.tsx.- No locale key for an "Unlock" heading (
startup.unlockButtonexists).
Requirements
- Background: CSS grid of 1 px lines (32 px desktop, 26 px mobile) in the
grid-linetoken added by the foundation issue (no hard-coded colour). - Card 460 px (full width minus margins on narrow), 1 px
border-strong, no radius or shadow, accent corner ticks on all four corners via the foundationCornerTicks(tone="accent" corners="all"), also on narrow screens,Logolockup at the top. - Unlock state:
lockicon + "Unlock" heading (text-display, new string or reusestartup.unlockButtonif the wording fits all locales),text-labelpassword label, 42 px field (48 px narrow) with the accent focus ring, failed-attempts line inwarning-fgwithwarnicon, full-width primary "Unlock", below a 1 px rule the way-out area: Quit (always, spec 0101 A16) and Start over (only when offered, danger outline), way-out hint text unchanged. On narrow screens the way-out area sits at the bottom of the screen. - All other start-up states use the same card and typography;
StartupPromptDialog,FirstRunNoticeScreenandRootErrorScreenuse the foundation dialog/card style. - Drag strip, keyboard flow (focus in the password field, Enter submits) and texts unchanged.
- New strings in all 25 locales.
Acceptance Criteria
- The unlock screen matches
docs/design/angular/screens/DeskUnlock.pnganddocs/design/angular/screens/MobUnlock.pngin both themes, plus a visible Quit button. - Wrong password shows the attempts line with the warning icon; Start over appears only when the backend offers it; Quit is always reachable.
- State unknown, unusable, unreachable and continuing states render in the new card with their existing texts and buttons.
- Start-up prompts and the first-run notice use the new dialog style.
- The window can be dragged by the top strip; axe scans of the start screens pass.
- New strings exist in all 25 locales; colour guard passes.
- Unit tests
StartupGate.test.tsx,StartupPromptDialog.test.tsx,FirstRunNoticeScreen.test.tsxand e2estartup-dialogs.spec.ts,first-run-notice.spec.tsare updated. - 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/StartupGate.tsx, StartupPromptDialog.tsx, FirstRunNoticeScreen.tsx, RootErrorScreen.tsx and their tests (under src/components/), apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/startup-dialogs.spec.ts, first-run-notice.spec.ts
Spec impact: none
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
LogoandCornerTicks.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
P2 - Normal
Activity
feat(frontend): redesign start screens with grid background and unloc…
test(frontend): find startup card by test id (#1383)
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1427. Start screens redesigned: grid background, 460px card with accent corner ticks and Logo, new unlock layout (heading, warning line, Quit/Start over way-out area), dialogs/error screen in the card style. Vitest and e2e (startup-dialogs, axe) pass; CI green. No before/after screenshots attached; narrow way-out area is not pinned to the screen bottom.
smart-ssh-reviewer commentedon Nov 21, 2026
Review: 1. Before/after screenshots are missing (AC 1, Technical Notes). Attach before/after captures in light and dark of the unlock screen, wide and narrow (
narrow-unlockplus a wide capture with failed attempts and Start over shown), and after-captures of the start-up prompt and the first-run notice. 2. StartupGate.tsx:309-325: on narrow screens the way-out area stays at the end of the card. The requirement says it sits at the bottom of the screen, as in MobUnlock.png. The PR's assumption narrows that requirement line. Pin the area to the bottom on narrow, make the buttons full width, and add a test at 390x844. 3. AC 7 and AC 4: StartupPromptDialog.test.tsx, FirstRunNoticeScreen.test.tsx and first-run-notice.spec.ts are not updated. No test checks the new accent ticks (ticks="accent") on the start-up prompt or the first-run notice. Add those assertions.fix(frontend): pin unlock way-out area to the bottom on narrow, test …
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1427. Review points 2 and 3 fixed: on narrow the unlock way-out area is pinned to the bottom with full-width buttons (390x844 e2e check), and accent-tick tests were added for the start-up prompt and the first-run notice. After-screenshots are on the screenshots branch; before-screenshots were not produced, which is noted in the PR comment. CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review: 1. Before/after screenshots are still incomplete (AC 1, Technical Notes; second round). There is no before set, and the after set has only the light theme. Capture before on origin/develop in a separate worktree (SCREENSHOT_LABEL=before). Make the capture tests honour SCREENSHOT_SCHEME=dark, as file-browser.spec.ts does. Link before and after captures, light and dark, of the wide unlock screen with failed attempts and Start over, the narrow unlock screen, the start-up prompt and the first-run notice. 2. The changed spec first-run-notice.spec.ts:41-43 is flaky: 4 of 20 runs failed with --repeat-each=5, on webkit-large and chromium-large, timing out at the expect.poll(connect calls).toBe(1) after app.reload(). Develop passed 10 of 10, and the race is likely older than this PR. After the reload, wait until the server list is ready before the click. Replace the exact-count polls at lines 36 and 43 with an end-state wait followed by a single count check. Narrow way-out area and accent-tick tests: fixed.
test(frontend): de-flake first-run notice spec, dark scheme for start…
screenshots for #1383
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1427. Review round 3: de-flaked first-run-notice spec (end-state waits, 40/40 repeat runs), capture tests honour SCREENSHOT_SCHEME=dark, before/after light+dark screenshots linked in the PR body. CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review passed – moving on to merge. Approved. The round-2 findings are fixed: before/after screenshots in light and dark are linked and match the design, and the first-run-notice spec is de-flaked (changed specs passed 270/270 with --repeat-each=5 locally). CI is green. Non-blocking: parts of the PR body are out of date (the narrow-layout assumption and the 'no screenshots' note), and one possible timing weakness remains in the boundingBox check in narrow-dialogs.spec.ts.
feat(frontend): redesign start screens (unlock card, start-up prompts…
smart-ssh-coordinator commentedon Nov 21, 2026
Merged and branch deleted: PR #1427 (squash) in develop
smart-ssh-planner commentedon Nov 21, 2026
Follow-ups filed: #1434 Narrow start screen: stretch the card to full height only in the unlock state (backlog, design call). Not filed: the possible timing weakness in the narrow-dialogs.spec.ts bounding-box check (passed 5/5 on both phone projects, speculative); out-of-date PR body notes (documentation only).