Skip to content
Source
Sign inSign up
pingdotgg/t3code

Add `delete` option for project actions #223

Mergedshiroyasha9(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/223/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Context

Adds a delete button to the action edit dialog with a confirmation alert.

Fixes https://github.com/pingdotgg/t3code/issues/208

Flows tested:

  • Creating a new action works fine and does not show the delete button.
  • Using the keybindings to trigger the action works.
  • Editing an action shows the delete button in the footer.
  • The delete button opens an appropriate confirmation dialog
  • Deleting shows a toast, and the keybindings no longer works.

Screenshots

image image image

Note

Add delete action for project scripts via ChatView and ProjectScriptsControl to support removing scripts from the active project

Introduce onDeleteProjectScript in ChatHeader and wire it to ProjectScriptsControl, adding a confirmation dialog and invoking ChatView's deleteProjectScript to persist removal and show a toast. See ChatView.tsx and ProjectScriptsControl.tsx.

📍Where to Start

Start with deleteProjectScript in ChatView.tsx, then follow the onDeleteProjectScript prop through ChatHeader to onDeleteScript in ProjectScriptsControl.tsx.

Macroscope summarized 4aeca68.
    1. @shiroyasha9 is attempting to deploy a commit to the Ping Labs Team on Vercel.

      A member of the Team first needs to authorize it.

    2. 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: 0e663cdb-9167-4b92-8203-41fdcc49a574

      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

      Tip

      Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Share your feedback on Discord.


      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.

Sign in to join this conversation.