Skip to content
Source
Sign inSign up
pingdotgg/t3code

chore: remove `AnnotatableFileDiff` leftovers, rename file #3488

Mergedipanasenko(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/3488/headmerged by juliusmarminge View on GitHub

What Changed

Removed unused AnnotatableFileDiff component. Looks like it's a leftover after https://github.com/pingdotgg/t3code/pull/3169 Renamed file AnnotatableFileDiff.tsx => AnnotatableCodeView.tsx

Why

Just cleaning things up a bit

UI Changes

None

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes - N/A
  • I included a video for animation/interaction changes - N/A

Note

Remove AnnotatableFileDiff component and rename file to AnnotatableCodeView

Deletes the AnnotatableFileDiff component and its associated props interface from AnnotatableCodeView.tsx, removing the FileDiff-based rendering path along with its annotation state and handlers. Updates DiffPanel.tsx to import from the renamed module path.

Macroscope summarized e1ab551.

Note

Low Risk Dead-code removal and import path rename with no remaining references to the removed component.

Overview Cleanup after consolidating diff review UI on CodeView. The PR deletes the leftover AnnotatableFileDiff implementation (single-file FileDiff wrapper with its own annotation state) from what is now AnnotatableCodeView.tsx, and drops the unused FileDiff import from @pierre/diffs/react.

DiffPanel only changes the import path/handle type to ./diffs/AnnotatableCodeView; it already renders AnnotatableCodeView for multi-file diffs, so behavior should be unchanged.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e1ab5515958aaf05fbe4ac3bba2840658fcc7a47. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 43d1676c-44ff-4b41-a9c8-33f7a712e240

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      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.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved

      Pure cleanup PR removing unused AnnotatableFileDiff component (confirmed no references in codebase) and renaming the file to match its actual export. No runtime behavior changes.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge merged this28107e8

    5. juliusmarminge closed this

Sign in to join this conversation.