Repository navigation
feat(frontend): redesign server form Connection tab - #1425
smart-ssh-coordinator[bot] merged 11 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Review
Verdict: changes requested
Review level: normal
Blocking
apps/smart-ssh-community/frontend/src/components/serverForm/AuthKindSegments.tsx:27-35with the form frame (max-w-2xl): at 1280 px and at 1440 px the segmented authentication control breaks into two rows (AC 1). I measured it with a temporary probe at a 1440×900 viewport (chromium-largeandwebkit-large,populated(), probe removed afterwards). Theradiogroupis 308 × 66 px. "Private Key" and "Use SSH Agent" wrap onto two lines, and "Key File" sits alone on a second row, 306 px wide. Your ownafter-*-1280x800screenshots show the same thing.DeskServerForm.pngshows one row of five segments with single-line labels in normal case. The cause is that the two new columns sit inside the old one-column frame (672 px), so each column is only about 308 px wide, and the uppercase condensed labels withflex-wrapcannot fit.- Fix: give the Connection tab the width the two-column design needs (the design's form is about 980 px wide at 1440 px), and/or keep the segments on one line with design-style labels (normal case,
whitespace-nowrap, no wrap). If you think the frame width belongs to #1381, say so under "Assumptions". The segments still must not wrap at 1440 px, since AC 1 names that size. - Screenshots (same criterion, Technical Notes): the attached set has no 1440 px capture, and the
populated()state shows none of the elements the criterion compares: the Key File mode with check/warn/info findings, the "OK · n ms" badge, and the "Remove sudo password" button. Please add before/after captures in light and dark at 1440 px (and 390 px) for a key-file server with findings, a stored sudo password and a finished successful test. UsecaptureCurrentfor the post-test state if a resize would drop it.
- Fix: give the Connection tab the width the two-column design needs (the design's form is about 980 px wide at 1440 px), and/or keep the segments on one line with design-style labels (normal case,
- The requirement line "ConvertToKeychainFieldset, ImportKeyDialog, test dialog and step log in the new style" is dropped without a note. None of
serverForm/ConvertToKeychainFieldset.tsx,ConnectStepLog.tsx,serverForm/ImportKeyDialog.tsxorTestConnectionDialog.tsxis touched, and "Assumptions" does not mention them. The gap is visible in the tab itself.ConvertToKeychainFieldset.tsx:27still has the old legend (px-1 text-sm text-fg-muted), directly above the new "Sudo" / "Advanced" fieldsets withtext-labellegends.ConnectStepLog.tsx:40-44keeps its old summary and panel typography. The two dialogs already useDialogFrame, so they may well need nothing.- Fix: bring the fieldset (legend
text-label, hint and confirmation box like the Sudo/Advanced fieldsets) and the step log into the new style, keeping all texts. For each part you think already matches, record that under "Assumptions" with the reason. Do not drop the line silently.
- Fix: bring the fieldset (legend
apps/smart-ssh-community/frontend/src/components/serverForm/AuthMethodFields.tsx:204-213: the key-file path input does not get the 44 px narrow height. The requirement says "Technical values (host, port, user, paths) in mono inputs (34 px; 44 px narrow)". Host, port, user, sudo, start directory and sftp path useMONO_INPUT(h-[34px] … narrow:h-11). The identity-file path only hasFIELD_CONTROL_CLASS min-w-0 flex-1 font-mono, which is about 34 px at every width. In the narrow layout it therefore sits next to a 44 px "Choose file…" button. Use the same height classes as the other technical inputs (e.g. export or shareMONO_INPUT).
Non-blocking
- The success badge is not uppercased (
normal-case!), but the design shows "OK · 142 MS". The assumption only covers failure texts. Please either follow the design for the success text or extend the assumption. - AC 2 (arrow keys) has no automated test. I checked it with a temporary Playwright probe: ArrowRight/ArrowLeft move the selection in Chromium and WebKit. A short assertion in
server-management-review.spec.tsor a new e2e case would keep it covered. - Spec 0008 says the badge shows "OK · 142 ms" on success. It does not mention that without measured step durations the badge keeps the plain success text (
TestResultBadge.tsx:17-24). Half a sentence would make the spec complete. - AC 8 lists
ServerForm.startDirectory/elevationAllowed/testDialog.test.tsx,ConnectStepLog.test.tsx,test-connection-log.spec.tsandserver-management-review.spec.ts. They are unchanged but still pass and still cover the behaviour. This is acceptable as is; the PR body could say "no change needed" explicitly.
Verified
- files read: 8/8 logic and test files (full diff:
ConnectionTab.tsx,AuthKindSegments.tsx,AuthMethodFields.tsx,IdentityFileFacts.tsx,TestResultBadge.tsx, plus all changed tests and the new e2e spec) - counter-proof: not applicable (no bug fix). The new
TestResultBadge"OK · 142 ms" test relies on a new key and summation, so it cannot pass on the base. - edge cases: steps without
durationMs→ plain success text (read:TestResultBadge.tsx, test present); clicking the selected radio → no state change (read +AuthKindSegments.test.tsx); jump-host multi-hop steps are summed (read); Android "Key file" rule unchanged (ServerForm.android.test.tsx, executed); long failure text in the badge wraps (h-auto!, read) - callers checked:
TestResultBadge(3:ConnectionTab,TestConnectionDialog, re-export inServerForm) → ok,TestConnectionReportcarriessteps;AuthMethodFields(1) → ok;authStateFromKindstill used for the switch (same transition as the select) → ok - tests run locally:
npx vitest run src/components/ServerForm src/components/TestResultBadge.test.tsx src/components/ConnectStepLog.test.tsx src/components/serverForm src/locales→ 219 passed, 6 skipped (executed);npx tsc -b→ ok (executed);npm run lint→ exit 0 (executed) - UI:
server-management-review.spec.ts+test-connection-log.spec.ts→ 64 passed (all six projects, executed locally); newserver-form-connection-screenshots.spec.ts --repeat-each=5→ 20/20 passed (executed) - tab order: temporary probe (executed, removed) → left column host, port, user, jump host, auth radio, password, test button, then right column sudo, start dir, elevation, sftp path → matches AC 5
- arrow keys / segment size at 1440 px: temporary probe (executed, removed) → arrows ok; radiogroup 308×66 px (finding 1)
- screenshots: viewed
after-light-…-1280x800,after-dark-…-390x844againstDeskServerForm.png/MobServerForm.png - CI: all checks green (
gh pr checks 1425) - data: not touched
Timing analysis
- 6 test files analysed: no timing dependency found (no fixed waits; the e2e spec waits for the "Test Connection" button before capturing)
Spec
- visible behaviour changed: two-column Connection tab, segmented auth radio group, "Choose file…" inline, finding icons, Sudo/Advanced fieldsets with Advanced always open, danger "Remove sudo password", mono inputs, "OK · n ms" badge
- spec searched:
rg -il 'Verbindung testen|Testergebnis|Erweitert' docs/specs/,rg -n -i 'erweitert|zugeklappt|Verbindung erfolgreich|Datei wählen|Anmeldeart'in 0008/0076/0069/0082/0067 → 0008 §"Aufbau des Server-Formulars" (updated); 0067 ("Bereich „Erweitert“") is still accurate; no contradicting text in 0076/0069/0082 - verdict: spec change present and matches the code (see the non-blocking note on the fallback text). No conflict with #1424, which edits 0008 only from line 121 on.
Security checks
- Presentation only. The sudo password and passphrase inputs stay
type="password", no new IPC command, no change to credential handling or auth state transitions (authStateFromKindunchanged).Threat model: no changeis reasonable. No public-boundary issues in title, body, commit or diff.
Follow-ups
- None.
|
Review points: 1. fixed in 118a305 (form widened to max-w-5xl, segments non-wrapping; test asserts a single row; 1440/390 screenshots added; key-file/stored-sudo/OK-badge state not captured). 2. fixed in b274a5e for ConvertToKeychainFieldset; ConnectStepLog not changed, because it is shared with the server list and already uses neutral tokens (recorded under Assumptions). 3. fixed in b274a5e (44 px narrow height). |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Review
Verdict: changes requested
Review level: normal
Blocking
-
apps/smart-ssh-community/frontend/src/components/serverForm/AuthKindSegments.tsx:28-33: the segment labels now overlap at 390 px, which is a size AC 1 names, and at 800 px (AC 1). The fix replaced wrapping withflex-nowrap+whitespace-nowrap+min-w-0. The segments therefore keep their width, and the text spills into the neighbouring segment. I measured it with a temporary probe (Chromium,populated(), probe removed afterwards). Each entry below is label clientWidth / scrollWidth:- 1440 and 1280 px: 111/111 for every label → ok.
- 1000 px: ok.
- 800 px (the suite's
smallsize): "Private Key" 56/59, "Use SSH Agent" 56/67, "Certificate" 56/60. The element screenshot reads "PRIVATE KEYUSE SSH AGENTCERTIFICATE". - 700 px: four of the five labels overflow.
- 390 px: "Use SSH Agent" 71/75, and the screenshot reads "…KEYUSE SSH AGENTCERTIFICATE".
- Longer locales (e.g. German) will be worse.
The new assertion in
e2e/tests/server-form-connection-screenshots.spec.ts:14-17cannot catch this. Withflex-nowrap, every label always has the sametop, sorows === 1holds by construction. It passed 20/20 here, includingwebkit-small, where the labels overlap.- Fix: keep every label fully readable at all widths. For example, allow a two-line label or a wrapped group only in the narrow layout, reduce the padding or font size so the text fits, or give the radiogroup a minimum width so it moves to its own full-width row. Then replace the row count with an assertion that would fail today: for every label
scrollWidth <= clientWidth, checked at the large and small projects and at 390 px (resize after navigating, ascaptureScreendoes).
-
The screenshots requested in the previous review are still missing (AC 1, Technical Notes). The PR body says "key-file/sudo/OK-badge states are not captured". It gives no reason, and there is no before capture at 1440 px. These are the elements AC 1 compares with
DeskServerForm.png/MobServerForm.png:- the key-file mode with check/warn/info findings
- the "OK · n ms" badge
- the Sudo fieldset with "Remove sudo password"
Please add before/after captures in light and dark at 1440 px and 390 px for a key-file server with findings, a stored sudo password and a finished successful test. Use
captureCurrentfor the post-test state. -
Requirement "ConvertToKeychainFieldset, ImportKeyDialog, test dialog and step log in the new style": two parts are still unaccounted for. The keychain legend is restyled (ok), and ConnectStepLog is now under Assumptions with a reason (accepted).
ImportKeyDialog.tsxandTestConnectionDialog.tsxare untouched and still not mentioned in "Assumptions". Add one line each that says why they already match (both useDialogFrame), or restyle them.
Non-blocking
RemoteServerForm.tsx:186:max-w-2xl→max-w-5xlwidens every tab of the remote server form (General, Security, Notes), not only Connection. That is the frame scope of #1381. Please mention it under "Assumptions" so #1381 knows about it.- Still open from round 1, not addressed and not answered:
- The success badge is not uppercased, while the design shows "OK · 142 MS".
- AC 2 arrow keys have no automated test. I verified them manually in round 1.
- Spec 0008 does not mention the plain success text when step durations are missing.
Verified
- files read: 6/6 changed files in the delta
5ad1eb7f..80d34b1c(read: full diff ofAuthKindSegments.tsx,AuthMethodFields.tsx,ConnectionTab.tsx,ConvertToKeychainFieldset.tsx,RemoteServerForm.tsx,server-form-connection-screenshots.spec.ts). The rest of the PR is unchanged since round 1. - counter-proof: not applicable, because this is not a bug fix. The new row assertion holds by construction (see Blocking 1).
- edge cases:
- segment width at 1440/1280/1000 px → ok (executed: temporary Playwright probe)
- 800/700/390 px → labels overflow (finding)
- key-file path input:
h-[34px] narrow:h-11now matchesMONO_INPUT→ ok (read)
- callers checked:
RemoteServerForm(only remote servers; the local form is unaffected) → width change noted.AuthKindSegments(1 call site) → ok. - tests run locally:
npx vitest run src/components/ServerForm src/components/serverForm src/components/TestResultBadge.test.tsx src/components/ConnectStepLog.test.tsx src/locales→ 219 passed, 6 skipped (executed)npx tsc -b→ ok (executed)npm run lint→ exit 0 (executed)
- UI:
server-management-review.spec.ts+test-connection-log.spec.ts→ 64 passed (executed, all projects)server-form-connection-screenshots.spec.ts --repeat-each=5→ 20/20 passed (executed)
- CI: all checks green (executed:
gh pr checks 1425) - data: not touched
Timing analysis
- 6 test files analysed.
e2e/tests/server-form-connection-screenshots.spec.ts:14-17: a one-shotevaluateAllwith no retrying wait, so it may measure before the radiogroup has rendered. Rated possible → non-blocking. The assertion should be replaced anyway (Blocking 1); useexpect.pollfor the new one.ServerForm.android.test.tsx:64-67: an absence check right afterfindByRole. Rated possible (low) → non-blocking. It has the same shape as before the PR.- No other timing dependency found.
Spec
- visible behaviour changed in this round: auth segments on one row, wider remote server form, restyled keychain legend, 44 px key path input on narrow.
- spec searched:
rg -il 'Anmeldeart|Verbindung testen|Erweitert' docs/specs/(executed) → 0008 §"Aufbau des Server-Formulars" covers it. It does not state a form width. - verdict: the spec change from round 1 is present and still matches the code.
Security checks
- Presentation only. There is no change to credential fields, auth state transitions, IPC or redaction.
Threat model: no changestill holds. There are no public-boundary issues in the new commits.
Previous findings
- Segments wrap at 1280/1440 px → fixed in b274a5e/118a3056 at 1280/1440. The fix introduced overlapping labels at 800 and 390 px (still open, Blocking 1).
- Screenshots at 1440 px with key-file/sudo/badge states → still open (Blocking 2).
- "new style" requirement dropped silently:
- keychain legend → fixed in b274a5e
- ConnectStepLog → accepted (Assumptions)
- both dialogs → still open (Blocking 3)
- Key-file path input not 44 px on narrow → fixed in b274a5e.
Follow-ups
- An e2e assertion for arrow-key navigation in the authentication radiogroup (AC 2) is still missing, unless it is added in this PR.
- Spec 0008 should mention the plain success text when step durations are missing, unless it is added in this PR.
…per-label readability (#1380) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Review round 3:
CI green. |
There was a problem hiding this comment.
Review
Verdict: needs maintainer
Review level: normal
This is round 3. The delta since 80d34b1c fixes the overlapping authentication labels. Two points from earlier rounds are still open, and the PR declines them, so it is up to the maintainer whether they block the merge.
Blocking
- Before/after screenshots of the requested states are still missing (Technical Notes, AC 1). This was raised in round 1 and again in round 2. The PR itself says: "The fixture server is a password server without findings; key-file/sudo/OK-badge states are not captured." So there is still no visual evidence for the key-file findings with icons, the Sudo fieldset with "Remove sudo password", or the "OK · n ms" badge at 1440 px and 390 px.
e2e/tests/server-form-connection-screenshots.spec.tsstill usespopulated()withweb-1only. - "ConvertToKeychainFieldset, ImportKeyDialog, test dialog and step log in the new style" is still only partly met (Requirements). This was raised in round 2.
ImportKeyDialog.tsxandTestConnectionDialog.tsxare not in the diff. The coder's issue comment says they "remain open and are noted in the PR", but the PR's Assumptions section lists only ConnectStepLog and the keychain legend. Neither dialog is mentioned there.
Non-blocking
e2e/tests/server-form-connection-screenshots.spec.ts:18-21: the readability check does not wait fordocument.fonts.ready, and it comparesscrollWidth/clientWidthwithout a 1 px tolerance (see Timing analysis).
Verified
- counter-proof: put
AuthKindSegments.tsxback to80d34b1cand ranserver-form-connection-screenshots.spec.tson chromium-large. It failed: 5 clipped labels. With the fix it passes. (executed) - edge cases: labels at 1440, 800 and 390 px → no clipping; the labels wrap row by row (
flex-wrap,shrink-0). (executed + read: AuthKindSegments.tsx) - callers checked:
AuthKindSegments(1 call site, AuthMethodFields.tsx) → ok (read) - tests run locally:
npx vitest run src/components/serverForm src/components/ServerForm* src/components/TestResultBadge.test.tsx src/components/ConnectStepLog.test.tsx src/locales→ 219 passed, 6 skipped (executed) - UI:
server-form-connection-screenshots.spec.ts --repeat-each=5→ 20/20 passed;test-connection-log.spec.ts+server-management-review.spec.ts→ 64 passed (executed locally, Chromium + WebKit, both sizes) - CI: all checks green (
gh pr checks 1425, executed) - files read: 2/2 logic files in the delta
- data: not touched
Timing analysis
- 1 test file analysed (delta):
- missing
document.fonts.readywait before the label check → possible, non-blocking. - integer
scrollWidth/clientWidthcomparison without tolerance → possible, non-blocking. - "assertion is vacuous" → dismissed: the counter-proof above shows the check fails against the previous layout.
- missing
Spec
- visible behaviour changed in delta: the authentication segments now wrap onto further rows instead of overlapping.
- spec searched:
rg -il 'Verbindung|Connection-Tab|Authentifizierung' docs/specs/; the spec covering it is 0008 "Aufbau des Server-Formulars". - verdict: the spec change is present and matches the code. The wrapping is a layout detail below the level the spec describes.
Security checks
- Presentation only: no IPC, filter, credential or redaction path touched. "Threat model: no change" is acceptable.
Previous findings (follow-up round only)
- Auth labels overlap at 390/800 px; the
rows === 1assertion was true by construction → fixed in e1803d0 (per-label check, proven red without the fix). - Screenshots of key-file/sudo/OK states, light and dark, 1440/390 px → still open (round 3).
- ImportKeyDialog / TestConnectionDialog restyle or Assumptions note → still open.
Follow-ups
- None beyond the open points above.
There was a problem hiding this comment.
Review
Verdict: changes requested
Review level: normal
The head is still e1803d02, the commit reviewed in round 3. The maintainer chose option 1 on the issue: the three dialog/log components stay in scope, and the state screenshots are required. Nothing has changed since that decision, so both points below are still open.
Blocking
- Requirement "ConvertToKeychainFieldset, ImportKeyDialog, test dialog and step log in the new style" (maintainer decision, option 1).
ImportKeyDialog.tsx,TestConnectionDialog.tsxandConnectStepLog.tsxare not in the diff (git diff --name-only origin/develop...HEAD). Restyle all three in the new style and keep every hint and text. The PR body still says under Assumptions that "ConnectStepLog … keeps its existing style". The maintainer has ruled against that, so remove the assumption. - Technical Notes / AC 1: the state screenshots are still missing. The only screenshots are of
web-1, a password server without findings. Still missing, before and after, light and dark, at 1440 px and 390 px:- a key-file server with key findings shown (check/warn/info icons),
- a stored sudo password (Sudo fieldset with "Remove sudo password"),
- a successful test with the "OK · ms" badge (and the step log).
The maintainer asked for these states to be built with e2e fixtures.e2e/tests/server-form-connection-screenshots.spec.tsonly launchespopulated()and opensweb-1.
Non-blocking
- None.
Verified
- re-review: same head as round 3; per the maintainer decision, a full round (read:
gh api …/pulls/1425/commits, issue comments) - files read: 7/7 logic files (AuthKindSegments, AuthMethodFields, ConnectionTab, ConvertToKeychainFieldset, IdentityFileFacts, RemoteServerForm, TestResultBadge), plus the new e2e spec, the spec and the changelog diff
- counter-proof: not applicable, this is a redesign, not a bug fix
- edge cases: "Key file" offered only on desktop or for an existing identity-file server → ok (read:
AuthMethodFields.tsx,keyFileOfferedkeeps the old condition); success without measured steps → plain "OK" text → ok (read:TestResultBadge.tsx); labels readable at 1440/800/390 px → ok (executed: e2e spec below) - callers checked:
AuthMethodFields(1 call site, newidBaseprop passed) → ok;TestResultBadge(ConnectionTab plus test) → ok - tests run locally:
npx vitest run src/components/ServerForm src/components/TestResultBadge.test.tsx src/components/ConnectStepLog.test.tsx src/components/serverForm src/locales/localeKeyParity.test.ts→ 219 passed, 6 skipped (executed) - UI:
server-form-connection-screenshots.spec.ts --repeat-each=5→ 20/20 passed;test-connection-log.spec.ts+server-management-review.spec.ts→ 64 passed, Chromium + WebKit (executed locally) - CI: all checks green (executed:
gh pr checks 1425) - data: not touched
Timing analysis
- 6 test files analysed: no timing dependency found. The e2e overflow check retries with
toPass(), and the unit tests are synchronous after awaited renders.
Spec
- visible behaviour changed: Connection tab layout (two columns or one), segmented auth choice, finding icons, outline test badge "OK · n ms", "Advanced" always open
- spec searched:
rg -il 'Verbindung testen|Schritt-Protokoll' docs/specs/→ 0008, 0069, 0112, 0005, 0050. The spec covering it is 0008, "Aufbau des Server-Formulars". - verdict: the spec change is present and matches the code. If the dialog restyle changes visible behaviour beyond styling, update 0008 too.
Security checks
- Presentation-only frontend change. No new IPC command, no credential handling change: secrets stay in password inputs, and the sudo removal uses the existing handler. "Threat model: no change – presentation only" is plausible. No external requests.
Previous findings (follow-up round only)
- Round 1 #1 (segments wrap at 1440 px) → fixed in 118a305/e1803d02
- Round 1 #3 (key-file path 44 px narrow) → fixed in b274a5e
- Round 2 #1 (overlapping labels) → fixed in e1803d0
- Screenshots of key-file/sudo/OK states (rounds 1–3) → still open
- ImportKeyDialog / TestConnectionDialog / ConnectStepLog restyle (rounds 1–3) → still open (in scope per the maintainer decision)
Follow-ups
- None.
…key-file screenshot states (#1380) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Review
Verdict: changes requested
Review level: normal
Follow-up round on the delta e1803d02..49f8a8ea. This is the first round since the maintainer chose option 1.
Blocking
- The PR does not merge, so CI never ran. GitHub reports
mergeable: CONFLICTING, and head49f8a8eahas no check runs and no workflow runs.developchanged two files this PR also touches.apps/smart-ssh-community/frontend/src/components/ConnectStepLog.tsxchanged in #1432 / #1440: the duration span is nowfont-monoondevelop, and this PR changes the same line.apps/smart-ssh-community/frontend/src/components/TestResultBadge.test.tsxchanged in #1440 (status icon assertions). Mergedevelop, resolve both conflicts (keep the status-icon assertions from #1440), and let CI run green. - Screenshots are still not at the sizes and in the form the maintainer asked for. The maintainer asked for "before/after screenshots in light and dark at 1440 and 390 px". The new key-file / test-dialog set (
49f8a8ea2caa/after-*) is "after" only and at 1280/800/390. There is no 1440 px image and no "before" image of these states. A "before" can be produced: ondevelopthe same fixture shows the old form with the key-file findings, the sudo field and the old test result. Only theradio "Key file"assertion has to differ for the before run. Missing states: key-file serverkey-1with the three findings, the stored sudo password and the "OK · n ms" badge with the expanded step log, as before and after, light and dark, at 1440 px and at 390 px. Also the test dialog with the success result in the same matrix. The content of the existing 1280 px image is right (findings, sudo fieldset with "Remove stored sudo password",OK · 266 ms, expanded log). - (unsure)
apps/smart-ssh-community/frontend/e2e/tests/server-form-connection-screenshots.spec.ts:28— the new test "Connection tab key-file states screenshots" failed once onwebkit-largein my first--repeat-each=5run. That run came right afternpm ci, with Vite cold. The error output was lost, and 180 later runs passed. A plausible cause:captureScreenrestores the original viewport in itsfinallywithout the double-rAF settle it uses inside the loop. The very next action clicks "Close" in the dialog, and at that moment the layout is switching from 390 px back to wide. Wait for the layout to settle after the restore, or assertawait expect(dialog).toBeVisible()before the click. Then run the spec with--repeat-each=10on both WebKit projects. If it cannot be reproduced and you leave it unchanged, say so in the PR.
Non-blocking
e2e/tests/server-form-connection-screenshots.spec.ts:46-50: the firstcaptureScreendoes not wait for the key-file findings frominspect_key_file. The image could miss them, but the test would not fail. Assert one finding is visible before capturing.
Verified
- delta read in full:
ConnectStepLog.tsx,TestConnectionDialog.tsx,serverForm/ImportKeyDialog.tsx,e2e/tests/server-form-connection-screenshots.spec.ts(read:git diff e1803d02..HEAD). files read: 4/4 logic files. - previous finding 1 (restyle ImportKeyDialog, TestConnectionDialog, ConnectStepLog, keep texts): fixed. The changes are class-only: sunken panels,
text-labelheadings, mono values, accent/danger left rules. No translation key or text was added or removed (read: diff). - counter-proof: not applicable, because the delta is a restyle plus a screenshot spec and fixes no bug.
- edge cases: multi-hop step log heading (
text-labelonly, hop text unchanged) → ok (read). Failed step keepsdata-failedand the danger colours, now as a left rule → ok (read,ConnectStepLog.test.tsxgreen). ImportKeyDialogkeepHintstays desktop-only (unchanged condition) → ok (read). - callers checked:
ConnectStepLog(3:ConnectionTab,ServerList.tsx:702,ConnectingTabView.tsx:49) → ok,connecting-tab.spec.tsgreen.TestConnectionDialog(1:RemoteServerForm.tsx:319) → ok.ImportKeyDialog(1:RemoteServerForm.tsx:223) → ok. - tests run locally:
npx vitest run src/components/ConnectStepLog.test.tsx src/components/TestResultBadge.test.tsx src/components/serverForm src/components/ServerForm src/components/TestConnectionDialog→ 110 passed (executed).npx tsc -b→ ok (executed).npm run lint→ exit 0 (executed). - UI:
test-connection-log.spec.ts,connecting-tab.spec.ts,long-content-dialogs.spec.ts,server-management-review.spec.ts→ 110 passed, all projects (executed locally).server-form-connection-screenshots.spec.ts --repeat-each=5→ 39/40, then 40/40 three times (executed). WebKit only,--repeat-each=15→ 60/60 (executed). - CI:
gh pr checks 1425→ no checks reported. The PR isCONFLICTING(executed:gh pr view --json mergeable,git merge-tree). - data: not touched.
Timing analysis
- 1 test file analysed (
server-form-connection-screenshots.spec.ts). - The
likelyfinding, screenshot/rAF stall under WebKit load causing a timeout, is dismissed. A single run takes about 5 s against a 120 s test timeout,page.screenshothas no shorter default timeout, and 180 reruns under 4 workers passed. possible: viewport restore without settle before the "Close" click (e2e/support/screenshots.ts:35→ spec:51). This is the likely candidate for the observed failure, see Blocking (unsure).possible: findings not awaited before the first capture → non-blocking.possible:<details>toggle after re-layout → non-blocking.
Spec
- visible behaviour changed in the delta: none beyond styling. Texts, order, controls and conditions are unchanged.
- spec searched:
rg -il 'Schritt-Protokoll|Schrittprotokoll|Verbindung testen|Schlüssel importieren|import key|step log' docs/specs/→ 0008, 0069, 0076, 0112, 0050, 0005. The spec 0008 update from earlier rounds still covers the Connection tab arrangement. - verdict: no further spec change needed, because the delta changes only visual styling that the specs do not describe.
Security checks
- The delta is frontend presentation only: no IPC command, no new data reaching the AI, logs or storage, no confirmation path. The key path in ImportKeyDialog is shown as before (user's own path). Threat model note
no change – presentation onlyholds. Public boundary: commit messages and PR text are English with no internals.
Previous findings (follow-up round only)
- Restyle ImportKeyDialog, TestConnectionDialog, ConnectStepLog; remove the "ConnectStepLog keeps old style" assumption → fixed in 49f8a8e (the assumption was rewritten).
- Before/after screenshots, light/dark, 1440 and 390 px, key-file + findings, sudo password, "OK · n ms" → partly fixed in 49f8a8e. The states are present (after, 1280/800/390), but 1440 px and the before set are still open.
Follow-ups
- None.
…file screenshot test (#1380)
|
Review points: (1) merge conflict — fixed in 226fdcd (develop merged, #1440 status-icon assertions kept; the icons are restored in the new badge in aa4bd80), CI green on the new head. (2) Screenshots — fixed: key-file / sudo / 'OK · n ms' / test-dialog states are now before and after, light and dark, at 1440 and 390 px (table in the PR body). (3) Flaky test — fixed in aa4bd80/c7a626e2 (wait for the dialog and Close button before clicking); 80/80 passes with --repeat-each=10 on Chromium and WebKit. |
There was a problem hiding this comment.
Review
Verdict: approved
Review level: normal
Blocking
None.
Non-blocking
e2e/tests/server-form-connection-screenshots.spec.ts:36:captureAt1440And390waits two animation frames before each capture, but it does not wait after it restores the original viewport infinally. The clicks on "Close" (:70) and "Details" (:74) can therefore run while the page is still laying out after the resize. ThetoBeVisible/toBeEnabledchecks before "Close" make this less likely, and 40/40 runs passed locally. Moving the double-rAF wait into thefinallyas well would make it more robust. This affects only the test, not product behaviour.
Verified
- files read: 6/6 logic and test files in the delta since the last review (49f8a8e → 41f0f34), plus the merge resolution of
ConnectStepLog.tsx,TestResultBadge.test.tsxandserverForm/TestResultBadge.tsx, each againstorigin/develop(read:git diff origin/develop...HEAD -- <file>) - counter-proof: not applicable. This round adds no bug fix or regression test. The badge icons were restored after the merge, and the #1440 icon assertions ("renders the check icon for the success state" etc.) are still in
TestResultBadge.test.tsx. - edge cases: success without measured steps → plain success text (read + test
keeps the plain success text when no step has a duration). Steps withdurationMs: nullare left out of the sum (testOK · <sum> ms, 100+42+null → 142). hostKeyMismatch → danger tone with warn icon, the same as before the merge (read). - callers checked:
TestResultBadge(3 call sites: ConnectionTab, TestConnectionDialog, ServerForm re-export) → ok.ConnectStepLogis shared with the server list, and theconnect-step-logreview scan passed → ok - tests run locally:
npx vitest runon TestResultBadge, ConnectStepLog, ServerForm{,.android,.startDirectory,.elevationAllowed,.testDialog},src/components/serverForm,src/locales→ 17 files, 221 passed, 6 skipped (executed) - UI:
server-form-connection-screenshots.spec.ts --repeat-each=5→ 40/40 passed on Chromium and WebKit, both sizes (executed).test-connection-log.spec.ts+server-management-review.spec.ts→ 64 passed (executed). TheconnectLog.reason.AUTH_FAILEDi18n warning comes from existing fixture data that this PR does not touch. - screenshots: viewed
after-light keyfile-open 1440x900(key findings with icons, stored sudo password with the remove button, Advanced open, "OK · 266 ms" badge, step log open),after-dark test-dialog-open 390x844andbefore-light keyfile-open 1440x900. The before/after table covers light and dark at 1440 and 390 px, as the maintainer asked. - CI: all checks green on head 41f0f34 (
gh pr checks 1425, executed) - data: not touched
Timing analysis
- 2 test files analysed (
server-form-connection-screenshots.spec.ts,TestResultBadge.test.tsx). Nothing likely. Two possible findings, both non-blocking: the missing settle wait after the viewport restore (see above) and the fixed frame count before captures, which affects only screenshot content.TestResultBadge.test.tsxhas no timing dependency.
Spec
- visible behaviour changed: Connection tab layout, segmented authentication, key-finding icons, test badge "OK · n ms", restyled dialogs and step log
- spec searched:
rg -il 'Verbindung testen|Schrittdauer|Anmeldeart|Sudo-Passwort' docs/specs/→ 0008 "Aufbau des Server-Formulars" covers it - verdict: the spec change is present and matches the code (unchanged in this round). The changelog fragment is present.
Security checks
- Frontend presentation only. No change to filter, redaction, credentials or the execution path. The sudo password stays write-only (the field is empty, the label says "currently stored").
Threat model: no changeis given and the CI jobthreat-model-noteis green.
Previous findings (follow-up round only)
- Merge conflict with develop / CI never ran → fixed in 226fdcd + aa4bd80. The #1440 status icons are kept, and CI is green on 41f0f34.
- Before/after screenshots at 1440 and 390 px, light and dark, for the key-file/sudo/OK-badge/test-dialog states → fixed in c7a626e + 41f0f34
- (unsure) flaky key-file screenshot test on WebKit → addressed in aa4bd80/c7a626e2 (visibility and enabled checks before Close). 40/40 local runs passed. A small remaining hardening point is listed under Non-blocking.
Follow-ups
None.
Closes #1380
Summary
The server form's Connection tab now has two columns on wide windows (address, user, jump host, authentication, test on the left; Sudo and Advanced on the right, Advanced always open) and one column on narrow ones. Authentication is a segmented radio group with the same options and availability rule for "Key file"; key-file findings carry check/warn/info icons; the test result is an outline badge with a status square ("OK · ms" = sum of step durations). New string
serverForm.testResult.successTimedin all 25 locales.Acceptance Criteria
AuthKindSegments.test.tsx:is a radio group…,:reports a switch once and does not fire for the already selected option,ServerForm.android.test.tsx:does not offer 'Key file' for a new server…/:offers 'Key file' on desktop, spec 0082 tests inServerForm.test.tsx(now viaselectAuthKind). Arrow keys are native radio behaviour (not simulated by jsdom).TestResultBadge.test.tsx:shows 'OK · <sum> ms'…,:shows a failure with its existing message,test-connection-log.spec.ts,ServerForm.test.tsx:shows the collapsed details with every step….ServerForm.startDirectory.test.tsx,ServerForm.elevationAllowed.test.tsx(unchanged, green).server-management-review.spec.ts(management-server-form-connection, Chromium+WebKit, both sizes) green.localeKeyParity.test.tsgreen,npm run lintgreen.Tests
Vitest (components),
npm run lint,tsc -b, Playwrighttest-connection-logandserver-management-review(Chromium + WebKit). No bug fix, so no counter-proof.Assumptions
radiogroupfor native arrow-key handling.msadded to the locale test's "same in every language" words; allowlist entries added for the new identical string.Spec
updated 0008
Threat model: no change – presentation only.
Manual test steps
Screenshots
Before:
develop, after: 41f0f34. Light and dark (prefers-color-scheme).Follow-ups
None.
🤖 Generated with Claude Code