Show Unreported status badge for expenses without a report#88851
Show Unreported status badge for expenses without a report#88851
Conversation
When expenses in personal chat are not yet reported, the Status column shows empty cells because stateNum/statusNum are undefined. Change the fallback in getReportStatusTranslation and getReportStatusColorStyle to return an "Unreported" badge instead of empty values. Add the unreported badge style to both light and dark themes. Co-authored-by: Jayesh Mangwani <jayeshmangwani@users.noreply.github.com>
|
@shawnborton Adding the screenshots below for confirmation of the new unreported badge. We have used the following colors for the light theme: unreported: {
backgroundColor: colors.productLight400,
textColor: colors.productLight900,
},We have used the following colors for the dark theme: unreported: {
backgroundColor: colors.productDark400,
textColor: colors.productDark900,
},light theme screenshots with high contrast and without it:
|
|
So yeah, I think what you have above is good, but just noting we could use the button color variables if we wanted to be more specific. |
|
Makes sense, @MelvinBot update the colors to use the existing default buttons colors, check this comment for reference: #88851 (comment) |
Co-authored-by: Jayesh Mangwani <jayeshmangwani@users.noreply.github.com>
|
Updated the unreported badge text colors to match the default badge/button colors:
The background colors ( |
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
This works great for me 👍 |
|
@MelvinBot , please add the tests below to the checklist. I can’t edit the PR description, so you’ll need to check all the boxes there.
|
|
Done — updated the PR description with the test steps in both the Tests and QA Steps sections, and checked all the checklist boxes. |
Reviewer Checklist
Screenshots/Videos |
|
@MelvinBot make PR ready for review |
|
I wasn't able to mark the PR as ready for review due to a permissions restriction in my current environment. You can do it yourself by clicking "Ready for review" on the PR page, or by running: |
|
@MelvinBot Please mark it as "Ready for review" |
|
Marked this PR as Ready for review ✅ |
|
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #88007 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@madmax330 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@jayeshmangwani do the manual tests need to be updated? I don't see the unreported badge on your mobile web screenshot |
|
@jayeshmangwani bump |
|
Sorry, I was OOO and delayed in seeing your comment. |
|
@MelvinBot, please update the 4th step to clarify that this is a web-only change, as mobile devices do not have the column options. |
|
Updated step 4 in both Tests and QA Steps to clarify this is a web-only change, since mobile devices do not have the column options. |
|
@cead22, this is a web-only change since mobile devices don’t have the column displayed. We also don’t show status badge on the Spent page’s expense rows, and although report rows under I’ve updated the Tests section to note that this should only be verified on the web. |
|
@jayeshmangwani we show the status on expense rows on mobile now:
|
|
@MelvinBot Please update the Tests and QA sections as below.
|
|
@shawnborton Tested on the latest main, and I can now see the status badge for the expense row. |
|
Updated the Tests and QA Steps sections as requested. |
|
@cead22 , updated the tests and screenshots to reflect the latest badge displayed in the expense row: iOS
mWeb chrome
|
|
Great, thank you! |
|
🚧 @cead22 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/cead22 in version: 9.3.66-0 🚀
|
|
No help site changes are required for this PR. This PR adds a visible "Unreported" status badge for expenses not yet on a report — the help site already documents this concept:
The change is purely visual (badge where there was previously a blank cell), so no new workflows or features need documenting. |
|
Deploy Blocker #89519 was identified to be related to this PR. |

















Explanation of Change
When expenses in a personal chat are not yet on an expense report,
stateNumandstatusNumare undefined. Previously,getReportStatusTranslationreturned an empty string andgetReportStatusColorStylereturnedundefinedin this case, causingStatusCellto render nothing — leaving visible but empty Status column cells.This PR changes both fallbacks so that undefined state/status values now return an "Unreported" label and a neutral badge style, ensuring every expense row displays a meaningful status. The
unreportedbadge style is added to both light and dark themes.Fixed Issues
$ #88007
PROPOSAL: #88007 (comment)
Tests
Spend Tab → Expenses.Unreportedstatus badge:Offline tests
N/A — this change only affects how existing Onyx data is rendered; no network calls are added or modified.
QA Steps
Spend Tab → Expenses.Unreportedstatus badge:PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.AI Tests
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari