Repository navigation
Description
Goal
The Connect view's server tree follows the design: flat rows with 1 px rules, tree connector lines, item counts on groups, a "Local" badge on the local pseudo-server, a mono user@host sub-line and square status markers for servers with an open session.
Context
- Design reference:
docs/design/angular/screens/MobServers.png(mobile Connect list) and the tree indocs/design/angular/screens/Main.png(desktop rows, counts, connector lines, status squares). - Tree
apps/smart-ssh-community/frontend/src/components/ServerList.tsx(787 lines): rounded bordered boxes withdivide-y, Localhost in its own box (:649), group header with chevron and folder (:560-597), indentationindent()(:244, alignment rule:243), sub-lineuser@host:port(:484-488), tags and key-file line (:493-507), "Connecting…" text (:510-512), unusable rows (:528), copy badge (:46-55), "Ungrouped" section (:680-700), empty state; collapse state insrc/App.tsx:368-379. - Counts are not shown;
GroupTreeNodehasservers,unusableServers,children(src/lib/groupTree.ts:12-20). The design's count is the number of direct children ("staging 2" = one server + one subgroup). - Status:
ServerListonly receivesconnectingServerIds(App.tsx:186-188); open tabs withserverId,status,hasPendingActionare inApp.tsx(useSessionTabs,:55-64). - Spec 0033 §3 (structure, alignment with the 📁 symbol, no "+", "Ohne Gruppe", Localhost in a separate box), spec 0113 §5a (44 px rows, 20 px chevron on narrow).
Requirements
- Rows (desktop 30-32 px, narrow at least 52 px) with a 1 px bottom rule, no boxes; groups on
surface-sunkenwithchev-r/chev-d,folder/folder-open, semibold name and a mono count infg-faint; servers with theservericon and the name in mono. - Connector lines: children sit in a container with a 1 px left rule and a short horizontal tick per row (CSS only,
aria-hidden); nesting depth stays readable at four levels. - Count = direct servers + unusable servers + subgroups; add the helper to
groupTree.tswith a unit test. - Sub-line in mono 11.5 px
fg-faint:user@host(port only when not 22), "this device" for the local pseudo-server (new string); tags, key-file line and copy badge keep their content in the new style. - Local pseudo-server as a normal row at the top with the
localicon and a "Local"Badge(no separate box). - Status markers: a
StatusSquareon the row of a server that has an open session (success connected, warning pending confirmation or waiting for host key, neutral disconnected); "Connecting…" stays as text. Pass the needed tab data fromApp.tsx. - "Ungrouped" servers keep their section; unusable rows, empty state and drag-and-drop between groups keep their behaviour.
- Keyboard and tree semantics (roles,
aria-expanded, arrow keys) unchanged. - New strings in all 25 locales.
Acceptance Criteria
- The Connect tree matches
docs/design/angular/screens/MobServers.pngon a 390 px viewport and the tree part ofdocs/design/angular/screens/Main.pngon desktop (without the "+"/Import/Export buttons, which stay in Manage). - A group with one server and one subgroup shows the count 2; an empty group shows 0.
- Children are connected by lines to their group at every depth; the lines are not announced by screen readers.
- A server with an open connected session shows a green square; one with a pending confirmation a warning square; closing the tab removes the marker.
- The local pseudo-server shows the "Local" badge and "this device".
- Collapse/expand, connect on click, context menu and drag-and-drop work as before; axe scan passes.
- Spec 0033 §3 and spec 0113 §5a describe counts, connector lines, markers and the Localhost row.
- New strings exist in all 25 locales; colour guard passes.
- Unit tests
ServerList.test.tsx,ServerList.narrow.test.tsx,ServerList.copyMarker.test.tsx,lib/groupTree.test.tsand e2enarrow-connect.spec.ts(row heights, alignment),server-tree.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/ServerList.tsx, apps/smart-ssh-community/frontend/src/lib/groupTree.ts, apps/smart-ssh-community/frontend/src/App.tsx (props for status markers), tests listed above, apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/narrow-connect.spec.ts, server-tree.spec.ts, docs/specs/0033-grouped-server-overview.md, docs/specs/0113-schmales-layout.md
Spec impact: update 0033 (§3), update 0113 (§5a)
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: title bar with logo and main navigation, session tabs with square status markers #1365 (titlebar-session-tabs) — both edit
App.tsx. Blocks: Redesign: Manage sidebar tree, management view and drag ghost #1368 (manage-tree). - "+ Group / + Server / Import / Export" in the Connect view is listed separately for a decision (today only in Manage, spec 0033 §3).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
feat(frontend): Connect server tree with counts, connector lines and …
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1412. Connect tree redesigned (flat rows, counts, connector lines, Local badge, status squares, 5 new strings in 25 locales); specs 0033/0113 updated; unit and e2e tests updated; CI green. Screenshots only for the default theme at 390 px; no Connect-tree drag e2e added (listed as follow-up).
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. Screenshots are missing for the dark theme and for the desktop tree (Technical Notes, AC 1). Attach before/after in light and dark at 390 px and on desktop, with a fixture that shows the Localhost row and a status square. 2. Desktop server rows are 50 px high (measured at 1280x800), but the requirement says 30-32 px. Main.png shows single-line rows on desktop. Follow the design on the wide layout, or record the conflict under Assumptions, and add a wide row-height assertion. 3. The group count, the Local badge and the status square sit right after the name. Both design PNGs put them right-aligned at the end of the row. 4. Spec 0032 lines 51-52 still say the Localhost row shows user@host, which contradicts the new 'this device' line. Update it.
fix(frontend): single-line wide rows, right-aligned count/badge/marke…
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1412. Fixed review points 2-4 (single-line wide rows with a 30-36 px e2e assertion, right-aligned count/badge/marker, spec 0032). Vitest, tsc, lint and playwright (narrow-connect, new wide spec) pass locally. Dark/desktop screenshots (point 1) are not attached. CI reported no checks on the PR after 5 minutes, so it is unverified.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: Round 2 on this PR: findings 2-4 from the last review are fixed. 1. The before/after screenshots for the dark theme and the desktop tree are still missing (Technical Notes, AC 1). Capture light and dark at 390 px and on desktop with SCREENSHOT_LABEL/SCREENSHOT_SCHEME. Use a fixture that shows the Localhost row and a status square. This is the second round on this point. 2. Spec 0033 §3 (lines 39-42) still says the user@host line is below the name. In the wide layout it now sits next to the name, on the same line. Update §3 to say wide = inline and narrow = below, and that the Local badge and status square sit at the end of the row.
test(e2e): Connect tree review screenshots; spec 0033 row layout (#1367)
screenshots for #1367
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1412. Review round 2: added light/dark before/after screenshots (desktop and 390 px) with Localhost row and status square via a new e2e test; updated spec 0033 §3 (wide inline, narrow below, badge/square at row end). CI green.
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. Round 3: both open findings are fixed. Before/after screenshots in light and dark at desktop and 390 px now show the Localhost row and a status square, and Spec 0033 §3 describes the inline (wide) and below-the-name (narrow) address and the row-end badge/marker. CI is green. Locally: vitest 56 passed, connect-tree-wide.spec.ts 40/40 with --repeat-each=5, narrow-connect.spec.ts 8 passed. Follow-ups (label set): tree marker tone for reconnecting sessions; a Connect-tree drag-and-drop e2e test.
feat(frontend): Connect server tree with counts, connector lines and …
smart-ssh-coordinator commentedon Nov 20, 2026
Merged and branch deleted: PR #1412 (squash) in develop
smart-ssh-planner commentedon Nov 20, 2026
Follow-ups filed: #1421 Show reconnecting sessions with the tab bar tone in the Connect tree and describe it in Spec 0033; #1422 Browser test for drag and drop in the Connect tree (on backlog, since unit tests already cover it).