Wire westside dashboard to live basketball-api data #1

Closed
opened 2026-03-13 18:25:02 +00:00 by forgejo_admin · 0 comments
Contributor

Lineage

plan-2026-03-08-tryout-prep → Phase 4 → Phase 4l (playground dashboard)

Repo

forgejo_admin/playground

User Story

As a coach at tryouts
I want to pull up the westside dashboard on my phone and see real player data with photos
So that I can identify players during evaluations

As an admin at the check-in table
I want to see who's paid, who signed the waiver, and send form links to parents
So that I can check kids in efficiently

Context

3-westside-dashboard already has the admin/coach/parent role switcher with mock data. It needs to fetch from the live basketball-api JSON endpoint instead.

The nginx config needs a proxy rule to reach basketball-api from the playground domain. Pattern already exists for /paldocs-api/.

File Targets

Files the agent should modify:

  • 3-westside-dashboard/src/routes/+page.svelte — replace mock data import with fetch from /basketball-api/api/roster/westside-kings-queens
  • 3-westside-dashboard/src/lib/data.js — can be deleted or kept as fallback
  • k8s/nginx-config.yaml — add /basketball-api/ proxy location

Files the agent should NOT touch:

  • Other playground projects (1, 2, 4, 5)

Acceptance Criteria

  • Dashboard loads live player data from basketball-api
  • Admin view shows payment status, waiver status, SEND FORM button with real token links
  • Coach view shows player cards with real photos, positions, schools
  • Search works with live data
  • npm run build produces working static output at /3-westside-dashboard/build/
  • nginx proxy routes /basketball-api/ to the basketball-api k8s service

Test Expectations

  • Manual: open playground.tail5b443a.ts.net/3-westside-dashboard/build/ and see real data
  • Run command: npm run build in 3-westside-dashboard/

Constraints

  • adapter-static — must build to static HTML/JS (nginx serves it)
  • Fetch data client-side via the nginx proxy (no server-side rendering in static mode)
  • Keep the existing role switcher (admin/coach/parent)
  • Westside red/black brand colors

Checklist

  • PR opened
  • Tests pass
  • No unrelated changes
  • project-westside-basketball
  • Depends on: basketball-api JSON endpoint (basketball-api #63)
### Lineage `plan-2026-03-08-tryout-prep` → Phase 4 → Phase 4l (playground dashboard) ### Repo `forgejo_admin/playground` ### User Story As a coach at tryouts I want to pull up the westside dashboard on my phone and see real player data with photos So that I can identify players during evaluations As an admin at the check-in table I want to see who's paid, who signed the waiver, and send form links to parents So that I can check kids in efficiently ### Context `3-westside-dashboard` already has the admin/coach/parent role switcher with mock data. It needs to fetch from the live basketball-api JSON endpoint instead. The nginx config needs a proxy rule to reach basketball-api from the playground domain. Pattern already exists for `/paldocs-api/`. ### File Targets Files the agent should modify: - `3-westside-dashboard/src/routes/+page.svelte` — replace mock data import with fetch from `/basketball-api/api/roster/westside-kings-queens` - `3-westside-dashboard/src/lib/data.js` — can be deleted or kept as fallback - `k8s/nginx-config.yaml` — add `/basketball-api/` proxy location Files the agent should NOT touch: - Other playground projects (1, 2, 4, 5) ### Acceptance Criteria - [ ] Dashboard loads live player data from basketball-api - [ ] Admin view shows payment status, waiver status, SEND FORM button with real token links - [ ] Coach view shows player cards with real photos, positions, schools - [ ] Search works with live data - [ ] `npm run build` produces working static output at `/3-westside-dashboard/build/` - [ ] nginx proxy routes `/basketball-api/` to the basketball-api k8s service ### Test Expectations - [ ] Manual: open playground.tail5b443a.ts.net/3-westside-dashboard/build/ and see real data - Run command: `npm run build` in `3-westside-dashboard/` ### Constraints - adapter-static — must build to static HTML/JS (nginx serves it) - Fetch data client-side via the nginx proxy (no server-side rendering in static mode) - Keep the existing role switcher (admin/coach/parent) - Westside red/black brand colors ### Checklist - [ ] PR opened - [ ] Tests pass - [ ] No unrelated changes ### Related - `project-westside-basketball` - Depends on: basketball-api JSON endpoint (basketball-api #63)
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/playground#1
No description provided.