-
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
[$500] Chat - Pressing ESC closes the video preview modal instead of Download and Playback modal #36902
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01cb3dff1b828d5004 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @Julesssss ( |
Edge case, not a blocker |
Hey @Julesssss if this is an edge case can we still review/submit proposals or will this be assigned down the road if/when it becomes a higher priority? |
@hkopser99 yeah, my comment was just to remove the high priority label. THis will be made external 👍 |
Triggered auto assignment to @Christinadobrzyn ( |
Current assignee @jjcoffee is eligible for the External assigner, not assigning anyone new. |
Hi @jjcoffee Proposal: Please re-state the problem that we are trying to solve in this issue: When a user presses esc instead of ending the video player preview during the video attachment upload flow, it escapes from the attachment upload completely. What is the root cause of that problem?: Default escape key behavior escapes from the video preview modal and prevents user from proceeding with uploading the attachment rather than simply pausing the video preview. What changes do you think we should make in order to solve the problem? In BaseVideoPlayer.js I would implement logic to recognize an esc key press, override default behavior, and use a callback that would call pauseVideo() if isVideoPlaying is set to true. What alternative solutions did you explore? (Optional): Given existing functionality, this seems like the smoothest solution unless additional functionality is desired when a use presses esc on desktop browsers or MacOS App. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing ESC closes both the video player popover and the video player preview modal. What is the root cause of that problem?Both video player preview modal (BaseModal) and video player popover (PopoverWithoutOverlay) catch the ESC event. PopoverWithoutOverlay listens for keydown, while BaseModal ( App/src/components/PopoverProvider/index.tsx Lines 61 to 72 in 74540f8
App/patches/react-native-modal+13.0.1.patch Lines 21 to 38 in 74540f8
In What changes do you think we should make in order to solve the problem?We should follow the same pattern we already have in
App/src/components/PopoverProvider/index.tsx Lines 24 to 32 in 74540f8
However, this still won't work because PopoverWithoutOverlay and BaseModal listen for different events (mentioned on the root cause). We should decide whether we want to use What alternative solutions did you explore? (Optional)Use BaseModal instead of PopoverWithoutOverlay by removing App/src/components/VideoPopoverMenu/index.js Lines 28 to 37 in 74540f8
|
Happy that @bernhardoj's proposal identifies the correct root cause and that the solution fits decently with it. I think it makes sense to switch to @hkopser99 Thanks for your proposal! Unfortunately it's lacking somewhat in details, and the solution proposed doesn't match the expected result (we don't want to pause the video). Please also make sure to use the proposal template exactly as it appears (don't strip the formatting), as this makes it easier for everyone to parse your proposal quickly. 🙏 🎀👀🎀 C+ reviewed |
Current assignee @Julesssss is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@jjcoffee Thanks for reviewing and the feedback. I will do better next time and will use the exact proposal template. |
@Julesssss would you be able to review the decision here - #36902 (comment) when you have a moment |
Yep, I missed this somehow. Done! |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @jjcoffee |
Now, it doesn't even show the preview of the video Screen.Recording.2024-02-23.at.10.27.24.PM.mp4 |
📣 @Rajat1120! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
This hit production 2 weeks ago. |
Regression Test Proposal Desktop only:
Do we agree 👍 or 👎 |
@Christinadobrzyn Checklist complete! This one's due payment, the automation just looks to have failed. |
Ah thanks for moving this along @jjcoffee Payouts due: Contributor: $500 @bernhardoj (paid in Upwork - https://www.upwork.com/nx/wm/workroom/36436009/overview) Upwork job is here. Regression test: https://github.com/Expensify/Expensify/issues/378294 Closing! let me know if I missed anything! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.43-2
Reproducible in staging?: y
Reproducible in production?: new feature
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Pressing ESC should not close the video preview modal, it should only close the Download and Playback modal
Actual Result:
Pressing ESC closes the video preview modal instead of Download and Playback modal
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6385631_1708430465452.2024-02-20_14-37-14__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: