Add registration validation and more activities #2
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 new activity options, enhances the signup validation logic, and improves the user interface to display participant details. The most important changes include adding new activities, validating duplicate signups, and updating the frontend to show participant lists with styling.
Backend Changes:
activitiesdictionary insrc/app.pyto include sports, artistic, and intellectual activities such as Soccer Team, Art Club, and Math Olympiad. Each activity includes a description, schedule, maximum participants, and initial participant list.signup_for_activityfunction insrc/app.pyto prevent students from signing up for an activity multiple times. Throws an HTTPException if the student is already signed up.Frontend Changes:
src/static/app.jsfile to show a list of participants for each activity on the activity card. Displays "No participants yet" if the list is empty.src/static/styles.cssfor the participant section, including background color, padding, and list formatting to enhance visual presentation.