How bathri-x/chess-work-manager1 works
My Chess Work Manager is a chess-coaching PWA for recording classes and demos, reviewing teaching activity, and sharing daily reports. Coaches enter or edit batches in the dashboard; the app maintains local data and optionally syncs authenticated users with Supabase. From there, date navigation, history search, statistics, and report generation support review and sharing, while protected deletion, account/configuration flows, offline indicators, and PWA installation provide supporting capabilities. The main app and utility relationships are supported by the excerpts and source index; backend endpoint details are documented but not shown in source excerpts.
Main entry points: App.tsx Work Dashboard · storage.ts Batch Storage · supabase.ts Supabase Client · DailyReportSection.tsx Daily Report
Components 22
Class Tracking
- Work Dashboard
src/App.tsx - Batch Editor
src/components/BatchModal.tsx - Batch Card
src/components/BatchCard.tsx - Date Navigation
src/components/DateNavigation.tsx - Weekday Themes
src/lib/themes.ts
Review And Reports
- History Search
src/components/HistorySearchModal.tsx - Teaching Statistics
src/components/StatsTracker.tsx - Daily Report
src/components/DailyReportSection.tsx - Report Utilities
src/lib/reportUtils.ts
Storage And Sync
- Batch Storage
src/lib/storage.ts - Browser Storage
src/lib/storage.ts - Supabase Client
src/lib/supabase.ts - Supabase Database
Account And Security
- Authentication
src/components/AuthModal.tsx - Cloud Setup
src/components/SupabaseSetupModal.tsx - Delete PIN Prompt
src/components/DeletePinModal.tsx - Backend Endpoints
server.ts
Offline And Install
- Offline Status
src/components/OfflineIndicator.tsx - PWA Install
src/components/PWAInstallButton.tsx - Install Detection
src/hooks/usePWAInstall.ts
Other components
- Chess Coach
Connections 23
- Chess Coach → Work Dashboard: records classes
README.md - Work Dashboard → Batch Editor: opens editor
src/App.tsx - Work Dashboard → Batch Card: shows batches
src/App.tsx - Work Dashboard → Date Navigation: navigates dates
src/App.tsx - Work Dashboard → Weekday Themes: uses weekday themes
src/App.tsx - Work Dashboard → History Search: opens history
src/App.tsx - Work Dashboard → Teaching Statistics: shows statistics
src/App.tsx - Work Dashboard → Daily Report: shows report
src/App.tsx - Daily Report → Report Utilities: generates report
src/components/DailyReportSection.tsx - Report Utilities → WhatsApp: shares report
src/lib/reportUtils.ts - Work Dashboard → Batch Storage: saves batches
src/App.tsx - Batch Storage → Browser Storage: caches batches
src/lib/storage.ts - Batch Storage → Supabase Client: uses client
src/lib/storage.ts - Supabase Client → Supabase Database: syncs remotely
- Work Dashboard → Authentication: opens sign-in
src/App.tsx - Work Dashboard → Cloud Setup: opens setup
src/App.tsx - Cloud Setup → Supabase Client: tests connection
src/components/SupabaseSetupModal.tsx - Work Dashboard → Delete PIN Prompt: requests deletion
src/App.tsx - Delete PIN Prompt → Backend Endpoints: verifies PIN
README.md - Batch Storage → Backend Endpoints: requests deletion
src/lib/storage.ts - Work Dashboard → Offline Status: shows status
src/App.tsx - Work Dashboard → PWA Install: offers install
README.md - PWA Install → Install Detection: uses install hook
src/components/PWAInstallButton.tsx