Add document delete confirmation
Merged
SA
6mo ago+298+298+012345678901234567890123456789-171-171-012345678901234567890123456789
Summary
- Add explicit document delete confirmation dialogs for single and bulk deletion
- Wire document list row, detail dropdown, and selected-documents toolbar deletes through the dialogs
- Keep existing delete mutations and toast behavior while delaying mutation execution until confirmation
Testing
NODE_OPTIONS=--experimental-strip-types ../../node_modules/.bin/eslint src/pages/organizations/documents/_components/DeleteDocumentDialog.tsx src/pages/organizations/documents/_components/DocumentListItem.tsx src/pages/organizations/documents/_components/DocumentActionsDropdown.tsx src/pages/organizations/documents/_components/DocumentList.tsxnpm --workspace @probo/console run check
Linear Issue: ENG-510


Summary by cubic
Add confirmation dialogs for single and bulk document deletion to prevent accidental removals and satisfy ENG-510. Deletes now run only after users confirm.
App: console +298 -171
- Added
DeleteDocumentDialogandDeleteDocumentsDialogusing@probo/ui. - Routed deletes from row menu, document detail dropdown, and bulk toolbar through these dialogs; replaced
useConfirmprompts. - Kept existing GraphQL mutations; execution deferred until confirm. On success: navigate back from detail view or clear selection for bulk.
- Updated Relay store to remove deleted IDs from the documents connection.