You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-12-29] [$500] mWeb/Chrome-Contact methods-Confirmation window moves when trying to remove secondary contact method #32262
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: v1.4.5-7 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:
changed the title [-]mWeb/Chrome-Contact methods-Confirmation window moves when trying to remove secondary contact method[/-][+][$500] mWeb/Chrome-Contact methods-Confirmation window moves when trying to remove secondary contact method[/+]on Nov 30, 2023
Please re-state the problem that we are trying to solve in this issue.
Confirmation window moves
What is the root cause of that problem?
We're not waiting until the keyboard closes before showing the modal
What changes do you think we should make in order to solve the problem?
Run the code to show the modal (here or here) inside InteractionManager.runAfterInteractions
What alternative solutions did you explore? (Optional)
Other places that have the issue can be fixed similarly.
An alternative is we can move the logic inside Modal, if the isVisible prop passed in changes from false to true, and another input is focused, it will blur the input/close the keyboard first before set the internal visibility (we'll maintain the inner isVisible of the modal in a state) of the modal to true inside InteractionManager.runAfterInteractions and thus showing the modal.
Instead of InteractionManager.runAfterInteractions, we might be able to use Keyboard.addListener('keyboardDidHide' which will work for native, but I'm not sure this will work on web
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.15-5 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 2023-12-29. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this issue:
@allroundexperts requires payment through NewDot Manual Requests
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:
[@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
[@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@allroundexperts] Determine if we should create a regression test for this bug.
[@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@stephanieelliott] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]mWeb/Chrome-Contact methods-Confirmation window moves when trying to remove secondary contact method[/-][+][$500] mWeb/Chrome-Contact methods-Confirmation window moves when trying to remove secondary contact method[/+]melvin-bot commentedon Nov 30, 2023
Job added to Upwork: https://www.upwork.com/jobs/~010d076df7ad5db3f2
melvin-bot commentedon Nov 30, 2023
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 30, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Nov 30, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (
External)dukenv0307 commentedon Nov 30, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Confirmation window moves
What is the root cause of that problem?
We're not waiting until the keyboard closes before showing the modal
What changes do you think we should make in order to solve the problem?
Run the code to show the modal (here or here) inside
InteractionManager.runAfterInteractionsWhat alternative solutions did you explore? (Optional)
Other places that have the issue can be fixed similarly.
An alternative is we can move the logic inside
Modal, if theisVisibleprop passed in changes from false to true, and another input is focused, it will blur the input/close the keyboard first before set the internal visibility (we'll maintain the inner isVisible of the modal in a state) of the modal to true insideInteractionManager.runAfterInteractionsand thus showing the modal.Instead of
InteractionManager.runAfterInteractions, we might be able to useKeyboard.addListener('keyboardDidHide'which will work for native, but I'm not sure this will work on webyh-0218 commentedon Nov 30, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Confirmation window moves
What is the root cause of that problem?
Because keyboard is closed During show the modal.
What changes do you think we should make in order to solve the problem?
we need update like this.
App/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js
Lines 211 to 215 in e2f4214
What alternative solutions did you explore? (Optional)
ebauger commentedon Nov 30, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Cumulative Layout Shift (CLS) when the delete modal is close.
What is the root cause of that problem?
CLS : https://web.dev/articles/cls
Can be a device performance issue
What changes do you think we should make in order to solve the problem?
Verify if this new implementation can solve the issue and don't make a regression for other platforms on :
App/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js
Lines 211 to 215 in e2f4214
What alternative solutions did you explore? (Optional)
I try on mWeb Safari and the initial logic work. I can investigate the cause if the performance issue in mWeb Android.
Example how to proceed : https://web.dev/articles/optimize-cls
27 remaining items
melvin-bot commentedon Dec 22, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.15-5 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 2023-12-29. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Dec 22, 2023
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:
melvin-bot commentedon Jan 2, 2024
@allroundexperts, @stephanieelliott, @grgia, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too...
grgia commentedon Jan 2, 2024
@stephanieelliott I think this one's ready for payment, let me know if you need anything from me!
stephanieelliott commentedon Jan 3, 2024
Sorry for the wait on this, I'm just returning from OOO!
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~010d076df7ad5db3f2
stephanieelliott commentedon Jan 3, 2024
This is all paid!
situchan commentedon Jan 5, 2024
@stephanieelliott there was regression which was not handled by original author / reviewer
situchan commentedon Jan 5, 2024
If this doesn't apply penalty, along with #33410 (comment), I will take this for future reference.
allroundexperts commentedon Jan 5, 2024
@situchan This was not a regression but rather an improvement. We implicitly agreed upon adding the runAfterAllInteractions function.
situchan commentedon Jan 5, 2024
ok so I'd like to confirm that original folks don't take responsible for follow-up issues caused by their PR if they're not counted as regression.