# zancy2222/todo-list architecture

> Architecture diagram of the GitHub repository zancy2222/todo-list, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zancy2222/todo-list
- Repository: https://github.com/zancy2222/todo-list

## Overview

This is a browser-based to-do list with task creation, editing, completion, deletion, filtering, search, and sorting, plus a yearly completion dashboard. The sampled JavaScript combines event handling, task state, and rendering in one file, so the graph separates those responsibilities without implying separate modules. The dashboard aggregates task history into monthly metrics and visualizations. Persistence is suggested by storage keys and task initialization, but the excerpts do not show the storage implementation or its read/write calls.

Main entry points: [`js/app.js`](https://github.com/zancy2222/todo-list/blob/main/js/app.js) (Task operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tasks["Task management"]
  node_page["To-do page<br/>[index.html]"]
  node_task_ops["Task operations<br/>[app.js]"]
  node_task_view["Task list view<br/>[app.js]"]
  node_task_store[("Browser task storage")]
end

subgraph group_insights["Progress dashboard"]
  node_dashboard["Yearly dashboard<br/>[app.js]"]
end

node_user(("User"))

node_user -->|"submits actions"| node_task_ops
node_task_ops -->|"filters and renders"| node_task_view
node_task_ops -->|"selects year"| node_dashboard
node_task_ops -.->|"loads tasks"| node_task_store

click node_page "https://github.com/zancy2222/todo-list/blob/main/index.html"
click node_task_ops "https://github.com/zancy2222/todo-list/blob/main/js/app.js"
click node_task_view "https://github.com/zancy2222/todo-list/blob/main/js/app.js"
click node_dashboard "https://github.com/zancy2222/todo-list/blob/main/js/app.js"

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_page,node_task_ops,node_task_view,node_task_store,node_user toneBlue
class node_dashboard toneAmber
```

## Components

### Task management

- [To-do page](https://github.com/zancy2222/todo-list/blob/main/index.html): `index.html`
- [Task operations](https://github.com/zancy2222/todo-list/blob/main/js/app.js): `js/app.js`
- [Task list view](https://github.com/zancy2222/todo-list/blob/main/js/app.js): `js/app.js`
- **Browser task storage**

### Progress dashboard

- [Yearly dashboard](https://github.com/zancy2222/todo-list/blob/main/js/app.js): `js/app.js`

### Other components

- **User**

## Connections

- User → Task operations: submits actions (evidence: `js/app.js`)
- Task operations → Task list view: filters and renders (evidence: `js/app.js`)
- Task operations → Yearly dashboard: selects year (evidence: `js/app.js`)
- Task operations → Browser task storage: loads tasks
