How goaliath-app/goaliath works
Main System Components
a. Presentation Layer
• Components (src/components/)
• Screens (src/screens/)
• Theme (src/theme/)
• i18n (src/i18n/)
b. State Management Layer
• Redux Store (src/redux/)
• Activity Management (src/activityHandler/)
c. Platform Services Layer
• Notifications (src/notifications.js)
• Storage (AsyncStorage)
• File System (expo-file-system)
Key Architectural Elements to Highlight
a. Frontend Architecture:
• Navigation flow between screens
• Theme system (light/dark modes)
b. State Management:
• Redux store with different slices:
• Activities
• Goals
• Tasks
• Logs
• Settings
• Guide
c. External Services Integration:
• Expo services
• Notification system
• File system operations
• Localization services
┌─────────────────────────────────────────────────────┐
• UI Layer (React Native) │
• ┬─────────────────┬────────────────┤
• Screens │ Components │ Theme │
• ┬────────┴────────┬────────┴───────┬────────┘
• ▼ ▼ ▼
┌─────────────────────────────────────────────────────┐
• State Management (Redux) │
• ┬──────────┬──────────┬──────────┬────────┤
• Activities│ Goals │ Tasks │ Logs │Settings│
• ┬─┴────────┬─┴────────┬─┴────────┬─┴────────┘
• ▼ ▼ ▼ ▼
┌─────────────────────────────────────────────────────┐
• Platform Services │
• ┬─────────────┬─────────────┬──────────┤
• Notifications│ Storage │ File System │ i18n │
• ┴─────────────┴─────────────┴──────────┘
Data Flow Indicators
→ Unidirectional data flow (Redux actions)
↔ Bidirectional communication
⇢ External service calls
Implementation Details
• Redux store structure and state management
• Screen navigation patterns
• Component reusability
• Activity type handling system
• Internationalization setup
• Theme system implementation
External Dependencies
External services:
• Expo services
• Sentry for error tracking
• React Native Paper UI components
• AsyncStorage for data persistence
Remember to maintain a balance between showing the high-level architecture while including enough detail to understand the system's core functionality around goal and time management.