BYAMN-Learning icon indicating copy to clipboard operation
BYAMN-Learning copied to clipboard

Add Learning Streak Counter + Motivational Messages

Open suman20041 opened this issue 1 year ago • 2 comments

Is your feature request related to a problem or challenge?

💡 Proposed Feature

Implement a Learning Streak System that tracks how many consecutive days a user has been learning and displays a small motivational message based on their streak.

How it would work

1.A new function, for example:

const streak = calculateLearningStreak(userId);
displayStreakMotivation(streak);

2.Count the number of consecutive days the user was active. 3.Update the dashboard UI to show:

  • Current streak (e.g., “🔥 5-day streak!”)
  • A rotating motivational message (e.g., “Keep it up!”, “Consistency pays off!”, etc.)

🎯 Why This Feature Is Valuable

  • Adds a fun gamification element that doesn’t exist in the project yet
  • Encourages users to stay consistent
  • Very beginner-friendly but still meaningful
  • Expands the project with a lightweight enhancement that can grow into badges, achievements, etc.

📁 Files To Be Added/Updated

  • New: streak.js
    • Handles streak calculation
    • Logic for storing last active date
    • Generates motivational messages
  • Update: dashboard.js
    • Display streak indicator
    • Show motivational message in the dashboard section

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

suman20041 avatar Nov 20 '25 18:11 suman20041

Thank you for raising this issue!

We'll review it as soon as possible. We truly appreciate your contributions! ✨

Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊

github-actions[bot] avatar Nov 20 '25 18:11 github-actions[bot]

@DYHARDx please assign this issue to me ??

suman20041 avatar Nov 20 '25 18:11 suman20041