Skip to content

fix(sidebar): remove the By folder grouping - #556

Merged
devswha merged 4 commits into
mainfrom
fix/remove-sidebar-folder-grouping
Oct 7, 2026
Merged

devswha merged 4 commits into
mainfrom
fix/remove-sidebar-folder-grouping

Conversation

@devswha

@devswha devswha commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Change

Settings → Appearance → Sidebar grouping offered By workspace and By folder. This removes the folder view and the setting with it: the sidebar always lists workspaces, a repository's worktrees under it.

  • Sidebar.tsx loses the folder branch: its row renderer, the folder folds and their storage, the reveal-on-select effect and the flat reorder path. A row menu no longer carries a scope or a kind, because a workspace has one row. Its close item is always Close workspace; the single-pane Close item existed only in the folder view.
  • settings.ts drops sidebarGrouping. A stored "directory" is ignored, so a device that had chosen By folder shows workspaces again.
  • lib/directoryGroups.ts and its test are deleted, with the folder CSS, ten translation keys per language and the DESIGN.md passages that described the view.
  • scripts/ui-regression.ts no longer switches grouping, and its folder-fold block is gone. The hand-run scripts/directory-groups-regression.ts keeps its workspace-row checks (one row per workspace, the split pane reached from the tab strip, the two rename scopes) as scripts/workspace-rows-regression.ts.

Not changed: the folder glyph that leads a workspace row and folds its worktrees, Sidebar rows (one or two lines), and the herdr-web-ui:directory-collapsed:* keys an older version left in a browser's storage, which nothing reads now.

Validation

  • bun run check fast: workflow syntax, generated types, typecheck, build, unit tests (1642 pass, 0 fail).
  • bun run check run bun scripts/ui-regression.ts: 79 PASS. A first run timed out at "the message sent before the snapshot is a live pending row", a chat step that runs before any step this PR edits; the rerun passed.
  • bun run check run bun scripts/workspace-rows-regression.ts: PASS.

No screenshot: the sidebar in the default By workspace view is drawn as before, and the only visible change is one row fewer in Settings → Appearance.

🤖 Generated with Claude Code

devswha and others added 2 commits October 7, 2026 21:35
Settings → Appearance → Sidebar grouping offered By workspace and By
folder. The folder view is removed with its setting: the sidebar always
lists workspaces, a repository's worktrees under it.

- Sidebar.tsx loses the folder branch: its row renderer, folder folds and
  their storage, the reveal-on-select effect and the flat reorder path.
  A row menu no longer carries a scope or a kind, since a workspace has
  one row; its close item is always Close workspace.
- settings.ts drops sidebarGrouping; a stored value is ignored.
- lib/directoryGroups.ts and its test are deleted, with the CSS, the
  translations and the DESIGN.md passages that described the view.
- ui-regression.ts no longer switches grouping; the hand-run
  directory-groups-regression.ts keeps its workspace-row checks as
  workspace-rows-regression.ts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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: 35e85134-ab02-45a3-b0a4-5d29ff294df3
📥 Commits

Reviewing files that changed from the base of the PR and between 60aa3e2 and 9163cd5.

📒 Files selected for processing (16)
  • CHANGELOG.md
  • DESIGN.md
  • scripts/directory-groups-regression.ts
  • scripts/ui-regression.ts
  • scripts/workspace-rows-regression.ts
  • src/AGENTS.md
  • src/components/SettingsDialog.tsx
  • src/components/Sidebar.css
  • src/components/Sidebar.tsx
  • src/lib/directoryGroups.test.ts
  • src/lib/directoryGroups.ts
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.zh.ts
  • src/lib/settings.test.ts
  • src/lib/settings.ts
 _____________________________________________________________________________
< Easy things should be easy and hard things should be possible. - Larry Wall >
 -----------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ 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

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

devswha and others added 2 commits October 7, 2026 21:37
@devswha
devswha merged commit 998c577 into main Oct 7, 2026
3 of 4 checks passed
@devswha
devswha deleted the fix/remove-sidebar-folder-grouping branch October 7, 2026 13:04
devswha added a commit that referenced this pull request Oct 7, 2026
…he mic button and a phone's Agents list (#559)

## Change

Four defaults, chosen while looking at the demo on a fresh browser.

- **Sidebar rows default to Two lines.** A workspace row says what its agent is doing, with the workspace and folder under it. **One line** stays in Settings → Appearance.
- **The suggestion chip is on by default.** On a touch screen the chip above the message box takes Claude Code's suggested next prompt; #223 had turned it off until chosen. It is still hidden where a mouse is used (Tab takes the suggestion there).
- **A phone's Agents list starts folded.** At the width where the sidebar is a drawer (`max-width: 768px`) the list opens folded, with its heading and count; a tap opens it. The fold is not stored, as before.
- **The mic shows in a desktop's chat without being turned on.** `voiceInput` was a boolean, off until chosen. It is now `auto | on | off`, default `auto`, and Settings → Voice input → Microphone button is a three-way control.

| | desktop chat | phone chat | terminal input line |
|---|---|---|---|
| Auto (default) | shown where dictation can work | hidden | hidden |
| On | shown | shown | shown |
| Off | hidden | hidden | hidden |

"Can work" is `useVoiceInput`'s `available`: a secure context, and a server key or the browser's own recognition. On Auto a mic that could not work is left out; On keeps today's behavior, disabled with its reason. "Phone" is the composer's own `(max-width: 640px), (pointer: coarse)`, so a tablet counts as one.

Decisions worth a look in review:

- **A stored `false` reads as `auto`.** Any settings change writes the whole record, so nearly every existing device holds `voiceInput: false` whether or not anyone chose it. Reading it as off would show the mic to new browsers only. The cost: a device that had turned the mic off on purpose sees it again in a desktop's chat. A stored `true` reads as `on`.
- **Without a key, Chrome and Edge send the audio to Google or Microsoft** once the mic is pressed. Nothing is recorded before that, and the Settings hint says so, but the button is now there without a choice.
- A desktop's composer now asks `GET /api/voice` on mount (one request, shared by every composer). `scripts/chat-history-browser-qa.ts` serves its own fixture and did not answer that route, which made its process exit non-zero; it answers it now. The demo transport already did.

The unreleased CHANGELOG line of #521 said One line "stays the default"; it is reworded.

## Validation

- `bun run check fast`: workflow syntax, generated types, typecheck, build, unit tests (1648 pass, 0 fail).
- `bun run check browser`: the whole lane, 173 PASS, exit 0.
- Outside the lane, each with `bun run check run`: `pi-image-browser-qa`, `skill-activity-browser-qa`, `update-browser-qa`, `font-swap-demo-regression`, `keyboard-viewport-demo-regression`, all exit 0.
- New in `scripts/ui-regression.ts`: rows are two lines until One line is chosen; a phone shows the chip until Settings turns it off; a phone's drawer opens with Agents folded; a desktop's chat offers the mic and a phone's does not.
- New unit tests in `src/lib/settings.test.ts` for the three-way setting, the legacy boolean and where Auto asks for the mic.
- One earlier run of the lane timed out at "the message sent before the snapshot is a live pending row" (the step #556 also reported); the reruns passed.

No screenshot attached. README and site media still show one-line rows.

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


Co-Authored-By: Claude Fable 5.1 <[email protected]>
devswha added a commit that referenced this pull request Oct 7, 2026
## Change

Prepares v0.4.0 and remote bundle 20.

- `package.json` and `herdr-plugin.toml`: 0.3.52 → 0.4.0. A minor bump: the chat's Send/Stop and queued follow-ups (#520), the sidebar redesign (#521, #556, #557, #559), the mobile key bar editor (#508), Settings one page at a time (#562), release notes before and after an update (#535, #560) and the installer's star offer (#550) change how the app is used.
- `shared/machines.ts`: `REMOTE_BUNDLE_VERSION` 19 → 20. #520, #508, #525 and #537 changed `server/`, so remote PCs need a new bridge; until a PC updates, Send during work keeps the draft and asks for the update.
- `CHANGELOG.md`: the Unreleased notes become `[0.4.0] - 2026-10-08`, with the compare links; two stray blank lines inside the section removed; the #521 entry says a red question mark (#557), and the #535 and #560 entries say Settings → About (#562).
- `release-summaries.json`: the first entry, 0.4.0 in English, Korean, Japanese and Chinese, seven lines under each of New features, Improvements and Bug fixes, which `Settings → About` and the header line show before and after the update installs.

## After the merge

1. `git tag remote-v20 <merge commit> && git push origin remote-v20` → the remote-bundles workflow publishes the five bundles and `manifest.json` as release `remote-v20`.
2. Only then `gh workflow run release.yml --ref main -f version=0.4.0`: preflight validates version, notes and summaries, CI runs on the exact commit, and the tag `v0.4.0` with its GitHub release is created.

## Validation

- `bun scripts/release-notes.ts 0.4.0` prints the notes (version sources agree, one heading, summaries in all four languages).
- `server/release-notes.test.ts` (this repository's summaries: every release since 0.3.52 told in four languages, lines ≤ 90 characters, the same lists in every language) and `scripts/release-notes.test.ts` pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
devswha added a commit to radicor/herdr-web-ui that referenced this pull request Oct 8, 2026
…it the PR

The branch predates v0.4.0, so its entries sat inside the released 0.3.52 section. They now sit under Unreleased with the PR link and credit. The Clipboard switch is on Settings -> Terminal, Last checked on Settings -> About; the 'Group workspaces by...' entry is gone with that setting (devswha#556), and so are the entries for behaviour this PR no longer changes (unknown TeX commands, deleting a left pane's held input).
Haeminway1 added a commit to Haeminway1/herdr-web-ui that referenced this pull request Oct 8, 2026
…tream sync (0.4.2)

v0.4.1 took upstream's sidebar redesign (devswha#521 workspaces + Agents list, devswha#556 By folder removed)
and zoned header as the default, so the folder groups, a row per pane with hover rename/close,
the New session / Add PC bar and the header's title, live chip, files and palette were gone.

- ClassicSidebar.tsx/.css: the v0.3.4320 sidebar, its classes prefixed cl- so upstream's
  Sidebar.css never restyles it; directoryGroups.ts restored; attention inbox rows use it too.
- settings.sidebarLayout (classic by default; automation browsers default to upstream's so its UI
  tests stay valid) and sidebarGrouping (folder by default), in Settings → Appearance.
- The classic layout keeps the classic header: one bar, two-line title with the full path, the
  live chip, files and palette buttons, and the version line in the sidebar footer.
- classic-sidebar-regression.ts guards it; DEPLOY-FORK.md and the sync prompt now make seamless
  UX the rule: an upstream redesign of an existing screen is an opt-in, never the new default.

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