Repository navigation
fix(sidebar): a workspace with one pane is one row again - #371
Conversation
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]>
|
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
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughSingle-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. ChangesSidebar row behavior
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation 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.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…ne-row # Conflicts: # CHANGELOG.md
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-headerand 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 aworkspace-collapsedkey for one of them, reloads and expects the row to be visible. With the!mergedguard taken out ofcollapsed, that step fails (waiting for locator('.pane-select[…]') to be visible).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