Skip to content

[HOLD for payment 2023-12-29] [$500] mWeb/Chrome-Contact methods-Confirmation window moves when trying to remove secondary contact method #32262

Closed

Description

@izarutskaya

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: 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:

Action Performed:

  1. Go to URL https://staging.new.expensify.com/
  2. Login with any account
  3. Go to Settings - Profile - Contact method - New contract method
  4. Add a new contract method, but not validate
  5. Open just added contact method
  6. When the keyboard opens, tap on the remove button

Expected Result:

Confirmation window not moves

Actual Result:

Confirmation window moves

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6295867_1701344893404.Record_2023-11-29-23-19-45.mp4

Bug6295867_1701344893403!Screenshot_2023-11-29-23-20-08-17_99c04817c0de5652397fc8b56c3b3817

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010d076df7ad5db3f2
  • Upwork Job ID: 1730200102411456512
  • Last Price Increase: 2023-11-30
  • Automatic offers:
    • dukenv0307 | Contributor | 28035618

Activity

  1. added
    External
    Daily
    Bug
    on Nov 30, 2023
  2. 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
  3. melvin-bot commented on Nov 30, 2023

    @melvin-bot
  4. melvin-bot commented on Nov 30, 2023

    @melvin-bot

    Triggered auto assignment to @stephanieelliott (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  5. added
    Help Wanted
    on Nov 30, 2023
  6. melvin-bot commented on Nov 30, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. melvin-bot commented on Nov 30, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (External)

  8. dukenv0307 commented on Nov 30, 2023

    @dukenv0307
    Contributor

    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.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

  9. yh-0218 commented on Nov 30, 2023

    @yh-0218
    Contributor

    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.

    toggleDeleteModal(isOpen) {
            Keyboard.dismiss();
            InteractionManager.runAfterInteractions(() => {
                     this.setState({isDeleteModalOpen: isOpen});
            });
    }
    

    toggleDeleteModal(isOpen) {
    this.setState({isDeleteModalOpen: isOpen});
    Keyboard.dismiss();
    }

    What alternative solutions did you explore? (Optional)

  10. ebauger commented on Nov 30, 2023

    @ebauger

    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 :

    toggleDeleteModal(isOpen) {
    this.setState({isDeleteModalOpen: isOpen});
    Keyboard.dismiss();
    }

    What alternative solutions did you explore? (Optional)

    Capture d’écran, le 2023-11-30 à 10 50 12

    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

  11. 27 remaining items

  12. melvin-bot commented on Dec 22, 2023

    @melvin-bot

    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:

  13. melvin-bot commented on Dec 22, 2023

    @melvin-bot

    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:
  14. added
    Daily
    and removed
    Weekly
    on Dec 28, 2023
  15. melvin-bot commented on Jan 2, 2024

    @melvin-bot

    @allroundexperts, @stephanieelliott, @grgia, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too...

  16. grgia commented on Jan 2, 2024

    @grgia
    Contributor

    @stephanieelliott I think this one's ready for payment, let me know if you need anything from me!

  17. stephanieelliott commented on Jan 3, 2024

    @stephanieelliott
    Contributor

    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

  18. stephanieelliott commented on Jan 3, 2024

    @stephanieelliott
    Contributor

    This is all paid!

  19. situchan commented on Jan 5, 2024

    @situchan
    Contributor

    @stephanieelliott there was regression which was not handled by original author / reviewer

  20. situchan commented on Jan 5, 2024

    @situchan
    Contributor

    If this doesn't apply penalty, along with #33410 (comment), I will take this for future reference.

  21. allroundexperts commented on Jan 5, 2024

    @allroundexperts
    Contributor

    @situchan This was not a regression but rather an improvement. We implicitly agreed upon adding the runAfterAllInteractions function.

  22. situchan commented on Jan 5, 2024

    @situchan
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions