How giano95/qt_aura works
Aura is a Qt/QML coaching app for personal trainers and clients. The main workflow is sign-in or sign-up, role-based routing, then managing or using coaching relationships, training programs, and bookings. QML screens call C++ store singletons; stores apply business rules and persist data through Supabase. The README documents these screen-to-store responsibilities and the backend capabilities. Source excerpts also show shared store behavior, calendar/program/coaching value types, secure saved-login storage, and Realtime updates; unsampled screen internals are represented at their documented subsystem paths.
Main entry points: storebase.cpp Shared store behavior · session.cpp Session state · coach Coach workspace · programstore.cpp Programs and exercises
Components 23
App and identity
- Role-based router
Main.qml - Sign-in and signup
qml/screens/auth - Session state
src/stores/session.cpp - Saved login
src/supabase/sessionstorage.cpp
Coaching relationships
- Coach workspace
qml/screens/coach - Client workspace
qml/screens/client - Clients and assignments
src/stores/clientstore.cpp - Coach directory and requests
src/stores/coachstore.cpp - Coaching rules and types
src/models/coaching.cpp
Training plans
- Program editor and viewer
qml/screens/coach/programs - Exercise library
qml/screens/coach/programs/ExerciseLibrary.qml - Client program view
qml/screens/client/program - Programs and exercises
src/stores/programstore.cpp - Program value types
src/models/program.cpp
Scheduling
- Coach calendar
qml/screens/coach/calendar - Client calendar
qml/screens/client/calendar - Hours and bookings
src/stores/calendarstore.cpp - Calendar rules and types
src/models/calendar.cpp
Backend services
- Shared store behavior
src/stores/storebase.cpp - Supabase client
src/supabase/supabaseclient.cpp - Live updates
src/supabase/realtimeclient.cpp - Supabase database
supabase/migrations
Other components
- Coach or client
Connections 31
- Coach or client → Sign-in and signup: signs in
README.md - Sign-in and signup → Session state: submits credentials
README.md - Session state → Role-based router: sets signed-in role
README.md - Role-based router → Coach workspace: opens coach app
README.md - Role-based router → Client workspace: opens client app
README.md - Session state → Saved login: saves refresh token
README.md - Coach workspace → Clients and assignments: manages clients
README.md - Coach workspace → Coach directory and requests: handles requests
README.md - Client workspace → Coach directory and requests: finds or requests coach
README.md - Clients and assignments → Coaching rules and types: uses coaching rules
- Coach workspace → Program editor and viewer: opens programs
README.md - Program editor and viewer → Programs and exercises: edits programs
README.md - Exercise library → Programs and exercises: searches exercises
README.md - Client program view → Programs and exercises: reads assigned program
README.md - Programs and exercises → Program value types: uses program types
- Coach workspace → Coach calendar: opens calendar
README.md - Client workspace → Client calendar: opens calendar
README.md - Coach calendar → Hours and bookings: manages hours and bookings
README.md - Client calendar → Hours and bookings: requests sessions
README.md - Hours and bookings → Calendar rules and types: uses calendar rules
- Session state → Supabase client: authenticates and resumes
src/stores/session.cpp - Session state → Shared store behavior: starts store lifecycle
- Clients and assignments → Shared store behavior: inherits shared behavior
- Coach directory and requests → Shared store behavior: inherits shared behavior
- Programs and exercises → Shared store behavior: inherits shared behavior
- Hours and bookings → Shared store behavior: inherits shared behavior
- Shared store behavior → Supabase client: loads and writes data
- Supabase client → Supabase database: reads and writes
README.md - Supabase client → Live updates: feeds change notifications
- Live updates → Supabase client: notifies changed tables
- Supabase database → Live updates: publishes table changes