Protospace / spaceport

Calgary Protospace's member portal
https://my.protospace.ca
GNU Affero General Public License v3.0
13 stars 9 forks source link

Google calendar support #93

Closed KentBrockman closed 2 years ago

KentBrockman commented 2 years ago

For whatever reason, I have a hell of a time adding classes to my calendar on my iPhone. I can't figure out how to get ics files to open in google calendar so I did this instead:

Screencast from 07-10-2022 12:18:03 PM.webm

Let me know if you detect any bugs or weirdness. Happy to fix

tannercollin commented 2 years ago

This is a great idea! I noticed a few problems though:

The thing is too wide and causes horizontal scrolling on mobile:

image

And it's not intuitive that you need to click the button after selecting it from the dropdown. That's not a big deal though. I suspect all that's needed is a vertical line left of the arrow.

tannercollin commented 2 years ago

Oup, didn't mean to close lol

tannercollin commented 2 years ago

I also noticed a bug when Google Calendar or Download ICS is my saved option, I refresh the page, I open the dropdown, then click outside the dropdown. The setting is changed back to Email but it only happens the first time after a refresh.

tannercollin commented 2 years ago

Fixed the issues in those commits. I tried to break the commits up so you can follow the changes easier.

Note: you'll have to delete the key from your browser's localStorage or it will crash since I capitalized the value.

Also you can use const since no variables change within one execution of the function.

tannercollin commented 2 years ago

Can you test my changes? Then I'll merge + deploy

KentBrockman commented 2 years ago

Nice! Looks good, thanks for fixing it up.

Good call changing the button text to the short form. I think it strikes a better balance between explaining what the button does and keeping it a good size when the dropdown in collapsed Good call on find vs filter - I need to learn all of these built in methods Good call on simplifying the logic with inline boolean logic

I'm having a hard time figuring out what selectOnBlur and the css tweak are doing - my eyes are probably pretty bad at UI stuff. No worries though, LGTM :+1: !!

tannercollin commented 2 years ago

Disabling selectOnBlur fixes this and the CSS tweak is adding a thin vertical line to the left of the arrow.