Clean up QA nits from frontend session auth PR #200 #201
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/westside-app#201
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Feature
Lineage
Discovered scope from QA review of westside-landing PR #200 (2026-03-30).
Repo
forgejo_admin/westside-landingUser Story
As a developer
I want the jersey/checkout session auth code to use consistent patterns
So that the codebase stays DRY and maintainable
Context
QA review of PR #200 (frontend session auth) flagged 4 non-blocking nits that were approved but deferred.
File Targets
Files the agent should modify:
src/routes/(app)/jersey/+page.svelte-- (1) UseapiFetchinstead of manual Bearer construction, (2) ReusesessionFetchOpts()helper inhandleSelect(), (3) Short-circuit on nullgetToken()before fetch, (4) URI-encodeplayer_idsrc/routes/(app)/checkout/+page.svelte-- Same 4 patternsFiles the agent should NOT touch:
src/lib/api.js-- existing apiFetch utility, don't modifysrc/lib/keycloak.js-- auth client, don't modifyAcceptance Criteria
apiFetchfor authenticated API calls instead of manual Bearer headerssessionFetchOpts()helper is used consistently in all fetch calls within each pageplayer_idis URI-encoded in query stringsTest Expectations
npm run buildpassesConstraints
apiFetchpattern used in 12 other pagesChecklist
Related
project-westside-basketball