-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
The feature that allows users to manually add their own clubs to the club list does not appear to be working. When users fill out the Add a Club form and submit it, the new club is not added to the list of available clubs on the page.
Removed dysfunctional code, but broken code can be found at commit 486d3aa.
✅ Expected Behavior
When a user:
-
Opens the Add a Club form
-
Fills in:
- Club Name
- Meeting Day
- Start Time
- End Time
-
Clicks Submit
➡ The new club should appear in the rendered list of clubs, respecting the structure of the existing cards, and be filterable by availability.
❌ Actual Behavior
-
Form input works as expected (no UI issues).
-
On submission:
- No new club card is shown.
- No error messages are displayed.
- No data seems to be saved or rendered to the DOM.
-
Console logs may show nothing, or
clubs.push()
and rendering logic may not be triggered.
🧪 Steps to Reproduce
-
Go to the Clubs section.
-
Open the Add a Club form.
-
Fill out all fields:
- Club Name:
"Debate Society"
- Day:
"Wednesday"
- Start Time:
"18:00"
- End Time:
"19:30"
- Club Name:
-
Click the Add Club button.
-
Observe that no new club is added to the list.
📁 Relevant Files
main.js
— handles the form logic and DOM updatesclubs.js
— contains the default/fake clubs listindex.html
— includes the Add Club form markupcalendar.js
— may be relevant if clubs are shown on the calendar
✅ Acceptance Criteria
- Submitting the Add Club form dynamically adds a new club card
- The new club appears immediately without needing a refresh
- Club respects existing formatting/layout
- User input is validated (all fields required)
- Data persists during the session (via
localStorage
or memory)
Metadata
Metadata
Assignees
Labels
No labels