Repository navigation
Description
Original MVP criteria | Assets Ticket 27736
Document Record Component (Components 2.0)
Field Matrix (In progress)
Archived - Figma Design
Got it, I've dropped "labels" and made it clear that each document needs a Document Type, and that it's required.
Title: DRS | Document Record Component
Description
Update the Document Record component so staff can enter all required document record information directly within the filing. This removes the need to open the document record separately and reduces steps when processing filings.
Document record
When the filing is submitted, this component creates a document record in DRS. The details entered in the component, along with details from the filing, are attached to that record.
- From the component: Document ID, Document Type, Pages, Description of Document(s), uploaded files
- From the filing: Entity ID, Filing Type, Record Date, Author (IDIR)
- From the scanner: Accession Number, Batch ID
If no Document ID is entered for uploaded documents, one is generated. Refer to the Field Source Reference in Figma for full details.
Scope
- Scan Documents: Document ID, Document Type and Pages to Scan
- Upload Documents: upload or drag and drop files
- Document Type is required for each scanned and uploaded document. Each uploaded file has its own Document Type field. Options come from the Document Type descriptions spreadsheet.
- Description of Document(s) (optional, max 1000 characters)
- "No associated documents to submit" option
- Staff can scan and upload in the same filing
- One of these is required: scan a document, upload a document, or select "No associated documents to submit"
Design and specs
Refer to the designs and annotations for field rules, validation, error messages and accessibility requirements.
- Figma, Document Record component (Components 2.0): [link]
- Figma, DRS | Integration (component in the filing flow): [link]
- Fieldset Matrix: [link]
- Document Type descriptions spreadsheet: [link]
Accessibility
Must meet WCAG 2.1 AA. See the A11Y specs in the Fieldset Matrix and Figma annotations.
- Clear labels for all form fields
- Clear, meaningful names for buttons and other controls
- Enough colour contrast for text, buttons and fields
- Colour is not the only way to show errors, required fields or other important information
- Clear error messages when information is missing or incorrect
- Works with screen readers and other assistive technologies
- Tab order follows the flow of the form, with a visible focus indicator
Keyboard interaction
| Control | Keys |
|---|---|
| Moving between fields | Tab moves forward, Shift + Tab moves back |
| Text fields (Document ID, Pages to Scan) | Type to enter a value |
| Description of Document(s) | Enter adds a new line, Tab moves to the next field |
| Buttons (Upload document(s), Remove) | Enter or Space |
| Document Type select menu | Enter, Space or Down Arrow opens the menu. Type to filter. Up and Down Arrow move through options. Enter selects. Escape closes without selecting. |
| Checkbox (No associated documents to submit) | Space checks or unchecks |
Drag and drop is mouse only. Keyboard users upload files with the Upload document(s) button. The "or drag and drop files" text is not focusable.
Acceptance criteria
- Component matches the Figma designs and annotations
- Each scanned and uploaded document has a Document Type selected before submit
- A document record is created on submit, with component and filing details attached
- Field validation and error messages follow the Fieldset Matrix
- All controls work with a keyboard as described above
- Component works with screen readers
Activity
[-]UI Design - DRS | Document ID: Add Upload component[/-][+]UI Design - DRS | Document ID Component Enhancement[/+]liz-govier commentedon Jul 3, 2026
Summary of my chat with Doug on the DRS document ID and upload component (July 2nd)
Entities Integration of Doc Record Component
1. When does a document record get created?
Doug: The UI determines when the DRS API call is made and a document record is created. With MHR it is possible to keep the document data as part of the draft and create the DRS record when the registration is submitted. With other UI's managing drafts may not be so flexible. The simpler approach is to create the record when the document is uploaded.
Option A: Create record on upload (simplest)
This option creates the record the moment a file is uploaded. Faster to build, but you get early records that can be missing info like filing date and entity ID.
User selects file ➜ Upload component sends file ➜ UI calls DRS API right away ➜ DRS creates record ➜ Record appears in DRS table
Note: This route means missing attributes in the record, like filing date and Entity ID, if the filing is never completed. I think this option is risky because you could have a ton of incomplete records are stale create confusion for staff.
Options B: Create record on submission (MHR-style) *Preferred
This option waits until the filing is submitted, so the record is complete, but it needs the UI to hold document data as a draft, which not every UI handles well.
User selects file ➜ Upload holds file as draft ➜ User submits filing ➜ UI calls DRS API ➜ DRS creates record (full metadata)
Next Step: Reach out to a dev to see what the effort would be for Option B.
2. What file types does the Nuxt upload component support?
See the Allowed Document Formats in the API spec https://okagqp-test-bcregrestricted.apigee.io/docs/docserviceproxy/1/overview for the list of file types.
Open Questions
Q. Any value allowing staff to also upload documents when there are documents to scan?
A. For now, yes. Certain documents require verified stamps, which currently need to be printed > stamped > scanned. We're looking into a digital stamp option for this, though it may take some time to implement. Since the digital process is new, there will likely be circumstances where both formats are needed. We'll review both options with staff to confirm, but we're leaning toward making both available, upload and scan, for the document record component.
Q. In COLIN, is it optional to enter a barcode?
A. Yes, there is optional in COLIN and should be reflected in our UI (See image below)
Q. Do we add "pages to scan" field when barcode is entered?
A. Yes, there is optional in COLIN and should be reflected in our UI (See image below)
[-]UI Design - DRS | Document ID Component Enhancement[/-][+]UI Design - DRS | Document Record Component Enhancement[/+][-]UI Design - DRS | Document Record Component Enhancement[/-][+]DRS - Design | Document Record Component Enhancement[/+]