Fix Commerce page: jersey option not rendering + mobile header layout #229
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
ldraney/westside-app#229
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
Discovered during Commerce page validation (westside-landing#226). Two frontend rendering issues.
Repo
forgejo_admin/westside-landingUser Story
As Marcus (admin)
I want the Commerce page to show correct jersey options and render cleanly on mobile
So that I can see which jersey each player ordered and the page looks professional on my phone.
Context
Two issues found during production validation:
Bug 1 — Jersey option shows "--" instead of actual value:
The DB has
jersey_optionpopulated for all 16 paid players (verified via DB query). The API returns the field. But the Commerce page renders--in the Option column. The Svelte component is likely not mapping thejersey_optionenum value (reversible,jersey_warmup,opt_out) to display labels ("Reversible", "Jersey + Warmup", "Opt-Out"). Reference: the CRM page inadmin/players/+page.sveltehas a workinggetJerseyOptionLabel()function that correctly maps these values.Bug 2 — Mobile header subtitle wraps into heading:
At 375px viewport, the subtitle "Jerseys, subscriptions, and contracts" wraps next to "COMMERCE" instead of stacking below it.
File Targets
Files the agent should modify:
src/routes/(app)/admin/commerce/+page.svelte— fix jersey option rendering (add label mapping function likegetJerseyOptionLabelfrom the players page), fix page header markup for mobile wrappingsrc/app.css— add mobile override for commerce page header if neededFiles the agent should reference (not modify):
src/routes/(app)/admin/players/+page.svelte— has workinggetJerseyOptionLabel()at ~line 99Acceptance Criteria
npm run buildpassesTest Expectations
npm run buildConstraints
Checklist
Related
forgejo_admin/westside-landing#226— Commerce page (parent feature)forgejo_admin/basketball-api#363— closed as not needed (data is correct, bug is frontend)project-westside-basketball— westside platformScope Review: READY
Review note:
review-868-2026-04-06Scope is solid — template complete, file targets verified on remote, traceability intact, single-repo CSS fix well under 5-minute agent limit.
.page-headerCSS is shared across all admin pages — agent should verify Dashboard at 375px post-fix to catch regressionsFix Commerce page mobile layout: subtitle wraps awkwardly next to headingto Fix Commerce page: jersey option not rendering + mobile header layout