LCFS - Enable Restore of Deleted Documents in Portal Workflows
- Dominant language
- Python
- Stars
- 6
- Forks
- 6
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 87
Description
**Describe the task**
Implement functionality that allows users to restore documents that have been deleted from the Compliance Reports workflow, Compliance Investigation (CI) application, and Initiative Agreements (IA) workflow.
**Purpose**
Improve user experience and reduce administrative effort by allowing users to recover documents that were deleted accidentally. Since deleted documents do not appear to be permanently removed from the system, users should be able to undo a deletion without requiring intervention from support or system administrators.
**Wireframe**
[Restore of Deleted Documents](https://www.figma.com/proto/iql16QjuVdkjpN4jLxIk2X/4880-LCFS---Enable-Restore-of-Deleted-Documents-in-Portal-Workflows?node-id=36-569&t=FkDO6A9PfoDsgpk6-0&scaling=min-zoom&content-scaling=fixed&page-id=16%3A363)
**Acceptance Criteria**
- [ ] Users can restore documents they previously deleted from the Compliance Reports workflow.
- [ ] Users can restore documents they previously deleted from the CI application.
- [ ] Users can restore documents they previously deleted from the Initiative Agreements workflow.
- [ ] Only the user who deleted a document can restore that document.
- [ ] Restored documents retain their original metadata, file associations, and document history.
- [ ] Users can only restore documents that have not been permanently removed from the system.
- [ ] A clear visual indicator identifies documents that are in a deleted/recoverable state.
- [ ] Appropriate audit logging captures document deletion and restoration activities.
**Additional context**
- Current behaviour suggests that documents are not hard deleted when removed by either BCeID or IDIR users.
- If deleted documents are being retained within the system, providing an undo/restore capability would improve usability and reduce the risk of accidental data loss.
- Restricting restoration to the user who performed the deletion helps prevent unintended recovery of documents by other users.
- Consider aligning the restore experience across Compliance Reports, the CI application, and Initiative Agreements for consistency.
- Ensure accessibility via keyboard navigation and selection.
- Please validate compliance with WCAG 2.2 accessibility guidelines.
- Test across different browsers and devices to confirm consistent behaviour.
Contributor guide
Assessment
This issue has not been assessed yet.