Skip to content

Polish Review deleted-file and conflict side UI - #255

Draft
Ziinc wants to merge 2 commits into
mainfrom
cursor/review-deleted-file-conflict-c60e
Draft

Polish Review deleted-file and conflict side UI#255
Ziinc wants to merge 2 commits into
mainfrom
cursor/review-deleted-file-conflict-c60e

Conversation

@Ziinc

@Ziinc Ziinc commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Deleted files in the Review tab show a Deleted badge and a File deleted placeholder instead of rendering the full former file as minus-line hunks.
  • Conflict resolution cards detect an empty (absent) side and render a dedicated side card: e.g. Side #1 deleted this file.

Test plan

  • Unit: conflict-deleted-sides, InlineConflictCard.deleted-side, deleted-file collapsible in FileRowHeader.test
  • Integration: test/integration/review/deleted-file.test.tsx, delete/modify case in conflict.test.tsx
  • Screenshot QA: scripts/screenshot/specs/review-deleted-file.spec.tsx
    • Deleted file placeholder with Deleted badge
    • Delete/modify conflict card with deleted-side callout
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 11, 2026 13:12
Show a Deleted badge and File deleted placeholder instead of full
minus-line hunks for deleted files. In conflict cards, render a
dedicated side card when one side deleted the file.

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Creating a new shared.txt on home before branching did not land in the
workspace tree. Use the existing README.md path so merge parents produce
a real delete/modify conflict with git_diff3 regions.

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
@cursor

cursor Bot commented Aug 11, 2026

Copy link
Copy Markdown

Why these changes

Deleted file collapsible (FileRowComponent / FileRowHeader): Review was dumping the entire former file as minus-line hunks for status === "D". A Deleted badge + “File deleted” placeholder keeps the row scannable without the noise.

Conflict deleted-side card (InlineConflictCard + getConflictDeletedSides): jj materializes an absent side as empty bytes; with treq’s git_diff3 markers that shows up as an empty left/right section. Inferring deletion from empty (or whitespace-only) content on git-family styles avoids special-casing jj_diff markers, where empty left indexes are common for other reasons.

Fixtures use README.md delete/modify (not a newly added shared.txt) so both parents actually share the path and produce a real conflict.

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.

2 participants