feat: wire content components to render from merged contract data #37
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
Sub-ticket of
forgejo_admin/westside-contracts#34— data-driven contract rendering system. Wave 3 (depends on T4 + T5). Board note:board-34-data-driven-contracts.Repo
forgejo_admin/westside-contractsUser Story
As a parent viewing a contract, I see tournaments, practices, payments, and sections rendered from structured data so that my contract reflects my child's actual deal.
Context
After T4 (component extraction) and T5 (data-driven loading + merge), the 6 content components exist but still receive hardcoded props from three
{#if}branches. This ticket collapses the three branches into ONE data-driven flow:Fallback: if
configis null (team has no contract_config), render using the old hardcoded branches. This preserves backwards compatibility during rollout.File Targets
src/routes/contract/[token]/+page.svelte— replace three{#if}branches with single data-driven flow + null config fallbacksrc/lib/components/*.svelte— update component props to accept merged config data shapes (may need minor prop adjustments from T4's initial extraction)Do NOT touch:
src/lib/db.ts,src/lib/minio.ts,src/lib/validation.tssrc/app.cssAcceptance Criteria
Test Expectations
npm test && npm run checkpassesnpm test && npm run checkConstraints
Checklist
Related
westside-basketball— parent projectforgejo_admin/westside-contracts#34— parent issueboard-34-data-driven-contractsfeat: wire components to render from merged contract datato feat: wire content components to render from merged contract dataScope Review: READY
Review note:
review-777-2026-04-03Scope is solid — all template sections present, traceability complete (story:WS-S20 verified, arch-contracts-westside-basketball exists), file targets confirmed. Dependencies on T4 (#35) and T5 (#36) are correctly documented; both are in QA and must merge before dispatch.
Agent picked up this ticket.
Agent picked up this ticket (retry).