Skip to content

Conversation

@oneishaansharma
Copy link
Contributor

Description

The "File Changes" section in PatchPart.tsx was not collapsible, unlike other similar sections (e.g., Reasoning) that use <details>/<summary> elements. This made long file lists difficult to navigate.

Solution

Updated PatchPart.tsx to use:
<details> instead of outer <div> for native collapse/expand functionality
<summary> instead of header <div> for the clickable toggle
Added hover:bg-accent and cursor-pointer classes to match other collapsible sections

Long file lists are now collapsible

@namanrajpal
Copy link
Contributor

@chriswritescode-dev I have verified this to work as expected. Adding it here in case it helps you with the PR.

@oneishaansharma
Copy link
Contributor Author

Thanks for verification. @namanrajpal
Also added a preview and chevron with collapsible functionality to match other components.
screenshot:
image

@chriswritescode-dev chriswritescode-dev merged commit e3f95ad into chriswritescode-dev:main Jan 15, 2026
1 check passed
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.

3 participants