Skip to content

fix(favorites): confirm before deleting category (closes #337) - #467

Draft
EVWorth wants to merge 1 commit into
mainfrom
fix/337-delete-category-confirm
Draft

fix(favorites): confirm before deleting category (closes #337)#467
EVWorth wants to merge 1 commit into
mainfrom
fix/337-delete-category-confirm

Conversation

@EVWorth

@EVWorth EVWorth commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Right-click 'Delete Category' on a favorites category fires deleteCategory() immediately, silently moving all favorites in that category to Uncategorized. Adds a ConfirmDialog showing the affected favorite count before executing.

Files

  • src/components/favorites/QueryFavorites.tsx
  • src/components/favorites/tests/QueryFavorites.test.tsx

Test plan

  • vitest: src/components/favorites/tests/QueryFavorites.test.tsx (7/7 pass)
  • vitest: full favorites suite passes (19/19)
  • tsc --noEmit clean
  • dprint clean

Closes #337

S-scope fix. Wraps the right-click 'Delete Category' in a ConfirmDialog showing 'Delete category Reports? N favorites will be moved to Uncategorized.' The store action itself was correct; missing confirmation upstream destroyed organizational work.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

[P1/bug] No confirmation on deleteCategory — silently orphans all favorites back to Uncategorized

1 participant