How ebandev/thermotrack works
ThermoTrack is a contraception-tracking PWA for users of heat-based devices. The main workflow records wearing sessions, computes daily wearing time and goal progress, and presents the current status alongside a grouped session history and wearing score. Session grouping and day-boundary handling form the core internal logic; preferences support user configuration, while results, analysis dialogs, chat, and PWA notifications represent additional product areas. Several of these are included from the tree and product description, but their wiring is not shown in the sampled source.
Main entry points: index.vue Tracking home · TopBar.vue Top bar · useTime.ts Day boundaries · useSessionGroups.ts Session grouping
Components 24
App experience
- Nuxt app shell
app.vue - Tracking home
pages/index.vue - Info page
pages/info.vue - Progress circle
components/ProgressCircle.vue - Time circle
components/TimeCircle.vue - Tab navigation
components/TabBar.vue - Top bar
components/TopBar.vue
Session tracking
- Session controls
composables/useSession.ts - Session grouping
composables/useSessionGroups.ts - Day boundaries
composables/useTime.ts - Start-time dialog
components/dialogs/StartSessionAt.vue - Stop-time dialog
components/dialogs/StopSessionAt.vue - Edit sessions
components/dialogs/editSessions.vue
History and insights
- Results page
pages/results.vue - Wearing score
composables/useWearingScore.ts - Score dialog
components/dialogs/WearingScore.vue - Add analysis
components/dialogs/addAnalysis.vue - Edit analysis
components/dialogs/editAnalysis.vue
Preferences and support
- User preferences
stores/userPrefs.ts - Settings dialog
components/dialogs/settings.vue - Chat assistant
components/dialogs/ChatAssistant.vue - PWA notifications
components/PwaNotifications.vue
Other components
- User
- Assistant service
Connections 26
- User → Tracking home: uses
README.md - Nuxt app shell → Tracking home: renders page
app.vue - Tracking home → User preferences: reads preferences
pages/index.vue - Tracking home → Session controls: controls sessions
pages/index.vue - Tracking home → Session grouping: groups history
pages/index.vue - Tracking home → Wearing score: calculates score
pages/index.vue - Tracking home → Progress circle: renders progress
pages/index.vue - Tracking home → Time circle: renders timeline
pages/index.vue - Tracking home → Start-time dialog: opens dialog
pages/index.vue - Tracking home → Stop-time dialog: opens dialog
pages/index.vue - Tracking home → Edit sessions: opens editor
pages/index.vue - Tracking home → Score dialog: opens score
pages/index.vue - Session controls → Session grouping: gets daily total
composables/useSession.ts - Session controls → Day boundaries: uses day boundaries
composables/useSession.ts - Session grouping → Day boundaries: gets day boundary
composables/useSessionGroups.ts - Time circle → Session grouping: groups sessions
components/TimeCircle.vue - Time circle → Day boundaries: gets session day
components/TimeCircle.vue - Tracking home → Wearing score: passes grouped data
pages/index.vue - Top bar → User preferences: reads preferences
components/TopBar.vue - Top bar → Session grouping: computes streak
components/TopBar.vue - Top bar → Day boundaries: gets session day
components/TopBar.vue - Top bar → Settings dialog: opens dialog
components/TopBar.vue - Top bar → Chat assistant: opens assistant
components/TopBar.vue - Start-time dialog → Day boundaries: gets start time
components/dialogs/StartSessionAt.vue - Stop-time dialog → Day boundaries: gets start time
components/dialogs/StopSessionAt.vue - Chat assistant → Assistant service: may call