Skip to content

fix(sidebar): a workspace with one pane is one row again - #371

Merged
devswha merged 3 commits into
mainfrom
fix/sidebar-single-pane-row
Oct 3, 2026
Merged

devswha merged 3 commits into
mainfrom
fix/sidebar-single-pane-row

Conversation

@devswha

@devswha devswha commented Oct 3, 2026

Copy link
Copy Markdown
Owner

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.

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

devswha and others added 2 commits October 3, 2026 14:42
Since #332 every workspace has a numbered header in the By workspace
view. A workspace with one pane, which is what New session makes, then
takes two lines that say the same thing.

A single-pane workspace is merged into its pane row in both groupings,
as it was up to 0.3.43. The row names its workspace on line two, since
no header does. A fold stored for such a workspace in 0.3.44 is ignored
while the row is merged: it has no toggle to open it again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[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.

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: 3fca2b4b-e9b0-4a63-833f-e3da0d55a4e5
📥 Commits

Reviewing files that changed from the base of the PR and between 20b5d6a and 20b0b65.

📒 Files selected for processing (1)
  • CHANGELOG.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

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


📝 Summary

Summary by CodeRabbit

  • Changed
    • In the sidebar, one-pane workspaces appear as a single row without a numbered header or collapse toggle. The row includes a reorder handle and displays the workspace name; folder and workspace labels are combined where needed.
    • Saved folds for one-pane workspaces no longer hide their rows. Workspaces with multiple panes retain their headers and folding behavior.

Walkthrough

Single-pane workspaces now render as merged rows in both sidebar grouping modes. These rows have no workspace header or fold, and their subtitles avoid repeating workspace and folder labels. The regression fixture checks row behavior and verifies that legacy folds do not hide the pane.

Changes

Sidebar row behavior

Layer / File(s) Summary
Merged rows, labels, and regression coverage
src/components/Sidebar.tsx, scripts/directory-groups-regression.ts, DESIGN.md, CHANGELOG.md
Single-pane workspaces render without workspace headers or folds in both grouping modes. Subtitles avoid duplicate workspace and folder labels. The regression checks cover legacy stored folds. The design document and changelog describe the behavior.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 20b0b

The selected change is a changelog update describing the single-pane workspace row behavior. No merge-blocking risk was identified in it.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 … 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 identifies the main change: a one-pane workspace appears as one row in the sidebar.
Description check ✅ Passed The description covers the problem, resulting behavior, known cost, and validation results. It reports screenshots from an owned test session but does not attach them, as requested by the template for…
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 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 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
devswha merged commit e9b0a9d into main Oct 3, 2026
4 checks passed
@devswha
devswha deleted the fix/sidebar-single-pane-row branch October 3, 2026 06:02
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