Skip to content

[HOLD for payment 2024-07-24] LHN not displayed after page refresh from settings page #44860

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.4-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: @suneox
Slack conversation: https://expensify.slack.com/archives/C05LX9D6E07/p1720062549074999

Action Performed:

  1. Go to staging.new.expensify.com
  2. Click Settings > About
  3. Refresh the page

Expected Result:

Page reloads with out any issue

Actual Result:

LHN menu not displayed until navigated to other menu icon

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

Screen.Recording.2024-07-04.at.10.06.45.mp4
Recording.295.mp4

Add any screenshot/video evidence

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @sonialiap

Activity

  1. added
    Daily
    Bug
    AutoAssignerNewDotQuality
    on Jul 4, 2024
  2. melvin-bot commented on Jul 4, 2024

    @melvin-bot

    Triggered auto assignment to @iwiznia (AutoAssignerNewDotQuality)

  3. melvin-bot commented on Jul 4, 2024

    @melvin-bot

    Triggered auto assignment to @sonialiap (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.

  4. added
    Weekly
    and removed
    Weekly
    on Jul 4, 2024
  5. ShridharGoel commented on Jul 4, 2024

    @ShridharGoel
    Contributor

    Proposal

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

    LHN not displayed after page refresh from settings page. Also, menu options inside the about page are not clickable.

    What is the root cause of that problem?

    Coin animation loading freezes the page.

    illustration={LottieAnimations.Coin}

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

    We can do an async load of the animation in this way:

    Add the below in Lottie/index.tsx:

    const [animationFile, setAnimationFile] = useState<string | AnimationObject | {uri: string}>();
    
    useEffect(() => {
        setAnimationFile(source.file);
    }, [setAnimationFile, source.file]);
    

    Now, update to return the below:

    animationFile ? <LottieView
        // eslint-disable-next-line react/jsx-props-no-spreading
        {...props}
        source={animationFile}
        ref={ref}
        style={[aspectRatioStyle, props.style]}
        webStyle={{...aspectRatioStyle, ...webStyle}}
        onAnimationFailure={() => setIsError(true)}
    /> : null
    

    This will fix it for all usages of Lottie animations.

  6. suneox commented on Jul 5, 2024

    @suneox
    Contributor

    Thank @ShridharGoel proposal, but this issue also happens on other settings screens that use Lottie. This issue only started occurring in a few recent releases, so could you please find the offending PR?

  7. ShridharGoel commented on Jul 5, 2024

    @ShridharGoel
    Contributor

    @suneox It has started happening because we have switched to concurrent mode. We can fix this at all places using a common base logic for Lottie animations.

  8. suneox commented on Jul 6, 2024

    @suneox
    Contributor

    @suneox It has started happening because we have switched to concurrent mode.

    @ShridharGoel Thank you. I also tried reverting the code before the merge commit #42592, and the issue doesn’t happen. It only occurs after commit d047467a enabled React concurrent mode.

    We can fix this at all places using a common base logic for Lottie animations.

    We don’t need to fix this at all places using Lottie; we just need to fix it in Lottie/index.tsx.

    @iwiznia We can fix this issue based on this proposal and implement the fix in Lottie/index.tsx. I have tested it, and it works as expected.

  9. 15 remaining items

  10. removed
    Reviewing
    on Jul 17, 2024
  11. melvin-bot commented on Jul 17, 2024

    @melvin-bot

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

  12. melvin-bot commented on Jul 17, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-24. 🎊

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

    • @suneox requires payment (Needs manual offer from BZ)
    • @ShridharGoel requires payment (Needs manual offer from BZ)
    • @suneox requires payment (Needs manual offer from BZ)
  13. melvin-bot commented on Jul 17, 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:

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

    @suneox
    Contributor
    • [@suneox] The PR that introduced the bug has been identified. Link to the PR: Enable React concurrent mode #42592
    • [@suneox] 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: N/A: Due to the offending PR is an infrastructure update.
    • [@suneox] 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: N/A
    • [@suneox] Determine if we should create a regression test for this bug. N/A: This issue has fixed the regression caused by the infrastructure update.
  15. added
    Daily
    and removed
    Weekly
    on Jul 23, 2024
  16. sonialiap commented on Jul 24, 2024

    @sonialiap
    Contributor

    Payment summary:

    • @ShridharGoel $250 $500 - offer sent in upwork - paid ✔️
    • @suneox $250 $500 - offer sent in upwork - paid ✔️
  17. suneox commented on Jul 24, 2024

    @suneox
    Contributor
    • @suneox $250 - offer sent in upwork

    @sonialiap Thank you, I have accepted an offer

  18. melvin-bot commented on Jul 24, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    • ROLE: @suneox paid $(AMOUNT) via Upwork (LINK)
    • ROLE: @ShridharGoel paid $(AMOUNT) via Upwork (LINK)

    BugZero Checklist (@sonialiap)

    • 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//hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  19. sonialiap commented on Jul 25, 2024

    @sonialiap
    Contributor

    This issue was Critical and High Priority so I've adjusted the payouts to $500

  20. suneox commented on Jul 25, 2024

    @suneox
    Contributor

    This issue was Critical and High Priority so I've adjusted the payouts to $500

    Thank you. I really appreciate your recognition of our task.

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

Metadata

Metadata

Labels

AutoAssignerNewDotQualityAwaiting PaymentBugDailyHigh Priority

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions