Skip to content

CR-96:Changes to '+ Add Document' button#171

Merged
don-aot merged 1 commit intobcgov:mainfrom
don-aot:CONDITIONS-task#96
Mar 19, 2026
Merged

CR-96:Changes to '+ Add Document' button#171
don-aot merged 1 commit intobcgov:mainfrom
don-aot:CONDITIONS-task#96

Conversation

@don-aot
Copy link
Collaborator

@don-aot don-aot commented Mar 19, 2026

Summary:

Addresses user testing feedback where users were confused by the lack of an "Add Document" button on the document list screen. The button now appears in the header of the Certificate and Amendments (and Other Orders) screens.

Changes:

  • Added "Add Document" button to the Documents screen header
  • Button is context-aware — document types are filtered to only those belonging to the current shell (e.g. "Other Order" is not available when in the Certificate and Amendments shell)
  • Pre-populates the project in the modal since the user is already in a project context
  • CreateDocumentModal extended with preselectedProject and restrictToCategoryId props to support this behaviour without duplicating logic

VineetBala-AOT
VineetBala-AOT previously approved these changes Mar 19, 2026
@don-aot don-aot force-pushed the CONDITIONS-task#96 branch from 9e0237a to 23415b7 Compare March 19, 2026 22:12
@don-aot don-aot force-pushed the CONDITIONS-task#96 branch from 23415b7 to f2a5284 Compare March 19, 2026 22:16
@don-aot don-aot merged commit d5cb7c4 into bcgov:main Mar 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants