# brodymclemore/random-date-night architecture

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

- Interactive diagram: https://gitdiagram.com/brodymclemore/random-date-night
- Repository: https://github.com/brodymclemore/random-date-night

## Overview

Date Night Idea Picker is a small React app for choosing a date-night idea through a hierarchy of options. The user spins a roulette wheel to select each level, sees the accumulated choices, and can reset or edit the option tree. The editor supports nested options and validates empty or duplicate names before saving changes back to the picker. The graph reflects the sampled component calls and data flow; it does not imply persistence beyond the app’s in-memory state.

Main entry points: [`src/App.jsx`](https://github.com/brodymclemore/random-date-night/blob/main/src/App.jsx) (Picker state and flow), [`src/EditOptionsDialog.jsx`](https://github.com/brodymclemore/random-date-night/blob/main/src/EditOptionsDialog.jsx) (Edit dialog), [`src/main.jsx`](https://github.com/brodymclemore/random-date-night/blob/main/src/main.jsx) (React entry), [`src/EditOptionsTree.jsx`](https://github.com/brodymclemore/random-date-night/blob/main/src/EditOptionsTree.jsx) (Nested option editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Picker runtime"]
  node_entry["React entry<br/>[main.jsx]"]
  node_picker["Picker state and flow<br/>[App.jsx]"]
  node_initial["Initial options<br/>[data.json]"]
  node_wheel["Roulette wheel"]
end

subgraph group_editing["Option editing"]
  node_edit_dialog["Edit dialog"]
  node_edit_tree["Nested option editor"]
end

subgraph group_selection["Selection display"]
  node_selection_tree["Selected path display<br/>[SelectionTree.jsx]"]
end

node_user(("User"))

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_picker
node_picker -->|"loads options"| node_initial
node_picker -->|"renders and controls"| node_wheel
node_wheel -->|"reports spin completion"| node_picker
node_picker -->|"passes selections"| node_selection_tree
node_picker -->|"opens and passes options"| node_edit_dialog
node_edit_dialog -->|"renders editor"| node_edit_tree
node_edit_tree -->|"reports edits and validation"| node_edit_dialog
node_edit_dialog -->|"saves options"| node_picker

click node_entry "https://github.com/brodymclemore/random-date-night/blob/main/src/main.jsx"
click node_picker "https://github.com/brodymclemore/random-date-night/blob/main/src/App.jsx"
click node_initial "https://github.com/brodymclemore/random-date-night/blob/main/src/data.json"
click node_edit_dialog "https://github.com/brodymclemore/random-date-night/blob/main/src/EditOptionsDialog.jsx"
click node_edit_tree "https://github.com/brodymclemore/random-date-night/blob/main/src/EditOptionsTree.jsx"
click node_selection_tree "https://github.com/brodymclemore/random-date-night/blob/main/src/SelectionTree.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_picker,node_initial,node_wheel,node_user toneBlue
class node_edit_dialog,node_edit_tree toneAmber
class node_selection_tree toneMint
```

## Components

### Picker runtime

- [React entry](https://github.com/brodymclemore/random-date-night/blob/main/src/main.jsx): `src/main.jsx`
- [Picker state and flow](https://github.com/brodymclemore/random-date-night/blob/main/src/App.jsx): `src/App.jsx`
- [Initial options](https://github.com/brodymclemore/random-date-night/blob/main/src/data.json): `src/data.json`
- **Roulette wheel**

### Option editing

- [Edit dialog](https://github.com/brodymclemore/random-date-night/blob/main/src/EditOptionsDialog.jsx): `src/EditOptionsDialog.jsx`
- [Nested option editor](https://github.com/brodymclemore/random-date-night/blob/main/src/EditOptionsTree.jsx): `src/EditOptionsTree.jsx`

### Selection display

- [Selected path display](https://github.com/brodymclemore/random-date-night/blob/main/src/SelectionTree.jsx): `src/SelectionTree.jsx`

### Other components

- **User**

## Connections

- User → React entry: opens app (evidence: `src/main.jsx`)
- React entry → Picker state and flow: renders (evidence: `src/main.jsx`)
- Picker state and flow → Initial options: loads options (evidence: `src/App.jsx`)
- Picker state and flow → Roulette wheel: renders and controls (evidence: `src/App.jsx`)
- Roulette wheel → Picker state and flow: reports spin completion (evidence: `src/App.jsx`)
- Picker state and flow → Selected path display: passes selections (evidence: `src/App.jsx`)
- Picker state and flow → Edit dialog: opens and passes options (evidence: `src/App.jsx`)
- Edit dialog → Nested option editor: renders editor (evidence: `src/EditOptionsDialog.jsx`)
- Nested option editor → Edit dialog: reports edits and validation (evidence: `src/EditOptionsDialog.jsx`)
- Edit dialog → Picker state and flow: saves options (evidence: `src/App.jsx`)
