Overview
The Dashboard (Today page) is your central hub for monitoring your baby’s daily activities. It displays live timing information, daily summaries, upcoming reminders, and provides quick access to log new activities.Key Features
Live Timer Cards
Four prominent cards show elapsed time since the last logged activity:Last Feed
Shows time since last bottle or breast feed, with feed details (volume, type)
Diaper
Time since last diaper change, showing type (wet, dirty, mixed)
Sleep
Active sleep timer when baby is sleeping, or time since last wake-up
Medicine
Time since last medication dose, with medicine name
Implementation
The dashboard uses real-time updates via theuseLiveTimer hook:
src/app/page.tsx
Daily Summary
A comprehensive summary card displays today’s statistics:- Feeds: Total count and volume (ml)
- Diapers: Total count
- Sleep: Total hours
- Other metrics: Calculated from event data
src/app/page.tsx
Daily aggregates are computed server-side using Convex queries for optimal performance.
Next Reminder
If you have reminder rules configured, the next upcoming reminder appears prominently:Quick Suggestions
Intelligent suggestion pills appear based on:- Time since last feed
- Daily patterns
- Typical feeding intervals
- Baby’s age and needs
QuickSuggestionsPills component with ML-based pattern detection.
Activity Feed
The activity feed shows recent events in reverse chronological order. Each entry displays:- Event type icon and color
- Timestamp
- Details (e.g., feed amount, sleep duration)
- Caregiver who logged it
- Notes and photos (if attached)
Quick Actions
Fixed action buttons at the bottom provide one-tap access to log:- Feed (bottle or breast)
- Diaper change
- Sleep start/end
- Medicine dose
QuickLoggerDrawer component:
src/app/page.tsx
Gender Theming
The dashboard adapts its color scheme based on the baby’s configured gender:Baby Age Display
The dashboard header prominently displays the baby’s current age:Loading States
The dashboard implements skeleton loading for a smooth user experience:Related Pages
Activity Tracking
Log and manage all baby activities
Baby Profiles
Configure baby settings and preferences
Reminders
Set up automated reminders
Weekly Digests
View AI-generated weekly summaries
