Skip to content
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

[HOLD for payment 2024-12-12] [HOLD for payment 2024-12-03] [$250] iOS Search - Folder background in the empty state disappears after switching tabs #51735

Closed
2 of 8 tasks
lanitochka17 opened this issue Oct 30, 2024 · 47 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 30, 2024

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.0.55-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • Account has no expenses
  1. Launch ND or hybrid app
  2. Go to Search
  3. Switch between different expense status tab

Expected Result:

The folder background in the empty state will not disappear after switching tabs

Actual Result:

The folder background in the empty state disappears after switching tabs

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
44 52
Bug6650055_1730274333404.ScreenRecording_10-30-2024_15-42-31_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021852040650047940888
  • Upwork Job ID: 1852040650047940888
  • Last Price Increase: 2024-10-31
Issue OwnerCurrent Issue Owner: @garrettmknight
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 30, 2024
Copy link

melvin-bot bot commented Oct 30, 2024

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

@lanitochka17
Copy link
Author

@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-control

@SzymczakJ
Copy link
Contributor

I'm able to reproduce, feel free to assign me, as I can work on it.

@SzymczakJ
Copy link
Contributor

FYI I'll OOO on Friday and Monday.
I've looked into this bug but it seems really strange and I'll probably have to consult the big brains in SWM open-source team to solve this 😄

@garrettmknight garrettmknight added the External Added to denote the issue can be worked on by a contributor label Oct 31, 2024
Copy link

melvin-bot bot commented Oct 31, 2024

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

@melvin-bot melvin-bot bot changed the title iOS Search - Folder background in the empty state disappears after switching tabs [$250] iOS Search - Folder background in the empty state disappears after switching tabs Oct 31, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 31, 2024
Copy link

melvin-bot bot commented Oct 31, 2024

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

@UltraneDevelopment
Copy link

UltraneDevelopment commented Oct 31, 2024

Issue Summary
The folder background disappears in the empty state when switching between different expense status tabs. This issue is currently isolated to iOS (both Standalone and HybridApp), while it works as expected on other platforms.

Proposed Solution

  1. Component State Persistence:
  • Ensure that the component responsible for rendering the empty state background maintains its visibility state across tab switches.

  • Implement persistent state management (using a method such as useState or useRef), so the background doesn’t reset or disappear when changing tabs.

  1. Force Component Re-render on Tab Switch:
  • On iOS, React Native components sometimes need to be explicitly updated during tab switches. By using key or a similar identifier, we can trigger a re-render of the background component, making sure it persists through each tab switch.

  • This will ensure that the background component is rendered consistently across tabs, preventing visibility loss.

  1. Platform-Specific Styling or Rendering:
  • Since the issue is iOS-specific, conditional logic (e.g., Platform.OS === 'ios') can be applied to re-render the background component on tab switches solely for iOS, preserving the behaviour across Android and web.
  1. Testing and Validation:
  • After implementing this solution, I would conduct extensive testing on all affected iOS platforms (Standalone and Hybrid) to verify that the background persists.
  • I’d also test on Android and web to ensure there are no regressions or unintended changes.

Copy link

melvin-bot bot commented Oct 31, 2024

📣 @UltraneDevelopment! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

Copy link

melvin-bot bot commented Oct 31, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@UltraneDevelopment
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~0152633cd2e0038e15

Copy link

melvin-bot bot commented Oct 31, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@SzymczakJ
Copy link
Contributor

I've looked into this issue with @WoLewicki and here's our update:

  • the problem is caused by recycling views that react native is doing on iOS to be more performant. It recycles faulty views that for some reason don't show the background, even though it's properly set,
  • the faulty views are coming from react-content-loader library, as when we comment the components coming from this library the problem is not longer reproducible,
  • we have a workaround for this to just turn off view recycling on iOS native side, but it will come with it's costs, as it will bring performance down
  • as the workaround presented above is not ideal, we will dig deeper to fix the root cause, which is probably located in react-content-loader library

@melvin-bot melvin-bot bot added the Overdue label Nov 5, 2024
@mananjadhav
Copy link
Collaborator

Okay. @garrettmknight if this is handled by the agency should we remove the "Help Wanted" label?

@melvin-bot melvin-bot bot removed the Overdue label Nov 5, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 7, 2024
@SzymczakJ
Copy link
Contributor

No update, I had to prioritise other task(migration of react-native-live-markdown to npm), but I'll work on it tomorrow.

@SzymczakJ
Copy link
Contributor

Bug is complicated, I think we can rule out the react-content-loader, as even overriding the return value of this library to null doesn't fix the bug. I'll continue to work on this on Tuesday, because Monday is bank holiday in Poland.

@melvin-bot melvin-bot bot added the Overdue label Nov 8, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

@garrettmknight, @mananjadhav, @SzymczakJ Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Nov 27, 2024
@SzymczakJ
Copy link
Contributor

PR ready for review, I think now it will be robust enough to cover all edgecases.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 3, 2024
Copy link

melvin-bot bot commented Dec 3, 2024

Payment Summary

Upwork Job

  • Reviewer: @mananjadhav owed $250 via NewDot
  • Contributor: @SzymczakJ is from an agency-contributor and not due payment

BugZero Checklist (@garrettmknight)

  • 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/1852040650047940888/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@garrettmknight garrettmknight moved this from Bugs and Follow Up Issues to Hold for Payment in [#whatsnext] #expense Dec 3, 2024
@garrettmknight
Copy link
Contributor

@mananjadhav please complete the checklist and submit for payment.

@mananjadhav
Copy link
Collaborator

We had to push a second PR to fix this, which was just deployed to staging yesterday. The payout date will be based on this new PR #53199

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Dec 5, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-12-03] [$250] iOS Search - Folder background in the empty state disappears after switching tabs [HOLD for payment 2024-12-12] [HOLD for payment 2024-12-03] [$250] iOS Search - Folder background in the empty state disappears after switching tabs Dec 5, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 5, 2024
Copy link

melvin-bot bot commented Dec 5, 2024

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

Copy link

melvin-bot bot commented Dec 5, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.71-2 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-12-12. 🎊

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

  • @mananjadhav requires payment through NewDot Manual Requests
  • @SzymczakJ does not require payment (Contractor)

Copy link

melvin-bot bot commented Dec 5, 2024

@mananjadhav @garrettmknight @mananjadhav 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]

Copy link

melvin-bot bot commented Dec 12, 2024

Payment Summary

Upwork Job

  • Reviewer: @mananjadhav owed $250 via NewDot
  • Contributor: @SzymczakJ is from an agency-contributor and not due payment

BugZero Checklist (@garrettmknight)

  • 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/1852040650047940888/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@mananjadhav
Copy link
Collaborator

@garrettmknight This was more of a workaround solution with no exact offending PR. Should we skip the checklist for this one? What do you think of adding a regression test for this one?

Regression Test Proposal

  1. Open the app with no expenses or chats.
  2. Go to the search page
  3. You should see a search folder animation icon.
  4. Switch between different tabs (expense statuses).
  5. Ensure the search folder animation is visible. Switch between the tabs atleast a few mins.

@mananjadhav
Copy link
Collaborator

@garrettmknight quick bump on this one.

@melvin-bot melvin-bot bot added the Overdue label Dec 13, 2024
@garrettmknight
Copy link
Contributor

All set - request payment when you're ready!

@melvin-bot melvin-bot bot removed the Overdue label Dec 13, 2024
@mananjadhav
Copy link
Collaborator

Thanks for the prompt action. I've already raised it here.

@JmillsExpensify
Copy link

Payment summary: $250 @mananjadhav for PR review and testing

@mananjadhav
Copy link
Collaborator

Thanks @JmillsExpensify. Quick question, do we need an explicit comment from the BZ member? or checklist from bot comment is enough?

@garrettmknight
Copy link
Contributor

So long as the checklist has been completed by BZ we're good.

@mananjadhav
Copy link
Collaborator

Okay cool then. I've already raised the request on NewDot.

@garrettmknight
Copy link
Contributor

$250 approved for @mananjadhav

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Dec 21, 2024
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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Status: Done
Development

No branches or pull requests

7 participants