echo-webkom / echo-web-mono

🌐 Nettsiden til echo – Linjeforeningen for informatikk på Universitet i Bergen
https://echo.uib.no
19 stars 2 forks source link

Import all events into my calendar #1309

Closed Cengelsen closed 5 months ago

Cengelsen commented 7 months ago

Is your feature request related to a problem? Please describe.

This is not a problem, but a "nice to have"-feature. When i am looking for events to pay attention to, i would prefer to not manually enter them into my calendar. It would be nice if i could import an .ics file, or enter an URL into my Nextcloud calendar so it continually updates.

Describe the solution you'd like

I would like a button that generates and downloads a .ics file that i can import into my calendar, that contains all events. Alternatively, that an URL for calendar update listening is displayed on the event page.

Describe alternatives you've considered

I haven't really considered alternatives.

Additional context

By URL to listen to, i am for example thinking of the calendar stream in mitt.uib.no. I can take that URL and paste it into my Nextcloud like so:

nextcloud_cal_example

"Nytt abonnement fra lenke"

omfj commented 7 months ago

Thanks for the issue! I will look into this.

omfj commented 7 months ago

Sorry, it took so long. Go a bit stuck on the frontend bit, but an MVP is merged. You can try it out here, https://echo.uib.no/beta/calendar.

Please let me know what you think.

Cengelsen commented 7 months ago

Great job! But i have some feedback:

This is the file i receive:

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:adamgibbons/ics
METHOD:PUBLISH
X-PUBLISHED-TTL:PT1H
END:VCALENDAR

This is the same when reading from the URL in Nextcloud.

omfj commented 7 months ago
  1. My apologies. There was a typo that went right over my head. So the first issue should be fixed now.

  2. Wouldn't a calendar event for the start of registration be more helpful than a calendar event for the deadline to sign up for a company presentation? Considering that most of them fill up in minutes?

Cengelsen commented 7 months ago
  1. Great! now it works!

  2. Yes, of course! That would be a lot better :)

Stian108 commented 6 months ago

Now that filmklubb movies are on the frontpage, could we use that data to have these events also available in the calendar as another option? Thanks!

omfj commented 6 months ago

Now that filmklubb movies are on the frontpage, could we use that data to have these events also available in the calendar as another option? Thanks!

Sure! We can make an option for movies as well.

Stian108 commented 6 months ago

I get a "Failed to create ics file" now if I try to include movies, so #1595 doesn't seem to do the job. Thanks again for working on it tho, and so swiftly at that!

Edit: never mind. works now. might not have been entirely rolled out.

omfj commented 6 months ago

Movies are added to the calendar now, create a new URL here: https://echo.uib.no/beta/calendar, or add includeMovies=true to your existing URL.

omfj commented 6 months ago

I get a "Failed to create ics file" now if I try to include movies, so #1595 doesn't seem to do the job. Thanks again for working on it tho, and so swiftly at that!

Hehe, yeah, should be fixed in the latest deployment now. #1596

omfj commented 6 months ago

@Cengelsen Event for registration start for a company presentation is as an option. :)

omfj commented 5 months ago

Closing this issue now. Feel free to open again.

Cengelsen commented 3 months ago

The link to be copied is missing the https://echo.uib.no at the beginning.

incompletelink

Has this been launched to the main site yet? if not, when can we expect this to be a launched feature?

omfj commented 3 months ago

Thanks, @Cengelsen. The url should be fixed now.

We do not, yet, link to this page (/beta/calendar) on the site, if that is what you mean. When we will, I am not sure.

But you can use the /api/calendar-link safely, we won't change the url of that endpoint.

Cengelsen commented 2 months ago

Thank you, but i was thinking that it would be nice if this was a feature available on the main production site and not through /beta/calendar.

That the link that is generated when filtering out what events to be shown on the page is visible there.

Skjermbilde fra 2024-06-23 21-13-19

It would be perfect if it was right underneath the different "filter-tabs" on this page. if not, the feature is neither found or used by anyone.

Cengelsen commented 1 month ago

What is the status on this? I see the link (or entire component) is not on the main page yet. I personally don't see how this is a closed issue until this is done.

omfj commented 1 month ago

Someone is working adding a proper link to the page. It's an internal issue. Not sure of the status.

Cengelsen commented 1 month ago

Alright, thank you! I just think it's such a shame that this feature will not be seen by anyone when you've worked so hard and well on it :sweat_smile: