fix: rebuild sponsor dashboard using shared styles and admin page patterns #54
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
Replaces westside-playground#52/#53 (sponsor dashboard prototype). That prototype used its own CSS and light theme — completely disconnected from the existing playground design system. This ticket rebuilds it correctly.
Repo
forgejo_admin/westside-playgroundUser Story
As an admin, I want the sponsor dashboard to feel like part of the same app as the player/team admin pages — same nav, same dark theme, same card styles — so it doesn't feel like a different product.
Context
The current
sponsor-dashboard/directory has its ownstyles.csswith a light theme, different tokens, different nav, different layout. Every other playground page usesshared/style.cssand follows the same structure: nav bar with logo + user role, page header, content in.container, bottom nav.The rebuild must use
shared/style.cssexclusively — no custom stylesheet. Any sponsor-specific styles should be added toshared/style.cssas new utility classes following existing patterns.Reference files the agent MUST read before writing any code:
shared/style.css— the design system. All CSS vars, components, and patterns live here.admin.html— the admin dashboard. This is the structural template for the sponsor pages.admin-players.html— player management table. Reference for the sponsor list/table view.admin-teams.html— team management. Reference for card-based admin layouts.Key design system patterns to follow:
--color-black: #0a0a0abackground,--color-gray-100text.navwith.nav-brand(logo + "Westside") and.nav-user(name + role).page-headerwithh1+.subtitle.stats-rowwith.stat-card(see admin.html).cardwith dark background (--color-darkor--color-gray-800)--color-green,--color-yellow,--color-danger,--color-bluealready exist for status indicators.btn,.btn-primary,.btn-outline,.btn-secondary,.btn-sm.bottom-navwith icon tabs.containerfor page content--font-size-*vars, weight 800 for headingsFile Targets
Files the agent should modify:
sponsor-dashboard/index.html— rebuild pipeline board using shared stylessponsor-dashboard/sponsor-card.html— rebuild detail view using shared stylessponsor-dashboard/sponsor-list.html— rebuild table view using shared stylesshared/style.css— add any new sponsor-specific utility classes (status badges, pipeline columns) following existing patternsFiles the agent should DELETE:
sponsor-dashboard/styles.css— remove entirely. All styles come from shared.Acceptance Criteria
All three pages must:
<link rel="stylesheet" href="../shared/style.css">— NO custom stylesheet.page-headerwith title and subtitle.bottom-navmatching admin pages.card,.stat-card,.btn-*classes where applicablePipeline Board (index.html):
.stats-row+.stat-card: Total, Contacted, Responded, CommittedSponsor Detail (sponsor-card.html):
.cardclass.btn-primary,.btn-outline,.btn-smSponsor List (sponsor-list.html):
admin-players.htmltable patterns if they existNew shared styles (add to shared/style.css):
.status-badge— small pill with status color background (use existing--color-green,--color-yellow, etc.).category-badge— small pill with category color.pipeline-board— flex container for horizontal scrolling columns.pipeline-column— single column with status-colored top borderTest Expectations
styles.cssremain in any HTML fileConstraints
Checklist
Related
arch-domain-sponsorship— domain modelwestside-sponsors— tier definitions, active sponsors