How amhu01/bukubesikodsuasana works
IronLog is a workout-tracking mobile app: users record exercises and sets, then review session history, progress, and training statistics, with backup and share-card features. The graph follows the documented screen and data responsibilities; several screen implementations are represented by their exact paths based on the SOURCE INDEX, but their internal calls were not sampled. Accordingly, edges are limited to relationships evidenced by excerpts or the index.
Main entry points: repository.ts Workout repository · SessionEditor.tsx Session editor · App.tsx App bootstrap · RootNavigator.tsx Screen navigation
Components 26
App startup
- App bootstrap
App.tsx - Screen navigation
src/navigation/RootNavigator.tsx
Workout logging
- Workout logging
src/screens/LogScreen.tsx - Session editor
src/components/SessionEditor.tsx - Draft conversion
src/utils/sessionDraft.ts - Crash draft restore
src/draftStore.ts - Exercise selection
src/components/ExercisePicker.tsx - Exercise search
src/components/ExerciseSearchModal.tsx
Training review
- Session history
src/screens/HistoryScreen.tsx - Session details
src/screens/SessionDetailScreen.tsx - Session summary
src/screens/SessionSummaryScreen.tsx - Exercise progress
src/screens/ProgressScreen.tsx - Training statistics
src/screens/StatsScreen.tsx - Backup and restore
src/screens/BackupScreen.tsx - Share card rendering
src/components/ShareCard.tsx - Activity heatmap
src/components/ActivityHeatmap.tsx - Muscle map
src/components/MuscleMap.tsx - Progress charts
src/components/LineChart.tsx
Local data
- SQLite database
src/db/database.ts - Workout repository
src/db/repository.ts - Backup serialization
src/utils/backup.ts
Shared services
- User preferences
src/prefs.tsx - English and Malay
src/i18n/index.ts - Theme system
src/theme.ts - Workout data types
src/types/index.ts
Other components
- Lifter
Connections 39
- Lifter → App bootstrap: opens app
App.tsx - App bootstrap → SQLite database: opens database
App.tsx - App bootstrap → Crash draft restore: restores draft
App.tsx - App bootstrap → User preferences: loads preferences
App.tsx - App bootstrap → Screen navigation: mounts navigator
App.tsx - Screen navigation → Workout logging: routes to
src/navigation/RootNavigator.tsx - Screen navigation → Session history: routes to
src/navigation/RootNavigator.tsx - Screen navigation → Exercise progress: routes to
src/navigation/RootNavigator.tsx - Screen navigation → Training statistics: routes to
src/navigation/RootNavigator.tsx - Screen navigation → Backup and restore: routes to
src/navigation/RootNavigator.tsx - Workout logging → Session editor: renders editor
src/screens/LogScreen.tsx - Workout logging → Workout repository: loads and saves
src/screens/LogScreen.tsx - Workout logging → Crash draft restore: uses draft store
src/screens/LogScreen.tsx - Session editor → Workout repository: loads last use
src/components/SessionEditor.tsx - Session editor → Draft conversion: converts exercises
src/components/SessionEditor.tsx - Session editor → Exercise selection: offers selection
src/components/SessionEditor.tsx - Exercise selection → Exercise search: opens search
src/components/ExercisePicker.tsx - Session details → Workout repository: loads and updates
src/screens/SessionDetailScreen.tsx - Session details → Session editor: renders editor
src/screens/SessionDetailScreen.tsx - Session details → Draft conversion: converts exercises
src/screens/SessionDetailScreen.tsx - Session history → Workout repository: loads sessions
src/screens/HistoryScreen.tsx - Session summary → Workout repository: loads summary
src/screens/SessionSummaryScreen.tsx - Session summary → Share card rendering: renders share card
src/screens/SessionSummaryScreen.tsx - Exercise progress → Workout repository: loads progress
src/screens/ProgressScreen.tsx - Exercise progress → Progress charts: renders chart
src/screens/ProgressScreen.tsx - Exercise progress → Muscle map: renders muscle map
src/screens/ProgressScreen.tsx - Training statistics → Workout repository: loads statistics
src/screens/StatsScreen.tsx - Training statistics → Activity heatmap: renders heatmap
src/screens/StatsScreen.tsx - Training statistics → Muscle map: renders muscle map
src/screens/StatsScreen.tsx - Backup and restore → Workout repository: exports sessions
src/screens/BackupScreen.tsx - Backup and restore → Backup serialization: uses backup utilities
src/screens/BackupScreen.tsx - Workout repository → SQLite database: reads and writes
src/db/repository.ts - User preferences → Workout repository: persists preferences
src/prefs.tsx - App bootstrap → Theme system: applies theme
App.tsx - Session editor → English and Malay: translates labels
src/components/SessionEditor.tsx - Session editor → Theme system: styles controls
src/components/SessionEditor.tsx - Workout repository → Workout data types: uses domain types
src/db/repository.ts - Backup serialization → Workout data types: serializes sessions
src/utils/backup.ts - Share card rendering → Muscle map: renders map
src/components/ShareCard.tsx