# fawn-edu/cs2450-todo architecture

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

- Interactive diagram: https://gitdiagram.com/fawn-edu/cs2450-todo
- Repository: https://github.com/fawn-edu/cs2450-todo

## Overview

Task Manager is a desktop todo-list application. At startup, `main` reads `todo.txt` and parses its task records, then constructs the controller and runs the FLTK interface. Users can view all, incomplete, or completed tasks and create, edit, complete/reopen, or delete them; UI actions are represented by commands that update the controller’s in-memory task list. On exit, `main` writes the tasks back to `todo.txt`. The README offers little architectural detail, so this map follows the sampled implementation and does not infer unsampled features.

Main entry points: [`src/main.cpp`](https://github.com/fawn-edu/cs2450-todo/blob/main/src/main.cpp) (Application entry), [`src/task_view.cpp`](https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_view.cpp) (Task view), [`src/task_controller.cpp`](https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_controller.cpp) (Task controller), [`src/task_command.hpp`](https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_command.hpp) (Task commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application and storage"]
  node_main["Application entry<br/>[main.cpp]"]
  node_todo["todo.txt"]
end

subgraph group_ui["Desktop interface"]
  node_view["Task view<br/>[task_view.cpp]"]
  node_commands["Task commands<br/>[task_command.hpp]"]
end

subgraph group_domain["Task domain"]
  node_controller["Task controller"]
  node_task["Task model<br/>[task.cpp]"]
end

node_user(("User"))

node_user -->|"uses"| node_view
node_main -->|"reads"| node_todo
node_main -->|"parses"| node_task
node_main -->|"constructs"| node_controller
node_main -->|"runs"| node_view
node_view -->|"queries"| node_controller
node_view -->|"dispatches"| node_commands
node_commands -->|"executes on"| node_controller
node_controller -->|"mutates"| node_task
node_main -->|"writes"| node_todo

click node_main "https://github.com/fawn-edu/cs2450-todo/blob/main/src/main.cpp"
click node_view "https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_view.cpp"
click node_commands "https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_command.hpp"
click node_controller "https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_controller.cpp"
click node_task "https://github.com/fawn-edu/cs2450-todo/blob/main/src/task.cpp"

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_main,node_todo,node_user toneBlue
class node_view,node_commands toneAmber
class node_controller,node_task toneMint
```

## Components

### Application and storage

- [Application entry](https://github.com/fawn-edu/cs2450-todo/blob/main/src/main.cpp): `src/main.cpp`
- **todo.txt**

### Desktop interface

- [Task view](https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_view.cpp): `src/task_view.cpp`
- [Task commands](https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_command.hpp): `src/task_command.hpp`

### Task domain

- [Task controller](https://github.com/fawn-edu/cs2450-todo/blob/main/src/task_controller.cpp): `src/task_controller.cpp`
- [Task model](https://github.com/fawn-edu/cs2450-todo/blob/main/src/task.cpp): `src/task.cpp`

### Other components

- **User**

## Connections

- User → Task view: uses (evidence: `src/task_view.cpp`)
- Application entry → todo.txt: reads (evidence: `src/main.cpp`)
- Application entry → Task model: parses (evidence: `src/main.cpp`)
- Application entry → Task controller: constructs (evidence: `src/main.cpp`)
- Application entry → Task view: runs (evidence: `src/main.cpp`)
- Task view → Task controller: queries (evidence: `src/task_view.cpp`)
- Task view → Task commands: dispatches (evidence: `src/task_view.cpp`)
- Task commands → Task controller: executes on (evidence: `src/task_command.hpp`)
- Task controller → Task model: mutates (evidence: `src/task_controller.cpp`)
- Application entry → todo.txt: writes (evidence: `src/main.cpp`)
