-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Payment due 03-04][$500] Menu - Pin & Delete request appear on Receipt image when quickly tap on receipt and 3-Dot menu #33541
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01ea7a6ca457ab8814 |
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Menu - Pin & Delete request appear on Receipt image when quickly tap on receipt and 3-Dot menu What is the root cause of that problem?The root cause is that the Receipt image view and 3-dot menu are modals. The modals always open on top of screen in react native and the last opened modal will be on top What changes do you think we should make in order to solve the problem?I think would be better if we use one component for displaying any modals in root of project . But in this case, we can fix the problem with the following steps.
What alternative solutions did you explore? (Optional)We can add another key in |
This comment was marked as outdated.
This comment was marked as outdated.
ProposalPlease re-state the problem that we are trying to solve in this issue.3-Dot menu (Pin & Delete request) from detail page appear on Receipt image when quickly tap on receipt and 3-Dot menu What is the root cause of that problem?If we click receipt image and 3 dot menu quickly, the receipt image will be opened and then 3 dot menu will be opened on top of it, and currently we don't have any logic to prevent 3 dot menu that are behind modal from being opened on top of the modal. What changes do you think we should make in order to solve the problem?We should use similar approach as this PR that fixes a similar issue. Basically if the three dots menu is behind a modal, its popover should not be visible.
This is basically the same approach already used in this PR for another component, just that in here we relies on the modal visibility rather than screen focus. This is a global fix that makes sure no such issue like this will occur again for the three dots menu, and rely on existing values/lifecycle of What alternative solutions did you explore? (Optional)The We can consider relying on |
I find this extremely difficult to reproduce on my device and emulator. I am not able to quickly press the three dot menu after pressing on the receipt. Any tips to consistently reproduce this? |
@c3024 I run on my physical Android device and press the receipt with 1 finger and immediately press the three dot using another finger and can reproduce it every time, hope that helps 👍 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Menu - Pin & Delete request appear on Receipt image when quickly tap on receipt and 3-Dot menu What is the root cause of that problem?When the user clicks on 3-Dot menu, the menu will be open while the menu is rendering if a user quickly clicks on an attachment the Modal for attachment is also triggered to open, and this issue always happens when device performance is slow. let menu = document.querySelectorAll('button[aria-label="More"]')[0];
let attachment = document.querySelectorAll('[aria-label="View attachment"]')[0];
menu?.click();
attachment?.click() ReproduceScreen.Recording.2023-12-25.at.21.23.14.movWhat changes do you think we should make in order to solve the problem?Due to this issue can happen anywhere in the app so we need to handle it generally. We will create const showModal = () => {
+ ThreeDotsMenuManager.closeMenu()
...
onModalShow?.();
}; What alternative solutions did you explore? (Optional)Instead of create |
Reviewing |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Is there a similar case anywhere else where an undesired three dot menu modal appears over another modal so that a global fix is warranted? |
@c3024 I think a global fix should be made around a new feature, not around bug. Because AttachmentModal is not associated with other modals and works separately . |
looks like we're reviewing this, @c3024 let me know if you need any help from me! |
@c3024 it happens on the normal chat report as well, when pressing three dots and sent attachment at the same time. I believe it happens basically everywhere an AttachmentModal and three dot menu appears together. So yeah I think we need a global fix |
@shahinyan11 There'll be a I'll handle that during the PR. |
@puneetlath, @Christinadobrzyn, @c3024 Eep! 4 days overdue now. Issues have feelings too... |
Ok, plan sounds good to me. |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
working on PR - #34720 |
Ooh boy! #34720 Hit production today! I'll add the payment timeframe in the Title. |
This comment was marked as outdated.
This comment was marked as outdated.
Payouts due: Contributor: $500 @tienifr (paid in Upwork - https://www.upwork.com/nx/wm/offer/101256857) Upwork job is here (it's closed). @tienifr are you paid in upwork or newDot? If yes, can you accept this offer - https://www.upwork.com/nx/wm/offer/101256857 @c3024 do we need a regression test for this? |
@Christinadobrzyn I accepted, thanks! |
Regression Test Proposal
👍 or 👎 |
Awesome! Thank you @c3024 and @tienifr! Both of you are paid based on this payment summary #33541 (comment) I'll submit the regression test on Monday |
submitted regression test - https://github.com/Expensify/Expensify/issues/378295 closing! |
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: 1.4.16-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Expected Result:
The receipt should be open and no 3-Dot menu should be open
Actual Result:
3-Dot menu (Pin & Delete request) from detail page appear on Receipt image when quickly tap on receipt and 3-Dot menu
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6324744_1703317651951.az_recorder_20231222_204456.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: