TASK22168 bundle C endpoint login/account consistency extension
This commit is contained in:
@@ -746,6 +746,39 @@ Status key: `[x] done`, `[ ] pending`
|
||||
- `node tests/phase21/api-contract-slice1.test.cjs`
|
||||
- `npm run lint`
|
||||
|
||||
### Phase 21 Bundle C extension snapshot (2026-03-19)
|
||||
|
||||
Status key: `[x] done`, `[ ] pending`
|
||||
|
||||
1. `[x]` Confirm user preference for larger same-branch bundle
|
||||
- selected: Bundle C
|
||||
2. `[x]` Extend endpoint consistency in login/portal/account adjacency handlers
|
||||
- `getlogin_api`
|
||||
- `getportallogin_api`
|
||||
- `getportalloginproxy_api`
|
||||
- `getpersonalaccount_api`
|
||||
3. `[x]` Apply consistency pattern
|
||||
- remove dead/noisy imports/logging remnants
|
||||
- standardize structured negative-path responses (required input + catch/failure)
|
||||
- preserve success contracts
|
||||
4. `[x]` Expand phase21 endpoint tests
|
||||
- `tests/phase21/endpoint-handler-contract.test.cjs` expanded to 18 tests
|
||||
5. `[x]` Execute required validation
|
||||
- `node tests/phase21/api-contract-slice1.test.cjs` -> pass
|
||||
- `npm run lint` -> warnings only (pre-existing)
|
||||
|
||||
### Phase 21 Bundle C rollback notes
|
||||
|
||||
- Revert files:
|
||||
- `pages/api/endpoint/getlogin_api.js`
|
||||
- `pages/api/endpoint/getportallogin_api.js`
|
||||
- `pages/api/endpoint/getportalloginproxy_api.js`
|
||||
- `pages/api/endpoint/getpersonalaccount_api.js`
|
||||
- `tests/phase21/endpoint-handler-contract.test.cjs`
|
||||
- Re-run:
|
||||
- `node tests/phase21/api-contract-slice1.test.cjs`
|
||||
- `npm run lint`
|
||||
|
||||
## Safe execution mode for migration chunks (required)
|
||||
|
||||
To reduce terminal hangs during bulk migration work, run refactor chunks in **safe stepwise mode** instead of long chained commands.
|
||||
|
||||
Reference in New Issue
Block a user