-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Due for payment 2025-03-13] [$250] LHN - Mark as unread doesn't work with IOU report #55614
Comments
Triggered auto assignment to @sakluger ( |
Job added to Upwork: https://www.upwork.com/jobs/~021882151333454468302 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mark as unread doesn't work on a one-expense report. What is the root cause of that problem?When we mark as unread a one-expense report, we mark the transaction thread report as unread instead instead of the expense report. App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx Lines 283 to 284 in 523edfe
What changes do you think we should make in order to solve the problem?We don't need to use
This works fine. However, it's limited to marking the expense report action as unread only. If the one-expense report has an update system message and we press mark as unread, the new line message will show above the message "a". ![]() It's because when we mark as unread, it will take the expense report App/src/libs/actions/Report.ts Lines 1430 to 1431 in 523edfe
To fix this, we should take the transaction thread report App/src/pages/home/report/ReportActionsList.tsx Lines 383 to 386 in 523edfe
But we still have another problem. Even though the new line message now shows on the last system message, the LHN is not bold. That's because Lines 6563 to 6568 in 523edfe
To fix this, we need to apply the same solution above.
I think we can create a util function to get the App/src/components/LHNOptionsList/LHNOptionsList.tsx Lines 117 to 122 in 523edfe
This will now show a bold LHN because However, there is still 1 problem left. If a new system message is added, the LHN will be bold even though it's not unread. That's because the expense report Line 3209 in 523edfe
And also update the effect here to include the transaction thread App/src/pages/home/report/ReportActionsList.tsx Lines 420 to 435 in 523edfe
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can add a new test to UnreadIndicatorsTest.ts to verify the new message line shows on the correct message and LHN is bolded correctly. |
@bernhardoj's proposal is thorough and we can go with the solution here. 🎀👀🎀 C+ reviewed. |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Cool! A lot of moving pieces but that all makes sense. Only quick thought - we should make sure that updating the lastReadTime on any updated request doesn't cause any weirdness elsewhere. I don't expect it will, but it seems like the only part of this that could cause new bugs. Thanks! |
This turned out to be more complex. I'll need more time to open the PR |
Okay, the problem that I'm facing is actually an existing issue: #54679, but was closed because I can't repro it on web anymore, but turns out it's easily reproducible on Android/mWeb. I have requested to reopen it so we can fix that first. |
Great find @bernhardoj! I reopened that other issue and added a hold to this issue for that one. |
@sakluger thanks! |
I think this is good to move forward and take off hold - looks like the fix for that linked issue is on prod? |
Oh, you're right. I'll prepare the PR. |
PR is ready cc: @akinwale |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.9-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 2025-03-13. 🎊 For reference, here are some details about the assignees on this issue:
|
@akinwale @sakluger @akinwale 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] |
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: v9.0.88-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes
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): N/A
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
IOU report should be marked as unread, bold (as in PR #23277)
Actual Result:
Nothing happens
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @saklugerThe text was updated successfully, but these errors were encountered: