feat(tables): confirm view deletion - #7041
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview The menu still closes when delete is chosen (same as rename), and default views remain undeletable. A new test exercises cancel (no delete) and confirm (delete with the correct view id). Reviewed by Cursor Bugbot for commit 30e7dcd. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR adds a confirmation modal before a saved table view is deleted and extends the component tests to cover both cancellation and confirmation.
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness, security, or repository-rule issues identified. The new modal defers deletion until confirmation, clears its target on cancellation or completion, and the tests cover both user paths with the expected callback behavior.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/views-menu/views-menu.tsx | Adds controlled delete-target state and a confirmation modal while preserving the existing deletion callback contract. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/views-menu/views-menu.test.tsx | Adds focused coverage for opening, cancelling, reopening, and confirming saved-view deletion. |
Reviews (1): Last reviewed commit: "feat(tables): confirm view deletion" | Re-trigger Greptile
Summary
Type of Change
Testing
bunx vitest run 'app/workspace/[workspaceId]/tables/[tableId]/components/views-menu/views-menu.test.tsx'(6 passed)bun run lintbun run apps/sim/scripts/check-block-registry.ts origin/stagingbun run check:auditsbun run docs-manifest:checkChecklist