-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add Video Call Chat Links #1878
Conversation
…into luke-add-video-chat-links
…into luke-add-video-chat-links
…into luke-add-video-chat-links
…into luke-add-video-chat-links
src/components/Icon/index.js
Outdated
src: PropTypes.oneOf(_.values(Expensicons)).isRequired, | ||
src: PropTypes.oneOfType([ | ||
PropTypes.oneOf(_.values(Expensicons)), | ||
PropTypes.func, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because I was reluctant to add the Zoom and Meet logos to a file called Expensicons
😄. Willing to do so, but this was my preferred method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say just do it! We could just as easily have called it IconLibrary
or something, but Expensicons
is just a fun name. No need to let that affect the implementation imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call just importing the full-color svg
directly where you used it. 👍🏼
But I think that means that this change is unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see why you need this. My mistake 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I'm not seeing it where is this a func
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the svg imported as functions? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are imported as functional components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh weird OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So then... validating that it is
PropTypes.oneOf(_.values(Expensicons))
serves no purpose at all ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah good point. I think that is redundant now since any function will also pass this type check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is WIP, just some early feedback.
…into luke-add-video-chat-links
For some reason I'm not able to reply to this comment so I'l do that here. This is a good point. Since
What do you think @marcaaron? |
I don't have a strong preference tbh, but I would lean towards just keeping the |
Ok cool, then I think I'll just go for |
Updated to address most recent review (I also changed the animation on close to go up, rather than down, which isn't reflected in the commit names) |
Title: Expected ResultVideo call modal should always be visible Actual ResultVideo call modal only visible in full screen mode Action Performed
PlatformIssue confirmed in: Desktop: ✔️ Build: 1.0.11-0 Notes/Images/Videos |
@isagoico Could I ask for a retest with a reload in between changing from fullscreen to normal? If this does end up being the case, it's something we're aware of and plan to fix in a later PR. |
While exploring if this issue was also reproducible in web I found this behaviour: Grabando.177.mp4I asked a tester with MacOS to check if this was reproducible in the desktop app and indeed it was the same. |
Thank you @isagoico 🙇 |
Also I hope you're enjoying Valheim (and maybe Skatebird as well?) 😄 |
@Luke9389 QQ, In mobile app, is it expected that we are redirected to this screen instead of the new meeting. In web we are redirected to the already created meeting in google meets. |
I think this will depend on whether you have the google meet app or not. Functionally, it's the same because our current solution still relies on the user to copy paste the invitation link into the chat anyway. I think this is fine. |
Sorry for the late feedback, but for desktop - is it possible to animate the call menu's starting launch point from the call icon itself and not from the very top of the application? |
It's possible, yes. But I do think it might be more complexity than is worth it, because right now we're just using a string to define a pre-made animation, but I think to do what you've suggested would require a custom animation. |
Sounds good. I can see where we will want this in other places too, but maybe we can wait until we have more use cases for them and then we can create a contributor issue for it. |
Shawn, keep in mind that if you go from full screen to windowed, the position of this modal will be off. It's possible the effect is more dramatic on your end for that reason. |
I didn't change the size of my screen. I am just observing that the option menu launches from the top edge of the screen, which is weird, because my mouse clicked on an icon that was not at the top edge of the screen. |
Can't we just use a simple fade in/out animation like we do when we right click to reveal the other context menu? |
Oh, I love that idea! |
Sounds good to me! I'll whip up a PR for this |
Details
This change introduces a new menu for video chats. Currently, the implementation just brings up a new video chat (zoom or google meet) and then we expect the user to share the link in the chat.
Possible Improvement
It would be great to have the generated meeting link show up in the chat. This seems possible with Zoom because they have an API, but unfortunately Google Meet doesn't. I'm a bit hesitant to implement it for one but not the other, and since it was not part of the initial issue, I'm going to leave that out for now.
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/156264
Tests / QA Steps
The test steps here are pretty straight-forward.
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android