Commerce page: full @-comment spec + shared CSS/JS + complete DB schema mapping #50
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
Upstream of
forgejo_admin/westside-landing#226(Svelte implementation). This ticket produces the Gate 1 deliverable that #226 promotes to production.Repo
forgejo_admin/westside-playgroundUser Story
As Marcus (admin)
I want to see jersey orders, subscriptions, and contracts in a dedicated Commerce view
So that I can answer "who ordered what?" without scrolling through 59 player cards.
Maps to
story:WS-S9— "As an admin, I want to track payment status per player so that I know who owes what."Context
commerce.htmlalready exists as a rough prototype (created during scoping session). It needs to be brought up to SOP spec persop-capacitor-mobile-lifecycle:<style>— all CSS moved toshared/style.css<script>— all JS moved toshared/app.jsDesign principle: surface data with as few steps as possible.
DB fields to map (from Player model):
Jersey:
jersey_option(reversible, jersey_warmup, opt_out)jersey_order_status(none, pending, paid, shipped)jersey_size(YS, YM, YL, YXL, AS, AM, AL, AXL)jersey_number(string 0-99)Subscriptions:
subscription_status(active, past_due, canceled, none)monthly_fee(integer, cents — $160 or $200)Contracts:
contract_status(none, offered, signed)contract_signed_at(datetime)contract_signed_by(string)Current gaps in prototype:
shippedjersey status filterpast_dueandcanceledas "Overdue"monthly_feecolumn in subscriptionscontract_signed_atandcontract_signed_byin contracts<style>block needs moving toshared/style.css<script>block needs moving toshared/app.jsFile Targets
Files the agent should modify or create:
commerce.html— rewrite with full @-comment spec, remove inline style/script, complete DB field mappingshared/style.css— add commerce-specific styles (tab-bar, summary-row, data-table)shared/app.js— add tab switching and filter logic for commerce pageFiles the agent should NOT touch:
shared/style.cssexisting rules — only append new rulesAcceptance Criteria
commerce.htmlhas full @-comment header per sop-capacitor-mobile-lifecycle format<style>blocks in commerce.html<script>blocks in commerce.html (except minimal DOM wiring if needed)https://playground.tail5b443a.ts.net/westside/commerce.htmlloads with no console errorsTest Expectations
Constraints
sop-capacitor-mobile-lifecycle@-comment spec format exactlyshared/style.css, all JS inshared/app.jsChecklist
Related
forgejo_admin/westside-landing#226— downstream Svelte implementationsop-capacitor-mobile-lifecycle— playground SOP with @-comment formatproject-westside-basketball— westside project page with user storiesScope Review: NEEDS_REFINEMENT
Review note:
review-865-2026-04-06Issue is well-written with all Feature template sections present. File targets verified — all 3 files exist and gaps described in the issue are confirmed. Repo placement is correct.
Issues found:
story:marcus-adminis not a valid story code — project page usesWS-SXXformat. Should bestory:WS-S9(admin payment tracking).arch-admin-portalin pal-e-docs. Needs to be created.Action needed before dispatch:
[LABEL]Fix story label:marcus-admin→WS-S9[SCOPE]Createarch-admin-portalarchitecture note[SCOPE]Reconcile board item #863 (same labels, null title)Scope refinement (review-865 feedback):
story:WS-S9mapping to issue body (wasstory:marcus-admin, not a valid story code)arch:admin-portal→arch:westside-app,story:marcus-admin→story:WS-S9scope:svelte-promotionto distinguish from this playground ticket'sscope:playgroundproject-westside-basketball(where user stories live)Scope Review: APPROVED
Review note:
review-865-2026-04-06-v2Re-review passed. All three refinement issues resolved (story label, arch label, sibling reconciliation). Template complete, file targets verified, traceability confirmed. One non-blocking [SCOPE] item: create arch-westside-app note (systemic gap across 29 board items). Ready for dispatch.