-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-08-20][$500] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat #40937
Comments
Triggered auto assignment to @sakluger ( |
@sakluger 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 |
We think that this bug might be related to #wave-collect - Release 1 |
Job added to Upwork: https://www.upwork.com/jobs/~01dee105cffad79099 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Cannot reproduce... Screen.Recording.2024-04-25.at.01.25.51.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat What is the root cause of that problem?App/src/pages/home/report/ReportActionsView.tsx Lines 164 to 182 in 0f39e43
The issue is that when the network is slow, loading is set to true, and then when the page switches, loading remains true, resulting in an empty array being returned. If the page is not refreshed, loading will remain blank, waiting for the response to return. What changes do you think we should make in order to solve the problem?remove condition isLoading in Line 169 if not effect another PR. As your comment suggests, even if loading, it shouldn't be blank, should use data what we had. Therefore, I suggest removing it here. What alternative solutions did you explore? (Optional)N/A |
Reproduce method is turn on slow network, like chrome network or emulator setting |
ProposalPlease re-state the problem that we are trying to solve in this issue.Collect WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat What is the root cause of that problem?The reportsActions array is temporarily empty in the ReportActionsView while loading new report data on slow connections. This is because it takes a while for the response to be received from the backend and within the reportActionView component we set reportActions to an empty array while loading.
What changes do you think we should make in order to solve the problem?In the reportsActionsView component we can return a skeleton loader instead of null when the reportActions array is temporarily empty. In ReportsActionsView.tsx:
Changes to:
What alternative solutions did you explore? (Optional)None Screen.Recording.2024-04-25.at.18.26.02.mov |
@beodw Thanks for the proposal! I think the expected result here is probably not to show a loader, as we actually already have all the data we need. It looks like there's something specifically wrong with loading via the route that highlights the expense's 40937-desktop-chrome-2024-04-29_11.18.22.mp4 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@beodw @charles-liang do you have any updated proposals based on @jjcoffee's comment? |
@charles-liang Apologies for not giving feedback on your proposal. We don't need to implement caching as such. You can see from the issue's video that tapping on the report directly loads it just fine (as I also point out here). |
@jjcoffee I'm also apology that I miss understand your comment. |
Proposal |
@marcaaron Yes, looks like #43791 is merged so we're ready to move forward here! Was there anything else you needed to clarify with @tsa321's proposal? |
It's been a while but I've been waiting on an answer this:
@tsa321 can you chime in / are you still interested in working on this issue? |
@marcaaron please wait. I will take another look. |
@marcaaron, currently the
The condition App/src/pages/home/ReportScreen.tsx Line 406 in 55a29dd
and: App/src/pages/home/ReportScreen.tsx Line 791 in 55a29dd
The |
I have created a test branch to show the code changes. I need to remove the |
📣 @tsa321 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Ok, let's give it a shot and test. |
PR is under review, just one little issue that I think is also there on main, but otherwise testing really well! |
I discovered an issue on native (iOS & Android) whilst testing the PR that was also there on main. We decided to fix it as a follow-up and @tsa321 has a solution, so @sakluger would you be able to create an issue and assign us both? (I'm not sure what the process is otherwise!). Repro steps (video here):
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@marcaaron Are you able to create the follow-up issue we discussed? Details here. Or is there some other process we should follow? |
yes, report bug in #expensify-bugs |
@jjcoffee thanks for being on top of everything here! And sorry for the delayed payment. All done now 🙇 |
@sakluger Thanks for making the payment! It looks like the job price didn't update to $500, any way you can correct it? |
@jjcoffee - sorry about that! I added a $250 bonus to the contract to bring the total payment to $500. |
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: 1.4.65-4
Reproducible in staging?: Y
Reproducible in production?: 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:
Expected Result:
Collect WS chat with history opens
Actual Result:
Blank page opens when go back from IOU thread in a Collect WS chat
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6460580_1713980697854.Blank_page.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @thesahindiaThe text was updated successfully, but these errors were encountered: