Documents delete-confirmation destructive-action guard¶
| Stage | Built |
|---|---|
| Status | Shipped |
| Design status | In progress |
| Estimate | S |
| Linear | PIN-773 ↗ |
| Linear status | Done |
| Design | Design ↗ |
| Linear epic | Platform Foundation |
| Module | Settings & 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.