Overview
The Interactive Calendar is the central hub of Health Manager, providing a comprehensive view of all your health tracking activities including weight measurements, blood pressure readings, exercise sessions, and medical appointments.The calendar displays data grouped by day, with visual indicators showing which types of activities have been logged for each date.
Calendar Features
Monthly View
Navigate through months to view your complete health history with color-coded activity indicators.
Quick Navigation
Jump to the current month instantly or move forward and backward month by month.
Day Details
Click any day to see all activities logged on that date with full details.
Activity Indicators
Visual badges show when you’ve logged weight, heart rate, exercise, or appointments.
Using the Calendar
Navigating Months
The calendar header displays the current month and year (e.g., “March 2026”). Use the navigation controls:- Previous Month: Click the left arrow to go back one month
- Next Month: Click the right arrow to advance one month
- Current Month: Click the “Today” button to return to the current month
Understanding Activity Indicators
Each calendar day displays small colored badges to indicate logged activities:- Blue Badge: Weight measurement recorded
- Red Badge: Blood pressure/heart rate reading logged
- Orange Badge: Exercise activity completed
- Green Badge: Medical appointment scheduled or completed
Viewing Day Details
Click on any day in the calendar to open a detailed modal showing:- All weight measurements with timestamps
- Blood pressure readings (systolic/diastolic/BPM)
- Exercise activities with duration and descriptions
- Medical appointments with titles, descriptions, and attached files
Dashboard Statistics
The calendar view includes helpful statistics at the top:Next Appointment
Displays your upcoming medical appointment with the date and title, helping you stay prepared.Latest Weight
Shows your most recent weight measurement with the difference from your previous recording:- Green indicator: Weight decreased
- Red indicator: Weight increased
- Helps you track weight trends at a glance
Weekly Exercise Summary
Displays:- Total exercise minutes for the past 7 days
- Number of exercise sessions completed this week
- Helps you monitor if you’re meeting weekly activity goals
Floating Action Button (FAB)
Located in the bottom-right corner, the FAB provides quick access to log new activities without navigating away from the calendar.
- Main Button: Large indigo button with a plus (+) icon
- Expandable Menu: Click to reveal four quick-action buttons:
- Nueva Cita (New Appointment) - Green badge with doctor icon
- Ejercicio (Exercise) - Orange badge with running icon
- Registrar Peso (Log Weight) - Blue badge with scale icon
- Presión Arterial (Blood Pressure) - Red badge with heart icon
Quick Logging Workflow
- Click the main FAB button in the bottom-right corner
- The button rotates 45° and reveals the menu with animated transitions
- Select the type of activity you want to log
- Fill out the modal form that appears
- Save your entry - the calendar automatically updates
Viewer Mode
When viewing another user’s shared data, the calendar operates in read-only mode:- A blue banner appears explaining you’re in “Modo Espectador” (Viewer Mode)
- The FAB quick-action menu is hidden
- You can view all calendar data but cannot create or edit entries
- Full navigation and day detail viewing remains available
Data Organization
The calendar component queries data efficiently:- Loads only the current month’s data for optimal performance
- Groups activities by day for easy rendering
- Updates automatically when new entries are added
Technical Implementation
The calendar is built using:- Livewire Component:
App\Livewire\Dashboard\Calendar - Real-time Updates: Listens for
refresh-calendarevents - AlpineJS: Handles FAB menu animations and interactions
- Carbon Dates: Provides robust date handling and formatting
Calendar Day Structure
Each day in the calendar contains:Best Practices
Regular Logging
Log activities on the same day they occur for accurate historical records and trend analysis.
Review Patterns
Use the monthly view to identify patterns in your health activities and maintain consistency.
Plan Ahead
Check upcoming appointments and plan your week’s exercise schedule using the calendar overview.
Track Progress
Monitor your weekly exercise statistics to ensure you’re meeting your fitness goals.
Related Features
- Health Tracking - Learn about logging weight and blood pressure
- Medical Appointments - Manage your medical appointments
- Data Sharing - Share your calendar with healthcare providers
