How sukuna938588-web/shadowrise works
ShadowRise is a gamified fitness and wellness app. A user registers as a Hunter, then uses the home dashboard and feature screens to track health, log workouts, complete quests, manage reminders, and review XP and rank progress. The shared store coordinates app state and persistence, while screens and components present and update that state. Source excerpts substantiate the main navigation, selected dashboard features, sound customization, and audio storage; other feature branches are included from the source index, with uncertain internal call paths omitted.
Main entry points: store.ts Application state · App.tsx App navigation · HomeScreen.tsx Home dashboard · ProfileScreen.tsx Hunter profile
Components 30
App shell
- App navigation
src/App.tsx - Hunter registration
src/screens/HunterRegistrationScreen.tsx - Home dashboard
src/screens/HomeScreen.tsx - Alarm management
src/screens/AlarmsScreen.tsx - Notes
src/screens/NotesScreen.tsx
Training and quests
- Quest screen
src/screens/QuestsScreen.tsx - Workout logging
src/screens/AddScreen.tsx - Workout history
src/components/WorkoutHistoryModal.tsx - Exercise catalog
src/data/exerciseCatalog.ts - Initial quests and notes
src/data/initialData.ts
Health and recovery
- BMI calculator
src/components/BMICalculator.tsx - Health issues
src/components/HealthIssuesTracker.tsx - Water tracking
src/components/WaterTracker.tsx - Water reminders
src/components/WaterReminderModal.tsx - Sleep tracking
src/components/SleepTracker.tsx - AI coaching
src/utils/aiCoachEngine.ts - Health calculations
src/utils/healthCalculations.ts
Progression system
- Hunter profile
src/screens/ProfileScreen.tsx - Rank display
src/components/RankBadge.tsx - Rank history
src/components/RankHistoryTimeline.tsx - Rank milestones
src/data/rankTimelineData.ts - XP history
src/components/XPHistoryModal.tsx
State and sound
- Application state
src/store.ts - Supabase client
src/lib/supabase.ts - Sound settings
src/components/SoundsAndAlertsModal.tsx - Sound configuration
src/types/soundSystem.ts - Custom audio storage
src/utils/audioStorage.ts - Sound playback
src/utils/customSoundSystem.ts - Audio effects
src/utils/audioEffects.ts
Other components
- Hunter
Connections 39
- Hunter → App navigation: opens
- App navigation → Hunter registration: routes to
src/App.tsx - App navigation → Home dashboard: routes to
src/App.tsx - App navigation → Quest screen: routes to
src/App.tsx - App navigation → Alarm management: routes to
src/App.tsx - App navigation → Workout logging: routes to
src/App.tsx - App navigation → Notes: routes to
src/App.tsx - App navigation → Hunter profile: routes to
src/App.tsx - App navigation → Application state: uses
src/App.tsx - Home dashboard → Application state: updates
src/screens/HomeScreen.tsx - Home dashboard → BMI calculator: renders
src/screens/HomeScreen.tsx - Home dashboard → Health issues: renders
src/screens/HomeScreen.tsx - Home dashboard → Water tracking: renders
src/screens/HomeScreen.tsx - Home dashboard → Sleep tracking: renders
src/screens/HomeScreen.tsx - Home dashboard → AI coaching: offers
- Workout logging → Application state: updates
src/screens/AddScreen.tsx - Workout logging → Workout history: opens
src/screens/AddScreen.tsx - Workout logging → Exercise catalog: saves custom exercise
src/screens/AddScreen.tsx - Workout history → Exercise catalog: reads
src/components/WorkoutHistoryModal.tsx - Quest screen → Application state: uses
- Alarm management → Application state: uses
src/screens/AlarmsScreen.tsx - Hunter profile → Application state: updates
src/screens/ProfileScreen.tsx - Hunter profile → Rank display: renders
src/screens/ProfileScreen.tsx - Hunter profile → Rank history: opens
src/screens/ProfileScreen.tsx - Hunter profile → XP history: opens
src/screens/ProfileScreen.tsx - BMI calculator → Health calculations: uses
src/components/BMICalculator.tsx - Health issues → Health calculations: uses
- Application state → Supabase client: syncs profile
src/store.ts - Application state → Sound playback: plays events
src/store.ts - Application state → Audio effects: plays tones
src/store.ts - Sound settings → Custom audio storage: saves and lists files
src/components/SoundsAndAlertsModal.tsx - Sound settings → Application state: configures
- Sound settings → Sound configuration: uses settings
src/components/SoundsAndAlertsModal.tsx - Custom audio storage → Sound configuration: stores metadata
src/utils/audioStorage.ts - Sound playback → Audio effects: uses effects
src/utils/customSoundSystem.ts - Sound playback → Custom audio storage: loads audio
src/utils/customSoundSystem.ts - Application state → Initial quests and notes: initializes state
src/store.ts - Application state → Rank milestones: generates rank history
src/store.ts - Rank history → Rank milestones: reads milestones
src/components/RankHistoryTimeline.tsx