Repository navigation
feat(sidebar): no top bar; Add PC moves to Settings → Remote PCs - #378
Conversation
The sidebar's top bar (New session, Add PC) is gone, the first step of the sidebar's move toward herdr's own structure. A session starts from the + on its PC's header, as before, or from the New session button an empty PC now shows; Mod+Shift+N and the palette still open it on the selected PC. Add PC is a row in Settings → Remote PCs above the bridge auto-update switch, and a palette entry; opening it closes Settings so the new PC's progress in the sidebar is in view. The row never waits for the server's settings answer, only the switch does, so a failing settings request cannot hide Add PC. The regression scripts take the new paths, and the docs name the new place. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sidebar is only ever rendered inside MachineSidebar, which owns the footer, so its own `embedded` mode (a top bar, a footer, an install prompt hook per PC) was dead. The props that fed it go with it. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (18)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe sidebar no longer has a top bar or footer controls. Session creation remains available from PC headers and appears in the empty-workspace state. Add PC is available from Settings and the command palette, and closing its dialog returns focus to a visible workspace-list toggle. ChangesPC navigation and setup
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to No concrete regression is established in the relocated session and Add PC entry points or their focus behavior. No specific merge blocker remains. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The navigation change reuses the existing PC setup and approval flow. No new security weakness was established. Overlapping setup interactions have not been checked in a browser. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 11 files. (7 skipped: 7 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
…its dialog closes Opened from Settings or the palette, the Add PC dialog has no trigger left to give focus back to: Settings closed when it opened. Closing the dialog now puts focus on the header's workspace-list toggle, the control nearest the PC list, on both the desktop and the phone. The regression checks it. Also retires a comment about the sidebar's top bar. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…closes (#379) ## Summary Second slice of the sidebar's move toward herdr's own structure, after #378. - Each row ends in one `⋯` button in place of the hover pencil and the two-click X; the workspace header's pencil goes the same way. Two hidden buttons reserved 68px of a row; one reserves 34px. - The menu offers what herdr's own workspace actions offer: **Rename workspace**, **Rename pane**, **Close** on a one-pane row; **Rename workspace**, **Close workspace** on a workspace header; **Rename pane**, **Close** on a pane under a header. New tab and the worktree items join the same menu in later slices. - Close follows herdr's `ui.confirm_close` (on by default, verified in the 0.9.3 docs): a close that takes the workspace with it asks in a confirm dialog first, Cancel focused; a pane that leaves its workspace standing closes at once, as herdr's tab menu does. The web UI cannot read that key over the API, so it always asks. - After a confirmed close the row is gone, so focus moves to the header's workspace-list toggle (`focusWorkspaceListToggle`, which Add PC now uses too). - Desktop: a `.menu` popover through a portal at fixed coordinates (the roster scrolls and would clip it), over the drawer. At `<=640px`: the modal primitive, already a bottom sheet there, with a grip, the row's name, 48px rows and Cancel. Escape, a press outside, a scroll or a resize close it; focus returns to the `⋯`; arrow keys move between items. - A one-pane row can now rename its workspace, in place of its second line. - No server change: `workspace/close` and its client wrapper already existed. No remote bundle. ## Docs DESIGN.md (roster, menu, modal), CHANGELOG. Seven dictionary entries the code no longer uses are removed. ## Test plan - [x] `bun run typecheck`, `bun run test:unit` - [ ] `bun run test:ui`: the close step goes through the menu and the confirm, and checks that Escape returns focus to the `⋯` and that the confirm starts on Cancel - [ ] `bun scripts/directory-groups-regression.ts` (not in CI): rename pane, rename workspace and close go through the menu - [ ] Desktop and 390px screenshots: hover, menu, header menu, confirm, sheet 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
Summary
First slice of the sidebar's move toward herdr's own structure (workspace → tab → pane), from the mockup agreed on 2026-10-03.
+on its PC's header, as before, or from the New session button an empty PC now shows. Mod+Shift+N and the palette still open it on the selected PC.AppActions.openAddPc). Opening it closes Settings so the new PC's progress in the sidebar stays in view. The row never waits for/api/machines/settings; only the switch does, so a failing settings request cannot hide Add PC.Sidebar.tsxloses its never-renderedembeddedmode (its own top bar and footer, and an install-prompt hook per PC), in a separate commit.Docs
DESIGN.md (roster, PC header, Settings dialog), docs/guide.md, docs/remote-pcs.md, INSTALL.md, CHANGELOG.
Test plan
bun run typecheck,bun run test:unitbun run test:ui: the New session step now takes the PC header's+; a new step checks that the sidebar has no Add PC button and that Settings' Add PC opens the dialog and closes Settingsscripts/machines-browser-qa.ts(manual QA against real PCs) goes through Settings now🤖 Generated with Claude Code