How mrsltycrml/adapt-x works
ADAPT-X is a browser-based intersection operations console prototype. Operators sign in, then use the routed dashboard to monitor intersections and traffic signals, review and adjudicate violation events, inspect offender records, build reports, and adjust settings. The app uses sample records and client-side demo state rather than an API or database; selected preferences and actions persist in browser storage. The README documents product capabilities beyond the sampled page excerpts, so those are represented at their page paths without assuming unsampled implementation details.
Main entry points: DashboardLayout.jsx Dashboard layout · App.jsx Routing and auth · demoStore.js Demo state access · demoData.js Sample records
Components 14
Application shell
- App entry
src/main.jsx - Routing and auth
src/App.jsx - Sign-in and recovery
src/pages/LoginPage.jsx - Dashboard layout
src/components/DashboardLayout.jsx
Traffic operations
- Operator overview
src/pages/OperatorOverviewPage.jsx - Intersection signals
src/pages/TrafficLightsPage.jsx
Violation adjudication
- Violation review
src/pages/ViolationsPage.jsx - Offender profiles
src/pages/ViolatorsPage.jsx
Reports and records
- Report builder
src/pages/ReportsPage.jsx - Settings and privacy
src/pages/SettingsPageReference.jsx
Demo data and preferences
- Sample records
src/data/demoData.js - Demo state access
src/data/demoStore.js - Browser storage
Other components
- Operator
Connections 27
- Operator → Sign-in and recovery: signs in
- App entry → Routing and auth: renders
- Routing and auth → Sign-in and recovery: shows when unauthenticated
- Sign-in and recovery → Routing and auth: submits login
- Routing and auth → Browser storage: reads and writes auth
- Routing and auth → Dashboard layout: mounts routes
- Operator → Dashboard layout: uses workspace
- Dashboard layout → Operator overview: routes to
- Dashboard layout → Intersection signals: routes to
- Dashboard layout → Violation review: routes to
- Dashboard layout → Offender profiles: routes to
- Dashboard layout → Report builder: routes to
- Dashboard layout → Settings and privacy: routes to
- Operator overview → Sample records: displays demo metrics
- Intersection signals → Sample records: loads intersections
- Intersection signals → Demo state access: reads assignments
- Violation review → Sample records: uses demo events
- Offender profiles → Sample records: uses demo roster
- Report builder → Sample records: uses report defaults
- Report builder → Demo state access: reads and writes reports
- Settings and privacy → Demo state access: reads and writes preferences
- Dashboard layout → Demo state access: loads notifications and account
- Demo state access → Browser storage: persists demo state
- Operator → Operator overview: monitors operations
- Operator → Violation review: reviews events
- Operator → Report builder: builds reports
- Operator → Settings and privacy: adjusts preferences