Skip to content

feat(sidebar): no top bar; Add PC moves to Settings → Remote PCs - #378

Merged
devswha merged 4 commits into
mainfrom
feat/sidebar-no-top-bar
Oct 3, 2026
Merged

devswha merged 4 commits into
mainfrom
feat/sidebar-no-top-bar

Conversation

@devswha

@devswha devswha commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Summary

First slice of the sidebar's move toward herdr's own structure (workspace → tab → pane), from the mockup agreed on 2026-10-03.

  • The sidebar's top bar (New session, Add PC) is gone. 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 command-palette entry (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.
  • The Remote PCs section moves up to follow Devices.
  • Sidebar.tsx loses its never-rendered embedded mode (its own top bar and footer, and an install-prompt hook per PC), in a separate commit.
  • No server change, so no new remote-PC bundle.

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:unit
  • bun 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 Settings
  • Desktop and 390px, dark and light, by screenshot (Settings row, Add PC dialog, palette row, empty-PC box)
  • scripts/machines-browser-qa.ts (manual QA against real PCs) goes through Settings now

🤖 Generated with Claude Code

devswha and others added 3 commits October 3, 2026 17:33
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]>
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
CONTRIBUTING.md — configured

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84b1ff43-bd05-4ca7-b59b-69706d278cc2
📥 Commits

Reviewing files that changed from the base of the PR and between 51e9b98 and 0c4bb8b.

📒 Files selected for processing (18)
  • CHANGELOG.md
  • DESIGN.md
  • INSTALL.md
  • docs/guide.md
  • docs/remote-pcs.md
  • scripts/machines-browser-qa.ts
  • scripts/ui-regression.ts
  • src/App.tsx
  • src/components/CommandPalette.tsx
  • src/components/MachineSidebar.tsx
  • src/components/SettingsDialog.tsx
  • src/components/Sidebar.css
  • src/components/Sidebar.tsx
  • src/components/UsageMeters.css
  • src/lib/actions.ts
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.zh.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Summary

Summary by CodeRabbit

  • New Features
    • Start sessions from a PC’s header, or use New session when a PC has no workspaces. The command palette and keyboard shortcut continue to create sessions on the selected PC.
    • Add a PC from Settings → Remote PCs or the command palette. After setup closes, focus returns to the workspace-list toggle.
    • The local machine is labeled Host in the sidebar.
  • Documentation
    • Updated remote PC setup instructions to point to Settings and the command palette.

Walkthrough

The 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.

Changes

PC navigation and setup

Layer / File(s) Summary
Sidebar layout and session entry points
src/components/Sidebar.tsx, src/components/Sidebar.css, src/components/MachineSidebar.tsx, src/App.tsx, src/components/UsageMeters.css, scripts/ui-regression.ts, CHANGELOG.md, DESIGN.md
The sidebar top bar and footer controls are removed. The empty-workspace state has a New session button, and the machine sidebar no longer has top-bar session or Add PC buttons. The regression check locates session creation by its workspace-specific accessible name.
Add PC entry points and setup flow
src/lib/actions.ts, src/components/SettingsDialog.tsx, src/components/CommandPalette.tsx, src/App.tsx, scripts/machines-browser-qa.ts, scripts/ui-regression.ts, DESIGN.md, INSTALL.md, docs/guide.md, docs/remote-pcs.md, src/lib/i18n.*.ts
Settings and the command palette open Add PC through a shared action. The dialog closes Settings, and closing the dialog restores focus to a visible workspace-list toggle. Browser checks and documentation use the updated entry points.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: nahwan-kim, haeminway1

Merge Risk: ⚪ Minimal · up to 0c4bb

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 Review

Security architecture risk: 🔵 Low · up to 0c4bb

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
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected paths retain the existing capability to initiate SSH setup using the web-server account’s available credentials. Effective target reach depends on that account’s SSH access and the target environment; those privileges were not independently audited. No additional credential authority was identified in the navigation change.

Trust Boundaries and Controls

  • observed — App enables shortcuts only when unlocked and renders neither the normal application nor its setup entrypoints while authentication is unknown or locked. This establishes the client-side gate, not independent proof of server authorization enforcement.
  • inferred — A global shortcut can set palette or Settings state during setup, but that alone does not establish an actionable replacement path. MachineDialog opens a native modal; Settings and the palette render outside it as ordinary elements, which are inert while that modal is active.

Resilience and Maintainability Implications

  • inferred — A delayed bridge-update failure can replace the props of an open setup dialog while retaining its mount-initialized form and job state. The asynchronous fallback and unkeyed dialog reuse predate this PR, and base already allowed Add PC while that request was pending. This is an existing lifecycle edge case, not an established PR-introduced security concern.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: removing the sidebar top bar and moving Add PC to Settings → Remote PCs.
Description check ✅ Passed The description explains the change and resulting behavior, and lists completed and pending validation. It does not use the template’s exact Change and Validation headings, and the required UI screens…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…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]>
@devswha
devswha merged commit 5191d01 into main Oct 3, 2026
4 checks passed
@devswha
devswha deleted the feat/sidebar-no-top-bar branch October 3, 2026 09:02
devswha added a commit that referenced this pull request Oct 3, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant