Repository navigation
Description
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: 9.2.74-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #75934
Email or phone of affected tester (no customers): ibellicotest+2180@gmail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Motorola MotoG60 / Android 12 / Chrome ( mWeb / Hybrid app) - Windows 11 / Chrome
App Component: Left Hand Navigation (LHN)
Action Performed:
Prerequisite: Have two accounts opened on two different devices or environments.
Prerequisite 2: User A has at least one workspace created.
- Open the staging.new.expensify.com website.
- Open any workspace chat.
- Tap the chat header and select Members.
- Invite User B as a member.
- Switch to User B's account.
- Open the same workspace chat.
- Switch back to User A's account.
- Create three manual expenses in the workspace chat.
- Switch again to User B's account.
- Verify that the LHN subtitle displays the "WorkspaceName- owes -amount-" as the last message in the workspace chat
- As User B, open expenses report.
- Note that the LHN subtitle of workspace chat, now displays the report´s title.
- Return to workspace chat.
- Note that the LHN subitlte of workspace chat, still shows the report´s title instead of "WorkspaceName- owes -amount"
Expected Result:
After member of workspace opens report of expenses created by admin, the workspace chat should still display "WorkspaceName- owes -amount" as subtitle on preview.
Actual Result:
After member of workspace opens report of expenses created by admin, the workspace chat preview on LHN changes to report´s title instead of showing "WorkspaceName- owes -amount" as subtitle.
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Bug7024924_1765287452302.LHN.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021998496943992918053
- Upwork Job ID: 1998496943992918053
- Last Price Increase: 2026-02-18
Issue Owner
Current Issue Owner: @robertjchenMetadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Dec 9, 2025
Triggered auto assignment to @isabelastisser (
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.imadirtydog commentedon Dec 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN -When opening report created by admin, LHN shows report name instead of "Workspace owes
What is the root cause of that problem?
Here
App/src/libs/OptionsListUtils/index.ts
Lines 660 to 662 in 9733c70
The logic is explicitly set so that it uses report title for ws chats.
What changes do you think we should make in order to solve the problem?
It will be necessary to remove this code block
I.e. the code would look like this
What alternative solutions did you explore? (Optional)
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.
e
[-]LHN -When opening report created by admin, LHN shows report name instead of "Workspace owes"[/-][+][$250] LHN -When opening report created by admin, LHN shows report name instead of "Workspace owes"[/+]melvin-bot commentedon Dec 9, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021998496943992918053
melvin-bot commentedon Dec 9, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (
External)Nodebrute commentedon Dec 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
When opening report created by admin, LHN shows report name instead of "Workspace owes"
What is the root cause of that problem?
Actually the correct expected behaviour is to show report title here even when the user has not opened the report yet. So the bug is that
the LHN shoes worspace owesinstead of report title. Can confirm this from this commentApp/src/libs/OptionsListUtils/index.ts
Lines 659 to 660 in 3546b70
and also from the tests
App/tests/unit/SidebarUtilsTest.ts
Line 1423 in 3cb118c
Before opening the report
iouReportis empty and falls back togetReportPreviewMessagethat showsowes amount❌After opening the report
iouReportgets loaded and uses report name that shows report title ✅What changes do you think we should make in order to solve the problem?
We can use
lastReportAction?.childReportNameto get the report name that is available immediately the same approach we also use ingetReportPreviewMessagewe can change this
App/src/libs/OptionsListUtils/index.ts
Lines 660 to 663 in 3546b70
Note: This is just pseudocode. The overall concept will be the same and minor adjustments and lint fixes can be done in the pr.
Optional: We can make
iouReport.reportNamepriorityWhat alternative solutions did you explore? (Optional)
lukeahill97 commentedon Dec 10, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a workspace member opens an expense report created by the admin, the LHN subtitle for the workspace chat changes from "WorkspaceName owes amount" to the report's title. After returning to the workspace chat, the LHN subtitle continues to show the report title instead of reverting to "WorkspaceName owes amount".
What is the root cause of that problem?
The root cause is in
src/libs/OptionsListUtils/index.tsaround lines 660-663. The code has a special case that overrides the preview message for workspace chats:The issue is that this check depends on whether
iouReportis loaded:Before opening the report:
iouReportis empty/not loadedisEmptyObject(iouReport)returnstruegetReportPreviewMessage()which shows "Workspace owes amount" ✓After opening the report:
allReportsisEmptyObject(iouReport)returnsfalsegetReportName(iouReport)✗The problem is that the LHN display logic changes based on the report's load state rather than being consistent.
What changes do you think we should make in order to solve the problem?
Option 1: Always use the preview message for workspace chats with report previews
Remove the special case override for workspace expense chats when the last action is a report preview. The
getReportPreviewMessagefunction already handles workspace chats appropriately and returns consistent results regardless of load state.Modify the condition to exclude report preview actions:
This ensures:
getReportPreviewMessage()which shows "owes amount"Option 2: Check for actual money request count instead of just report existence
Only show the report name when the report has actual transactions:
This would prevent the override for expense reports that should show the "owes" preview message.
Recommended: Option 1 - It's cleaner and ensures consistency by respecting the action type.
What alternative solutions did you explore? (Optional)
Remove the entire special case (as suggested by imadirtydog) - This might break other scenarios where workspace chats need to show the report name. We need to be more surgical.
Always use childReportName (as suggested by Nodebrute) - Nodebrute makes an interesting argument that the expected behavior is reversed based on code comments and tests. However, this contradicts the issue description which treats "owes amount" as correct.
Check if report was recently opened - Track whether the report was accessed and use that to determine display logic. This adds unnecessary state management.
The proposed solution (Option 1) is cleanest because it makes the LHN display logic action-type aware rather than load-state dependent, ensuring consistent behavior.
shubham1206agra commentedon Dec 15, 2025
This is internal as Pusher did not send the iouReport during creation of the report. If this is intentional, we can take a second look at proposals.
52 remaining items
Nodebrute commentedon Mar 5, 2026
Will raise a pr today.
robertjchen commentedon Apr 9, 2026
Just checking back in on this- was a PR created/merged on this?
shubham1206agra commentedon Apr 9, 2026
@robertjchen I don't think so.
IuliiaHerets commentedon Apr 28, 2026
Issue is not reproducible anymore by QA team
Not.mp4
robertjchen commentedon Apr 28, 2026
thanks for the test, closing this out for now as it is no longer reproducible
shubham1206agra commentedon Apr 28, 2026
@mallenexpensify Can you issue 50% payout here as per https://docs.google.com/document/d/1BvohU05MTaHnjOD_vwJv_aqDAirv-ChkyRnKCAvOVyQ/edit?tab=t.0#bookmark=id.by6zfdtawcqn?
mallenexpensify commentedon Apr 28, 2026
Timeline....
@Nodebrute not due payment
@shubham1206agra is technically due 50%. Although, as the assigned lead on the issue and PR, I would have liked to see you push the contributor to bet the PR created. That's a responsibility of the C+. Please monitor issues/PRs more closely to ensure there's not a two month gap with nothing happening.
Payment Summary
Contributor+: @shubham1206agra due $125 via NewDot
JmillsExpensify commentedon May 1, 2026
$125 approved for @shubham1206agra