# advieirabr/todo-vue-js architecture

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

- Interactive diagram: https://gitdiagram.com/advieirabr/todo-vue-js
- Repository: https://github.com/advieirabr/todo-vue-js

## Overview

This is a small Vue 2 task-list application. The user adds tasks, changes their pending/done state or deletes them; the root component owns the task collection, computes completion progress, and persists the collection in browser localStorage. The UI is split into task entry, task-grid/item display, and progress display. The excerpts show these component and storage relationships; no backend or other product capabilities are documented.

Main entry points: [`src/App.vue`](https://github.com/advieirabr/todo-vue-js/blob/master/src/App.vue) (Task state), [`src/components/TaskGrid.vue`](https://github.com/advieirabr/todo-vue-js/blob/master/src/components/TaskGrid.vue) (Task grid), [`src/components/NewTask.vue`](https://github.com/advieirabr/todo-vue-js/blob/master/src/components/NewTask.vue) (Task entry), [`src/components/Task.vue`](https://github.com/advieirabr/todo-vue-js/blob/master/src/components/Task.vue) (Task item)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application state"]
  node_root["Task state<br/>[App.vue]"]
end

subgraph group_ui["Task interface"]
  node_entry["Task entry<br/>[NewTask.vue]"]
  node_grid["Task grid<br/>[TaskGrid.vue]"]
  node_item["Task item<br/>[Task.vue]"]
  node_progress["Progress display<br/>[TasksProgress.vue]"]
end

subgraph group_runtime["Vue runtime"]
  node_vueapp["Vue mount<br/>[main.js]"]
end

node_user(("User"))
node_storage[("Browser storage")]

node_user -->|"enters task"| node_entry
node_entry -->|"emits task"| node_root
node_root -->|"passes tasks"| node_grid
node_root -->|"passes progress"| node_progress
node_grid -->|"renders items"| node_item
node_item -->|"emits changes"| node_grid
node_grid -->|"forwards changes"| node_root
node_root -->|"reads tasks"| node_storage
node_root -->|"writes tasks"| node_storage
node_vueapp -->|"mounts app"| node_root

click node_entry "https://github.com/advieirabr/todo-vue-js/blob/master/src/components/NewTask.vue"
click node_root "https://github.com/advieirabr/todo-vue-js/blob/master/src/App.vue"
click node_grid "https://github.com/advieirabr/todo-vue-js/blob/master/src/components/TaskGrid.vue"
click node_item "https://github.com/advieirabr/todo-vue-js/blob/master/src/components/Task.vue"
click node_progress "https://github.com/advieirabr/todo-vue-js/blob/master/src/components/TasksProgress.vue"
click node_vueapp "https://github.com/advieirabr/todo-vue-js/blob/master/src/main.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_root,node_user toneBlue
class node_entry,node_grid,node_item,node_progress,node_storage toneAmber
class node_vueapp toneMint
```

## Components

### Application state

- [Task state](https://github.com/advieirabr/todo-vue-js/blob/master/src/App.vue): `src/App.vue`

### Task interface

- [Task entry](https://github.com/advieirabr/todo-vue-js/blob/master/src/components/NewTask.vue): `src/components/NewTask.vue`
- [Task grid](https://github.com/advieirabr/todo-vue-js/blob/master/src/components/TaskGrid.vue): `src/components/TaskGrid.vue`
- [Task item](https://github.com/advieirabr/todo-vue-js/blob/master/src/components/Task.vue): `src/components/Task.vue`
- [Progress display](https://github.com/advieirabr/todo-vue-js/blob/master/src/components/TasksProgress.vue): `src/components/TasksProgress.vue`

### Vue runtime

- [Vue mount](https://github.com/advieirabr/todo-vue-js/blob/master/src/main.js): `src/main.js`

### Other components

- **User**
- **Browser storage**

## Connections

- User → Task entry: enters task (evidence: `src/components/NewTask.vue`)
- Task entry → Task state: emits task (evidence: `src/App.vue`)
- Task state → Task grid: passes tasks (evidence: `src/App.vue`)
- Task state → Progress display: passes progress (evidence: `src/App.vue`)
- Task grid → Task item: renders items (evidence: `src/components/TaskGrid.vue`)
- Task item → Task grid: emits changes (evidence: `src/components/TaskGrid.vue`)
- Task grid → Task state: forwards changes (evidence: `src/App.vue`)
- Task state → Browser storage: reads tasks (evidence: `src/App.vue`)
- Task state → Browser storage: writes tasks (evidence: `src/App.vue`)
- Vue mount → Task state: mounts app (evidence: `src/main.js`)
