# tanushree-26/infinity-task-planner architecture

> Architecture diagram of the GitHub repository tanushree-26/infinity-task-planner, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tanushree-26/infinity-task-planner
- Repository: https://github.com/tanushree-26/infinity-task-planner

## Overview

Infinity Task Scheduler is a team-based task management product with a React client and Flask API. The main workflow is authentication, selecting a team member and date, then viewing or editing tasks; backend routes enforce team access and delegate to domain handlers backed by SQLAlchemy. The UI also provides task details, subtasks, calendar navigation, and AI assistance for a day or an individual task. Backend route excerpts and the source index establish most connections; several frontend components and user utilities were not sampled, so their internal links are omitted.

Main entry points: [`frontend/src/App.jsx`](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/App.jsx) (Workspace state), [`backend/app.py`](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/app.py) (API routes and access), [`backend/database.py`](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/database.py) (ORM models), [`frontend/src/components/TaskBoard.jsx`](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/TaskBoard.jsx) (Task board)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React workspace"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Workspace state<br/>[App.jsx]"]
  node_authui["Authentication UI<br/>[Auth.jsx]"]
  node_sidebar["Calendar and team switcher<br/>[Sidebar.jsx]"]
  node_board["Task board<br/>[TaskBoard.jsx]"]
  node_details["Task details<br/>[TaskDetails.jsx]"]
  node_chatui["Chat interface<br/>[ChatBot.jsx]"]
  node_dateutils["Date formatting<br/>[dateUtils.js]"]
end

subgraph group_api["Flask API"]
  node_routes["API routes and access<br/>[app.py]"]
end

subgraph group_domain["Domain services"]
  node_taskservice["Task operations<br/>[tasks.py]"]
  node_teamsvc["Team membership<br/>[teams.py]"]
  node_usersvc["User accounts<br/>[users.py]"]
  node_stats["Task statistics<br/>[stats.py]"]
end

subgraph group_storage["Persistence"]
  node_models["ORM models<br/>[database.py]"]
  node_database[("PostgreSQL database")]
end

subgraph group_intelligence["AI assistance"]
  node_agent["Schedule agent<br/>[agent.py]"]
end

node_person(("Team member"))
node_groq{{"Groq language model"}}

node_person -->|"uses"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_authui
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_board
node_app -->|"renders"| node_details
node_board -->|"renders"| node_chatui
node_board -->|"formats dates"| node_dateutils
node_app -->|"parses dates"| node_dateutils
node_app -->|"requests API"| node_routes
node_routes -->|"delegates tasks"| node_taskservice
node_routes -->|"delegates teams"| node_teamsvc
node_routes -->|"delegates accounts"| node_usersvc
node_routes -->|"requests statistics"| node_stats
node_routes -->|"requests assistance"| node_agent
node_taskservice -->|"queries tasks"| node_models
node_teamsvc -->|"queries teams"| node_models
node_stats -->|"reads task data"| node_models
node_models -.->|"persists records"| node_database
node_agent -->|"loads task context"| node_taskservice
node_agent -->|"invokes model"| node_groq

click node_entry "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/main.jsx"
click node_app "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/App.jsx"
click node_authui "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/Auth.jsx"
click node_sidebar "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/Sidebar.jsx"
click node_board "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/TaskBoard.jsx"
click node_details "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/TaskDetails.jsx"
click node_chatui "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/ChatBot.jsx"
click node_dateutils "https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/utils/dateUtils.js"
click node_routes "https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/app.py"
click node_taskservice "https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/tasks.py"
click node_teamsvc "https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/teams.py"
click node_usersvc "https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/users.py"
click node_stats "https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/stats.py"
click node_models "https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/database.py"
click node_agent "https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/agent.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_app,node_authui,node_sidebar,node_board,node_details,node_chatui,node_dateutils toneBlue
class node_routes toneAmber
class node_taskservice,node_teamsvc,node_usersvc,node_stats toneMint
class node_models,node_database toneRose
class node_agent,node_person,node_groq toneIndigo
```

## Components

### React workspace

- [React entry](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Workspace state](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Authentication UI](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/Auth.jsx): `frontend/src/components/Auth.jsx`
- [Calendar and team switcher](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/Sidebar.jsx): `frontend/src/components/Sidebar.jsx`
- [Task board](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/TaskBoard.jsx): `frontend/src/components/TaskBoard.jsx`
- [Task details](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/TaskDetails.jsx): `frontend/src/components/TaskDetails.jsx`
- [Chat interface](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/components/ChatBot.jsx): `frontend/src/components/ChatBot.jsx`
- [Date formatting](https://github.com/tanushree-26/infinity-task-planner/blob/main/frontend/src/utils/dateUtils.js): `frontend/src/utils/dateUtils.js`

### Flask API

- [API routes and access](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/app.py): `backend/app.py`

### Domain services

- [Task operations](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/tasks.py): `backend/tasks.py`
- [Team membership](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/teams.py): `backend/teams.py`
- [User accounts](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/users.py): `backend/users.py`
- [Task statistics](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/stats.py): `backend/stats.py`

### Persistence

- [ORM models](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/database.py): `backend/database.py`
- **PostgreSQL database**

### AI assistance

- [Schedule agent](https://github.com/tanushree-26/infinity-task-planner/blob/main/backend/agent.py): `backend/agent.py`

### Other components

- **Team member**
- **Groq language model**

## Connections

- Team member → React entry: uses (evidence: `README.md`)
- React entry → Workspace state: renders (evidence: `frontend/src/main.jsx`)
- Workspace state → Authentication UI: renders (evidence: `frontend/src/App.jsx`)
- Workspace state → Calendar and team switcher: renders (evidence: `frontend/src/App.jsx`)
- Workspace state → Task board: renders (evidence: `frontend/src/App.jsx`)
- Workspace state → Task details: renders (evidence: `frontend/src/App.jsx`)
- Task board → Chat interface: renders (evidence: `README.md`)
- Task board → Date formatting: formats dates (evidence: `frontend/src/components/TaskBoard.jsx`)
- Workspace state → Date formatting: parses dates (evidence: `frontend/src/App.jsx`)
- Workspace state → API routes and access: requests API (evidence: `frontend/src/App.jsx`)
- API routes and access → Task operations: delegates tasks (evidence: `backend/app.py`)
- API routes and access → Team membership: delegates teams (evidence: `backend/app.py`)
- API routes and access → User accounts: delegates accounts (evidence: `backend/app.py`)
- API routes and access → Task statistics: requests statistics (evidence: `backend/app.py`)
- API routes and access → Schedule agent: requests assistance (evidence: `backend/app.py`)
- Task operations → ORM models: queries tasks (evidence: `backend/tasks.py`)
- Team membership → ORM models: queries teams (evidence: `backend/teams.py`)
- Task statistics → ORM models: reads task data (evidence: `backend/stats.py`)
- ORM models → PostgreSQL database: persists records (evidence: `README.md`)
- Schedule agent → Task operations: loads task context (evidence: `backend/agent.py`)
- Schedule agent → Groq language model: invokes model (evidence: `backend/agent.py`)
