Skip to content

Improve student activity registration system#2

Merged
framirez07 merged 3 commits into
mainfrom
accelerate-with-copilot
May 29, 2026
Merged

Improve student activity registration system#2
framirez07 merged 3 commits into
mainfrom
accelerate-with-copilot

Conversation

@framirez07

@framirez07 framirez07 commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

This PR enhances a student activity registration system for Mergington High School by adding comprehensive unregister functionality, expanding the activity database with six new activities, improving the frontend UI with participant visibility and management, and introducing a complete test suite covering all API endpoints.

Key Changes by Component

Backend (src/app.py):

  • Added 6 new student activities: Soccer Team, Swimming Club, Art Club, Drama Club, Math Team, and Science Olympiad
  • Added duplicate signup prevention validation
  • Introduced new DELETE /activities/{activity_name}/unregister endpoint to remove students from activities

Frontend (src/static/):

  • app.js: Displays participant lists in activity cards with inline delete buttons; added event handlers for unregistering participants with error handling
  • styles.css: Added styling for participants section, participant list items, and delete buttons with hover effects

Testing (tests/):

  • Created comprehensive test suite with 31 test cases organized into 3 test classes
  • Tests cover GET activities, successful/duplicate signups, unsuccessful signups, and unregister operations
  • Includes pytest fixtures for activity state management and test client setup

Dependencies:

  • Added pytest to requirements.txt

@framirez07
framirez07 merged commit d31fc86 into main May 29, 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.

1 participant