feat: implement daily activities system for student progress tracking#134
Open
karthikeya1976 wants to merge 2 commits into
Open
feat: implement daily activities system for student progress tracking#134karthikeya1976 wants to merge 2 commits into
karthikeya1976 wants to merge 2 commits into
Conversation
Contributor
Saritahimthani
left a comment
There was a problem hiding this comment.
Please resolve the conflicts once.
thanks
0b56038 to
2d5cba7
Compare
Saritahimthani
approved these changes
Apr 27, 2026
Contributor
Saritahimthani
left a comment
There was a problem hiding this comment.
Looks good to me, tested the flow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Activities Feature — Project Status Report
Overview
Designed and completed a full daily activities system across backend, middleware, database, and frontend. The feature now tracks student chess milestones, updates activity completion in real time, refreshes the UI live, auto-generates activities for new users, and resets activities daily through a scheduler.
Key Work Completed
Backend (Chess Server)
Added milestone tracking for attendance, rook capture, castling, and match completion
Triggered completeActivity socket events when activities are completed
Connected activity completion flow to middleware using API helper functions
Middleware + Database
Built /activities/:username route for fetching and updating activities
Added automatic 4-activity creation for all new student accounts
Implemented midnight scheduler to reset activities daily with fresh randomized tasks
Created reusable activity selection utilities for routes and scheduler
Frontend (React)
Developed ActivitiesModal with activity progress tracking and garden-themed UI
Added live refresh so activity completion updates instantly without reopening the modal
Fixed socket callback handling and modal interaction issues for smoother UX
Testing Summary
Performed end-to-end validation across socket events, API routes, MongoDB updates, UI rendering, new-user registration, and scheduler execution.
Result
All 10 test cases passed successfully. The activities system is fully working end-to-end, including real-time completion tracking, frontend updates, automatic user setup, and daily activity reset.