Skip to content

Expand or collapse all sidebar folders at once - #272

Draft
github-actions[bot] wants to merge 2 commits into
mainfrom
agent/issue-270-32011759547-1
Draft

Expand or collapse all sidebar folders at once#272
github-actions[bot] wants to merge 2 commits into
mainfrom
agent/issue-270-32011759547-1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update

Testing

  • Existing tests pass
  • Added new tests for changes
  • Tested manually (describe below)

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.
  • Real-renderer verification was attempted with 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.
  • The repository-wide pnpm check additionally checks the provided, immutable issue-context.json, whose pre-existing formatting fails Biome. Changed source files pass the scoped check above.

Checklist

  • I discussed this change in a GitHub issue before submitting this PR
  • I have run the linter, formatter, and tests to ensure my code is ready for review

Implemented by a Warp Factory agent.

Co-Authored-By: Warp Factory Agent <oz-agent@warp.dev>
Co-Authored-By: Warp Factory Agent <oz-agent@warp.dev>
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hubble-md-web Ready Ready Preview Aug 17, 2026 8:54am

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.

Expand or collapse all sidebar folders at once

1 participant