improvement: new prosthesis type data structure implemented and finally working!
This commit is contained in:
@@ -13,15 +13,15 @@ Backend: [`backend/src/modules/tasks/`](backend/src/modules/tasks/)
|
||||
`sortBy=date` + `sortDir=desc`:
|
||||
|
||||
1. `labCase.sentAt` desc (newest case first)
|
||||
2. `labCaseId`, `treatmentDetailId`, `prosthesisTypeCode` asc (stable grouping)
|
||||
3. `stepOrder` asc (steps 1→N within prosthesis group)
|
||||
2. `labCaseId`, `sourceKey`, `tooth`, `prosthesisTypeCode` asc (one pipeline per tooth)
|
||||
3. `stepOrder` asc (steps 1→N within that tooth)
|
||||
4. `id` asc
|
||||
|
||||
Other sorts use flat list on the frontend; `stepOrder asc` is still a tiebreaker.
|
||||
|
||||
## Case grouping (frontend)
|
||||
|
||||
- **`sortBy === 'date'`** → grouped view via [`taskListGrouping.ts`](frontend/src/components/lab/taskListGrouping.ts): case header → prosthesis sub-header → task rows.
|
||||
- **`sortBy === 'date'`** → grouped view via [`taskListGrouping.ts`](frontend/src/components/lab/taskListGrouping.ts): case header → **per-tooth** prosthesis sub-header → task rows (`treatmentDetailId:teeth:prosthesisTypeCode`).
|
||||
- **Other sorts** → flat list; show muted hint (`groupingOff*` i18n keys). Each row keeps clinic/patient/teeth context.
|
||||
|
||||
Components: `TaskCaseGroupHeader`, `TaskProsthesisGroupHeader`, `TaskRow`.
|
||||
|
||||
Reference in New Issue
Block a user