Fix registration form: remove stale tryout copy, add team preference #233
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#233
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
Standalone — discovered during registration flow audit (2026-04-07). Parent reports receiving email with "March 24 tryout" details. Form itself also has stale copy.
Repo
forgejo_admin/westside-landingUser Story
As a parent registering my player
I want the form to reflect general program registration and let me indicate a team preference
So that I'm not confused by stale tryout-specific language and Coach Marcus knows where to slot my player
Context
The registration form was built for the March 2026 tryouts and never updated. The subtitle hardcodes "2026 Girls Tryouts - 15U 16U 17U", the registration type says "Tryout Registration ($30)", and the success page references "important dates" in a confirmation email that contains stale event details. Meanwhile, 7 teams exist in the database and
/public/teamsreturns them — but the form has no team preference field.Player.team_preferenceexists on the model but the SvelteKit form never wired it up.File Targets
Files to modify:
src/routes/(app)/register/+page.svelte— remove stale subtitle (line 226), change registration type label (line 457), update remote eval description (line 464), add team preference dropdown after Division, fix success page copy (lines 197-199, 521-523), include team_preference in POST payloadFiles NOT to touch:
src/routes/(public)/tryouts/+page.svelte— data-driven and correctsrc/lib/api.js— no changes neededAcceptance Criteria
Test Expectations
Constraints
/public/teamsendpoint (already exists, returns team names + divisions)team_preference(string, team name or null)Checklist
Related
westside-basketball— projectforgejo_admin/basketball-api#383— API accepts team_preference (parallel ticket)pal-e-platform/docs/superpowers/specs/2026-04-07-registration-flow-fix-design.mdAPPROVED — file targets verified, API endpoint confirmed, no conflicts
Verification details:
src/routes/(app)/register/+page.svelteconfirmed in repo2026 Girls Tryouts • 15U 16U 17U— stale copy confirmed, matches ticketTryout Registration ($30)— confirmedFor players who cannot attend an in-person tryout...— confirmedGET /public/teamsreturns 7 teams with division field (boys/girls) — ready for dropdown filtering