Commit Graph

4 Commits

Author SHA1 Message Date
Ivan
0fb27b1825 feat: translate dashboard page and components to English
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 21:22:53 +00:00
Ivan
242b8bad3d fix: dashboard updates when switching sites
- Added SiteContext for global site selection state
- Updated admin layout with SiteProvider
- Updated SiteSwitcher to use shared context
- Dashboard now refetches data when site changes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 08:41:02 +00:00
Ivan
83fc48d7df feat(dashboard): add dashboard with statistics
- Add dashboard stats API endpoint with key metrics
- Add stat-card component for displaying metrics
- Add occupancy-chart component for court occupancy visualization
- Add recent-bookings component for today's bookings list
- Add quick-actions component for common admin actions
- Update dashboard page with full implementation

Stats include: today's bookings, revenue, occupancy rate,
active members, pending bookings, and upcoming tournaments.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:31:23 +00:00
Ivan
fd28bf67d8 feat(layout): add admin panel layout with sidebar and header
- Add Sidebar component with navigation items (dashboard, bookings, tournaments, pos, clients, memberships, reports, settings)
- Add Header component with SiteSwitcher and user info/logout
- Add SiteSwitcher component for SUPER_ADMIN multi-site selection
- Add admin layout wrapper with AuthProvider
- Add placeholder Dashboard page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 06:30:25 +00:00