probo
probo copied to clipboard
Add document delete confirmation
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 deleting documents (single and bulk) to prevent accidental removal and meet ENG-510. Deletions now run only after users confirm.
App: console +298 -171
- Added
DeleteDocumentDialogandDeleteDocumentsDialogusing@probo/uidialogs. - Routed deletes from row menu, document detail dropdown, and bulk toolbar through these dialogs.
- Kept existing GraphQL mutations; execution deferred until confirm. On success: navigate back (single) or clear selection (bulk).
- Updated Relay store via
ConnectionHandler.deleteNodeto remove deleted IDs from the documents connection. - Replaced inline
useConfirmprompts and direct mutation calls with dialog-driven flow.
Written for commit e071e2cd45d6bee51fd3a4d583c4ee0e30995ce9. Summary will update on new commits.

