How bargav346/dailydocket works
Daily Docket is a personal productivity app: users authenticate, choose task management or an hourly diary, and save their work to Supabase. The task workflow includes AI-generated suggestions, task streaks, and email-delivery status; the diary supports date-based entry and saving. The graph follows evidenced routes, calls, and data access. The README describes the development stack rather than product capabilities, and the three edge-function implementations were indexed or read but their callers and external dependencies are not established by the excerpts, so those links are left unverified.
Main entry points: App.tsx Routes and providers · TaskManager.tsx Task manager · AuthContext.tsx Authentication · client.ts Supabase client
Components 16
App and access
- Routes and providers
src/App.tsx - Authentication
src/contexts/AuthContext.tsx - Protected routes
src/components/ProtectedRoute.tsx - Sign in and register
src/pages/Login.tsx - Daily dashboard
src/pages/Index.tsx
Task management
- Task manager
src/pages/TaskManager.tsx - AI suggestions
src/components/AiSuggestions.tsx - Task streaks
src/components/TaskStreak.tsx - Email delivery status
src/components/EmailDeliveryStatus.tsx
Diary tracking
- Hourly diary
src/pages/Diary.tsx
Backend services
- Supabase client
src/integrations/supabase/client.ts - Task suggestions function
supabase/functions/suggest-tasks/index.ts - Diary summary function
supabase/functions/diary-summary/index.ts - Notification function
supabase/functions/send-notification/index.ts - Supabase database
Other components
- User
Connections 24
- User → Routes and providers: opens app
src/App.tsx - Routes and providers → Authentication: provides auth
src/App.tsx - Routes and providers → Protected routes: routes through
src/App.tsx - Routes and providers → Sign in and register: routes to
src/App.tsx - Routes and providers → Daily dashboard: routes to
src/App.tsx - Routes and providers → Task manager: routes to
src/App.tsx - Routes and providers → Hourly diary: routes to
src/App.tsx - Protected routes → Authentication: checks session
src/components/ProtectedRoute.tsx - Sign in and register → Authentication: uses auth
src/pages/Login.tsx - Authentication → Supabase client: auth requests
src/contexts/AuthContext.tsx - Daily dashboard → Authentication: reads identity
src/pages/Index.tsx - Daily dashboard → Task manager: navigates to
src/pages/Index.tsx - Daily dashboard → Hourly diary: navigates to
src/pages/Index.tsx - Task manager → Supabase client: reads and writes tasks
src/pages/TaskManager.tsx - Task manager → AI suggestions: renders
src/pages/TaskManager.tsx - Task manager → Task streaks: renders
src/pages/TaskManager.tsx - Task manager → Email delivery status: renders
src/pages/TaskManager.tsx - AI suggestions → Task suggestions function: invokes
src/components/AiSuggestions.tsx - AI suggestions → Task manager: passes added task
src/components/AiSuggestions.tsx - Email delivery status → Supabase client: queries status
src/components/EmailDeliveryStatus.tsx - Hourly diary → Supabase client: reads and saves entries
src/pages/Diary.tsx - Supabase client → Supabase database: accesses data
- Task suggestions function → Diary summary function
- Task suggestions function → Notification function