Skip to content

Daily streak#239

Merged
phertyameen merged 9 commits intoMindBlockLabs:mainfrom
Lynndabel:daily-streak
Feb 21, 2026
Merged

Daily streak#239
phertyameen merged 9 commits intoMindBlockLabs:mainfrom
Lynndabel:daily-streak

Conversation

@Lynndabel
Copy link
Copy Markdown
Contributor

@Lynndabel Lynndabel commented Feb 19, 2026

Closes #161
This PR adds daily streak tracking across the backend and frontend.

Backend
Added GET /streaks to fetch the authenticated user’s streak
Added POST /streaks/update to update streak after daily quest completion (idempotent per day)
Tracks currentStreak, longestStreak, lastActivityDate, and streakDates
Wired controller/service into the StreakModule
Frontend
Added streakApi client and Redux streakSlice (fetch + update thunks)
Added useStreak() hook and registered the streak reducer in the store

Copy link
Copy Markdown
Member

@phertyameen phertyameen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally great just a final visibility to this issue

  • Add the streak reducer to the store: store.ts currently only registers quiz. You need to add streakReducer from streakSlice.ts otherwise none of the frontend streak state works.

  • Show UI consumption: the acceptance criteria requires the weekly calendar to reflect backend data and streak info to be visible in the UI. No component using useStreak() was included in this PR, so you need to add that or confirm it already exists elsewhere in the codebase.

@phertyameen
Copy link
Copy Markdown
Member

@Lynndabel did you see the attached comment? any progress?. Do tag me if you have made the necessary updates

@Lynndabel
Copy link
Copy Markdown
Contributor Author

@phertyameen please review

Copy link
Copy Markdown
Member

@phertyameen phertyameen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just awsome!

@phertyameen phertyameen merged commit 0563ddf into MindBlockLabs:main Feb 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Daily Streak Tracking System (Logic + Persistence)

2 participants