Skip to content

feat: implement daily activities system for student progress tracking#134

Open
karthikeya1976 wants to merge 2 commits into
mainfrom
feature/activities
Open

feat: implement daily activities system for student progress tracking#134
karthikeya1976 wants to merge 2 commits into
mainfrom
feature/activities

Conversation

@karthikeya1976
Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Contributor

@Saritahimthani Saritahimthani left a comment

Choose a reason for hiding this comment

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

Please resolve the conflicts once.

thanks

Copy link
Copy Markdown
Contributor

@Saritahimthani Saritahimthani left a comment

Choose a reason for hiding this comment

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

Looks good to me, tested the flow.

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.

2 participants