Show View button instead of status badge in Action column for Paid/Done reports#84626
Conversation
…ne reports The Action column was rendering a colored status badge (BadgeActionCell) for reports with Paid or Done status, duplicating the information already shown in the dedicated Status column. This replaces the badge with a View button for these terminal states, keeping other action buttons (Submit, Approve, Pay) unchanged. Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
|
Fixed the failing Prettier check: ran Prettier on |
Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
…eFromActionColumn' into claude-removeDuplicateStatusBadgeFromActionColumn Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
|
Fixed the failing Prettier check: the |
This comment has been minimized.
This comment has been minimized.
|
Tested and looks good to me, let's get this into review @FitseTLT |
trjExpensify
left a comment
There was a problem hiding this comment.
Shawn created this one. 👍
|
@MelvinBot can u remove unnecessary code, now that we don't need badge for paid and done actions? |
BadgeActionCell.tsx is no longer imported or used after removing badge rendering for Paid/Done actions. Delete the dead file. Co-authored-by: Fitsum Abebe <FitseTLT@users.noreply.github.com>
|
Deleted the unused Note: The |
|
@carlosmiceli 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] |
|
@MelvinBot I also see |
No caller passes isLargeScreenWidth to ActionCell — it always defaults to true, making the null branch dead code. Remove the prop and the conditional. Co-authored-by: Fitsum Abebe <FitseTLT@users.noreply.github.com>
|
Verified both assumptions:
PAID/DONE in
Since the entries are harmless and maintain type completeness, I'd recommend keeping them. Let me know if you'd prefer a different approach. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Reviewer Checklist
Screenshots/Videos |
|
@carlosmiceli can you please approve and merge? Thanks! |
|
🚧 @carlosmiceli has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.3.40-0 🚀
|
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.3.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.41-4 🚀
|





Explanation of Change
The Action column in the Reports search table was rendering a colored status badge (
BadgeActionCell) for reports with Paid or Done status, duplicating the information already shown in the dedicated Status column. This change removes the badge rendering for these terminal states and instead shows a "View" button, consistent with other non-actionable states. Other action buttons (Submit, Approve, Pay) remain unchanged.Specifically:
isBadgeActioncheck andBadgeActionCellrendering fromActionCellshouldUseViewActionto includePAIDandDONEaction types so they render a "View" buttonparentActionprop fromActionCelland its caller inTransactionItemRowFixed Issues
$ #84623
PROPOSAL: #84623 (comment)
Tests
Offline tests
This change is purely UI rendering — no network calls are involved. Offline behavior is unaffected since the Action column simply renders a different component (Button instead of Badge) for the same data.
QA Steps
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.Screenshots/Videos
Android: Native
N/A - Web only change (Action column rendering)
Android: mWeb Chrome
N/A - Wide screen table layout only
iOS: Native
N/A - Web only change (Action column rendering)
iOS: mWeb Safari
N/A - Wide screen table layout only
MacOS: Chrome / Safari
Verified: Reports with Paid/Done status now show "View" button in Action column instead of duplicate status badge. Status column still displays the correct badge.