Wire westside dashboard to live basketball-api data #2
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/playground!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "1-wire-westside-dashboard-to-live-basketba"
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?
Summary
Replace static mock data with a live fetch from the basketball-api roster endpoint. Add nginx reverse proxy to route
/basketball-api/requests to the in-cluster basketball-api service. Dashboard now shows loading state, handles errors gracefully, displays player photos when available, shows waiver status, and includes a "Send Form" button that copies the registration URL to clipboard.Changes
k8s/deployment.yaml-- Addedlocation /basketball-api/reverse proxy block to the nginx ConfigMap, forwarding tobasketball-api.basketball-api.svc.cluster.local:80003-westside-dashboard/src/routes/+page.svelte-- Removed static$lib/data.jsimport; addedonMountfetch from/basketball-api/api/roster/westside-kings-queenswith field mapping (snake_case API -> camelCase component); added loading spinner, error state with retry, photo avatar support across all three views, waiver signed badge in admin view, "Send Form" clipboard button, and null-safe fallbacks throughout3-westside-dashboard/build/-- Rebuilt static outputTest Plan
/basketball-api/api/roster/westside-kings-queensproxies correctly once the basketball-api endpoint is livehttps://basketball-api.tail5b443a.ts.net/register?token={token}to clipboardReview Checklist
npm run buildsucceeds)Related