Admin Dashboard Campus Event Creation - #320
Conversation
|
[diff-counting] Significant lines: 771. |
|
Great work Amber! One thing I noticed is that the use of hardcoded form indices could potentially break validation if the fields were to change in the future. But otherwise the implementation looks good! |
I agree with this. The logic around form[18] and form[19] works right now, but it feels a bit fragile since adding, removing, or reordering fields could silently break the approval/rejection behavior. It might be worth using helper accessors so it is less dependent on array position. Other than that, the overall flow looks solid! |
Summary
This pull request is implements creating campus events in the admin dashboard. Admins can create or edit an event by filling out a form with information, approve/reject an event, and delete an event.
title, description, start time, end time, location name, latitude/longitude (via MapEntryForm), categoriesand optional fieldsimage URL, all-day toggle (default false), address, check-in radius (default 100m), tags, organizer name, organizer email, check-in method dropdown, points for attendance (default 10), featured toggle (default false), registration URLonUpdateCampusEventDatalistener so an update to one event updates the list without re-requesting the whole listRemaining TODOs: