# thomasnxs/fill-todo architecture

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

- Interactive diagram: https://gitdiagram.com/thomasnxs/fill-todo
- Repository: https://github.com/thomasnxs/fill-todo

## Overview

Fill ToDo is a browser-only task manager. The user opens the page, creates a task with an optional due date, views tasks and relative timing, toggles completion and filters completed items; task and preference state persist in localStorage. The graph follows the documented UI flow and sampled calls. Styling and type definitions support the interface and data model; unsampled implementation details are represented only where README capabilities and indexed references support them.

Main entry points: [`src/components/todo/TodoApp.tsx`](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoApp.tsx) (Task controller), [`src/components/todo/TodoGrid.tsx`](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoGrid.tsx) (Task grid), [`src/types/todo.ts`](https://github.com/thomasnxs/fill-todo/blob/main/src/types/todo.ts) (Task model), [`src/components/todo/TodoFooter.tsx`](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoFooter.tsx) (Task controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_home["Home page<br/>[page.tsx]"]
  node_client["Client loader"]
end

subgraph group_taskui["Task interface"]
  node_header["Theme header<br/>[TodoHeader.tsx]"]
  node_grid["Task grid<br/>[TodoGrid.tsx]"]
  node_card["Task card<br/>[TodoCard.tsx]"]
  node_input["Task editor<br/>[TodoInputCard.tsx]"]
  node_footer["Task controls<br/>[TodoFooter.tsx]"]
  node_button["Action button<br/>[Button.tsx]"]
  node_toggle["Done filter<br/>[Toggle.tsx]"]
end

subgraph group_state["Task state"]
  node_app["Task controller<br/>[TodoApp.tsx]"]
  node_storage[("Browser persistence<br/>[storage.ts]")]
  node_todo["Task model<br/>[todo.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_client
node_client -->|"loads"| node_app
node_app -->|"loads and saves"| node_storage
node_app -->|"renders"| node_header
node_app -->|"renders"| node_grid
node_app -->|"renders"| node_footer
node_grid -->|"renders"| node_card
node_grid -->|"renders"| node_input
node_footer -->|"uses"| node_button
node_footer -->|"uses"| node_toggle
node_app -->|"uses"| node_todo
node_card -->|"displays"| node_todo
node_grid -->|"lists"| node_todo
node_storage -->|"normalizes"| node_todo

click node_home "https://github.com/thomasnxs/fill-todo/blob/main/src/app/page.tsx"
click node_client "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoAppClientOnly.tsx"
click node_app "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoApp.tsx"
click node_header "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoHeader.tsx"
click node_grid "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoGrid.tsx"
click node_card "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoCard.tsx"
click node_input "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoInputCard.tsx"
click node_footer "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoFooter.tsx"
click node_button "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/Button.tsx"
click node_toggle "https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/Toggle.tsx"
click node_storage "https://github.com/thomasnxs/fill-todo/blob/main/src/lib/storage.ts"
click node_todo "https://github.com/thomasnxs/fill-todo/blob/main/src/types/todo.ts"

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_home,node_client toneBlue
class node_header,node_grid,node_card,node_input,node_footer,node_button,node_toggle toneAmber
class node_app,node_storage,node_todo toneMint
class node_visitor toneIndigo
```

## Components

### Web entry

- [Home page](https://github.com/thomasnxs/fill-todo/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Client loader](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoAppClientOnly.tsx): `src/components/todo/TodoAppClientOnly.tsx`

### Task interface

- [Theme header](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoHeader.tsx): `src/components/todo/TodoHeader.tsx`
- [Task grid](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoGrid.tsx): `src/components/todo/TodoGrid.tsx`
- [Task card](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoCard.tsx): `src/components/todo/TodoCard.tsx`
- [Task editor](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoInputCard.tsx): `src/components/todo/TodoInputCard.tsx`
- [Task controls](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoFooter.tsx): `src/components/todo/TodoFooter.tsx`
- [Action button](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/Button.tsx): `src/components/todo/Button.tsx`
- [Done filter](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/Toggle.tsx): `src/components/todo/Toggle.tsx`

### Task state

- [Task controller](https://github.com/thomasnxs/fill-todo/blob/main/src/components/todo/TodoApp.tsx): `src/components/todo/TodoApp.tsx`
- [Browser persistence](https://github.com/thomasnxs/fill-todo/blob/main/src/lib/storage.ts): `src/lib/storage.ts`
- [Task model](https://github.com/thomasnxs/fill-todo/blob/main/src/types/todo.ts): `src/types/todo.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens (evidence: `src/app/page.tsx`)
- Home page → Client loader: renders (evidence: `src/app/page.tsx`)
- Client loader → Task controller: loads (evidence: `src/components/todo/TodoAppClientOnly.tsx`)
- Task controller → Browser persistence: loads and saves (evidence: `src/components/todo/TodoApp.tsx`)
- Task controller → Theme header: renders (evidence: `src/components/todo/TodoApp.tsx`)
- Task controller → Task grid: renders (evidence: `src/components/todo/TodoApp.tsx`)
- Task controller → Task controls: renders (evidence: `src/components/todo/TodoApp.tsx`)
- Task grid → Task card: renders (evidence: `src/components/todo/TodoGrid.tsx`)
- Task grid → Task editor: renders (evidence: `src/components/todo/TodoGrid.tsx`)
- Task controls → Action button: uses (evidence: `src/components/todo/TodoFooter.tsx`)
- Task controls → Done filter: uses (evidence: `src/components/todo/TodoFooter.tsx`)
- Task controller → Task model: uses (evidence: `src/components/todo/TodoApp.tsx`)
- Task card → Task model: displays (evidence: `src/components/todo/TodoCard.tsx`)
- Task grid → Task model: lists (evidence: `src/components/todo/TodoGrid.tsx`)
- Browser persistence → Task model: normalizes (evidence: `src/lib/storage.ts`)
