Skip to content

feat: add learning streak, time-spent, and last-active tracking to dashboard - #99

Open
shlokjangid606 wants to merge 2 commits into
vicharanashala:mainfrom
shlokjangid606:main
Open

feat: add learning streak, time-spent, and last-active tracking to dashboard#99
shlokjangid606 wants to merge 2 commits into
vicharanashala:mainfrom
shlokjangid606:main

Conversation

@shlokjangid606

Copy link
Copy Markdown

What this PR does

Adds learning streak tracking to the PyBe dashboard. Users can see how
many consecutive days they've engaged with a scenario/session, plus
their best (longest) streak ever, displayed as a badge on the dashboard.

Changes

  • server/src/services/streak.js — new computeStreak function
  • server/src/routes/analytics.js — wired streak data into the analytics endpoint
  • client/src/main.jsx — added streak badge to the dashboard UI
  • server/src/services/__tests__/streak.test.js — 6 unit tests covering streak logic
  • PRODUCT.md — summary of the feature, motivation, and how it works

Testing

  • All 6 unit tests pass locally (npm test)
  • Verified manually with npm run dev — streak badge renders correctly on the dashboard

Notes

Part of my VINS/Vicharanashala Samagama internship contribution.

@shlokjangid606 shlokjangid606 changed the title feat: add learning streak tracking to dashboard feat: add learning streak, time-spent, and last-active tracking to dashboard Aug 23, 2026
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.

1 participant