refactor(representations): decompose representation flow shell into form stage and timetable panel (Slice R4, behaviour-preserving)

This commit is contained in:
2026-04-20 13:27:53 +01:00
parent ebed61799e
commit d36a56c4c9
4 changed files with 134 additions and 55 deletions
@@ -45,6 +45,24 @@ Status: COMPLETE
Notes: Completed in prior refactor slice work; no additional changes required in this closeout.
**Completion notes (this slice):**
- Implemented on feature branch created from `refactor`: `rep-slice-r4-flow-shell`.
- Extracted render-shell structure from `components/case/representation/index.js` into:
- `components/case/representation/shell/RepresentationFlowFormStage.js`
- `components/case/representation/shell/RepresentationTimetablePanel.js`
- Kept `index.js` as orchestration owner (no side-effect migration):
- `onHandleSubmit` unchanged in location/ownership
- `updateRepresentation` unchanged in location/ownership
- upload/PDF/email sequencing unchanged
- stage-resolution/questionnaire decisions remain in `index.js`
- Preserved explicit prop passing; no grouped-prop/view-model abstraction introduced in this slice.
- Validation evidence:
- `npm run lint` completed (warnings only, no new errors).
- `npm run test:reps` completed: **6 passed**.
- Manual APP/IP/Agent/LPA checks: **passed**.
- Manual EN/CY parity checks: **passed**.
---
### Slice R5 — Representation Elements Normalisation