How anishp21/senior-powerpulse works
Senior PowerPulse is a privacy-focused outage check-in and disaster-triage app for residents, volunteers, and community officials. Residents register life-support needs and battery backup, then check in or request help; shared app state records cases for urgency-based volunteer response and official neighborhood oversight. The app also provides weather alerts, audit-log access, charging assistance, and offline/PWA support. The graph follows documented wiring from the app and context excerpts; unsampled features are represented only where the README or source index supports them.
Main entry points: AppContext.tsx Emergency coordination state · App.tsx Role-based app · ResidentView.tsx Resident dashboard · AuthContext.tsx Authentication
Components 23
App entry and identity
- Role-based app
src/App.tsx - Authentication
src/context/AuthContext.tsx - Sign-in
src/components/auth/LoginScreen.tsx - Account registration
src/components/auth/RegisterScreen.tsx
Resident safety workflow
- Resident dashboard
src/components/resident/ResidentView.tsx - Device onboarding
src/components/resident/OnboardingModal.tsx - Help and check-in
src/components/resident/HelpRequestModal.tsx - Charging help
src/components/resident/ChargingHelpModal.tsx - Privacy audit logs
src/components/resident/PrivacyLogsModal.tsx - Plain-language alerts
src/components/alerts/PlainLanguageAlertScreen.tsx
Community response
- Volunteer response desk
src/components/volunteer/VolunteerView.tsx - Official overview
src/components/official/OfficialView.tsx
Shared services and data
- Urgency scoring
src/lib/urgency.ts - Emergency coordination state
src/context/AppContext.tsx - Weather alerts and lookup
src/lib/weather.ts - Alert translations
src/data/translations.ts - Volunteer notifications
src/lib/notifications.ts - Database adapter
src/lib/neon.ts - Neon PostgreSQL
neon_schema.sql - Demo scenario data
src/data/mockData.ts - Offline cache
public/sw.js
Other components
- App user
- National Weather Service
Connections 30
- App user → Role-based app: uses
README.md - Role-based app → Authentication: provides auth
src/App.tsx - Role-based app → Sign-in: renders
src/App.tsx - Role-based app → Resident dashboard: routes role
src/App.tsx - Role-based app → Volunteer response desk: routes role
src/App.tsx - Role-based app → Official overview: routes role
src/App.tsx - Role-based app → Plain-language alerts: opens
src/App.tsx - Role-based app → Privacy audit logs: opens
src/App.tsx - Sign-in → Authentication: signs in
src/components/auth/LoginScreen.tsx - Account registration → Authentication: creates account
- Account registration → Device onboarding: collects resident data
- Resident dashboard → Device onboarding: opens setup
- Resident dashboard → Help and check-in: requests help
- Resident dashboard → Charging help: requests charging
src/components/resident/ChargingHelpModal.tsx - Resident dashboard → Emergency coordination state: reads state
src/components/resident/ResidentView.tsx - Help and check-in → Emergency coordination state: submits request
src/components/resident/HelpRequestModal.tsx - Charging help → Emergency coordination state: updates request
src/components/resident/ChargingHelpModal.tsx - Privacy audit logs → Emergency coordination state: reads logs
src/components/resident/PrivacyLogsModal.tsx - Plain-language alerts → Alert translations: uses translations
src/components/alerts/PlainLanguageAlertScreen.tsx - Volunteer response desk → Emergency coordination state: handles cases
src/components/volunteer/VolunteerView.tsx - Volunteer response desk → Volunteer notifications: requests permission
src/components/volunteer/VolunteerView.tsx - Official overview → Emergency coordination state: reads overview
src/components/official/OfficialView.tsx - Emergency coordination state → Urgency scoring: scores urgency
src/context/AppContext.tsx - Emergency coordination state → Weather alerts and lookup: loads alerts
src/context/AppContext.tsx - Emergency coordination state → Database adapter: persists records
src/context/AppContext.tsx - Emergency coordination state → Demo scenario data: loads demo state
src/context/AppContext.tsx - Authentication → Database adapter: saves profile
src/context/AuthContext.tsx - Database adapter → Neon PostgreSQL: reads and writes
src/lib/neon.ts - Weather alerts and lookup → National Weather Service: fetches alerts
README.md - Role-based app → Offline cache: registers offline support