Feature: custom_notes field on player — renders additional terms on contract page #19
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 14 (Billing Tiers & Contracts) — discovered during contract send prepRepo
forgejo_admin/westside-contracts+forgejo_admin/basketball-api(migration)User Story
As admin (Marcus)
I want to add custom notes to specific players that appear on their contract
So that special arrangements (gas stipends, discounts, custom terms) are visible to the parent when they sign
Context
5 players have gas stipend arrangements that need to appear on their contracts:
The contract page currently has no per-player custom content. Need a
custom_notestext field on the player model that, when populated, renders as an additional section on the contract page.File Targets
basketball-api (migration):
ALTER TABLE players ADD COLUMN custom_notes TEXT NULLsrc/basketball_api/models.py— addcustom_notes: Mapped[str | None]westside-contracts (rendering):
src/routes/contract/[token]/+page.server.ts— includecustom_notesin the returned player datasrc/lib/types.ts— addcustom_notes: string | nullto Player interfacesrc/routes/contract/[token]/+page.svelte— render a section before the signing area ifplayer.custom_notesis present. Simple styled div, same card style as other sections.Acceptance Criteria
custom_notescolumn exists on players tableTest Expectations
alembic upgrade head(basketball-api),npm run build && npm test(westside-contracts)Constraints
Checklist
Related
project-westside-basketballScope Review: READY
Review note:
review-wc19-2026-03-24Scope is solid — all template sections present, all 5 file targets verified against codebase, cross-repo placement correctly documented, acceptance criteria are agent-testable.
Important finding: All described work is already implemented and merged to main in both repos (migration 020, models.py, types.ts, page.server.ts, page.svelte rendering). Feature branches exist but are equal to main. This issue may be closeable as already-implemented, or can scope additional test coverage.