Skip to content

[HOLD for payment 2024-03-13] [$1000] Android - Personal Details - User can open both Address and Date of birth when quick tap on them #32753

Closed

Description

@lanitochka17

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.10-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:
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. Open staging.new.expensify.com
  2. Navigate to Settings> Profile > Personal details
  3. Tap on Address field and than quickly tap Date of birth

Expected Result:

User should navigate to Address screen when tap on Address field

Actual Result:

User navigates to Address screen and than land on Date of birth screen

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

Add any screenshot/video evidence

Bug6306297_1702069686347.az_recorder_20231208_182128.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cc50fcdb96ee2879
  • Upwork Job ID: 1733233936302374912
  • Last Price Increase: 2024-02-21

Activity

  1. added
    External
    Daily
    Bug
    on Dec 8, 2023
  2. melvin-bot commented on Dec 8, 2023

    @melvin-bot

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

  3. melvin-bot commented on Dec 8, 2023

    @melvin-bot
  4. changed the title [-]Android - Personal Details - User can open both Address and Date of birth when quick tap on them[/-] [+][$500] Android - Personal Details - User can open both Address and Date of birth when quick tap on them[/+] on Dec 8, 2023
  5. added
    Help Wanted
    on Dec 8, 2023
  6. melvin-bot commented on Dec 8, 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 Dec 8, 2023

    @melvin-bot

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

  8. gijoe0295 commented on Dec 8, 2023

    @gijoe0295
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    User can open both Address and Date of birth when quick tap on them

    What is the root cause of that problem?

    We do not restrict a single action at a time. That's why even while an action is executing, another action can push to the queue.

    What changes do you think we should make in order to solve the problem?

    We can apply the useWaitForNavigation - isExecuting - singleExecution approach that we have been using across the app to make sure it only allow a single execution at a time. For example here.

    For example:

    onPress={() => singleExecution(waitForNavigate(() => Navigation.navigate(ROUTES.SETTINGS_PERSONAL_DETAILS_LEGAL_NAME)))}

    What alternative solutions did you explore? (Optional)

    Check for other places using MenuItem because it may have the same issue.

  9. neonbhai commented on Dec 8, 2023

    @neonbhai
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    User can open both Address and Date of birth when quick tap on them

    What is the root cause of that problem?

    Logic to prevent quick tap in this Menu Item is missing on the PersonalDetailsInitialPage.

    What changes do you think we should make in order to solve the problem?

    We will use the useSingleExecution hook when navigation on this page.

    const {singleExecution, isExecuting} = useSingleExecution();

    This will be coupled with

    const waitForNavigate = useWaitForNavigation();

    Then replace:

  10. tienifr commented on Dec 9, 2023

    @tienifr
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    User navigates to Address screen and than land on Date of birth screen

    What is the root cause of that problem?

    This is happening with almost all the MenuItem navigates to another page. This is because the user clicks on the second menu item before the first menu item finishes navigating.

    What changes do you think we should make in order to solve the problem?

    We used to fix this in another place using a combination of singleExecution and waitForNavigate as can be seen here.

    But this is happening with all MenuItem so I think we should come up with a global fix to avoid this occurring again. Here's my suggestions:

    1. Create a MenuItemGroup component which will use the useSingleExecution and provide a singleExecution method to its children via a context
    2. Wrap the MenuItems or MenuItemWithTopDescriptions inside a screen (where we want to fix) in 1 MenuItemGroup
    3. Update the MenuItem component to get singleExecution from context (from the MenuItemGroup passed down). If singleExecution exists, then wrap its onPress call inside it (and inside waitForNavigate)
    4. So any time we create a new group of MenuItem, we'll wrap them inside MenuItemGroup, then it will have double tap prevention logic baked in and won't ever have this issue.

    What alternative solutions did you explore? (Optional)

    In step 3, if we don't want to add waitForNavigate there, we can add it to the MenuItem or MenuItemWithTopDescription individually when we use it.

    Instead of using a Context, we can iterate the children and add singleExecution to the children, but I prefer Context since it will work well for any level of nested MenuItem inside other components.

  11. c3024 commented on Dec 9, 2023

    @c3024
    Contributor

    @tienifr

    Do we have any examples of Context used like this?

    I see we have a MenuItemList component with iterative approach for MenuItems.

    I think we like to selectively use the singleExecution for certain MenuItems and MenuItemsWithTopDescription only so I don't think we want to keep the Context at a top level so that deeply nested components get the value. If we use singleExecution for certain items only then we want to wrap only those items with provider. While Context can be beneficial in some cases where we can wrap many items, I don't see how it is beneficial than moving the logic to MenuItem and using a prop flag.

  12. 107 remaining items

  13. melvin-bot commented on Mar 13, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    • ROLE: @c3024 paid $(AMOUNT) via Upwork (LINK)
    • ROLE: @tienifr paid $(AMOUNT) via Upwork (LINK)

    BugZero Checklist (@adelekennedy )

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1733233936302374912/hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  14. adelekennedy commented on Mar 13, 2024

    @adelekennedy
    Contributor

    This job closed so I re-used the posting - @c3024 & @tienifr will you apply here: https://www.upwork.com/jobs/~01d9acddb96214da33

  15. tienifr commented on Mar 14, 2024

    @tienifr
    Contributor

    This job closed so I re-used the posting - @c3024 & @tienifr will you apply here: https://www.upwork.com/jobs/~01d9acddb96214da33

    @adelekennedy I applied, thanks!

  16. adelekennedy commented on Mar 18, 2024

    @adelekennedy
    Contributor

    @c3024 have you applied as well?

  17. c3024 commented on Mar 18, 2024

    @c3024
    Contributor

    Yes @adelekennedy Applied. Thanks.

  18. adelekennedy commented on Mar 20, 2024

    @adelekennedy
    Contributor

    hmm I hired you both on Monday but it didn't seem to go through - I've just done it again in Upwork 🤞

  19. tienifr commented on Mar 20, 2024

    @tienifr
    Contributor

    @adelekennedy I’ve accepted the offer, thanks!

  20. c3024 commented on Mar 20, 2024

    @c3024
    Contributor

    I've accepted too @adelekennedy

  21. adelekennedy commented on Mar 20, 2024

    @adelekennedy
    Contributor

    Done! Thank you both for bearing with me

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions