Skip to content

feat: Add student name field to activity sign-up form#208

Closed
syed-dillu wants to merge 1 commit into
skills:mainfrom
syed-dillu:main
Closed

feat: Add student name field to activity sign-up form#208
syed-dillu wants to merge 1 commit into
skills:mainfrom
syed-dillu:main

Conversation

@syed-dillu

Copy link
Copy Markdown

Description

This PR enhances the student sign-up functionality for extracurricular activities by adding a required "Student Name" field to the sign-up form.

Changes Made

Frontend Updates

  • HTML (index.html): Added a new "Student Name" input field as the first field in the sign-up form
  • JavaScript (app.js): Updated the form submission handler to capture the student name and pass it to the backend API

Backend Updates

  • API Endpoint (app.py):
    • Updated the /activities/{activity_name}/signup endpoint to accept a name parameter
    • Changed participant storage from simple email strings to objects containing both name and email
    • Updated sign-up response message to include the student's name

Data Structure

  • Migrated participant data from email-only format to structured objects: {"name": "...", "email": "..."}
  • Updated all existing activity participants with names

New Activities

  • Added "Art Club" activity with schedule and participant information
  • Added "Cricket Club" activity with schedule and participant information

Benefits

  • Captures complete student information during sign-up
  • Improves data collection for activity tracking and communication
  • Provides better user experience by showing who is registered for each activity

Files Modified

  • src/app.py - Backend API and data model
  • src/static/index.html - Form UI
  • src/static/app.js - Frontend logic
  • src/static/styles.css - Styling updates

@skills-automation

Copy link
Copy Markdown

This pull request has been automatically closed as it was identified as spam by our automated system.

Why was this closed?
Our spam detection system has identified this pull request as not being a genuine contribution to this Skills exercise.

What if this isn't spam?
If you believe this pull request was closed in error and is a legitimate contribution:

  1. Review the contributing guidelines
  2. Re-open this pull request with additional context explaining your changes
  3. Ensure your contribution follows the repository's guidelines and is relevant to the exercise

We appreciate your understanding as we work to keep our repositories focused and helpful for all learners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant