Accelerate with copilot #2
Merged
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.
This pull request introduces several enhancements to the activity management system, including the addition of new activities, validation for duplicate sign-ups, and UI improvements to display participant details. Below are the key changes grouped by theme:
Backend Enhancements:
Soccer Team,Basketball Team,Art Club,Drama Club,Math Club, andDebate Team) to theactivitiesdictionary, each with a description, schedule, maximum participants, and initial participants. (src/app.py, src/app.pyR41-R76)signup_for_activityfunction to prevent duplicate sign-ups by checking if the user is already in the participants list. If so, anHTTPExceptionwith a 400 status code is raised. (src/app.py, src/app.pyR101-R104)Frontend Enhancements:
Participantssection. (src/static/app.js, src/static/app.jsR28-R33)Styling Improvements:
Participantssection, including a styled container with a light blue background, rounded borders, and customized text colors for better readability. (src/static/styles.css, src/static/styles.cssR145-R169)