feat: add read-only admin schedule view #168
No reviewers
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!168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "166-admin-schedule-view"
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
Adds a read-only
/admin/schedulepage that fetches practices and events fromGET /admin/scheduleand displays them with division filtering, matching existing admin page patterns exactly.Changes
src/routes/(app)/admin/schedule/+page.svelte— NEW. Admin schedule view with:onMount()+apiFetch('/admin/schedule')data loading (no +page.js)<style>block using CSS design tokens from app.css$state,$derivedTest Plan
/admin/schedulewhile authenticated as adminReview Checklist
npm run build)Related Notes
Related
forgejo_admin/basketball-api#230forgejo_admin/basketball-api#232(models),#233(API) — both mergedQA Review -- PR #168
Pattern Compliance
onMount()+apiFetch('/admin/schedule')-- matches admin dashboard and teams pages exactly.$statefor loading/error/divisionFilter,$derivedfor filtered/sorted data -- correct Svelte 5 rune usage.{ practices: [], events: [] }) and user-facing error message -- matches admin dashboard pattern.<style>block, no Tailwind. All tokens reference existingapp.cssvariables.Acceptance Criteria Check
/admin/scheduleroute loads and displays data fromGET /admin/scheduleCode Quality
T00:00:00to avoid timezone-shift bugs withnew Date()app.cssNits (non-blocking)
Build Verification
npm run buildpasses with zero warnings from this file.VERDICT: APPROVED