Contract shows hardcoded schedule instead of querying practice_schedules table #49
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
Bug
Lineage
Standalone — discovered during contract review for Neveah (16U Local).
Repo
forgejo_admin/westside-contractsWhat Broke
Contract page (
/contract/[token]/+page.svelte) displays hardcoded practice schedules instead of querying thepractice_schedulestable. Three separate hardcoded blocks exist:16U Local→ Mon/Friday,17U Local→ Mon/TueNeveah (16U Local) was shown Friday when her actual practices are Tuesday/Wednesday. This is wrong data on a legal document.
The
practice_schedulestable already exists in thebasketballdatabase withteam_id,day_of_week,start_time,end_time,location. westside-contracts connects to the same database but never queries this table.Repro Steps
/contract/[her-token])Expected Behavior
Contract should show the practice days/times/locations from
practice_schedulesfor the player's team — not hardcoded values.Environment
basketball(shared with basketball-api)Acceptance Criteria
+page.server.tsqueriespractice_schedulesjoined viaplayer_teams.team_id+page.sveltereplaces all three hardcoded schedule blocks with a single dynamic{#each}loopRelated
westside-basketball— project this affectssrc/routes/contract/[token]/+page.server.ts,src/routes/contract/[token]/+page.svelte,src/lib/types.tsScope Review: READY
Review note:
review-995-2026-04-12All file targets verified, hardcoded schedule blocks confirmed at stated line numbers,
practice_schedulestable exists and is seeded, westside-contracts connects to the same database. No cross-repo changes needed. Ready for dispatch.