Skip to content

[Due for payment 2025-04-23] [Due for payment 2025-04-14] [$125] Empty state animation does not show when switching the tabs #59097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 8 tasks
m-natarajan opened this issue Mar 25, 2025 · 32 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Mar 25, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.1.18-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @kubabutkiewicz
Slack conversation (hyperlinked to channel name): #expensify-bugs

Action Performed:

  1. Go to the Reports tab.
  2. Search for something that does not exist and observe the empty state animation.
  3. Navigate to a different tab, e.g., Settings.
  4. Go back to Search using the Back button.

Expected Result:

The empty state animation should be displayed.

Actual Result:

The empty state animation does not appear.

Workaround:

unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Recording.1085.mp4
Screen.Recording.2025-03-25.at.13.25.13.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021904673874830293667
  • Upwork Job ID: 1904673874830293667
  • Last Price Increase: 2025-03-25
  • Automatic offers:
    • nkdengineer | Contributor | 106709197
Issue OwnerCurrent Issue Owner: @sakluger
Issue OwnerCurrent Issue Owner: @rojiphil
@m-natarajan m-natarajan added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Mar 25, 2025
Copy link

melvin-bot bot commented Mar 25, 2025

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

@nkdengineer
Copy link
Contributor

nkdengineer commented Mar 25, 2025

Proposal

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

The empty state animation does not appear.

What is the root cause of that problem?

We are not rendering EmptySearchView again when user clicks to the device back button

if (shouldShowEmptyState(isDataLoaded, data.length, searchResults.search.type)) {
return (
<View style={[shouldUseNarrowLayout ? styles.searchListContentContainerStyles : styles.mt3, styles.flex1]}>
<EmptySearchView
type={type}
hasResults={searchResults.search.hasResults}
/>
</View>
);
}

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

We should only show the EmptySearchView when isFocused is true and and it will re-render when the user returns to the search page.

    if (shouldShowEmptyState(isDataLoaded, data.length, searchResults.search.type) && isFocused) 

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

None

What alternative solutions did you explore? (Optional)

Or we can only render again EmptyStateComponent here when isFocus changed

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Copy link
Contributor

⚠️ @nkdengineer Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@sakluger sakluger moved this to Bugs and Follow Up Issues in #expensify-bugs Mar 25, 2025
@sakluger
Copy link
Contributor

This feels like a pretty simple change, so I'm going to set the price to $125. Let me know if you disagree.

@nkdengineer I'm not sure what's wrong with your proposal that triggered that automated comment, it looks like the proper format to me 🤷‍♂

@sakluger sakluger added the External Added to denote the issue can be worked on by a contributor label Mar 25, 2025
@melvin-bot melvin-bot bot changed the title Empty state animation does not show when switching the tabs [$250] Empty state animation does not show when switching the tabs Mar 25, 2025
Copy link

melvin-bot bot commented Mar 25, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021904673874830293667

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 25, 2025
Copy link

melvin-bot bot commented Mar 25, 2025

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

@sakluger sakluger changed the title [$250] Empty state animation does not show when switching the tabs [$125] Empty state animation does not show when switching the tabs Mar 25, 2025
Copy link

melvin-bot bot commented Mar 25, 2025

Upwork job price has been updated to $125

@rojiphil
Copy link
Contributor

Thanks for the proposal.
@nkdengineer proposal to rerender using isFocused LGTM. But instead of rendering the entire view, let us restrict the re-rendering to the empty state animation only.
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Mar 28, 2025

Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 28, 2025
Copy link

melvin-bot bot commented Mar 28, 2025

📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@nkdengineer
Copy link
Contributor

@sakluger This issue is not simple when it comes to finding the root cause and the solution, so I think we can consider keeping the old price cc @rojiphil

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 31, 2025
@nkdengineer
Copy link
Contributor

@sakluger could you please check my comment here?

Copy link

melvin-bot bot commented Apr 4, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented Apr 7, 2025

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 7, 2025
Copy link

melvin-bot bot commented Apr 7, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.23-7 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 2025-04-14. 🎊

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

Copy link

melvin-bot bot commented Apr 7, 2025

@rojiphil @sakluger @rojiphil The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 14, 2025
@sakluger
Copy link
Contributor

@nkdengineer I discussed with @luacmartins and we agree that it's fair to pay $250 due to a trickier investigation.

@sakluger
Copy link
Contributor

@rojiphil could you please coomplete the BZ checklist today?

@sakluger
Copy link
Contributor

sakluger commented Apr 14, 2025

Summarizing payment on this issue:

Contributor: @nkdengineer $250, sent offer via Upwork: https://www.upwork.com/nx/wm/offer/106915460
Contributor+: @rojiphil $250, please request on Newdot after completing BZ checklist

@rojiphil
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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:

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: Not Required. The existing checklist is good enough to capture such issues.

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal

Precondition:

Test:

  1. Click on Reports tab in LHN.
  2. Search such that no results exists. This will result in the display of empty state animation
  3. Click on Settings tab in LHN.
  4. Use the browser Back button to navigate back to Reports page
  5. Verify that the empty state animation displays the animation.

Do we agree 👍 or 👎

@rojiphil
Copy link
Contributor

@sakluger BZ Checklist is done. Thanks.

@sakluger
Copy link
Contributor

Thank you @rojiphil - feel free to request payment now.

@sakluger
Copy link
Contributor

@nkdengineer just waiting for you to accept the Upwork offer now.

@nkdengineer
Copy link
Contributor

@sakluger I accepted, thank you

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Apr 16, 2025
@melvin-bot melvin-bot bot changed the title [Due for payment 2025-04-14] [$125] Empty state animation does not show when switching the tabs [Due for payment 2025-04-23] [Due for payment 2025-04-14] [$125] Empty state animation does not show when switching the tabs Apr 16, 2025
Copy link

melvin-bot bot commented Apr 16, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.28-15-staging 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 2025-04-23. 🎊

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

Copy link

melvin-bot bot commented Apr 16, 2025

@rojiphil @sakluger @rojiphil The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@garrettmknight
Copy link
Contributor

$250 approved for @rojiphil

@rojiphil
Copy link
Contributor

@sakluger Can we please close this issue if there is no other pending work here? Thanks.

@melvin-bot melvin-bot bot added the Overdue label Apr 25, 2025
@sakluger sakluger added Daily KSv2 and removed Weekly KSv2 labels Apr 25, 2025
@melvin-bot melvin-bot bot removed the Overdue label Apr 25, 2025
@sakluger
Copy link
Contributor

Yep, thanks for the reminder! Closing.

@github-project-automation github-project-automation bot moved this from Bugs and Follow Up Issues to Done in #expensify-bugs Apr 25, 2025
@nkdengineer
Copy link
Contributor

@nkdengineer requires payment automatic offer (Contributor)

@sakluger I haven't been paid here, could you please reopen the issue to handle it?

Thanks in advance!

@sakluger
Copy link
Contributor

@nkdengineer sorry about that! I completed payment on your Upwork contract.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

6 participants