Fix export todo visibility mismatch between Home and Reports pages#84333
Fix export todo visibility mismatch between Home and Reports pages#84333
Conversation
6520830 to
19135f9
Compare
|
🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Use policy.exporter (same as Reports sidebar) instead of isPreferredExporter() (connection-level exporters) in todos.ts, ensuring the Home page For You section matches the Reports sidebar. Made-with: Cursor
19135f9 to
7593e0f
Compare
|
@ZhenjaHorbach can you review please? |
|
@MonilBhavsar 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: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari2026-03-02.15.15.38.mov |
|
LGTM! |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
|
🚧 @deetergp 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/deetergp in version: 9.3.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.33-5 🚀
|

Explanation of Change
Follow-up to #81705. The Home page "For you" section used `isPreferredExporter()` (which checks connection-specific exporter fields like `policy.connections..config.export.exporter`) to filter export todos, while the Reports page sidebar uses `policy.exporter` (top-level policy field). When these diverge, the Home page shows "Export N reports" but the Reports sidebar has no Export option.
The Reports sidebar (`policy.exporter`) is the source of truth. This PR changes `todos.ts` to use `policy.exporter` instead of `isPreferredExporter()`, aligning the Home page with the Reports sidebar.
Fixed Issues
$ #81228
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