How nikhildath/astra-astronaut-safety-tracking-real-time-analytics works
ASTRA is a spaceflight self-monitoring dashboard: an astronaut reviews health indicators and body systems, logs readings, and consults hazard-linked actions and education; recorded readings also support trends and gamification. The Home page is the main workflow coordinator, with ThreeScene providing the interactive body map and data-service handling persistence. The README documents additional dashboard capabilities, but excerpts do not expose all their internal wiring; those are represented at subsystem level rather than with inferred call chains.
Main entry points: Home.tsx Health dashboard · content.ts Health definitions and guidance · IndicatorCard.tsx Indicator cards · data-service.ts Health data service
Components 16
Dashboard experience
- Application router
src/App.tsx - Health dashboard
src/pages/Home.tsx - Interactive body map
src/components/ThreeScene.tsx - Indicator cards
src/components/IndicatorCard.tsx - Status rings
src/components/HealthRing.tsx - Body system cards
src/components/BodySystemCard.tsx
Health guidance
- Spaceflight hazards
src/components/HazardCard.tsx - Action library
src/components/ActionCard.tsx - Education content
src/pages/Docs.tsx - Exercise and nutrition
src/content.ts
Data and progress
- Health data service
src/lib/data-service.ts - Browser storage
- Supabase backend
- XP and achievements
src/components/GamificationPanel.tsx
Shared health definitions
- Health definitions and guidance
src/content.ts
Other components
- Astronaut
Connections 19
- Astronaut → Application router: opens dashboard
src/App.tsx - Application router → Health dashboard: routes to
src/App.tsx - Health dashboard → Interactive body map: renders
src/pages/Home.tsx - Health dashboard → Health data service: loads and saves
src/pages/Home.tsx - Health dashboard → Indicator cards: presents readings
- Indicator cards → Status rings: renders
src/components/IndicatorCard.tsx - Health dashboard → Body system cards: presents systems
- Health dashboard → Spaceflight hazards: presents hazards
- Health dashboard → Action library: presents actions
- Health dashboard → Education content: provides education
- Health dashboard → XP and achievements: shows progress
- Action library → Health definitions and guidance: uses guidance
src/components/ActionCard.tsx - Body system cards → Health definitions and guidance: uses definitions
src/components/BodySystemCard.tsx - Indicator cards → Health definitions and guidance: uses definitions
src/components/IndicatorCard.tsx - XP and achievements → Health definitions and guidance: uses configuration
src/components/GamificationPanel.tsx - Education content → Health definitions and guidance: uses reference content
src/pages/Docs.tsx - Health definitions and guidance → Exercise and nutrition: includes
README.md - Health data service → Browser storage: reads and writes
src/lib/data-service.ts - Health data service → Supabase backend: reads and writes
src/lib/data-service.ts