Skip to content

fix(sidebar): put the pane rows back as they were, without the new tab and split buttons - #327

Merged
devswha merged 1 commit into
mainfrom
fix/sidebar-restore-rows
Oct 2, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/sidebar-restore-rows

Conversation

@devswha

@devswha devswha commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Why

0.3.42 added a new tab and a split button to the sidebar (#307). A pane row went from two actions to three or four, and the actions keep their width while hidden, so every pane's name and subtitle were cut 34 to 68 px shorter. The maintainer decided to drop both buttons and put the rows back as they were.

Change

Validation

  • bun run typecheck, bun run test:unit (1031 pass), bun run generate:types --check, bun run build, bun run build:site.
  • scripts/directory-groups-regression.ts: 7 steps pass. Same 1280 px screenshot before and after: a pane's name reads /tmp/herdr-web-ui-cod… where it read /tmp/herdr-….
  • src/components/Sidebar.tsx and MachineSidebar.tsx have no diff against the commit before feat(sidebar): open new tabs and split panes from the sidebar #307.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown

Review in Change Stack →

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

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: bfa0f5e8-ca8e-45e1-913f-876fb9b6f3ba

📥 Commits

Reviewing files that changed from the base of the PR and between 9e71514 and 96a2ab6.

📒 Files selected for processing (15)
  • CHANGELOG.md
  • server/api.contract.test.ts
  • server/herdr/client.ts
  • server/index.ts
  • server/machine-api.ts
  • server/machines.test.ts
  • shared/protocol.ts
  • site/demo/transport.ts
  • src/components/MachineSidebar.tsx
  • src/components/Sidebar.tsx
  • src/lib/api.ts
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.zh.ts
  • src/lib/machineContext.tsx
 _______________________________________________
< Finding your faults 10 times faster than Mom. >
 -----------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 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

Autopilot is currently an internal CodeRabbit preview.


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

@devswha
devswha merged commit fd82017 into main Oct 2, 2026
10 of 11 checks passed
@devswha
devswha deleted the fix/sidebar-restore-rows branch October 2, 2026 13:53
devswha added a commit that referenced this pull request Oct 2, 2026
## Change

Prepares v0.3.43: `package.json` and `herdr-plugin.toml` go to 0.3.43,
and the `[Unreleased]` notes move under `## [0.3.43] - 2026-10-02` with
its compare link.

What it ships:
- the sidebar's rows as they were before 0.3.42, without the new tab and
split buttons (#327);
- the message box stays editable while the app reconnects (#318);
- a second agent of the same kind starts from New session (#328, fixes
#314).

No new remote runtime: `REMOTE_BUNDLE_VERSION` stays 11. #328's server
fix reaches a remote PC with the next runtime.

## Do not merge yet

The maintainer releases this by hand. After the merge: `gh workflow run
release.yml --ref main -f version=0.3.43`

## Validation

`bun run typecheck`, `bun run test:unit` (1034 pass), `bun run build`.
devswha added a commit that referenced this pull request Oct 3, 2026
## Change

Since #332 (0.3.44) every workspace has a numbered header in the By
workspace view. **New session** makes a workspace with one pane, so a
session run that way lists every workspace twice: a header and a row
that say the same thing. Six one-pane workspaces took twelve lines where
0.3.43 took six. herdr's own TUI lists a workspace once, and the web UI
has had no way to add a tab or a pane to a workspace since #327, so for
these the header groups nothing.

- **By workspace view:** a workspace with one pane is one row again, as
it was up to 0.3.43. It has no header, number or fold, and the row
carries the reorder handle. A workspace with several panes keeps its
header. By folder is unchanged.
- This reverses the single-pane part of #332 by @beomq. Folding,
renaming and reordering from the header of a workspace with several
panes stay as #332 left them.
- **Line two of a merged row** names the workspace, since no header
does, and the folder when neither the title nor the workspace already
says it. Rows under a header keep the #358 rule.
- **A fold stored in 0.3.44** for a one-pane workspace is ignored while
the row is merged, because the row has no toggle to open it again. If
that workspace later gets a second pane, its header comes back folded.
- **Known cost, the same as in 0.3.43 and earlier:** a merged row cannot
rename its workspace from the web UI. Renaming the pane still works.
#332 gave this as a reason for the header.

DESIGN.md and the changelog are updated.

## Validation

- `scripts/directory-groups-regression.ts`: 7 PASS. For the two one-pane
fixtures the workspace-mode step now asserts no `.workspace-header` and
no `.workspace-toggle`, the drag handle on the row, and line two
`<workspace> · project` (`<workspace>` alone when the shell is titled by
its folder). It then stores a `workspace-collapsed` key for one of them,
reloads and expects the row to be visible. **With the `!merged` guard
taken out of `collapsed`, that step fails** (`waiting for
locator('.pane-select[…]') to be visible`).
- The same run's screenshots of the owned test session at 1280, 768 and
375 wide: a one-pane workspace is one row with the title on line one and
the status chip and workspace name on line two, nothing clipped. The
two-pane workspace keeps its header (`29 directory-regression-…`), and
its rows name nothing on line two. No image is attached here.
- `bun run generate:types --check`, `bun run typecheck`, `bun run
build`: pass.
- `bun run test:unit`: 1059 pass, 3 skip.
- `bun scripts/ui-regression.ts`: 45 PASS, exit 0.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[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