Audience: New engineers picking up Documents work. It's a shared engine — Hiring and onboarding depend on it, so changes ripple.
Three nouns and two workflows:
DocumentTemplate) — the reusable thing, of one of three types (Offer / Employee / Company), moving through an approval lifecycle.Workflow A: template In progress → Completed → Approved/Declined. Workflow B: Assign → Sign/Acknowledge → (Recall).
DocumentModel.cs — DocumentTemplateTypeParams (Offer/Employee/Company), DocumentTemplateStatuParams (the 4 statuses), and the Sign/Acknowledge/Assignment models.DocumentTemplate.cs — note the two signature concepts: Signature/SignaturePersonId (company) vs the employee's on EmployeeDocument.SmartText.cs — the five IsFor* context booleans.Signatory.cs — IsPrimary, company-scoped.DocumentService.cs (1,218) — the core; find Approve/Decline, Assign/Recall, Sign/Acknowledge.Employee/DocumentsService.cs (106) — the thin employee side.pages/dashboard/documents/documents/ (module proper) and employee-dashboard/documents/.| You want to change… | Go to |
|---|---|
| Template fields / lifecycle | DocumentTemplate.cs, DocumentService.cs |
| Approve/decline | Admin/DocumentsController (Approve/Decline), DocumentService |
| Assign/recall | Admin/DocumentsController (Assign/Recall) |
| Sign/acknowledge | Employee/DocumentsController, Employee/DocumentsService |
| Smart text | SmartText.cs, editor under documents/documents/ |
| Signatories | Signatory.cs |
| Admin UI | web-app/.../dashboard/documents/documents/* |
pages/dashboard/documents/ is a grab-bag — it also holds assets/, company-details/, time-and-attendance/, reports/, custom-form/. The module proper is documents/documents/. Source location ≠ nav — this exact confusion put a wrong claim in the Assets docs. (RFD-003)