Collapse work log groups by default#1345
Open
shivamhwp wants to merge 2 commits intopingdotgg:mainfrom
Open
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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 Changed
Added collapsible headers to timeline work-log groups in the chat view.
Tool callsandWork logcards now always render a header with a chevron, start collapsed by default, and expand/collapse when the header is clicked.This change is scoped to grouped
workrows inapps/web/src/components/chat/MessagesTimeline.tsx. It does not change chat messages, proposed plan cards, or the assistant changed-files diff card. I also added test coverage for the default-collapsed and expanded states inapps/web/src/components/chat/MessagesTimeline.test.tsx.Fixes: #287
Why
The work-log cards could take up a lot of vertical space and were always visually open, which made the timeline noisier than necessary. Collapsing them by default keeps the main conversation easier to scan while preserving access to tool activity when needed.
This approach is small and contained because it reuses the existing
expandedWorkGroupsstate, applies only at the group level, and leaves the existing row content untouched once expanded. It also replaces the previous overflow-only disclosure behavior with one consistent expand/collapse interaction.UI Changes
Before:

After:

Checklist
Note
Collapse work log groups by default in MessagesTimeline
MessagesTimelinenow render as collapsible sections, collapsed by default, showing no entries until the user expands them.ChevronDownIconreplaces the previous "Show more/Show less" text button.MAX_VISIBLE_WORK_LOG_ENTRIESslice logic is removed.Macroscope summarized 51aacbf.
Note
Low Risk
UI-only behavior change in
MessagesTimelinethat hides work-log contents until expanded; low risk aside from potential discoverability/accessibility regressions in the collapsible interaction.Overview
Work log/tool call timeline groups are now collapsible and collapsed by default.
MessagesTimelinewraps groupedworkrows in aCollapsiblewith a header showing the entry count and a rotatingChevronDownIcon, and removes the previous overflow-based “show more/less” slicing so entries render only when expanded.Tests updated/added in
MessagesTimeline.test.tsxto reuse sharedbasePropsand to assert default-collapsed rendering (header + chevron, no entry details) and expanded rendering (all grouped entries visible).Written by Cursor Bugbot for commit 51aacbf. This will update automatically on new commits. Configure here.