# ashserrao/react-task-planner architecture

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

- Interactive diagram: https://gitdiagram.com/ashserrao/react-task-planner
- Repository: https://github.com/ashserrao/react-task-planner

## Overview

Ashtro Planner is a React task-planning application with local authentication and several task views. Users enter through the portfolio’s routes, authenticate for protected pages, and manage tasks through calendar, timeline, list, hobby, and project views. Those views use shared task state, which synchronizes through an API adapter and caches tasks locally; notifications report sync outcomes. The README only describes the Create React App scaffold, so product capabilities and connections here rely on the source index and excerpts. Some route imports in the portfolio excerpt do not match files in the supplied tree.

Main entry points: [`src/lib/time-tracking-context.js`](https://github.com/ashserrao/react-task-planner/blob/main/src/lib/time-tracking-context.js) (Task State), [`src/portfolio.jsx`](https://github.com/ashserrao/react-task-planner/blob/main/src/portfolio.jsx) (Portfolio Routes), [`src/Components/ui/task-form-dialog.jsx`](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/ui/task-form-dialog.jsx) (Task Form), [`src/App.js`](https://github.com/ashserrao/react-task-planner/blob/main/src/App.js) (App Providers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_app["App Providers<br/>[App.js]"]
  node_portfolio["Portfolio Routes<br/>[portfolio.jsx]"]
  node_home["Home View<br/>[home.jsx]"]
end

subgraph group_identity["Authentication"]
  node_auth_ui["Login and Signup<br/>[login-form.jsx]"]
  node_auth_context["Auth Session<br/>[AuthContext.jsx]"]
  node_private_route["Private Route<br/>[PrivateRoute.jsx]"]
  node_auth_shell["Auth Shell<br/>[auth-shell.jsx]"]
end

subgraph group_planning["Task Planning"]
  node_calendar["Calendar View<br/>[calendarview.jsx]"]
  node_timeline["Timeline View<br/>[timeline.jsx]"]
  node_list["List View<br/>[listview.jsx]"]
  node_hobby["Hobby Tracker<br/>[hobbytracker.jsx]"]
  node_project["Project Tracker<br/>[projecttracker.jsx]"]
  node_task_form["Task Form"]
end

subgraph group_services["Shared Services"]
  node_hive["Hive Backdrop<br/>[HiveBackground.jsx]"]
  node_task_types["Task Rules<br/>[types.js]"]
  node_notifications["Notifications"]
  node_button["Button UI<br/>[button.jsx]"]
end

subgraph group_data["Task Data"]
  node_task_context["Task State"]
  node_api["Task API Adapter<br/>[api.js]"]
  node_sheet_mapper["Sheet Mapper<br/>[sheet-mapper.js]"]
  node_browser_store[("Browser Storage")]
end

node_user(("Planner User"))

node_user -->|"opens"| node_portfolio
node_portfolio -->|"routes to"| node_auth_ui
node_portfolio -->|"guards routes"| node_private_route
node_portfolio -->|"routes to"| node_home
node_portfolio -->|"routes to"| node_project
node_auth_ui -->|"authenticates"| node_auth_context
node_auth_ui -->|"renders in"| node_auth_shell
node_private_route -->|"checks session"| node_auth_context
node_app -->|"renders"| node_portfolio
node_app -->|"provides"| node_auth_context
node_app -->|"provides"| node_task_context
node_app -->|"provides"| node_notifications
node_home -->|"renders"| node_hobby
node_auth_shell -->|"renders"| node_hive
node_calendar -->|"reads and updates"| node_task_context
node_timeline -->|"reads and updates"| node_task_context
node_list -->|"reads and updates"| node_task_context
node_hobby -->|"reads and updates"| node_task_context
node_project -->|"reads and updates"| node_task_context
node_calendar -->|"renders"| node_hive
node_timeline -->|"renders"| node_hive
node_list -->|"renders"| node_hive
node_hobby -->|"uses"| node_task_form
node_project -->|"uses"| node_task_form
node_timeline -->|"uses"| node_task_form
node_task_form -->|"validates overlap"| node_task_types
node_task_context -->|"fetches and syncs"| node_api
node_task_context -->|"reports sync"| node_notifications
node_api -->|"maps sheet data"| node_sheet_mapper
node_task_context -->|"caches tasks"| node_browser_store
node_auth_context -->|"stores session and users"| node_browser_store
node_calendar -->|"uses"| node_button
node_task_form -->|"uses"| node_button

click node_app "https://github.com/ashserrao/react-task-planner/blob/main/src/App.js"
click node_portfolio "https://github.com/ashserrao/react-task-planner/blob/main/src/portfolio.jsx"
click node_home "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/home.jsx"
click node_auth_ui "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/login-form.jsx"
click node_auth_context "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/AuthContext.jsx"
click node_private_route "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/PrivateRoute.jsx"
click node_auth_shell "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/auth-shell.jsx"
click node_hive "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/HiveBackground.jsx"
click node_calendar "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/calendarview.jsx"
click node_timeline "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/timeline.jsx"
click node_list "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/listview.jsx"
click node_hobby "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/hobbytracker.jsx"
click node_project "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/projecttracker.jsx"
click node_task_form "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/ui/task-form-dialog.jsx"
click node_task_types "https://github.com/ashserrao/react-task-planner/blob/main/src/lib/types.js"
click node_task_context "https://github.com/ashserrao/react-task-planner/blob/main/src/lib/time-tracking-context.js"
click node_api "https://github.com/ashserrao/react-task-planner/blob/main/src/lib/api.js"
click node_sheet_mapper "https://github.com/ashserrao/react-task-planner/blob/main/src/lib/sheet-mapper.js"
click node_notifications "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/ui/notification-service.jsx"
click node_button "https://github.com/ashserrao/react-task-planner/blob/main/src/Components/ui/button.jsx"

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_app,node_portfolio,node_home,node_user toneBlue
class node_auth_ui,node_auth_context,node_private_route,node_auth_shell toneAmber
class node_calendar,node_timeline,node_list,node_hobby,node_project,node_task_form toneMint
class node_hive,node_task_types,node_notifications,node_button toneRose
class node_task_context,node_api,node_sheet_mapper,node_browser_store toneIndigo
```

## Components

### Application Shell

- [App Providers](https://github.com/ashserrao/react-task-planner/blob/main/src/App.js): `src/App.js`
- [Portfolio Routes](https://github.com/ashserrao/react-task-planner/blob/main/src/portfolio.jsx): `src/portfolio.jsx`
- [Home View](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/home.jsx): `src/Components/home.jsx`

### Authentication

- [Login and Signup](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/login-form.jsx): `src/Components/authentication/login-form.jsx`
- [Auth Session](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/AuthContext.jsx): `src/Components/authentication/AuthContext.jsx`
- [Private Route](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/PrivateRoute.jsx): `src/Components/authentication/PrivateRoute.jsx`
- [Auth Shell](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/authentication/auth-shell.jsx): `src/Components/authentication/auth-shell.jsx`

### Task Planning

- [Calendar View](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/calendarview.jsx): `src/Components/calendarview.jsx`
- [Timeline View](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/timeline.jsx): `src/Components/timeline.jsx`
- [List View](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/listview.jsx): `src/Components/listview.jsx`
- [Hobby Tracker](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/hobbytracker.jsx): `src/Components/hobbytracker.jsx`
- [Project Tracker](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/projecttracker.jsx): `src/Components/projecttracker.jsx`
- [Task Form](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/ui/task-form-dialog.jsx): `src/Components/ui/task-form-dialog.jsx`

### Shared Services

- [Hive Backdrop](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/HiveBackground.jsx): `src/Components/HiveBackground.jsx`
- [Task Rules](https://github.com/ashserrao/react-task-planner/blob/main/src/lib/types.js): `src/lib/types.js`
- [Notifications](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/ui/notification-service.jsx): `src/Components/ui/notification-service.jsx`
- [Button UI](https://github.com/ashserrao/react-task-planner/blob/main/src/Components/ui/button.jsx): `src/Components/ui/button.jsx`

### Task Data

- [Task State](https://github.com/ashserrao/react-task-planner/blob/main/src/lib/time-tracking-context.js): `src/lib/time-tracking-context.js`
- [Task API Adapter](https://github.com/ashserrao/react-task-planner/blob/main/src/lib/api.js): `src/lib/api.js`
- [Sheet Mapper](https://github.com/ashserrao/react-task-planner/blob/main/src/lib/sheet-mapper.js): `src/lib/sheet-mapper.js`
- **Browser Storage**

### Other components

- **Planner User**

## Connections

- Planner User → Portfolio Routes: opens (evidence: `src/portfolio.jsx`)
- Portfolio Routes → Login and Signup: routes to (evidence: `src/portfolio.jsx`)
- Portfolio Routes → Private Route: guards routes (evidence: `src/portfolio.jsx`)
- Portfolio Routes → Home View: routes to (evidence: `src/portfolio.jsx`)
- Portfolio Routes → Project Tracker: routes to (evidence: `src/portfolio.jsx`)
- Login and Signup → Auth Session: authenticates (evidence: `src/Components/authentication/login-form.jsx`)
- Login and Signup → Auth Shell: renders in (evidence: `src/Components/authentication/login.jsx`)
- Private Route → Auth Session: checks session (evidence: `src/Components/authentication/PrivateRoute.jsx`)
- App Providers → Portfolio Routes: renders (evidence: `src/App.js`)
- App Providers → Auth Session: provides (evidence: `src/App.js`)
- App Providers → Task State: provides (evidence: `src/App.js`)
- App Providers → Notifications: provides (evidence: `src/App.js`)
- Home View → Hobby Tracker: renders (evidence: `src/Components/home.jsx`)
- Auth Shell → Hive Backdrop: renders (evidence: `src/Components/authentication/auth-shell.jsx`)
- Calendar View → Task State: reads and updates (evidence: `src/Components/calendarview.jsx`)
- Timeline View → Task State: reads and updates (evidence: `src/Components/timeline.jsx`)
- List View → Task State: reads and updates (evidence: `src/Components/listview.jsx`)
- Hobby Tracker → Task State: reads and updates (evidence: `src/Components/hobbytracker.jsx`)
- Project Tracker → Task State: reads and updates (evidence: `src/Components/projecttracker.jsx`)
- Calendar View → Hive Backdrop: renders (evidence: `src/Components/calendarview.jsx`)
- Timeline View → Hive Backdrop: renders (evidence: `src/Components/timeline.jsx`)
- List View → Hive Backdrop: renders (evidence: `src/Components/listview.jsx`)
- Hobby Tracker → Task Form: uses (evidence: `src/Components/hobbytracker.jsx`)
- Project Tracker → Task Form: uses (evidence: `src/Components/projecttracker.jsx`)
- Timeline View → Task Form: uses (evidence: `src/Components/timeline.jsx`)
- Task Form → Task Rules: validates overlap (evidence: `src/Components/ui/task-form-dialog.jsx`)
- Task State → Task API Adapter: fetches and syncs (evidence: `src/lib/time-tracking-context.js`)
- Task State → Notifications: reports sync (evidence: `src/lib/time-tracking-context.js`)
- Task API Adapter → Sheet Mapper: maps sheet data (evidence: `src/lib/api.js`)
- Task State → Browser Storage: caches tasks (evidence: `src/lib/time-tracking-context.js`)
- Auth Session → Browser Storage: stores session and users (evidence: `src/Components/authentication/AuthContext.jsx`)
- Calendar View → Button UI: uses (evidence: `src/Components/calendarview.jsx`)
- Task Form → Button UI: uses (evidence: `src/Components/ui/task-form-dialog.jsx`)
