Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(download.ts): add location attribute to custom events #1004

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

calejvaldez
Copy link
Contributor

@calejvaldez calejvaldez commented Sep 17, 2024

Summary

I noticed a TODO asking to implement a location for custom events once #249 was finished. I noticed that the issue was completed so I went ahead and implemented it.

Though... it looks a bit funky because CustomEvent.building saves an ID instead of the actual building name. This happens in CustomEventDialog.tsx because it needs a key for the list that's needed in BuildingSelect. Though I noticed that BuildingSelect gets the name of the building using the format I used here.

Test Plan

I tested this by creating a custom event and downloading a .ics. I then imported it to Google Calendar and saw that the location of the event was successfully added.

Google Calendar event displaying a successfully added location to an event.

Issues

N/A, but addresses this line in the code:

// TODO: Add location to custom events, waiting for https://github.com/icssc/AntAlmanac/issues/249
// location: `${location.building} ${location.room}`,

Future Follow-Up

I noticed a TODO asking to implement a location for custom events
once icssc#249 was finished. I noticed that the issue was completed so
I went ahead and implemented it.

Though... it looks a bit funky because CustomEvent.building saves
an ID instead of the actual building name. This happens in
CustomEventDialog.tsx because it needs a key for the list that's
needed in BuildingSelect. Though I noticed that BuildingSelect
gets the name of the building using the format I used here.
@MinhxNguyen7 MinhxNguyen7 requested review from MinhxNguyen7 and removed request for KevinWu098 October 1, 2024 17:39
@MinhxNguyen7 MinhxNguyen7 added the enhancement Improvements to the user experience label Oct 1, 2024
Copy link
Member

@MinhxNguyen7 MinhxNguyen7 left a comment

Choose a reason for hiding this comment

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

LGTM!

Thanks for your contribution!

@MinhxNguyen7 MinhxNguyen7 merged commit d2edecb into icssc:main Oct 1, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to the user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants