refactor(actions): adopt endpoint client in portal config helpers

This commit is contained in:
2026-03-25 08:51:39 +00:00
parent 2f95636c4a
commit 94e2ed5831
2 changed files with 44 additions and 28 deletions
+32
View File
@@ -1860,3 +1860,35 @@ Validation:
Follow-ups:
- Optional next bounded slice: review other direct service modules for any remaining legacy `axios` import usage now that case service migration is complete.
---
### CL-052: TASK22260 next slice — portal direct service requestJson parity for config-based reads/deletes
date: 2026-03-25
author: Cline
scope: `actions/services/portalDirectService.js`
type: change
rationale: Continue bounded direct-service consistency by migrating remaining config-based portal helper calls from `axios(config)` to shared `requestJson(...)` where no signed-delete/header-specific behavior is required.
impact: Reduces repeated config execution/response extraction boilerplate and improves request helper consistency in portal service while preserving behavior.
status: completed
Summary:
- Migrated selected config-based helpers to `requestJson(config)`:
- `deleteAwaitingSubmissions`
- `sendCaseCompleteMessage`
- `sendCaseCompleteMessageProxy`
- `sendRepCompleteMessage`
- Preserved behavior contracts:
- unchanged query/hash composition and request methods
- unchanged catch-path logging via `consoleLogger`
- left signed delete helpers with bespoke axios/header behavior unchanged (`deleteMyRepresentations`, `deleteWatchedCases`)
Validation:
- `npm run lint` -> warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
Follow-ups:
- Optional next bounded slice: assess whether signed-delete helpers in `portalDirectService` should remain explicit axios calls (for clarity on headers/hash semantics) or move to a dedicated signed-request client helper.