Repository navigation
Labels
assistant-briefedQuestion prepared and handed to the maintainerfollow-upFiled automatically from a review or implementation runfrontendFrontend (React/TypeScript)testsTest code and test infrastructure
Description
Goal
The redesigned Connection tab keeps its keyboard behaviour and the success badge text under automated test and spec coverage, and the badge's letter case matches the design.
Context
Follow-up of #1380 (PR #1425): the reviews noted gaps that were left open when the PR merged.
- The authentication radiogroup (
apps/smart-ssh-community/frontend/src/components/serverForm/AuthKindSegments.tsx) supports arrow-key navigation, but no test covers it (checked manually in Chromium and WebKit only). serverForm/TestResultBadge.tsxshows the plain success text when no step has a measured duration. Spec 0008 (section on the server form layout) only describes "OK · 142 ms" and does not mention this fallback.- The badge uses
normal-case!(TestResultBadge.tsx:58), so success reads "OK · 142 ms", while the design shows "OK · 142 MS". e2e/tests/server-form-connection-screenshots.spec.ts:38-40: thefinallyblock restores the viewport without waiting for the layout to settle (the capture loop waits two animation frames), so following clicks can run during re-layout.
Maintainer decision
Letter case of the success badge:
- Keep "OK · 142 ms" (current) and extend the spec/assumption to say so. – no change in the UI.
- Uppercase like the design ("OK · 142 MS"). – differs from the failure texts, which stay mixed case.
Recommendation: option 1. The acceptance criteria describe it.
Requirements
- Add an automated test for arrow-key navigation in the authentication radiogroup.
- Add the missing-durations fallback to Spec 0008.
- Apply the maintainer's choice on the badge case.
- Wait for the layout to settle after the viewport restore in the screenshot spec.
Acceptance Criteria
- A test presses ArrowRight and ArrowLeft in the authentication radiogroup and asserts the selected radio changes accordingly (unit or e2e, Chromium and WebKit if e2e).
- Spec 0008 states that the badge shows the plain success text when no step duration was measured.
- Spec 0008 states the letter case of the success badge text matching the chosen option.
-
server-form-connection-screenshots.spec.tswaits two animation frames after restoring the viewport before the next click. - Relevant automated tests pass
Technical Notes
Presentation and test changes only; no IPC, credential or filter changes. Threat model: no change.
Files: apps/smart-ssh-community/frontend/src/components/serverForm/, apps/smart-ssh-community/frontend/e2e/tests/server-form-connection-screenshots.spec.ts, docs/specs/0008-server-management-ui.md
Spec impact: update 0008
Open questions
None.
Related Work
Metadata
Metadata
Assignees
Labels
assistant-briefedQuestion prepared and handed to the maintainerfollow-upFiled automatically from a review or implementation runfrontendFrontend (React/TypeScript)testsTest code and test infrastructure
Type
Fields
Priority
P3 - Low
Activity
smart-ssh-planner commentedon Nov 22, 2026
Needs maintainer: Question: Which letter case should the success badge of the connection test use?
Context: The design shows "OK · 142 MS" (uppercase); the implementation shows "OK · 142 ms". Failure texts in the badge stay mixed case because they are long sentences.
Options:
Technical assessment: both are a one-line change plus a test; no risk.
smart-ssh-planner commentedon Nov 22, 2026
Maintainer brief: Product question: Should the success badge of the connection test read "OK · 142 ms" (as built) or "OK · 142 MS" (as in the design)?
Now: The Connection tab of the server form shows "OK · 142 ms" (merged in #1380 / PR #1425). The design mockup shows "OK · 142 MS". Failure texts in the badge are long sentences and stay mixed case. No PR for this follow-up exists yet.
Options (numbering of the question kept):
Recommendation: option 1 – "ms" is the correct unit symbol ("MS" would read as megasiemens), it is consistent with the mixed-case failure texts, and the issue itself recommends it.
Not answered automatically because: it changes what the user sees (text and letter case) and departs from the design reference.
smart-ssh-maintainer commentedon Nov 22, 2026
Decided by maintainer: option 1.
Keep "OK · 142 ms" (lowercase "ms" is the unit symbol and matches the mixed-case failure texts) and state the letter case of the success badge in Spec 0008.
test(frontend): cover auth radiogroup arrow keys, document badge text…
smart-ssh-coder commentedon Nov 22, 2026
Implementation ready for review. PR #1519. Added e2e test for arrow-key navigation in the auth radiogroup (Chromium+WebKit, 10x repeat green), documented success badge case (lowercase ms, option 1) and no-duration fallback in Spec 0008, and added the two-frame wait after viewport restore in the screenshot spec. CI green on PR #1519.
smart-ssh-reviewer commentedon Nov 22, 2026
Review passed – moving on to merge. All acceptance criteria are met. A new e2e test covers ArrowRight/ArrowLeft in the auth radiogroup in Chromium and WebKit; it was green 20/20 locally and fails when native arrow navigation is broken. Spec 0008 now documents the plain success text when no duration was measured and the lower-case "ms" (option 1). The screenshot spec waits two animation frames after restoring the viewport. CI is green. Non-blocking: the test could assert the exact next radio and the initial value explicitly.
test(frontend): cover auth radiogroup arrow keys, document badge text…
smart-ssh-coordinator commentedon Nov 22, 2026
Merged and branch deleted: PR #1519 (squash) in develop