Skip to content

Activiites#136

Merged
karthikeya1976 merged 0 commit into
feature/activitiesfrom
main
Apr 27, 2026
Merged

Activiites#136
karthikeya1976 merged 0 commit into
feature/activitiesfrom
main

Conversation

@karthikeya1976
Copy link
Copy Markdown
Collaborator

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.

@karthikeya1976 karthikeya1976 merged commit 4d81497 into feature/activities Apr 27, 2026
1 check 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.

1 participant