Skip to content

Ajout d'activités sportives, artistiques et intellectuelles à la base… - #2

Merged
f-allain merged 2 commits into
mainfrom
accelerate-with-copilot
Sep 11, 2025
Merged

f-allain merged 2 commits into
mainfrom
accelerate-with-copilot

Conversation

@f-allain

Copy link
Copy Markdown
Owner

… de données des activités, et validation pour éviter les inscriptions en double.
This pull request enhances the activities management system by adding new activities, improving signup validation, and making the UI more informative and visually appealing. The main changes are grouped below by their themes.

New activities and data updates:

  • Added several new activities to the activities dictionary in src/app.py, including sports (Soccer Team, Basketball Club), artistic (Art Club, Drama Society), and intellectual (Math Olympiad, Science Club) options, each with their own schedules and participants.

Backend validation improvements:

  • Updated the signup_for_activity function in src/app.py to prevent duplicate signups by raising an error if a student is already registered for an activity.

Frontend UI enhancements:

  • Modified src/static/app.js to display a list of participants for each activity card, or a message if there are no participants yet.
  • Added CSS styles in src/static/styles.css to visually distinguish the participants section, including styling for both filled and empty participant lists.

… de données des activités, et validation pour éviter les inscriptions en double.
@f-allain
f-allain merged commit 8f252fb into main Sep 11, 2025
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