Skip to content

Health Notifications

Noor Alam Shuvo edited this page Aug 2, 2025 · 1 revision

Health Notifications Guide

The Simple Coding Time Tracker includes a comprehensive health notification system designed to promote healthy coding habits and prevent strain-related issues. This guide covers all aspects of the health notification features.

Overview

The health notification system provides intelligent reminders to help you maintain good health while coding:

  • Eye Rest Reminders: Follow the 20-20-20 rule to prevent eye strain
  • Stretch Reminders: Regular prompts to move and stretch
  • Break Suggestions: Longer break recommendations for sustained coding sessions
  • Smart Timing: Based on actual coding time, not just VS Code being open
  • One-Click Pause: Easily pause tracking when taking breaks

๐Ÿ”” Notification Types

๐Ÿ‘๏ธ Eye Rest Notifications

Default Interval: Every 20 minutes
Type: Warning-level modal notification
Purpose: Prevent eye strain and fatigue

Message Format:

๐Ÿ‘๏ธ EYE HEALTH REMINDER: Look at something 20 feet away for 20 seconds (20-20-20 rule)
[Pause Timer] [Got it!]

Benefits:

  • Reduces digital eye strain
  • Prevents dry eyes
  • Improves focus and clarity
  • Follows established medical guidelines (20-20-20 rule)

๐Ÿง˜ Stretch Notifications

Default Interval: Every 45 minutes
Type: Warning-level modal notification
Purpose: Prevent repetitive strain injuries

Message Format:

๐Ÿง˜ STRETCH REMINDER: Stand up and stretch your back and neck - Your body needs it!
[Pause Timer] [Will do!]

Benefits:

  • Prevents muscle stiffness
  • Improves posture
  • Reduces risk of repetitive strain injuries
  • Increases blood circulation

๐Ÿšจ Break Notifications

Default Threshold: After 2+ hours of continuous coding
Type: Error-level modal notification
Purpose: Enforce mandatory health breaks

Message Format:

๐Ÿšจ HEALTH BREAK REQUIRED: You've been coding for 2+ hours! Take a break now for your health.
[Pause Timer] [Quick stretch (5 min)] [Eye rest (10 min)] [Coffee break (15 min)] [Proper break (20 min)]

Break Options:

  • Quick stretch (5 minutes): Brief movement break
  • Eye rest (10 minutes): Focus on distant objects
  • Coffee break (15 minutes): Social or refreshment break
  • Proper break (20 minutes): Complete mental and physical rest

โš™๏ธ Configuration

Accessing Settings

  1. Open VS Code Settings (Ctrl+, or Cmd+,)
  2. Search for "Simple Coding Time Tracker"
  3. Locate the health-related settings

Available Settings

Setting Default Description
simpleCodingTimeTracker.health.enableNotifications true Master switch for all health notifications
simpleCodingTimeTracker.health.eyeRestInterval 20 Eye rest reminder interval (minutes)
simpleCodingTimeTracker.health.stretchInterval 45 Stretch reminder interval (minutes)
simpleCodingTimeTracker.health.breakThreshold 120 Break suggestion threshold (minutes)
simpleCodingTimeTracker.health.modalNotifications true Enable modal behavior (blocks UI until dismissed)

Configuration Examples

For Frequent Breaks (High-intensity work):

{
  "simpleCodingTimeTracker.health.eyeRestInterval": 15,
  "simpleCodingTimeTracker.health.stretchInterval": 30,
  "simpleCodingTimeTracker.health.breakThreshold": 90
}

For Longer Focus Sessions (Deep work):

{
  "simpleCodingTimeTracker.health.eyeRestInterval": 30,
  "simpleCodingTimeTracker.health.stretchInterval": 60,
  "simpleCodingTimeTracker.health.breakThreshold": 180
}

For Non-Intrusive Mode (Disable modals):

{
  "simpleCodingTimeTracker.health.modalNotifications": false
}

๐ŸŽฎ Commands

Toggle Health Notifications

Command: SCTT: Toggle Health Notifications
Access: Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
Usage: Quickly enable/disable all health notifications

When to Use:

  • During presentations or screen sharing
  • When in deep focus mode temporarily
  • During pair programming sessions
  • When notifications are disruptive

๐Ÿ”ง How It Works

Smart Timing System

  1. Activity-Based Tracking

    • Notifications are based on actual coding time
    • Paused when VS Code is inactive
    • Resumes automatically when you start coding again
  2. Independent Timers

    • Each notification type has its own timer
    • Eye rest and stretch reminders run independently
    • Break notifications override other timers
  3. Automatic Reset

    • Taking a suggested break resets relevant timers
    • Manual pause/resume maintains timer state
    • Daily reset at midnight

Modal Behavior

When Modal is Enabled (default):

  • Notifications block the VS Code UI
  • Must be manually dismissed
  • Time tracking automatically pauses
  • Ensures notifications are not missed

When Modal is Disabled:

  • Notifications appear as standard VS Code notifications
  • Auto-dismiss after a few seconds
  • Time tracking continues normally
  • Less intrusive but easier to miss

Integration with Time Tracking

  • Automatic Pause: Clicking "Pause Timer" immediately stops time tracking
  • Automatic Resume: Time tracking resumes when you start typing again
  • Break Acknowledgment: Selecting a break option pauses tracking for the specified duration
  • Seamless Operation: No interference with normal time tracking functionality

๐Ÿฅ Health Benefits

Scientific Basis

The health notification system is based on established ergonomic and medical guidelines:

20-20-20 Rule (American Optometric Association):

  • Every 20 minutes, look at something 20 feet away for 20 seconds
  • Reduces computer vision syndrome
  • Prevents eye muscle fatigue

Movement Breaks (Occupational Health Guidelines):

  • Regular movement prevents musculoskeletal disorders
  • Reduces risk of repetitive strain injuries
  • Improves circulation and mental alertness

Extended Break Periods (Productivity Research):

  • Longer breaks improve sustained attention
  • Prevent mental fatigue and burnout
  • Enhance overall work quality

Personal Health Impact

Short-term Benefits:

  • Reduced eye strain and dry eyes
  • Less muscle tension and stiffness
  • Improved alertness and focus
  • Better posture awareness

Long-term Benefits:

  • Prevention of repetitive strain injuries
  • Reduced risk of computer vision syndrome
  • Better overall physical health
  • Improved work-life balance

๐Ÿ› ๏ธ Troubleshooting

Common Issues

Notifications Not Appearing:

  1. Check if health notifications are enabled in settings
  2. Verify that you're actively coding (timer must be running)
  3. Ensure modal notifications aren't disabled system-wide

Notifications Too Frequent:

  1. Increase interval settings in VS Code settings
  2. Consider using non-modal mode for less intrusion
  3. Use the toggle command to disable temporarily

Timer Not Pausing:

  1. Ensure you're clicking the "Pause Timer" button
  2. Check that modal notifications are enabled
  3. Verify the extension is actively tracking time

Break Options Not Working:

  1. Ensure you're using break notifications (2+ hour threshold)
  2. Check that the break threshold setting is configured correctly
  3. Verify you're selecting break duration buttons

Performance Considerations

The health notification system is designed to be lightweight:

  • Minimal CPU usage for timer management
  • No impact on VS Code performance
  • Efficient memory usage for notification state

๐ŸŽฏ Best Practices

Optimal Configuration

  1. Start with Defaults: Begin with default settings and adjust based on your workflow
  2. Gradual Adjustment: Make small changes to intervals rather than dramatic shifts
  3. Monitor Compliance: Track how often you actually take the suggested breaks
  4. Customize by Context: Use different settings for different types of work

Developing Healthy Habits

  1. Consistency: Try to follow notification suggestions consistently
  2. Quality Breaks: Use break time for actual rest, not just switching tasks
  3. Environmental Setup: Ensure your workspace supports healthy practices
  4. Listen to Your Body: Adjust settings based on how you feel

Team Environments

For Team Leaders:

  • Encourage team members to enable health notifications
  • Share optimal configuration settings
  • Lead by example in taking regular breaks
  • Consider team-wide health notification policies

For Individual Contributors:

  • Communicate when you're taking health breaks
  • Use the toggle command during meetings or focused sessions
  • Share your configuration with colleagues
  • Advocate for health-conscious development practices

๐Ÿ”— Related Resources


Next: Explore Test Scenarios or return to the Home page.

Clone this wiki locally