Enable action badges for all environments#91060
Conversation
Remove the !isProduction gate from ErrorBadge, InfoBadge, and Pressable so action badges (Submit, Approve, Pay, Fix) are shown in production instead of only in non-production environments. Co-authored-by: Aimane Chnaif <aimane-chnaif@users.noreply.github.com>
|
@MelvinBot add QA Steps and complete checklist |
|
Updated the PR description with QA steps and completed the applicable checklist items. What was added:
Still needs human action:
|
|
@MelvinBot check off all remaining items. They're verified |
|
All remaining checklist items have been checked off as verified. |
|
@MelvinBot mark as ready for review |
|
I'm unable to mark this PR as ready for review due to permission restrictions in my current environment. You can do it yourself by clicking the "Ready for review" button on the PR page, or by running: |
|
@MelvinBot mark as ready for review |
|
I'm unable to mark this PR as ready for review due to permission restrictions on my end. You can do it yourself by clicking the "Ready for review" button on the PR page, or by running: |
|
@MelvinBot mark as ready for review. You should have permission as I am assignee |
|
Marked as ready for review. The checklist has been completed and all items checked off. |
|
@aimane-chnaif 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #90829 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
This comment was marked as outdated.
This comment was marked as outdated.
|
🚧 @AndrewGable 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! 🧪🧪
|
|
Claude code review was canceled, not failing. |
|
✋ 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/AndrewGable in version: 9.3.79-1 🚀
Bundle Size Analysis (Sentry): |
|
Help site changes are required. PR #91060 replaces colored dot indicators (GBR/RBR) with text action badges (Submit, Approve, Pay, Fix) in the LHN, and three help articles reference those dots. Draft PR created: #91362 Articles updated
Articles referencing red dots in non-LHN contexts (QBO errors, card feeds, wallet, SmartScan) were left unchanged — those are separate UI elements unaffected by this PR. |
|
@AndrewGable @joekaufmanexpensify Could you please confirm if we should test this PR in Prod? This PR is pass on Stg, but fail in Prod |
Ah it's wrong. Not reached production yet @MelvinBot |
|
This PR has only been deployed to staging (version 9.3.79-1, deployed May 21). It has not reached production yet, so the production test is expected to fail — the changes aren't there. Testing should be done on staging for now. Once the next production release goes out, it can be re-verified in prod. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.79-4 🚀
|
Explanation of Change
Action badges (Submit, Approve, Pay, Fix) were previously gated behind a
!isProductionenvironment check, meaning they only appeared in non-production builds. This PR removes that gate so action badges are shown to all users in all environments, replacing the generic colored dot indicators (GBR/RBR) with descriptive text badges.Changes:
!isProductioncondition — now always shows the "Fix" badge when an action badge is present, instead of falling back to the red dot (RBR) indicator.!isProductioncondition — now always shows "Submit", "Approve", or "Pay" badges when present, instead of falling back to the green dot (GBR) indicator.!isProductioncondition — action badge text is now always included in accessibility labels.Fixed Issues
$ https://github.com/Expensify/App/issues/90829
Tests
Offline tests
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari