feat: render sponsors page from basketball-api instead of hardcoded HTML #225
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#225
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
Depends on basketball-api#357 (sponsor model extension). Part of WS-S29 sponsor management story.
Repo
forgejo_admin/westside-landingUser Story
As an admin, I want committed sponsors to automatically appear on the website when I set display_on_site=true, so that adding a new sponsor doesn't require a code change.
Context
The /sponsors page currently has Snoopy THA Barber, NanoReleaf, and Coach West Recruiting hardcoded in Svelte markup. Once the basketball-api Sponsor model has presentation fields (tier, logo_url, website_url, description, cta_text, display_on_site), this page should fetch from the API and render dynamically.
File Targets
Files the agent should modify:
src/routes/(public)/sponsors/+page.svelte— replace hardcoded sponsor cards with API-driven renderingsrc/routes/(public)/sponsors/+page.ts(or +page.server.ts) — load function fetching from basketball-apiFiles the agent should NOT touch:
src/app.css— sponsor CSS classes already exist and should be reusedAcceptance Criteria
GET /public/sponsors?display_on_site=true(new public endpoint needed on basketball-api)Test Expectations
Constraints
Checklist
Related
arch-domain-sponsorship— domain modelwestside-sponsors— canonical sponsor reference