Repository navigation
Labels
Milestone
Description
Goal
The Manage view's sidebar follows the design: a "Servers" label row with "+ Group" and "+ Server", the tree with connector lines, counts, flat selected rows and icons, and a footer with "Import …" and "Export …"; the drag ghost and drop hint get the angular look; groups in the Manage tree can be collapsed.
Context
- Design reference: sidebar of
docs/design/angular/screens/Main.pngandMainLight.png(header row, tree, footer), drag ghost and drop hint indocs/design/angular/screens/DeskDialogs.png, mobile management header ("← server icon SERVER: name") indocs/design/angular/screens/MobServerForm.png. - Sidebar
apps/smart-ssh-community/frontend/src/components/Sidebar.tsx(446 lines): +Group/+Server row (:308-321) and Import …/Export … row (:322-337) at the top, widthw-64(:307), rows indented bydepth*14+8px (:242,271), group row📁 name(:247), server row (:276), unusable rows (:284-304), selected rowbg-surface-raised(:244,273), extension manage views (:359-388), drop hint (:396-400); groups cannot collapse (:55-56). ManagementView.tsx: back row with "←" (:208-211), empty text, list width.TreeDragGhost.tsx(emoji icon:11,shadow-lg:24).- Count data in
src/lib/groupTree.ts(helper added by the Connect tree issue). - Spec 0008 §6 (sidebar tree in Manage), spec 0103 (drag and drop), spec 0113 §5c (narrow Manage).
Requirements
- Sidebar 288 px on
surface-sunken: header rowtext-label"Servers" + "+ Group" and "+ Server" (small secondary buttons); tree; footer with "Import …" and "Export …" as ghost buttons withimport/exporticons. Same functions as today, only moved. - Tree rows 30 px: group rows with chevron,
folder/folder-open, semibold name and mono count; server rows withserver/localicon and mono name; selected rowaccent-subtlewith an inset 1 pxaccent-border; connector lines as in the Connect tree; "Local" badge on the local pseudo-server. - Groups can be collapsed and expanded (chevron,
aria-expanded, keyboard Left/Right); state kept for the session like the Connect tree; a selected item inside a collapsed group expands it. - Unusable rows, copy marker, extension manage views and the drop hint keep their behaviour in the new style.
- Drag ghost:
surface-raisedblock with 1 pxborder-strong, icon, mono name,shadow-offset-sm; drop hint "→ move into this group" with themoveicon. - Management view back row with
chevicon; narrow header shows the item icon and the name as in MobServerForm. - New strings in all 25 locales.
Acceptance Criteria
- The Manage sidebar matches the sidebar of
docs/design/angular/screens/Main.png(header row, tree, footer) in both themes. - "+ Group", "+ Server", "Import …" and "Export …" do what they did before.
- A group can be collapsed and expanded by mouse and keyboard; selecting a server via search or after creation expands its group.
- Dragging a server shows the new ghost and the drop hint; dropping still moves it (spec 0103).
- Axe scan of the Manage view passes; tree semantics unchanged.
- Spec 0008 §6 and spec 0113 §5c describe header row, footer and collapsible groups.
- New strings exist in all 25 locales; colour guard passes.
- Unit tests
Sidebar.test.tsx,Sidebar.keepCopy.test.tsx,ManagementView.test.tsx,ManagementView.move.test.tsx,ManagementView.newItems.test.tsxand e2eserver-tree.spec.ts,narrow-manage.spec.ts,server-management-review.spec.ts,languages.spec.ts,test-connection-log.spec.ts,e2e/support/notes.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/Sidebar.tsx, ManagementView.tsx, TreeDragGhost.tsx (under src/components/), tests listed above, apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/, docs/specs/0008-server-management-ui.md, docs/specs/0113-schmales-layout.md
Spec impact: update 0008 (§6), update 0113 (§5c)
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: Connect server tree with counts, connector lines and status markers #1367 (connect-tree) — count helper in
groupTree.ts, shared tree e2e. Blocks: Redesign: server form frame, General, Security and Notes tabs, group form #1381 (server-form-shell), Redesign: move-to dialog and ssh_config import/export dialogs #1385 (dialogs-management).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
P2 - Normal
Activity
feat(frontend): redesign Manage sidebar tree with collapsible groups (#…
test(e2e): Manage sidebar collapse, narrow header; specs 0008/0113 (#…
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1424. Manage sidebar redesigned (header/footer, counts, connector lines, collapsible groups with keyboard, ghost, narrow header), specs 0008/0113 updated, 3 strings in 25 locales; vitest, targeted Playwright and CI green (PR #1424).
smart-ssh-reviewer commentedon Nov 21, 2026
Review: 1. AC 4 is not evidenced: no test or screenshot shows the new drag ghost (mono name) or the drop hint with the
moveicon during a drag. Only the result after dropping is tested. Extendserver-tree.spec.ts'dragging a server onto a folder moves it there' to hold the pointer over the folder and assert that the ghost contains the font-mono name,svg[data-icon="move"]and '→ move into this group', and attach a drag screenshot in both themes. Non-blocking: use thelocalicon for the local server in the narrow header, and wait for the form before the review screenshot.test(e2e): assert drag ghost and drop hint while dragging (#1368)
test(e2e): drop unused drag helper (#1368)
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1424. Added the drag ghost/drop-hint assertions and drag screenshots (light/dark) to the server-tree drag test; CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review: 1. ManagementView.tsx:163: the narrow header always shows the
servericon. For the local pseudo-server the tree useslocal, and the requirement and spec 0113 §5c say the header shows the item's icon. Uses.isLocal ? "local" : "server"and add a test that assertssvg[data-icon="local"]in the narrow back row. (I rated this non-blocking last round by mistake.) The AC 4 drag-ghost evidence from the last round is fixed. Non-blocking: refresh the PR body's AC 4 line and attach the drag screenshots.fix(frontend): show local icon in narrow Manage header (#1368)
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1424. Narrow Manage header now shows the local icon for the local pseudo-server, with an e2e test (counter-proof done); CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review passed – moving on to merge. Approved. The last blocking finding is fixed in 3482a6a: the narrow Manage header now shows the
localicon for the local pseudo-server. The new e2e test fails without the fix and passed 10 of 10 runs (--repeat-each=5, phone projects). CI is green. Two non-blocking text points remain: the PR body's AC 4 line and the drag screenshots, which are still not attached.feat(frontend): redesign Manage sidebar tree, management view and dra…
smart-ssh-coordinator commentedon Nov 21, 2026
Merged and branch deleted: PR #1424 (squash) in develop