BonusPoints - IEEE-Team-3/map GitHub Wiki

Overview

Bonus points are additional points given to users for exceptional work, exceeding task expectations, or going beyond their usual responsibilities. These points are not part of the regular task points system.

When to Award Bonus Points

  1. A user submits a task earlier than the deadline with exceptional quality.
  2. A user takes on extra work beyond their assigned tasks.
  3. A user receives high praise from peers or team leads.
  4. A user achieves milestones that are not directly related to tasks.

Example Scenario

  • A user submits a task 2 days early with no errors: Bonus points = 5 points.
  • A user leads a team to achieve an important milestone: Bonus points = 10 points.

Example Backend Logic

function awardBonusPoints(userId, bonusPoints, reason) {
  const point = new Point({
    userId,
    points: bonusPoints,
    type: 'bonus',
    reason,
  });
  point.save();
}
⚠️ **GitHub.com Fallback** ⚠️