How tohhongxiang/physio-tracker works
Main Application Components (Top Level)
• Frontend (UI Layer)
• Application Logic Layer
• Data Layer
Frontend Layer Components
a) Tab Navigation Structure:
• Home (index)
• Workouts
• Timer
• Logbook
• Account
b) Modal Screens:
• Workout Add Modal
c) Workout Detail Screens:
• Workout View
• Workout Edit
• Workout Start
• Workout Complete
Application Logic Layer
Create sections for:
a) Core Logic:
• Workout Management
• Timer Controls
• Exercise Controls
• Form Management
b) Hooks Layer:
• API Hooks (use-create-workout, use-edit-workout, etc.)
• Utility Hooks (use-countdown-timer, use-sound)
Data Layer
Include:
• Drizzle ORM
• SQLite Database
• Schema (workouts, workout logs)
Integration Points
• API Routes (create-workout, edit-workout, etc.)
• Database Operations
• State Management Flow
Connection Types
• Double lines: API calls
Component Grouping
Related components in containers:
• UI Components (/components)
• Form Components (/components/workout-form)
• Provider Components (/providers)
A high-level overview showing the three main layers
• Workout Creation Flow
• Exercise Execution Flow
• Logging System
Important technical details
• React Native
• Drizzle ORM
• SQLite
• React Query (from providers)