How spoja-10/task-manager works
TaskFlow is a React and Express task manager. Users enter through the landing page, continue as a guest or authenticate, then create and manage tasks in a Kanban workflow or list view, with filtering and persisted theme preferences. Signed-in task operations pass through the client task context and API, protected server routes and controllers, and MongoDB models; guest tasks remain in browser storage and can be migrated after sign-in. Google OAuth is a documented capability, but its route wiring is not present in the sampled auth routes, so that connection is not asserted.
Main entry points: Dashboard.jsx Task dashboard · TaskContext.jsx Task state · App.jsx Route shell · AuthContext.jsx Auth state
Components 26
Client experience
- Route shell
client/src/App.jsx - Landing page
client/src/pages/LandingPage.jsx - Task dashboard
client/src/pages/Dashboard.jsx - Authentication UI
client/src/pages/AuthPage.jsx - Auth state
client/src/context/AuthContext.jsx - Task state
client/src/context/TaskContext.jsx - HTTP client
client/src/api/axios.js - Kanban board
client/src/components/KanbanBoard.jsx - Task card
client/src/components/TaskCard.jsx - Task editor
client/src/components/TaskModal.jsx - List view
client/src/components/ListView.jsx - Task filters
client/src/components/FilterBar.jsx - Navigation and theme UI
client/src/components/Navbar.jsx - Theme state
client/src/context/ThemeContext.jsx - Guest sign-in prompts
client/src/components/SignInPromptModal.jsx
API and domain
- Auth routes
server/routes/authRoutes.js - Task routes
server/routes/taskRoutes.js - Token protection
server/middleware/auth.js - Auth operations
server/controllers/authController.js - Task operations
server/controllers/taskController.js
Persistence
- User records
server/models/User.js - Task records
server/models/Task.js
Other components
- TaskFlow user
- MongoDB
- Google identity
- Browser localStorage
Connections 37
- TaskFlow user → Route shell: opens app
client/src/App.jsx - Route shell → Landing page: routes to
client/src/App.jsx - Route shell → Task dashboard: routes to
client/src/App.jsx - Route shell → Authentication UI: routes to
client/src/App.jsx - Task dashboard → Task state: uses tasks
client/src/pages/Dashboard.jsx - Task dashboard → Kanban board: renders
client/src/pages/Dashboard.jsx - Task dashboard → Task editor: renders
client/src/pages/Dashboard.jsx - Task dashboard → Guest sign-in prompts: renders
client/src/pages/Dashboard.jsx - Kanban board → Task card: renders
client/src/components/KanbanBoard.jsx - List view → Task card: renders
client/src/components/ListView.jsx - List view → Task editor: opens editor
client/src/components/ListView.jsx - Task card → Task state: updates tasks
client/src/components/TaskCard.jsx - Task editor → Task state: creates or updates
client/src/components/TaskModal.jsx - Task dashboard → Task filters: renders
client/src/pages/Dashboard.jsx - Task dashboard → List view: renders
client/src/pages/Dashboard.jsx - Task filters → Task state: filters tasks
- Authentication UI → Auth state: authenticates
client/src/pages/AuthPage.jsx - Navigation and theme UI → Auth state: uses auth
client/src/components/Navbar.jsx - Navigation and theme UI → Theme state: toggles theme
client/src/components/Navbar.jsx - Route shell → Theme state: provides theme
client/src/App.jsx - Auth state → HTTP client: sends auth requests
client/src/context/AuthContext.jsx - Task state → Auth state: checks guest mode
client/src/context/TaskContext.jsx - Task state → HTTP client: sends task requests
client/src/context/TaskContext.jsx - Task state → Browser localStorage: reads and writes guest tasks
client/src/context/TaskContext.jsx - Auth state → Browser localStorage: stores token
client/src/context/AuthContext.jsx - HTTP client → Auth routes: calls auth API
- HTTP client → Task routes: calls task API
- Auth routes → Auth operations: dispatches
server/routes/authRoutes.js - Auth routes → Token protection: protects profile route
server/routes/authRoutes.js - Task routes → Token protection: protects routes
server/routes/taskRoutes.js - Task routes → Task operations: dispatches
server/routes/taskRoutes.js - Token protection → User records: loads user
server/middleware/auth.js - Auth operations → User records: reads and writes users
server/controllers/authController.js - Auth operations → Google identity: verifies credential
server/controllers/authController.js - Task operations → Task records: reads and writes tasks
server/controllers/taskController.js - User records → MongoDB: persists records
- Task records → MongoDB: persists records