Skip to content

fix(web): allow deleting non-empty projects from the warning toast#1264

Open
maria-rcks wants to merge 1 commit intopingdotgg:mainfrom
maria-rcks:fix/web-project-delete-anyway
Open

fix(web): allow deleting non-empty projects from the warning toast#1264
maria-rcks wants to merge 1 commit intopingdotgg:mainfrom
maria-rcks:fix/web-project-delete-anyway

Conversation

@maria-rcks
Copy link
Collaborator

@maria-rcks maria-rcks commented Mar 21, 2026

What Changed

Adds a Delete anyway button to the Project is not empty warning toast.

Clicking it closes the toast, asks for confirmation, then deletes the project's threads and removes the project.

closes #665

Why

Right now the warning blocks project deletion without giving you a way to continue.

This keeps the fix small and makes the warning actionable.

Video

Screen.Recording.2026-03-20.at.9.56.38.PM.mov

Note

Allow deleting non-empty projects via a warning toast with inline 'Delete anyway' action

  • When a user removes a project that contains threads, a warning toast now appears with a 'Delete anyway' button instead of blocking the action. Clicking it confirms, deletes all threads in the project, then removes the project.
  • Introduces a removeProject callback in Sidebar.tsx that consolidates project deletion logic (clearing drafts, dispatching the delete command) used by both empty and non-empty project flows.
  • Extends the toast data shape in toast.tsx with actionLayout and actionVariant to support inline destructive action buttons and stacked layouts in both Toasts and AnchoredToasts.

Macroscope summarized f74b447.

@coderabbitai
Copy link

coderabbitai bot commented Mar 21, 2026

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: 7a6cb5b3-d9ba-4402-9344-b0bdeb618813

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.

Tip

CodeRabbit can enforce grammar and style rules using `languagetool`.

Configure the reviews.tools.languagetool setting to enable/disable rules and categories. Refer to the LanguageTool Community to learn more.

@github-actions github-actions bot added size:L 100-499 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Option to delete non-empty Project

1 participant