Expand or collapse all sidebar folders at once - #272
Draft
github-actions[bot] wants to merge 2 commits into
Draft
Conversation
Co-Authored-By: Warp Factory Agent <oz-agent@warp.dev>
Co-Authored-By: Warp Factory Agent <oz-agent@warp.dev>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a state-aware sidebar header action that expands every folder when the tree is collapsed and collapses every folder when any visible folder is open. The action updates its icon, tooltip, and accessible label, stays hidden when no folders exist, and uses the existing per-workspace expansion storage.
Closes #270
Type of Change
Testing
Manual Testing Details:
pnpm --filter @hubble.md/ui exec vitest run src/components/useSidebarTree.test.ts— 15 tests passed.pnpm --filter @hubble.md/ui typecheck— passed.pnpm exec biome check packages/ui/src/components/useSidebarTree.ts packages/ui/src/components/useSidebarTree.test.ts packages/ui/src/components/Sidebar.tsx— passed.pnpm check:react-compiler— 76 components compiled, 0 failed.pnpm build:desktop— passed after building required workspace outputs.HUBBLE_DESKTOP_ENABLE_CDP=1 pnpm dev:desktop, but Electron stopped before launch because its SUID sandbox is not configured in this Linux environment. No manual UI result is claimed.pnpm checkadditionally checks the provided, immutableissue-context.json, whose pre-existing formatting fails Biome. Changed source files pass the scoped check above.Checklist
Implemented by a Warp Factory agent.