How j3rryl/task-tracker works
Task Tracker is a Next.js task-management application. Users reach task management to create, view, complete, and delete tasks; server actions persist changes, and the dashboard displays task counts. A separate chat workflow sends user messages to an AI action that can retrieve or add tasks. The shared layout provides navigation and application-wide UI. The README also describes faction selection, but no implementation for it appears in the supplied tree; source excerpts are incomplete, so uncertain connections are omitted.
Main entry points: TaskChat.tsx Chat Interface · TasksComponent.tsx Task Controls · actions.tsx AI Actions · TasksList.tsx Task List
Components 24
Application UI
- Tasks Page
app/tasks/page.tsx - Dashboard Page
app/dashboard/page.tsx - Dashboard Loading
app/dashboard/TaskSkeleton.tsx - Chat Page
app/chat/page.tsx - App Layout
app/layout.tsx - Navigation Sidebar
components/layouts/sidebar.tsx - Faction Selection
README.md
Task Management
- Task Controls
app/tasks/TasksComponent.tsx - Task List
app/tasks/TasksList.tsx - Task Actions
app/actions.ts - Task Statistics
app/dashboard/TaskStatistics.tsx
AI Assistant
- Chat Interface
components/TaskChat.tsx - AI Actions
app/ai/actions.tsx
Task Data
- Database Client
db.ts - Task Schema
db/schema.ts
UI Components
- Card Components
components/ui/card.tsx - Button Component
components/ui/button.tsx - Input Component
components/ui/input.tsx - Dialog Component
components/ui/dialog.tsx - Avatar Component
components/ui/avatar.tsx - Scroll Area
components/ui/scroll-area.tsx - Skeleton Component
components/ui/skeleton.tsx
Other components
- User
- OpenAI Model
Connections 35
- User → Tasks Page: opens
app/tasks/page.tsx - Tasks Page → Task Controls: renders
app/tasks/page.tsx - Task Controls → Task Actions: creates or deletes
app/tasks/TasksComponent.tsx - Task Controls → Task List: renders
app/tasks/TasksComponent.tsx - Tasks Page → Database Client: loads tasks
app/tasks/page.tsx - Task Actions → Database Client: writes tasks
app/actions.ts - Task Actions → Task Schema: uses table
app/actions.ts - Task List → Task Actions: updates or deletes
app/tasks/TasksList.tsx - User → Dashboard Page: opens
app/dashboard/page.tsx - Dashboard Page → Task Statistics: renders
app/dashboard/page.tsx - Dashboard Page → Dashboard Loading: renders fallback
app/dashboard/page.tsx - Task Statistics → Database Client: queries counts
app/dashboard/TaskStatistics.tsx - Task Statistics → Task Schema: queries table
app/dashboard/TaskStatistics.tsx - User → Chat Page: opens
app/chat/page.tsx - Chat Page → Chat Interface: renders
app/chat/page.tsx - Chat Interface → AI Actions: sends message
components/TaskChat.tsx - AI Actions → OpenAI Model: streams response
app/ai/actions.tsx - AI Actions → Database Client: queries tasks
app/ai/actions.tsx - AI Actions → Task Schema: queries table
app/ai/actions.tsx - AI Actions → Task Actions: creates task
app/ai/actions.tsx - AI Actions → Task List: renders results
app/ai/actions.tsx - App Layout → Navigation Sidebar: renders navigation
app/layout.tsx - Task Controls → Button Component: uses
app/tasks/TasksComponent.tsx - Task Controls → Input Component: uses
app/tasks/TasksComponent.tsx - Task Controls → Dialog Component: uses
app/tasks/TasksComponent.tsx - Task List → Card Components: renders cards
app/tasks/TasksList.tsx - Task List → Button Component: uses
app/tasks/TasksList.tsx - Task Statistics → Card Components: renders cards
app/dashboard/TaskStatistics.tsx - Dashboard Loading → Card Components: renders cards
app/dashboard/TaskSkeleton.tsx - Dashboard Loading → Skeleton Component: renders placeholders
app/dashboard/TaskSkeleton.tsx - Chat Interface → Avatar Component: renders avatars
components/TaskChat.tsx - Chat Interface → Button Component: uses
components/TaskChat.tsx - Chat Interface → Card Components: renders
components/TaskChat.tsx - Chat Interface → Input Component: uses
components/TaskChat.tsx - Chat Interface → Scroll Area: renders messages
components/TaskChat.tsx