# robert-t-t/csc-308- architecture

> Architecture diagram of the GitHub repository robert-t-t/csc-308-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/robert-t-t/csc-308-
- Repository: https://github.com/robert-t-t/csc-308-

## Overview

This is a small React frontend for maintaining an in-memory list of people with names and jobs. The browser loads the React entry point, which mounts the app; the app owns list state and coordinates adding entries through the form and deleting them through the table. No backend or persistent storage is shown. The graph is limited to relationships visible in the sampled source.

Main entry points: [`packages/react-frontend/src/MyApp.jsx`](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/MyApp.jsx) (List state), [`packages/react-frontend/src/main.jsx`](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/main.jsx) (React entry), [`packages/react-frontend/src/Form.jsx`](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/Form.jsx) (Person form), [`packages/react-frontend/src/Table.jsx`](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/Table.jsx) (People table)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React frontend"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["List state<br/>[MyApp.jsx]"]
  node_form["Person form<br/>[Form.jsx]"]
  node_table["People table<br/>[Table.jsx]"]
end

node_browser(("Browser user"))

node_browser -->|"opens app"| node_entry
node_entry -->|"mounts"| node_app
node_app -->|"renders list"| node_table
node_app -->|"renders form"| node_form
node_form -->|"submits person"| node_app
node_table -->|"requests deletion"| node_app

click node_entry "https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/main.jsx"
click node_app "https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/MyApp.jsx"
click node_form "https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/Form.jsx"
click node_table "https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/Table.jsx"

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_entry,node_app,node_form,node_table,node_browser toneBlue
```

## Components

### React frontend

- [React entry](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/main.jsx): `packages/react-frontend/src/main.jsx`
- [List state](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/MyApp.jsx): `packages/react-frontend/src/MyApp.jsx`
- [Person form](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/Form.jsx): `packages/react-frontend/src/Form.jsx`
- [People table](https://github.com/robert-t-t/csc-308-/blob/main/packages/react-frontend/src/Table.jsx): `packages/react-frontend/src/Table.jsx`

### Other components

- **Browser user**

## Connections

- Browser user → React entry: opens app (evidence: `packages/react-frontend/src/main.jsx`)
- React entry → List state: mounts (evidence: `packages/react-frontend/src/main.jsx`)
- List state → People table: renders list (evidence: `packages/react-frontend/src/MyApp.jsx`)
- List state → Person form: renders form (evidence: `packages/react-frontend/src/MyApp.jsx`)
- Person form → List state: submits person (evidence: `packages/react-frontend/src/MyApp.jsx`)
- People table → List state: requests deletion (evidence: `packages/react-frontend/src/MyApp.jsx`)
