Check policy feature flags instead of card feeds for require company …#83696
Conversation
…card toggle The toggle was locked because it checked for actual card feed entries which only exist after connecting a card provider. Now checks the policy's areCompanyCardsEnabled/areExpensifyCardsEnabled flags instead.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
JmillsExpensify
left a comment
There was a problem hiding this comment.
Testing steps in line with intended product behavior.
|
@MobileMage Please add screenshots for all platforms. |
|
@MobileMage Could you address the review comments? Thanks! |
|
On it |
1 similar comment
|
On it |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-app-2026-03-09_16.58.17.mp4Android: mWeb Chromeandroid-chrome-2026-03-09_16.55.15.mp4iOS: HybridAppios-app-2026-03-09_17.00.56.mp4iOS: mWeb Safariios-safari-2026-03-09_17.06.01.mp4MacOS: Chrome / Safaridesktop-chrome-2026-03-09_16.47.31.mp4 |
|
Recordings added and the requirement here is also met. |
This comment was marked as resolved.
This comment was marked as resolved.
|
That's odd @jjcoffee , do I reupload?
|
|
@MobileMage Ah thanks for that, for some reason it doesn't show up for me but it looks like I can download them, so no worries there! |
|
🚧 @youssef-lr 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.3.38-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.38-4 🚀
|

Explanation of Change
Check policy feature flags (areCompanyCardsEnabled / areExpensifyCardsEnabled) instead of checking for actual card feed entries when determining whether to lock the "Require company cards for all purchases" toggle. The toggle was locked because useCardFeeds returns an empty object until a card provider is actually connected, even though the user has enabled the card features in More Features.
Fixed Issues
$ #80999
PROPOSAL: #80999 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Kapture.2026-03-10.at.16.38.34.mp4
Android: mWeb Chrome
Kapture.2026-03-10.at.16.42.35.mp4
iOS: Native
80999-native-ios.mp4
iOS: mWeb Safari
Kapture.2026-03-10.at.16.13.12.mp4
MacOS: Chrome / Safari
Kapture.2026-02-27.at.15.11.15.mp4