-
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
[HOLD for payment 2024-04-15] [$500] Attachments - Next video starts playing when change Playback speed #38831
Comments
Triggered auto assignment to @johncschuster ( |
@johncschuster FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Next video starts playing when change playback speed or next attachment opens. What is the root cause of that problem?
App/src/components/VideoPopoverMenu/index.tsx Lines 31 to 40 in 191d932
Because of this, the playback speed options popover doesn't have an overlay behind it. So, when an option is selected, the click goes to the 'next' option behind the playback speed menu, and it moves to the next attachment. What changes do you think we should make in order to solve the problem?
Playback.mov |
@johncschuster Can you check this when possible? |
Job added to Upwork: https://www.upwork.com/jobs/~01d33a91241a495ee7 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
It seems that @ShridharGoel's proposal is working fine but I wouldn't consider that as the best solution to the issue as it does not solve the root cause. Also, I am not sure why this option was used. I didn't see any visible changes with or without this We should try to explain why clicking on any item on the playback modal also hits the next button and solve this problem. We might face this issue again somewhere else in the App. @ShridharGoel Could you please look for more details on this issue? |
@parasharrajat This is happening because the click event in the popover menu gets propagated to the pressable used for the next attachment button. e.stopPropagation() also doesn't work (Explanation). So I think we should not use PopoverWithoutOverlay in such scenarios and use the Modal component since UI wise both are looking same. |
Ok, thanks. I am kind of fine with this change given that there are no UI changes. Please make sure that there are no issues from this change before moving to PR. I will keep this issue open for a few hours. |
@parasharrajat Tested again, can't see any issues with this solution. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem we are trying to solve is the unexpected behavior where changing the playback speed of a video attachment triggers the next video to start playing or the next attachment to open. This deviates from the expected behavior, which is that only the playback speed of the current video should be affected without any unintended side effects. What is the root cause of that problem?The root cause of the issue lies in how touch events are handled within the What changes do you think we should make in order to solve the problem?To address this issue, we can modify the
Here's an example of how the modified import React from 'react';
import {TouchableWithoutFeedback, View} from 'react-native';
// ...
function PopoverMenu({
// ...
withoutOverlay = false,
// ...
}: PopoverMenuProps) {
// ...
const handleContentPress = (event: any) => {
event.stopPropagation();
};
return (
<PopoverWithMeasuredContent
// ...
withoutOverlay={withoutOverlay}
// ...
>
<TouchableWithoutFeedback onPress={handleContentPress}>
<View style={isSmallScreenWidth ? {} : styles.createMenuContainer}>
{/* ... */}
</View>
</TouchableWithoutFeedback>
</PopoverWithMeasuredContent>
);
} By wrapping the content of the This approach allows us to keep the What alternative solutions did you explore?An alternative solution that was considered involved removing the Another alternative was to create a makeshift overlay using a Cc. @parasharrajat |
Ok, let's roll. @ShridharGoel's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @ShridharGoel 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-15. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary:C+ reviewer: @parasharrajat - $500 paid via NewDot Manual Requests @ShridharGoel, can you please accept the Upwork offer so I can issue payment? Thank you! |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Regression Test Steps
Do you agree 👍 or 👎 ? |
Note to self: Waiting on @ShridharGoel to accept the Upwork invite so I can pay them. Once payment has been issued, this can be closed. |
@johncschuster I've accepted the offer, thanks. |
Payment has been issued! Thanks, everyone! |
Payment requested as per #38831 (comment) |
$500 approved for @parasharrajat |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
**Version Number:**1.4.56-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): gocemate+balto915@gmail.com
Issue reported by: Applause - Internal Team
Issue found when executing PR #37425
Action Performed:
Expected Result:
Video playing speed should be changed
Actual Result:
When change one video speed next video starts playing
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6423497_1711131431269.Recording__2677.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: