Merged PR 2255: refactor(representations): extract deterministic data-resolution helpers for...

refactor(representations): extract deterministic data-resolution helpers for representation flow (Slice R6, behaviour-preserving)

Related work items: #22441
This commit is contained in:
Robert Bond
2026-04-17 10:07:52 +00:00
parent 8e21ec1dd7
commit 33f31ad3c8
3 changed files with 155 additions and 59 deletions
+22 -1
View File
@@ -6,7 +6,7 @@ Base branch: `refactor`
## Status
Current slice: Slice R5Representation Elements Normalisation
Current slice: Slice R6Async Data / Service Layer Cleanup
Status: COMPLETE
---
@@ -181,6 +181,27 @@ Reduce duplication and coupling in data fetching.
- blob/file retrieval
- representation detail aggregation
**Completion notes (this slice):**
- Implemented on feature branch created from `refactor`: `rep-slice-r6-data-service-cleanup`.
- Added deterministic representation-specific data-resolution helpers in:
- `components/case/representation/utils/dataResolution.js`
- Updated `components/case/representation/index.js` to use extracted helper functions for:
- initial case details/results source resolution
- details/results lookup by current context (state/edit/ticket/created)
- submit-path details source resolution and details lookup
- Preserved slice boundary constraints:
- no service/API call execution movement
- no dispatch sequencing changes
- no loader branch redesign
- no blob retrieval orchestration changes
- no payload contract/Redux/route/query/EN-CY changes
- Validation evidence:
- `npm run lint` completed (warnings only, no new errors).
- `npm run test:reps` completed: **7 passed**.
- Manual APP/IP/Agent/LPA checks: **passed**.
- Manual EN/CY parity checks: **passed**.
---
### Slice R7 — Summary / Case-Type Rendering Simplification (Optional)