AutoReminders - IEEE-Team-3/map GitHub Wiki

Overview

The auto-reminder system sends notifications to users regarding approaching task deadlines. Reminders help ensure that tasks are completed on time.

Workflow

  • Reminders are triggered based on the task’s deadline.
  • A reminder is sent 24 hours before the deadline, and another reminder is sent 2 hours before the deadline.
  • Users can opt out of reminders via their notification preferences.

Reminder Example

  • Reminder Type: "Upcoming task deadline"
  • Trigger Time: 24 hours and 2 hours before the task deadline

Example Backend Logic

const sendReminder = (task) => {
  const reminderTime = task.deadline - 24 * 60 * 60 * 1000; // 24 hours before deadline
  setTimeout(() => {
    sendNotification(task.assignedTo, 'Reminder: Task deadline is approaching!');
  }, reminderTime);
};
⚠️ **GitHub.com Fallback** ⚠️