thunderbird / thunderbird-website

Build code for the websites on thunderbird.net and start.thunderbird.net
https://www.thunderbird.net
152 stars 76 forks source link

Show Thunderbird public events calendar on thunderbird.net #308

Open wsmwk opened 2 years ago

wsmwk commented 2 years ago

@Alecaddd @Sancus what do you think?

Alecaddd commented 2 years ago

Yeah, I think that might be a nice idea. We should create a dedicated public calendar where we mirror only the events we want to share as I don't think we want to publish staff PTO or staff only meetings.

Not sure if possible, but it would be nice to allow a "click-to-auto-setup-in-thunderbird" kind of feature.

Sancus commented 2 years ago

Seems fine to me. Could use the release calendar, or make a new one, depending on if you want version release dates to show up.

I haven't looked into ways to display this on the site, but I would assume there are JS widgets that you can just feed a .ics URL to and they will display it client-side with no server side code needed. And we can provide a prominent link for those who want to add the calendar in Thunderbird, of course.

I'm not 100% sure where it should live. Get Involved page seems like a good spot, but that page already has a lot of stuff on it. So maybe it should be its own page.

jfx2006 commented 2 years ago

Staff PTO is already in a separate PTO calendar. We should put internal events there and use Thunderbird Events for public stuff.

The Thunderbird Events calendar (aka Thunderbird Releases) is a Google calendar. Google calendar ICS URLs will not load via browser fetch requests because they are blocked by CORS. Using the Calendar API is an option. That's how "Upcoming Releases" is populated at https://jfx2006.github.io/thunderbird-ci-docs/.

For simply displaying a list of events, I have to say that the Google Calendar API is pretty easy. Parsing an ICS feed in Javascript is cumbersome and will just add bloat.