feat: update contract_version in sign endpoint to read from config #38
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.Repo
forgejo_admin/westside-contractsUser Story
As the contract signing system, I need to derive the contract_version from the team's contract_config instead of hardcoding version strings based on team name patterns.
Context
The sign endpoint (
src/routes/contract/[token]/sign/+server.ts) currently determines contract_version by checking if team name includes "Local" or "Queens":With contract_config on teams, the variant and season are in the data. Read from there, keep the current logic as fallback when contract_config is NULL.
File Targets
src/routes/contract/[token]/sign/+server.ts— update contract version derivationFiles NOT to touch:
src/lib/validation.ts,src/lib/minio.ts,src/lib/db.tssrc/routes/contract/[token]/+page.svelteAcceptance Criteria
config.season+config.variant(e.g. "2026-spring-girls-travel-v1")Test Expectations
npm testnpm test && npm run checkConstraints
Checklist
Related
westside-basketball— parent projectforgejo_admin/westside-contracts#34— parent issueScope Review: READY
Review note:
review-778-2026-04-03Ticket is fully scoped with verified file targets, complete traceability, and clear acceptance criteria. Single file change in single repo, well within 5-minute rule. Blocked only by wave:1/wave:2 dependencies (T1, T3, T5) currently in QA — dispatch after those are validated and merged.
Agent picked up this ticket.