Show contract status in admin CRM player list #137
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-landing#137
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
Standalone — discovered during contract data audit (2026-03-28). DB shows 10 signed / 45 unsigned but admin CRM has zero contract visibility.
Repo
forgejo_admin/westside-appUser Story
As Marcus (admin)
I want to see contract status on each player card in the admin CRM
So that I can track contract completion without querying the database
Context
The basketball-api
GET /admin/playersendpoint already returnscontract_statusper player (none,offered,signed). The admin CRM page (/admin/players) ignores this field entirely — no badge, no count. As of today: 10 players signed, 45 with no contract, 0 offered. Marcus has no way to see this from his dashboard.Contract status is part of the player pipeline alongside payment status — a signed contract activates billing. Both should be visible on the same card.
File Targets
Files the agent should modify:
src/routes/(app)/admin/players/+page.svelte— add contract badge to player cards, add signed count to summary headersrc/app.css— add badge classes (badge-signed,badge-no-contract,badge-offered) alongside existing badge definitions (lines ~1316-1334)Files the agent should NOT touch:
src/lib/api.js— no API changes neededAcceptance Criteria
getStatusBadgeClassTest Expectations
Constraints
getStatusBadgeClass,getStatusLabel)contract_statusfield is already in the API response — just consume itnone,offered,signedChecklist
Related
project-westside-basketball— parent projectScope Review: NEEDS_REFINEMENT
Review note:
review-534-2026-03-28Template is fully populated and file target verified, but traceability and scope have fixable issues.
src/app.cssneeds new badge classes for contract statuses (badge-signed, badge-offered, badge-none) at lines 1316-1334.story:WS-S9= "track payment status" but ticket is about contract status (none/offered/signed). Either broaden WS-S9 or create WS-S13.arch:admin-crmhas no architecture note in pal-e-docs. Createarch-admin-crm-westside-basketballor use existingarch:westside-app.Scope Review: READY
Review note:
review-534-2026-03-28Scope is solid — all template sections present, traceability triangle complete (story:WS-S9, arch:westside-app, Forgejo #137), both file targets verified, 3 acceptance criteria are agent-verifiable, and the ticket fits well within the 5-minute rule.
Implementation already complete on branch
137-contract-status-admin-crm(commit1d81ef5, PR #141 open). Proceed to QA/merge.