Skip to content

Allow bulk creation of SCE events using CSV files - #2181

Open
ethanccheng wants to merge 2 commits into
SCE-Development:devfrom
ethanccheng:feature/create-events-thru-csv
Open

Allow bulk creation of SCE events using CSV files#2181
ethanccheng wants to merge 2 commits into
SCE-Development:devfrom
ethanccheng:feature/create-events-thru-csv

Conversation

@ethanccheng

Copy link
Copy Markdown
Screenshot 2026-08-12 225314
Recording.2026-08-12.151451.mp4

Features: Adds import CSV option to create SCE events page. Displays table for data upon file upload. Click create events to publish all events in CSV file. Currently no support for adding registration questions or adding other event admins.

Image is example of a CSV file to create SCE events. Must include headers and each row is a single event. Date and time must be in the same format shown and publish status + visibility must be lowercase. To disable waitlist, put -1 as value. Publish date can be left empty if N/A.

Comment thread src/Pages/Events/CreateEventPage.js Outdated
if (!file) return;

if (file.size > maxFileSize) {
alert('File size exceeds the 10MB limit.');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use

export default function ConfirmationModal(props) {

also in the message, include how many bytes the file is like

file is size 1234567, this exceeds the 10MB upload limit


async function handleFileCreateEvent() {
for (const row of values) {
const waitlistValue = Number(row[6]);

@evanugarte evanugarte Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we be 100% sure that the row has at least 7 elements? like a small if statement,

and small comment for what each column means like

date,title,description,...

otherwise this happens

a = []
a[4] // undefined

@ethanccheng
ethanccheng force-pushed the feature/create-events-thru-csv branch from ca08f66 to f303f37 Compare August 17, 2026 21:13
@ethanccheng

Copy link
Copy Markdown
Author
image image

First image: warning if any elements in any rows are missing
Second image: warning if any required headers are missing

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants