Skip to content

[HOLD for payment 2024-07-25] [$250] Incorrect animation when accessing Referral information page #44745

Closed

Description

@m-natarajan

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: 9.0.3-6
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: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1719906639184049

Action Performed:

  1. Open app
  2. From global menu click on 'Fab' > start chat
  3. From the bottom of the page click on the referral banner

Expected Result:

Animation should correct when RHP page for referral is opened

Actual Result:

The transition from Start a chat to the Referral RHP page is incorrect.

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

CleanShot.2024-07-02.at.09.49.52.mp4
Recording.281.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018c7e0a6ee4ee4a2e
  • Upwork Job ID: 1808294158595817715
  • Last Price Increase: 2024-07-03
  • Automatic offers:
    • nkdengineer | Contributor | 103052448
Issue OwnerCurrent Issue Owner: @lschurr

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jul 2, 2024
  2. melvin-bot commented on Jul 2, 2024

    @melvin-bot

    Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. neonbhai commented on Jul 2, 2024

    @neonbhai
    Contributor

    Proposal

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

    Incorrect animation when accessing Referral information page

    What is the root cause of that problem?

    On the Participants screen we autofocus the text input, which interrupts the animation making it janky. To handle the animations correctly we need it to be a part of screens with autofocus here

    It occurs as FocusTrap tries to override the autofocus behavior of the page (for the initialFocus behaviour), causing the animations to be interrupted

    // We don't want to ovverride autofocus on these screens.
    initialFocus: () => {
    if (SCREENS_WITH_AUTOFOCUS.includes(activeRouteName)) {
    return false;
    }

    InitialFocus tries to focus on the first element (which is not the textInput for this page):

    Screenshot 2024-07-03 at 3 51 34 PM

    We solve a similar issue with sign page in #43985

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

    We should add SCREENS.MONEY_REQUEST.STEP_PARTICIPANTS to SCREENS_WITH_AUTOFOCUS

    const SCREENS_WITH_AUTOFOCUS: string[] = [
    ...Object.keys(CENTRAL_PANE_WORKSPACE_SCREENS),
    SCREENS.REPORT,
    SCREENS.REPORT_DESCRIPTION_ROOT,
    SCREENS.PRIVATE_NOTES.EDIT,
    SCREENS.SETTINGS.PROFILE.STATUS,
    SCREENS.SETTINGS.PROFILE.PRONOUNS,
    SCREENS.NEW_TASK.DETAILS,
    SCREENS.MONEY_REQUEST.CREATE,
    ];

    Result:

    This works perfectly:

    Screen.Recording.2024-07-03.at.2.21.26.AM.mov
  4. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jul 3, 2024
  5. changed the title [-]Incorrect animation when accessing Referral information page[/-] [+][$250] Incorrect animation when accessing Referral information page[/+] on Jul 3, 2024
  6. melvin-bot commented on Jul 3, 2024

    @melvin-bot
  7. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jul 3, 2024
  8. melvin-bot commented on Jul 3, 2024

    @melvin-bot

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

  9. nkdengineer commented on Jul 3, 2024

    @nkdengineer
    Contributor

    Proposal

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

    What is the root cause of that problem?

    After we implement the focus trap, the animation can be janky if we navigate to a screen that is not a screen with autofocus in RHP or LHP.

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

    We should add the refer page to SCREENS_WITH_AUTOFOCUS

    SCREENS.REFERRAL_DETAILS,
    

    https://github.com/nkdengineer/App/blob/3b18d08786c0f8960f2824261350b8ba0244b7bc/src/components/FocusTrap/SCREENS_WITH_AUTOFOCUS.ts#L4

    What alternative solutions did you explore? (Optional)

  10. jnowakow commented on Jul 3, 2024

    @jnowakow
    Contributor

    It also happens on chat details screens:

    rhp-bug.mov
    rhp-2.mov

    And also on Search:

    rhp-3.mov
  11. Ollyws commented on Jul 3, 2024

    @Ollyws
    Contributor

    @neonbhai Could you expand the RCA a little, because in the PR that added the focus-trap (#39520) this issue does not occur.

  12. neonbhai commented on Jul 3, 2024

    @neonbhai
    Contributor

    @Ollyws hi, I've updated the proposal here

  13. 20 remaining items

  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Jul 18, 2024
  15. changed the title [-][$250] Incorrect animation when accessing Referral information page[/-] [+][HOLD for payment 2024-07-25] [$250] Incorrect animation when accessing Referral information page[/+] on Jul 18, 2024
  16. melvin-bot commented on Jul 18, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Jul 18, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.8-6 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-07-25. 🎊

    For reference, here are some details about the assignees on this issue:

  18. melvin-bot commented on Jul 18, 2024

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

    • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
    • [@Ollyws] 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:
    • [@Ollyws] 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:
    • [@Ollyws] Determine if we should create a regression test for this bug.
    • [@Ollyws] 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.
    • [@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  19. Ollyws commented on Jul 20, 2024

    @Ollyws
    Contributor

    We're closing the PR because #44932 already fixed the issue while we were working on it. According to the C+ doc section 17 the contributor and C+ are due compensation in this situation, thanks!

  20. lschurr commented on Jul 26, 2024

    @lschurr
    Contributor

    Payment summary:

  21. Ollyws commented on Jul 26, 2024

    @Ollyws
    Contributor

    Requested on ND.

  22. JmillsExpensify commented on Jul 26, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @Ollyws

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

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions