How brodymclemore/random-date-night works
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: App.jsx Picker state and flow · EditOptionsDialog.jsx Edit dialog · main.jsx React entry · EditOptionsTree.jsx Nested option editor
Components 8
Picker runtime
- React entry
src/main.jsx - Picker state and flow
src/App.jsx - Initial options
src/data.json - Roulette wheel
Option editing
- Edit dialog
src/EditOptionsDialog.jsx - Nested option editor
src/EditOptionsTree.jsx
Selection display
- Selected path display
src/SelectionTree.jsx
Other components
- User
Connections 10
- User → React entry: opens app
src/main.jsx - React entry → Picker state and flow: renders
src/main.jsx - Picker state and flow → Initial options: loads options
src/App.jsx - Picker state and flow → Roulette wheel: renders and controls
src/App.jsx - Roulette wheel → Picker state and flow: reports spin completion
src/App.jsx - Picker state and flow → Selected path display: passes selections
src/App.jsx - Picker state and flow → Edit dialog: opens and passes options
src/App.jsx - Edit dialog → Nested option editor: renders editor
src/EditOptionsDialog.jsx - Nested option editor → Edit dialog: reports edits and validation
src/EditOptionsDialog.jsx - Edit dialog → Picker state and flow: saves options
src/App.jsx