Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: fix unclosable diff panel #930

Closedatharvadeosthale(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/930/headopened View on GitHub

What Changed

Fixed unclosable diff panel

Why

Because it'd open and never close again

Closes #931

UI Changes

Before

https://github.com/user-attachments/assets/bcbe1fca-0791-44b6-8a69-000aa9d0d233

After

https://github.com/user-attachments/assets/7b0b8293-a2f4-4130-83ad-82f2ecb821bd

Checklist

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

Note

Fix unclosable diff panel by clearing diff query params and adding click-outside handler

  • Introduces clearDiffSearchParams in diffRouteSearch.ts that explicitly sets diff, diffTurnId, and diffFilePath to undefined (rather than omitting them), ensuring TanStack Router removes the params from the URL.
  • Updates onToggleDiff in ChatView.tsx and closeDiff in _chat.$threadId.tsx to use clearDiffSearchParams instead of stripDiffSearchParams.
  • Adds a full-screen transparent overlay in DiffPanelInlineSidebar that closes the diff panel on click-outside, and raises the sidebar's z-index with z-20.
Macroscope summarized e660ba0.
    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: 662b3c0e-8ef5-464b-9ec4-77e19900f431

      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
      • Post copyable unit tests in a comment

      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. @atharvadeosthale, could you please add closing tag closes #931

    4. @@ -7,4 +7,4 @@
      77 * - Please do NOT modify this file.
      88 */
      99
      10-const PACKAGE_VERSION = '2.12.9'
      10+const PACKAGE_VERSION = '2.12.10'
      chuks-qua(GitHub profile, opens in a new tab)commented

      @atharvadeosthale could you revert this change please

      @chuks-qua This was not a manual change - is it okay to revert regardless?

      chuks-qua(GitHub profile, opens in a new tab)commented

      best to revert and leave changes like these for theo or julius, they prefer to maintain things like this

    5. chuks-qua(GitHub profile, opens in a new tab) approved these changes

    6. closing in favor of #937 (sorry)

    7. maria-rcks closed this

Sign in to join this conversation.