💄 style(topic): one-click collapse/expand all topic groups#15484
Merged
Conversation
Add a toggle button in the topic sidebar header (next to Filter and the more-actions menu) that collapses or expands all topic groups at once. It reuses the existing `expandTopicGroupKeys` global status, so it stays in sync with manual per-group toggling, and hides itself when there are fewer than two groups (e.g. flat mode). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1248ba650
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## canary #15484 +/- ##
==========================================
- Coverage 70.85% 70.85% -0.01%
==========================================
Files 3256 3256
Lines 321442 321442
Branches 29378 35044 +5666
==========================================
- Hits 227754 227752 -2
- Misses 93506 93508 +2
Partials 182 182
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
In flat mode, groupedTopicsForSidebar falls through to time grouping so the computed group count can exceed one, but List renders FlatMode with no accordion for the toggle to affect. Hide the control explicitly when topicGroupMode === 'flat' instead of relying on the group count. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2 tasks
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.
💡 What
Adds a one-click collapse / expand all toggle to the topic sidebar header (the "话题/Topics" row), sitting next to the existing filter and more-actions buttons.
Shrink⤧Expand⤢🔧 How
ToggleGroupscomponent underSidebar/Topic/, wired into the headeractionslot inTopic/index.tsx.expandTopicGroupKeysglobal status (same state that per-group accordion toggling writes), so the button and manual toggling stay in sync. Collapse →[], expand → all group ids.groupedTopicsForSidebarselector used byGroupedAccordion, so it respects the current grouping mode (byStatus / byTime / byProject).sidebar.collapseAll/sidebar.expandAlladded to default + zh-CN + en-US (other locales viapnpm i18n).✅ Test
Verified locally in the Electron app via
local-testing:expandTopicGroupKeysto[]and flips the icon toExpand; all groups fold.Shrink; all groups unfold.🤖 Generated with Claude Code