Skip to content

Documents delete-confirmation destructive-action guard

StageBuilt
StatusShipped
Design statusIn progress
EstimateS
LinearPIN-773 ↗
Linear statusDone
DesignDesign ↗
Linear epicPlatform Foundation
ModuleSettings & Admin ↗

Scope

Shared delete-confirmation primitive applied to document deletion (bid documents, project documents): a confirm step (modal or inline two-step) before the delete fires, so a misclick can't destroy a file with no recovery path. Part of a global confirmation component rolled out to all destructive actions app-wide. (Source: PIN-773.)

Acceptance criteria

  • Delete on a bid document or project document requires an explicit confirm step before it fires
  • Confirm shown as a modal ("Delete this item?" + consequence line) or inline two-step (click again to confirm)
  • Cancel / click-away aborts with no changes
  • Keyboard accessible: Escape cancels, Enter confirms
  • Shared component/hook, not a one-off per page
  • No delete action on documents fires immediately without confirmation

Conor's comments

Low - small guard, rolls up. Working code with no row - add before sign-off

Notes

both shipped but roll under existing rows (ROW100 Documents; ROW106/ROW110 Outreach) - treat as mis-state, not a fresh row.