Fix: align contract page with approved playground — proration, local schedules, remove local conduct rules #17
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
plan-wkq→ Phase 14 (Billing Tiers & Contracts) — drift from approved playground prototypeRepo
forgejo_admin/westside-contractsWhat Broke
The deployed contract page drifted from the Marcus-approved playground prototype (
pal-e-playgroundbranch5-sync-westside-contract-html-with-deploye). Three discrepancies:1. Proration label missing (both travel and local)
First monthly fee — prorated ($165)First monthly fee (${monthlyFee})— shows full fee, no "prorated" labelFirst monthly fee — prorated ($X)where X is calculated dynamically:Math.round(monthlyFee * 25 / 30 / 5) * 5. TheproratedFeecalculation existed in the original code but was removed during date cleanup.2. Local practice schedules missing
player.team_nameconditional. The original scaffold had these but they were replaced with placeholder text.3. Rules of Conduct on local contract — should not be there
<h3>Rules of Conduct</h3>and<ul>block from the local contract sectionRepro Steps
pal-e-playgroundbranch5-sync-westside-contract-html-with-deploye:westside-contract.htmlExpected Behavior
Contract page matches the approved playground prototype exactly.
Environment
8675712(current main)File Targets
src/routes/contract/[token]/+page.svelte:proratedFeecalculation in script block:const proratedFee = Math.round(monthlyFee * 25 / 30 / 5) * 5;First monthly fee (${monthlyFee})toFirst monthly fee — prorated ($${proratedFee}){#if player.team_name?.includes('17U Local')}/{:else if player.team_name?.includes('16U Local')}conditionalsFiles NOT to touch:
Acceptance Criteria
Test Expectations
npm run build && npm testConstraints
Math.round(monthlyFee * 25 / 30 / 5) * 5Checklist
Related
project-westside-basketballpal-e-playgroundbranch5-sync-westside-contract-html-with-deploye:westside-contract.htmlScope Review: READY
Review note:
review-wc-17-2026-03-24All three discrepancies verified against main branch (commit
8675712). File targets, proration formula, team conditionals, and Rules of Conduct removal all confirmed accurate. No cross-repo work needed. Downstream items (westside-app #74, westside-contracts #7) are correctly sequenced in next_up. Ready for agent execution.