Repository navigation
Description
Goal
The Connection tab of the server form follows the design: two columns on wide screens (address, user, jump host, authentication and test on the left; sudo and advanced options on the right), authentication as a segmented choice, key-file findings with icons, and a test result badge with status marker and duration.
Context
- Design reference:
docs/design/angular/screens/DeskServerForm.png(desktop) anddocs/design/angular/screens/MobServerForm.png(mobile). apps/smart-ssh-community/frontend/src/components/serverForm/ConnectionTab.tsx(247): host, port, username, jump host select (:110-126), auth fields, ConvertToKeychainFieldset (:135-137), sudo field with state suffix in the label (:143-154), start directory outside Advanced (:178-193), Advanced as collapsed<details>(sftp-server path, elevation checkbox,:195-231), test at the end (:234-244) withConnectStepLog(:242-244).serverForm/AuthMethodFields.tsx(244): auth method<select>(:26-44), "Key file" only on desktop or when already used (:40-43).serverForm/IdentityFileFacts.tsx,ConvertToKeychainFieldset.tsx,ImportKeyDialog.tsx,TestResultBadge.tsx(plain coloured text from strings with ✓/✗/⚠,:12-34),TestConnectionDialog.tsx,ConnectStepLog.tsx. Step durations exist (ConnectStepRecord.durationMs,src/generated/ipc.ts:109).- Spec 0008 "Aufbau des Server-Formulars" (Connection: …, sudo, start directory, "Erweitert" = SFTP path, then test), spec 0076 B-2/B-3 (key file input and findings), spec 0069 (test result texts).
Requirements
- Wide: two columns. Left: Host + Port (90 px) on one row, Username, Jump host, Authentication, key file path with "Choose file …" inline, key findings with
check/warn/infoicons, passphrase, "Test connection" with the result badge and the step log. Right: fieldset "Sudo" (hint, field, "Remove sudo password" as danger outline button), fieldset "Advanced" (start directory with hint, elevation checkbox with hint, sftp-server path) shown open. Narrow: one column in the same order. - Authentication as a segmented radio group (
role="radiogroup", arrow keys) with the same options and the same availability rule for "Key file"; switching calls the same state transition as the select. - Technical values (host, port, user, paths) in mono inputs (34 px; 44 px narrow).
- Test result badge: outline
BadgewithStatusSquareand text "OK · 142 ms" (sum of step durations) or the failure text; the glyphs leave the strings (done by the icon issue) and the badge shows the icon. - ConvertToKeychainFieldset, ImportKeyDialog, test dialog and step log in the new style; all hints and texts kept.
- New strings in all 25 locales.
Acceptance Criteria
- The Connection tab matches
docs/design/angular/screens/DeskServerForm.pngon a 1440 px window andMobServerForm.pngon 390 px. - The authentication choice is a radio group operable with arrow keys; "Key file" appears under the same conditions as before; switching keeps entered credentials as today (spec 0082).
- A successful test shows "OK · ms"; failures show the existing messages with the error marker; the step log still opens.
- Start directory, elevation checkbox and sftp path save as before from their new place.
- Axe scans of the server form pass; tab order follows the visual order (left column, then right column).
- Spec 0008 ("Aufbau des Server-Formulars") describes the new arrangement of the Connection tab.
- New strings exist in all 25 locales; colour guard passes.
- Unit tests
ServerForm.test.tsx(authKindSelect()helper:135-141),ServerForm.android.test.tsx(role="option":65-73),ServerForm.startDirectory.test.tsx,ServerForm.elevationAllowed.test.tsx,ServerForm.testDialog.test.tsx,TestResultBadge.test.tsx,ConnectStepLog.test.tsx,serverForm/*.test.tsxand e2etest-connection-log.spec.ts,server-management-review.spec.ts(Connection parts) are 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/serverForm/ConnectionTab.tsx, AuthMethodFields.tsx, IdentityFileFacts.tsx, ConvertToKeychainFieldset.tsx, ImportKeyDialog.tsx, TestResultBadge.tsx (under src/components/serverForm/), apps/smart-ssh-community/frontend/src/components/TestConnectionDialog.tsx, ConnectStepLog.tsx, tests listed above, apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/test-connection-log.spec.ts, docs/specs/0008-server-management-ui.md
Spec impact: update 0008 (server form structure)
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) — test result strings lose their glyphs there. Blocks: Redesign: server form frame, General, Security and Notes tabs, group form #1381 (server-form-shell).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
feat(frontend): redesign server form Connection tab (#1380)
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1425. Connection tab redesigned (two columns, segmented radio auth, key-file finding icons, test badge "OK · n ms", Advanced/Sudo fieldsets), spec 0008 + changelog updated, strings in all 25 locales; tests, lint and CI green. Design PNGs not compared pixel by pixel; screenshots in the PR.
smart-ssh-reviewer commentedon Nov 21, 2026
Review: 1. AC 1: at 1280 and 1440 px the segmented authentication control breaks into two rows (radiogroup measured at 308x66 px, 'Key File' alone on row 2, labels wrapped), unlike DeskServerForm.png. Give the two-column tab enough width and/or keep the segments on one line. Also add before/after screenshots at 1440 px (and 390 px), light and dark, of a key-file server with findings, a stored sudo password and a successful 'OK · n ms' badge. 2. The requirement 'ConvertToKeychainFieldset, ImportKeyDialog, test dialog and step log in the new style' is dropped without a note: ConvertToKeychainFieldset keeps its old legend (text-sm text-fg-muted) next to the new text-label legends, and ConnectStepLog is unchanged. Restyle them, or record under Assumptions why each part already matches. 3. The key-file path input lacks the 44 px narrow height that the requirement asks for on technical inputs (AuthMethodFields.tsx:204-213); use the same height classes as MONO_INPUT.
fix(frontend): keep auth segments on one row, restyle keychain legend…
fix(frontend): widen remote server form so the auth segments stay rea…
test(e2e): keep the default screenshot sizes (#1380)
11 remaining items
Screenshots for #1380 at 49f8a8e
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1425. Restyled ImportKeyDialog, TestConnectionDialog and ConnectStepLog (texts unchanged) and added e2e fixtures plus light/dark screenshots for a key-file server with findings, a stored sudo password and the 'OK · n ms' badge (PR body updated). Local checks green (vitest, lint, tsc, Playwright spec on both browsers). wait-ci found no checks on the PR for head 49f8a8e after 5 minutes (twice), so CI status is unconfirmed.
smart-ssh-reviewer commentedon Nov 21, 2026
Review: Round after the maintainer chose option 1. The dialog/step-log restyle is done (texts unchanged, local vitest/lint/tsc/e2e green). Open: 1. The PR conflicts with develop (ConnectStepLog.tsx and TestResultBadge.test.tsx, changed by #1432/#1440), so CI never ran on head 49f8a8e. Merge develop, keep the #1440 status-icon assertions, and get CI green. 2. The screenshots still miss what the maintainer asked for: the new key-file / sudo / 'OK · n ms' / test-dialog set is 'after' only at 1280/800/390 px. Add these states as before and after, light and dark, at 1440 px and 390 px. The before run can use the same fixture on develop. 3. (unsure) The new e2e test 'Connection tab key-file states screenshots' failed once in 220 local runs on webkit-large. Wait for the layout to settle after captureScreen restores the viewport, or assert the dialog is visible before clicking Close. Then rerun with --repeat-each=10 on WebKit.
fix(frontend): keep status icons in test result badge, stabilise key-…
test(e2e): capture key-file and test-dialog states at 1440 and 390 px (…
Screenshots for #1380 at c7a626e
test(e2e): make key-file screenshot spec runnable on the pre-redesign…
Screenshots for #1380 at 41f0f34
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1425. Merged develop (conflicts resolved, status icons kept), restored icons in the new test-result badge, stabilised the key-file screenshot test (10x repeat green), added before/after screenshots at 1440 and 390 px in both themes; CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review passed – moving on to merge. Follow-up round (49f8a8e -> 41f0f34): all previous findings are fixed. The develop merge keeps the status icons from #1440, and CI is green on 41f0f34. Before/after screenshots now cover light and dark at 1440 and 390 px for the key-file findings, the stored sudo password, the 'OK · n ms' badge and the test dialog. The key-file screenshot test passed 40/40 with --repeat-each=5. Local runs passed: vitest 221, server-management-review and test-connection-log 64. Non-blocking: the screenshot helper could also wait for layout after it restores the viewport.
feat(frontend): redesign server form Connection tab (#1425)
smart-ssh-coordinator commentedon Nov 21, 2026
Merged and branch deleted: PR #1425 (squash) in develop
smart-ssh-planner commentedon Nov 21, 2026
Follow-ups filed: #1459 Cover arrow-key navigation, the badge fallback text and the badge letter case of the Connection tab (backlog, needs a maintainer decision on the letter case). Not filed: nothing else, the other review points were fixed before merge.