Skip to content

Fix/14 day streak achievement - #2291

Closed
Suprita736 wants to merge 4 commits into
Canopus-Labs:mainfrom
Suprita736:fix/14-day-streak-achievement
Closed

Fix/14 day streak achievement#2291
Suprita736 wants to merge 4 commits into
Canopus-Labs:mainfrom
Suprita736:fix/14-day-streak-achievement

Conversation

@Suprita736

Copy link
Copy Markdown
Contributor

📝 Pull Request Description

Related Issue

Closes #2290

Summary

Fix the unreachable "14-Day Streak" achievement by adding the missing 14-day entry to the existing streak milestone configuration.

The milestone progression is now:

3 → 7 → 14 → 30

A regression test was also added to verify that all four streak milestones unlock at their appropriate thresholds.


Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature
  • ♻️ Refactoring
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔥 Other(please describe) ______

How Has This Been Tested?

  • Added regression coverage for the streak milestone progression.
  • Verified the 3-day milestone.
  • Verified the 7-day milestone.
  • Verified the 14-day "14-Day Streak" milestone.
  • Verified the 30-day milestone remains functional.
  • Ran the relevant streak tracker unit tests successfully.

Screenshots (if applicable)

Not applicable — this is a backend streak achievement logic fix.


Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request, @Suprita736! 🙌
We'll review it as soon as possible.
If there are any specific instructions or feedback regarding your PR, we'll provide them here.
Thanks again for your contribution to our project! 😊

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 30 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 906dad24-7a76-484e-8642-92d7cd4d27fb

📥 Commits

Reviewing files that changed from the base of the PR and between 420348a and ea3ce40.

📒 Files selected for processing (11)
  • backend/controllers/flashcardController.js
  • backend/controllers/googleCalendarController.js
  • backend/controllers/userSheetProgressController.js
  • backend/models/User.js
  • backend/routes/googleCalendarRoutes.js
  • backend/server.js
  • backend/tests/googleCalendarController.unit.test.js
  • backend/tests/interviewExperienceController.unit.test.js
  • backend/tests/streakTracker.unit.test.js
  • backend/tests/userSheetProgressController.unit.test.js
  • backend/utils/streakTracker.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the rate-limited Closed automatically: contributor rate limit reached label Aug 30, 2026
@github-actions

Copy link
Copy Markdown

Thank you for your contribution!

To keep reviews manageable and maintain repository quality, contributors may have a maximum of 3 open Issues and 3 open Pull Requests at any given time.

Please wait until one of your existing submissions is reviewed or closed before opening additional ones.

If you believe this was closed by mistake, feel free to contact the maintainers.

@github-actions github-actions Bot closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rate-limited Closed automatically: contributor rate limit reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "14-Day Streak" achievement is unreachable

1 participant