feat: jersey number picker on checkout page #67
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
forgejo_admin/westside-landing#67
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
plan-wkq→ Phase 11 (Girls Tryout) → discovered during jersey email blast 2026-03-21Repo
forgejo_admin/westside-appUser Story
As a parent, I want to pick a jersey number on the checkout page so that my child gets their preferred number
Context
Jersey checkout needs a number input alongside the size dropdown. Per AAU rules, valid numbers are 0, 00, and 1-99. Numbers must be unique per division. The page should fetch already-taken numbers from
GET /jersey/taken-numbers?division={division}and show which are unavailable. Player's division is determined from their data (loaded via token).File Targets
Files the agent should modify:
src/routes/jersey/+page.svelte— add number input to each non-opt-out card. Fetch taken numbers from API. Validate input (0/00/1-99). Show taken numbers as unavailable. Disable "Order" button until both size AND number are selected. Sendnumberparam with checkout request.Files the agent should NOT touch:
Acceptance Criteria
GET /jersey/taken-numbers?division=...)POST /jersey/checkoutasnumberparamTest Expectations
/jersey?token=..., see number inputConstraints
Checklist
Related
plan-wkq— Phase 11project-westside-basketball