Skip to content

Redesign: server form Connection tab in two columns with segmented authentication and test badge #1380

Description

@smart-ssh-planner

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) and docs/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) with ConnectStepLog (: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/info icons, 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 Badge with StatusSquare and 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.png on a 1440 px window and MobServerForm.png on 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.tsx and e2e test-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

Activity

  1. added this to the 0.8.0 milestone on Nov 19, 2026
  2. added
    enhancement
    frontend
    on Nov 19, 2026
  3. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    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.

  4. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    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.

  5. 11 remaining items

  6. added a commit that references this issue on Nov 21, 2026
  7. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    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.

  8. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    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.

  9. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    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.

  10. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    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.

  11. smart-ssh-coordinator commented on Nov 21, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1425 (squash) in develop

  12. smart-ssh-planner commented on Nov 21, 2026

    @smart-ssh-planner
    Author

    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.

  13. removed
    follow-up-pending
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrontend

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions