How washingtonolv/checklist works
Checklist Operacional D&D is a Next.js application for managing store routines across commercial admins, supervisors, and store managers. Users review dashboard indicators, work through recurring activities, record observations and photo evidence, and supervisors review completion; administrators maintain stores, users, categories, and task templates. Reports and history provide monitoring and audit views. The backend selector chooses local demo data or Supabase. The graph reflects README capabilities and relationships visible in the supplied excerpts and source index; unsampled implementations are represented at their known paths, without inferring their internal calls.
Main entry points: index.ts Backend selection · ManagerRoutine.tsx Manager routine view · painel/page.tsx Management dashboard · [id]/page.tsx Activity checklists
Components 25
User experience
- Management dashboard
src/app/(app)/painel/page.tsx
Routine operations
- Activity checklists
src/app/(app)/atividades/[id]/page.tsx - Manager routine view
src/components/layout/ManagerRoutine.tsx - Task actions
src/components/tasks/TaskActions.tsx - Photo evidence
src/components/photos/PhotoUploader.tsx - Evidence delivery
src/app/api/evidencias/[...path]/route.ts - Scheduled generation
src/app/api/cron/gerar/route.ts
Administration and insights
- Task templates
src/actions/templates.ts - Template editor
src/components/forms/TemplateForm.tsx - Store management
src/actions/stores.ts - User management
src/actions/users.ts - Category management
src/actions/categories.ts - Reports and exports
src/app/(app)/relatorios/page.tsx - Activity history
src/app/(app)/historico/page.tsx
Application platform
- Authentication actions
src/actions/auth.ts - Server session access
src/lib/auth-server.ts - Backend selection
src/lib/backend/index.ts - Local demo backend
src/lib/backend/local/index.ts - Local data store
src/lib/backend/local/db.ts - Supabase backend
src/lib/backend/supabase/index.ts - Supabase data and storage
src/lib/supabase/server.ts - Routine date rules
src/lib/manager-routine.ts - Dashboard calculations
src/lib/dashboard.ts
Other components
- Store staff
- Supervisors and admins
Connections 28
- Store staff → Manager routine view: works through
README.md - Manager routine view → Activity checklists: opens activities
- Activity checklists → Task actions: records progress
- Task actions → Photo evidence: adds evidence
- Photo evidence → Evidence delivery: serves evidence
- Supervisors and admins → Management dashboard: reviews execution
README.md - Management dashboard → Dashboard calculations: uses calculations
src/app/(app)/painel/page.tsx - Management dashboard → Manager routine view: renders routine
src/app/(app)/painel/page.tsx - Manager routine view → Backend selection: loads stores and tasks
src/components/layout/ManagerRoutine.tsx - Manager routine view → Routine date rules: applies date rules
src/components/layout/ManagerRoutine.tsx - Template editor → Task templates: submits templates
src/components/forms/TemplateForm.tsx - Scheduled generation → Backend selection: requests generation
src/app/api/cron/gerar/route.ts - Supervisors and admins → Store management: maintains stores
README.md - Supervisors and admins → User management: maintains users
README.md - Supervisors and admins → Category management: organizes routines
README.md - Supervisors and admins → Task templates: configures routines
README.md - Supervisors and admins → Reports and exports: reviews reports
README.md - Supervisors and admins → Activity history: reviews audit trail
README.md - Authentication actions → Backend selection: uses backend
src/actions/auth.ts - Server session access → Backend selection: gets session
src/lib/auth-server.ts - Backend selection → Local demo backend: selects local mode
src/lib/backend/index.ts - Backend selection → Supabase backend: selects Supabase mode
src/lib/backend/index.ts - Local demo backend → Local data store: uses local data
- Supabase backend → Supabase data and storage: queries and stores data
src/lib/backend/supabase/index.ts - Activity checklists → Backend selection: loads activities
- Reports and exports → Backend selection: loads report data
src/app/(app)/relatorios/page.tsx - Activity history → Backend selection: loads history
src/app/(app)/historico/page.tsx - Management dashboard → Backend selection: loads dashboard data
src/app/(app)/painel/page.tsx