How mixro/tang-submeter-project-tracker works
This is a passcode-gated React tracker for the Digitalized Electrical Meter System project. A visitor submits a passcode, the app checks and persists authentication, then routes authenticated users to a progress overview and phase details. The overview presents progress computed from the eight phase records; phase cards link to detail pages. Theme state is separately persisted in browser storage. The README documents project milestones and capabilities; payment, meter, QA, and rollout are tracked phases, not implemented integrations in this repository. Connections reflect excerpts, the source index, or README statements.
Main entry points: App.tsx Routes and Providers · Home.tsx Progress Overview · Login.tsx Passcode Login · icons.tsx SVG Icons
Components 16
App Runtime
- React Entry
src/main.tsx - Routes and Providers
src/App.tsx - Protected Layout
src/components/Layout.tsx - SVG Icons
src/components/icons.tsx - Footer
src/components/Footer.tsx
Access and Preferences
- Authentication State
src/context/AuthContext.tsx - Passcode Login
src/pages/Login.tsx - Theme State
src/context/ThemeContext.tsx - Theme Toggle
src/components/ThemeToggle.tsx
Progress Tracker
- Progress Overview
src/pages/Home.tsx - Phase Records
src/data/phases.ts - Progress Bar
src/components/ProgressBar.tsx - Phase Card
src/components/PhaseCard.tsx - Phase Details
src/pages/PhaseDetail.tsx
Other components
- Visitor
- Browser Storage
Connections 25
- Visitor → Passcode Login: submits passcode
src/pages/Login.tsx - React Entry → Routes and Providers: renders
src/main.tsx - Routes and Providers → Authentication State: provides auth
src/App.tsx - Routes and Providers → Theme State: provides theme
src/App.tsx - Routes and Providers → Passcode Login: routes to
src/App.tsx - Routes and Providers → Progress Overview: routes to
src/App.tsx - Routes and Providers → Phase Details: routes to
src/App.tsx - Passcode Login → Authentication State: checks passcode
src/pages/Login.tsx - Authentication State → Browser Storage: persists auth
src/context/AuthContext.tsx - Theme State → Browser Storage: persists theme
src/context/ThemeContext.tsx - Passcode Login → Theme Toggle: renders
src/pages/Login.tsx - Theme Toggle → Theme State: toggles theme
src/components/ThemeToggle.tsx - Protected Layout → Theme Toggle: renders
src/components/Layout.tsx - Protected Layout → Footer: renders
src/components/Layout.tsx - Progress Overview → Phase Records: reads phases
src/pages/Home.tsx - Progress Overview → Progress Bar: renders progress
src/pages/Home.tsx - Progress Overview → Phase Card: renders cards
src/pages/Home.tsx - Phase Card → Phase Records: uses phase type
src/components/PhaseCard.tsx - Phase Card → Phase Details: links to
src/components/PhaseCard.tsx - Phase Details → Phase Records: finds phase
src/pages/PhaseDetail.tsx - Passcode Login → SVG Icons: uses icons
src/pages/Login.tsx - Progress Overview → SVG Icons: uses icons
src/pages/Home.tsx - Phase Card → SVG Icons: uses icons
src/components/PhaseCard.tsx - Phase Details → SVG Icons: uses icons
src/pages/PhaseDetail.tsx - Theme Toggle → SVG Icons: uses icons
src/components/ThemeToggle.tsx