Documents Center (Per Profile)
The Documents Center is the per-profile document viewer. It displays uploaded documents for a profile, allows switching between documents, toggling archived documents, and uploading new documents.
Route
- Active documents:
/profile/:profileID/document/:docID - Archived documents: same route with query
?archived=true
Header Actions
| Button | Behavior |
|---|---|
| Archived Documents | Fetches archived documents and navigates to the first archived document with ?archived=true query. |
| View Documents | Fetches active documents and navigates to the first active document, removing the archived query. |
| Upload | Opens the upload dialog to add a document to the profile. |
The toggle label switches between Archived Documents and View Documents depending on the current archived query state.
Document List
- Displayed as a vertical tab list on the left side.
- Documents are sorted by
step.sort_orderascending. - Each item shows the document type name and a status indicator:
- Spinning indicator (orange): document is still processing (
approved == null). - Check icon: document approved (
approved == true). - Rejected icon: document rejected (
approved == false).
- Spinning indicator (orange): document is still processing (