How ajaykreigns/task-desk works
This is a React team-work management application: users sign in (or use its documented local-only mode), then work with schedules, task completion, leads, team settings, and reports. The visible data layer centralizes application records and cloud writes in AppContext, while AuthContext manages sessions and user linkage; feature pages consume those contexts. The supplied README describes only the Vite template, and several page implementations were not sampled, so those capabilities are represented from the tree/index without speculative internal links.
Main entry points: App.jsx App router · AuthContext.jsx Session context · AuthGate.jsx Auth gate · TaskDetailModal.jsx Task detail
Components 23
Application shell
- App router
src/App.jsx - App layout
src/components/Layout.jsx - Modal portal
src/components/ModalPortal.jsx
Identity and access
- Auth gate
src/components/AuthGate.jsx - Session context
src/context/AuthContext.jsx - Login screen
src/components/LoginScreen.jsx - Role access rules
src/lib/roles.js
Task management
- Dashboard
src/pages/Dashboard.jsx - Schedule
src/pages/Schedule.jsx - My Day
src/pages/MyDay.jsx - Completed tasks
src/pages/TasksCompleted.jsx - Task detail
src/components/TaskDetailModal.jsx - Task progress
src/lib/taskProgress.js
Leads and reporting
- Lead center
src/pages/LeadCenter.jsx - Lead world map
src/components/WorldMap.jsx - Monthly report
src/pages/MonthlyReport.jsx - Team management
src/pages/TeamManagement.jsx - Settings
src/pages/Settings.jsx
State and services
- Application data
src/context/AppContext.jsx - Notifications
src/context/NotificationContext.jsx - Supabase client
src/lib/supabase.js
Other components
- Team user
- Supabase service
Connections 21
- Team user → App router: uses
src/App.jsx - App router → Auth gate: gates
src/App.jsx - App router → App layout: renders
src/App.jsx - App router → Dashboard: routes to
src/App.jsx - App router → Schedule: routes to
src/App.jsx - Auth gate → Session context: checks status
src/components/AuthGate.jsx - Auth gate → Login screen: renders
src/components/AuthGate.jsx - Session context → Supabase client: uses auth
src/context/AuthContext.jsx - Session context → Notifications: notifies
src/context/AuthContext.jsx - Session context → Role access rules: normalizes roles
src/context/AuthContext.jsx - App router → Application data: provides data
src/App.jsx - App router → Notifications: provides notifications
src/App.jsx - Application data → Supabase client: queries and writes
src/context/AppContext.jsx - Supabase client → Supabase service: connects
- Schedule → Task detail: opens
src/pages/Schedule.jsx - Completed tasks → Task detail: opens
src/pages/TasksCompleted.jsx - Task detail → Task progress: calculates status
src/components/TaskDetailModal.jsx - Monthly report → Task progress: calculates status
src/pages/MonthlyReport.jsx - Lead center → Lead world map: renders
src/pages/LeadCenter.jsx - Lead center → Modal portal: portals dialogs
src/pages/LeadCenter.jsx - Settings → Application data: uses data
src/pages/Settings.jsx