probo icon indicating copy to clipboard operation
probo copied to clipboard

Add document delete confirmation

Open SachaProbo opened this issue 5 months ago • 0 comments

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 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 DeleteDocumentDialog and DeleteDocumentsDialog using @probo/ui dialogs.
  • 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.deleteNode to remove deleted IDs from the documents connection.
  • Replaced inline useConfirm prompts and direct mutation calls with dialog-driven flow.

Written for commit e071e2cd45d6bee51fd3a4d583c4ee0e30995ce9. Summary will update on new commits.

Review in cubic

SachaProbo avatar Jun 16 '26 13:06 SachaProbo