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(gcal): add Google Meet #8818

Merged
merged 7 commits into from
Sep 27, 2023
Merged

feat(gcal): add Google Meet #8818

merged 7 commits into from
Sep 27, 2023

Conversation

nickoferrall
Copy link
Contributor

Fix #8764

Demo: https://www.loom.com/share/b50eda8bde6e43168b64c6763d2e2a9d

To test

  • Select the "Meet" as the video conferencing type and see the Meet link in the created gcal event
  • Don't select any video conferencing type and see that none are added

@acressall
Copy link
Contributor

Let's use this style to keep it consistent with the other fields and to make sure it has a label

@igorlesnenko
Copy link
Contributor

@nickoferrall I'm getting the following error when trying to start a meeting

6:24:39 1|GraphQL Executor  | Trace: SEND TO SENTRY Could not retrieve Google Calendar auth undefined undefined

What could be wrong?

@igorlesnenko
Copy link
Contributor

igorlesnenko commented Sep 12, 2023

@nickoferrall looks like it does not work with one-on-one only, I probably need to check

@igorlesnenko
Copy link
Contributor

igorlesnenko commented Sep 12, 2023

@nickoferrall oh I know what is the issue with one on one

  1. if we automatically create a new team on the backend — there is no google auth added.
  2. With existing team that will be reused, frontend does not know that teamId so it will authenticate google for some default team

I'm not sure there is a quick solution for these, so I will disable schedule button for one-on-one page and will create an issue regarding this, if no objections

Issue created #8820

@nickoferrall
Copy link
Contributor Author

6:24:39 1|GraphQL Executor | Trace: SEND TO SENTRY Could not retrieve Google Calendar auth undefined undefined
What could be wrong?

I haven't been able to reproduce that. Do you see that error when you're creating the meeting? A Loom would be great

Issue created #8820

Thanks for creating an issue!

@nickoferrall nickoferrall requested review from Dschoordsch and removed request for Dschoordsch September 13, 2023 17:36
@nickoferrall
Copy link
Contributor Author

nickoferrall commented Sep 13, 2023

Let's use this style to keep it consistent with the other fields and to make sure it has a label

@acressall this is tricky as I'm using our Menu component that we use throughout the app. I would probably need to use the MaterialUI dropdown menu instead to get the label there when opening it, which would be inconsistent with other menus in the app. The reason the datetime is like that is because I'm using the MaterialUI datepicker as it'd be too time-consuming to build it from scratch.

The meeting name and email invite inputs don't have the label at the top. Do you think the current implementation would work or do you feel strongly that we need the label when it opens?

@acressall
Copy link
Contributor

Ok, I do think we need a label for accessibility. Here's a simpler version we're using for ad-hoc teams https://www.figma.com/file/Vc09AD3hxef2ypriihfK0T/Flow---ad-hoc-teams?type=design&node-id=61-3385&mode=design&t=CAK5lsq0Uvc2jl4S-4
Frame 4

@nickoferrall
Copy link
Contributor Author

Ok, I do think we need a label for accessibility. Here's a simpler version we're using for ad-hoc teams https://www.figma.com/file/Vc09AD3hxef2ypriihfK0T/Flow---ad-hoc-teams?type=design&node-id=61-3385&mode=design&t=CAK5lsq0Uvc2jl4S-4

@acressall could you share designs with how that would look in the gcal modal, please?

If we add a label with "Add Video Conferencing", what would the default value in the dropdown menu be? If it's "Google Meet", my concern is users might think that it's already selected - see here:

Screenshot 2023-09-14 at 15 34 25

The menu in the current PR has an ariaLabel for accessibility. Here are the screenshots of how it currently looks in this PR:

Screenshot 2023-09-14 at 15 28 42
Screenshot 2023-09-14 at 15 28 47
Screenshot 2023-09-14 at 15 28 51

And in Gcal:

Screenshot 2023-09-14 at 15 30 28
Screenshot 2023-09-14 at 15 30 32

@nickoferrall
Copy link
Contributor Author

Tagging in Georg for a review to get eyes on the code while going through design review

@acressall
Copy link
Contributor

Ok, for now let's keep it as what you had, and I'll make a task to review the field styles in the UX backlog

@nickoferrall nickoferrall requested review from mattkrick and removed request for acressall and Dschoordsch September 18, 2023 08:30

const VideoConferencing = (props: Props) => {
const {videoType, handleChangeVideoType} = props
const {togglePortal, originRef, menuPortal, menuProps} = useMenu(MenuPosition.UPPER_CENTER)
Copy link
Member

Choose a reason for hiding this comment

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

-1 could you use @radix-ui/react-dropdown-menu or another radix component here? They offer SO MUCH bug free great little accessibility features that this old one doesn't. Soon I wanna replace all my crummy menu/modal hacks with radix!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I started using Radix but refactored back to the old pattern because it wasn't working well with MUI - see: #8711. I'm running into a similar issue here with Radix where the parent closes when the menu closes, and the menu items aren't clickable.

Once #8711 is resolved, I'd like to refactor the gcal modal away from the old pattern to Radix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @mattkrick, just following up to see if this is good to merge?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @mattkrick, bumping this

Copy link
Member

Choose a reason for hiding this comment

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

merging now, it'll make the ship this week!

@igorlesnenko
Copy link
Contributor

6:24:39 1|GraphQL Executor | Trace: SEND TO SENTRY Could not retrieve Google Calendar auth undefined undefined
What could be wrong?

This was one-on-one meeting issue

@mattkrick mattkrick merged commit 93fac15 into master Sep 27, 2023
@mattkrick mattkrick deleted the feat/8764/add-meet-link branch September 27, 2023 22:48
@mattkrick mattkrick mentioned this pull request Sep 27, 2023
22 tasks
@rafaelromcar-parabol rafaelromcar-parabol mentioned this pull request Oct 4, 2023
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gcal Integration: add Meet link
4 participants