Add document delete confirmation

Merged
SA
6mo ago
+298-171

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.tsx
  • npm --workspace @probo/console run check

Linear Issue: ENG-510

Open in Web Open in Cursor 

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 DeleteDocumentDialog and DeleteDocumentsDialog using @probo/ui.
  • Routed deletes from row menu, document detail dropdown, and bulk toolbar through these dialogs; replaced useConfirm prompts.
  • 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.