[spare] refactor(resume): share the locale fallback fetch and object guard #189

Merged
cjournois merged 1 commit from refactor/spare-simplify-resume into main 2026-11-23 20:59:50 +00:00
Collaborator

The skills-map and ui.json fetchers duplicated the same locale-then-English fallback, and the ui.json validator carried its own copy of isObject plus four one-line parse wrappers. They now share one fallback fetcher and the existing guard; 41 fewer lines in src/, no exported symbol changed.

  • New characterization tests pin the exact fallback error messages, the fallback skills-map shape check, the default-locale results on invalid input and the parsed ui.json shape; they passed on the old code first.

Verified: just lint test test-coverage green (203 unit, 14 e2e-ui, touched files 100%); bun run build passes.

Session: 4175effe-7c95-4b5d-ab41-1d4ce7f565ed-02

The skills-map and ui.json fetchers duplicated the same locale-then-English fallback, and the ui.json validator carried its own copy of `isObject` plus four one-line parse wrappers. They now share one fallback fetcher and the existing guard; 41 fewer lines in `src/`, no exported symbol changed. - New characterization tests pin the exact fallback error messages, the fallback skills-map shape check, the default-locale results on invalid input and the parsed ui.json shape; they passed on the old code first. Verified: `just lint test test-coverage` green (203 unit, 14 e2e-ui, touched files 100%); `bun run build` passes. Session: 4175effe-7c95-4b5d-ab41-1d4ce7f565ed-02
refactor(resume): share the locale fallback fetch and object guard
All checks were successful
ci: resume-helm / Plan (pull_request) Successful in 2s
ci: resume / Plan (pull_request) Successful in 2s
ci: resume-helm / CI (pull_request) Successful in 5s
ci: resume-helm / Image (pull_request) Has been skipped
ci: resume-helm / Publish & release (pull_request) Has been skipped
coverage/resume total 99.78% · changed lines 100.00% (22/22)
ci: resume / CI (pull_request) Successful in 27s
ci: resume / E2E (full stack) (pull_request) Has been skipped
ci: resume / Image (pull_request) Successful in 29s
ci: resume / Publish & release (pull_request) Has been skipped
ci: resume / CI Pipeline (pull_request) Successful in 0s
ci: resume-helm / E2E (full stack) (pull_request) Successful in 56s
ci: resume-helm / CI Pipeline (pull_request) Successful in 0s
ci: resume-helm / Plan (push) Successful in 2s
ci: resume / Plan (push) Successful in 1s
ci: resume-helm / CI (push) Successful in 3s
ci: resume-helm / E2E (full stack) (push) Successful in 53s
ci: resume-helm / CI Pipeline (push) Successful in 0s
ci: resume-helm / Image (push) Has been skipped
ci: resume-helm / Publish & release (push) Has been skipped
ci: resume / CI (push) Successful in 23s
ci: resume / E2E (full stack) (push) Has been skipped
ci: resume / Image (push) Has been skipped
ci: resume / Publish & release (push) Has been skipped
ci: resume / CI Pipeline (push) Successful in 0s
f8c433127f
Skills categories and UI strings now load through one fallback fetcher,
and the UI validator reuses isObject instead of a private copy.
Characterization tests pin the exact error messages and parsed shape.

Session: 4175effe-7c95-4b5d-ab41-1d4ce7f565ed-02
cjournois changed title from WIP: [spare] refactor(resume): share the locale fallback fetch and object guard to [spare] refactor(resume): share the locale fallback fetch and object guard 2026-11-23 20:59:38 +00:00
cjournois deleted branch refactor/spare-simplify-resume 2026-11-23 20:59:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/resume!189
No description provided.