-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Unread line not showing properly #58771
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
Comments
Triggered auto assignment to @twisterdotcom ( |
Some conversations: This is not a blocker right now, but will be one once we deploy whatever caused this to staging |
Job added to Upwork: https://www.upwork.com/jobs/~021902474591729150774 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-03-20 04:48:15 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Unread marker doesn't show when reopen the report. What is the root cause of that problem?This all happens after #58654. The PR is trying to fix an issue, where after we create a money request and then open the single expense report, both the money request fields view and its IOU preview are shown. ![]() The expected result should look like this: ![]() The root cause of the issue is explained here, basically, we lack the remote information, so the PR always shows a skeleton loader whenever the report is loading. However, I found it to be different. The expected result can be achieved thanks to App/src/pages/home/report/ReportActionsView.tsx Lines 175 to 180 in ca1755f
App/src/libs/ReportActionsUtils.ts Lines 447 to 491 in ca1755f
However, in our case, App/src/libs/ReportActionsUtils.ts Lines 456 to 459 in ca1755f
App/src/libs/ReportActionsUtils.ts Line 449 in ca1755f
When we create a money request, the optimistic transaction thread reportID is already in string, but the RequestMoney API, returns it in integer. Then, the OpenReport API returns it back to string. So, this is a BE bug after all. ![]() ( What changes do you think we should make in order to solve the problem?Revert #58654 and fix the BE bug. IF we can't fix the BE bug, we can update the FE code to. App/src/libs/ReportActionsUtils.ts Lines 457 to 459 in ca1755f
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
Do you think this also solves the upstream issue? I tested this type myself but couldn't get it to work - might have missed something. I'd love to see the PR getting reverted tbh since it reverts offline-first improvements we made recently. EDIT: I'll post recordings later today on all 3 scenarios (current state, revert only, revert + proposed changes) Current Revert only Revert + Proposed changes cc @shawnborton as you might be able to help us here. How do you like the 3rd option, proposed by @bernhardoj? In this scenario we'd go back to the eager rendering, but single expense reports will not load immediately in the full form. |
@bernhardoj for this issue we're currently in I honestly believe just showing/hiding a skeleton earlier/sooner does not have any impact on the green underline. |
Hmm, but from my testing, reverting it fixes the issue.
We don't want to combine the report actions if the
Hmm, I can't repro this one. web.mp4 |
Oh I can see you're opening it on the same account. In upstream, we focus on the received (external) expenses. Can you try on the other end? |
Can I ask you for before/after with the revert on your end? Let's see if we follow the same reproduction steps. It might be I've done things differently. |
I am a bit confused, if I am reading this right, reverting #58654 will fix the green line issue and re-introduce the double rendering the PR was trying to fix, right?
To clarify, you are saying that |
BTW I just checked and I see |
Triggered auto assignment to @tgolen ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
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. |
Just tested this and it's fixed |
Steps:
This is only happening in main but not in staging, so has to be something we changed recently after the last deploy
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jjcoffeeThe text was updated successfully, but these errors were encountered: