Audience: New engineers picking up Disciplinary work.
policy → violation → trigger → action, with two of the actions reaching into other modules.
DisciplinaryModel.cs — the enums are the domain: ViolationActionParams (the 6 actions), EmployeeViolationSourceParams (Employee/System), the item/trigger statuses.ViolationPolicy.cs — note HasThreshold + ViolationCount + ViolationActionId.EmployeeViolation.cs — note Source, Status, and TargetPersonId (victim ≠ offender).EmployeeViolationTrigger.cs — ViolationActionId + Amount + status.EmployeeSuspension.cs — the cross-module entity: EmployeeRequestId (→ Requests), RecoveredInPayrollId (→ Payroll).DisciplinaryService.cs (2,049) — the core; find the threshold→trigger logic and suspension handling.pages/dashboard/tasks/disciplinary/ (admin), pages/approval/{violations,suspensions} (approval), employee-dashboard/disciplinary/ (incl. ChatComponent).| You want to change… | Go to |
|---|---|
| Policies / thresholds | ViolationPolicy.cs, DisciplinaryService.cs |
| Violation recording | EmployeeViolation.cs, admin/employee controllers |
| Trigger automation | EmployeeViolationTrigger.cs • the threshold logic in DisciplinaryService |
| Suspensions | EmployeeSuspension.cs (mind Requests + Payroll) |
| Exemptions | ViolationPolicyExemption, PayrollExemption, MilestoneEmailExemption |
| Admin UI | web-app/.../dashboard/tasks/disciplinary/* |
Source. (RFD-001)