# garretttf3/cs193-final-project---workout-tracker architecture

> Architecture diagram of the GitHub repository garretttf3/cs193-final-project---workout-tracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/garretttf3/cs193-final-project---workout-tracker
- Repository: https://github.com/garretttf3/cs193-final-project---workout-tracker

## Overview

This is a small Java command-line workout tracker. The implemented workflow is: a user selects an option in Main, enters workout details that Main validates by constructing a Workout, and can view the in-memory workout list. The README describes CSV saving/loading and progress, statistics, routines, and goals as plans, not implemented behavior. The sampled source shows no file persistence or roadmap features, so those are marked as planned and their links are unverified.

Main entry points: [`src/Main.java`](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/src/Main.java) (Menu and workflow), [`README.md`](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/README.md) (CSV persistence), [`src/Workout.java`](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/src/Workout.java) (Workout record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command-line app"]
  node_main["Menu and workflow<br/>[Main.java]"]
end

subgraph group_domain["Workout domain"]
  node_workout["Workout record<br/>[Workout.java]"]
end

subgraph group_planned["Planned capabilities"]
  node_csv[("CSV persistence<br/>[README.md]")]
  node_history["History loading<br/>[README.md]"]
  node_roadmap["Progress, stats, routines, goals<br/>[README.md]"]
end

node_user(("User"))

node_user -->|"chooses and enters"| node_main
node_main -->|"constructs and validates"| node_workout
node_main -.->|"planned save"| node_csv
node_csv -.->|"planned load"| node_history
node_main -.->|"planned features"| node_roadmap

click node_main "https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/src/Main.java"
click node_workout "https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/src/Workout.java"
click node_csv "https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/README.md"
click node_history "https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/README.md"
click node_roadmap "https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/README.md"

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_user toneBlue
class node_workout toneAmber
class node_csv,node_history,node_roadmap toneMint
```

## Components

### Command-line app

- [Menu and workflow](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/src/Main.java): `src/Main.java`

### Workout domain

- [Workout record](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/src/Workout.java): `src/Workout.java`

### Planned capabilities

- [CSV persistence](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/README.md): `README.md`
- [History loading](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/README.md): `README.md`
- [Progress, stats, routines, goals](https://github.com/garretttf3/cs193-final-project---workout-tracker/blob/main/README.md): `README.md`

### Other components

- **User**

## Connections

- User → Menu and workflow: chooses and enters (evidence: `src/Main.java`)
- Menu and workflow → Workout record: constructs and validates (evidence: `src/Main.java`)
- Menu and workflow → CSV persistence: planned save (evidence: `README.md`)
- CSV persistence → History loading: planned load (evidence: `README.md`)
- Menu and workflow → Progress, stats, routines, goals: planned features (evidence: `README.md`)
