[SPA] API-client baseline for health + session read (#158) #163
Reference in New Issue
Block a user
Delete Branch "dev/issue-158-spa-api-client-baseline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
frontend/src/apibaseline client with typed wrappers forGET /healthzandGET /lobby/sessions/:codenetwork,http, andparsefailuresLocal checks
cd frontend && npm cicd frontend && npm testcd frontend && npm run buildCloses #158
Review completed for head SHA
37b86d7065.Result: APPROVED (merge-ready).
Checks run locally:
Note (should-fix, non-blocking): request() parses JSON before HTTP status handling, so non-JSON error responses become parse errors instead of http errors. Consider fallback parsing (text -> optional JSON parse) to keep error kind consistent.
Re-review check completed for PR #163 (head
37b86d70659105bee1c3a06b4c07d12828acc236).frontend/surface, no backend mutations).npm testandnpm run buildboth pass locally on this head.npm cireports 5 moderate audit findings in transitive deps (follow-up outside this PR).SHA-discipline: skipped new official review-state because the same head SHA is already approved by reviewer-bot (review #93).