Add collapsible file diffs + @pierre/diffs version update.#2502
Add collapsible file diffs + @pierre/diffs version update.#2502juliusmarminge merged 5 commits intopingdotgg:mainfrom
Conversation
- Upgrade @pierre/diffs to 1.1.20 - Add per-file diff collapse controls in the panel
|
@shivamhwp is attempting to deploy a commit to the Ping Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
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)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
ApprovabilityVerdict: Needs human review This PR introduces new user-facing behavior (collapsible file diffs) along with a dependency upgrade and a significant max-width constant change. New UI features that affect user interaction patterns warrant human review to ensure the experience meets expectations. You can customize Macroscope's approvability policy. Learn more. |
- Remove hover-specific diff icon state and styling - Keep collapse controls always visible with simpler header buttons - Lift the inline diff sidebar width cap
- Normalize @pierre/diffs to the shared catalog entry - Refresh lockfile and root package metadata
What Changed
Updated
@pierre/diffsto1.1.20in bothapps/webandapps/server.Added collapsible file diffs in the diff panel. Each file diff can now be collapsed/expanded from the existing left status-icon position:
Why
The package upgrade brings the app onto the latest
@pierre/diffsversion and uses its built-incollapsedoption for file diffs.The collapse control keeps the existing header layout intact by reusing the current status-icon position instead of adding another control to the left. This keeps the UI compact while making diff state clear.
UI Changes
Screen.Recording.2026-05-04.at.10.34.50.PM.mov
Checklist
Note
Medium Risk
Moderate UI/UX change in the diff viewer plus a dependency upgrade; risk is mainly regressions in diff rendering/click handling and any behavior changes from
@pierre/diffsv1.1.20.Overview
Upgrades
@pierre/diffsacrossapps/webandapps/serverby switching to the workspacecatalog:pin (now1.1.20), updating the lockfile accordingly.Updates
DiffPanelto support collapsing individual file diffs via a chevron button in each file header (persisted per rendered file key and pruned when the visible file list changes), and widens the inline diff sidebar max width substantially (from36remto256rem).Reviewed by Cursor Bugbot for commit 15a3c5e. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add collapsible file diffs and increase inline diff sidebar max width
DiffPanel, rendered as a chevron button in each file header; clicking the chevron stops event propagation so it does not trigger 'open in editor'.getDiffCollapseIconClassNameto color the chevron based on diff type (new, deleted, modified).DIFF_INLINE_SIDEBAR_MAX_WIDTHfrom36 * 16to256 * 16px in _chat.$environmentId.$threadId.tsx.@pierre/diffsto1.1.20via catalog reference across server and web packages.Macroscope summarized 15a3c5e.