fix: [Insights] Don't seed the Top Spenders report until there is at least 2 members on the workspace#82583
Conversation
…least 2 members on the workspace
|
@ShridharGoel 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] |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product 👍
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2026-02-20.at.11.37.38.PM.mov |
|
@TaduJR Can you add screenshots/videos on the remaining platforms also? |
Done @ShridharGoel Note: Missing Android mWeb, because ngrok is having some problem today on my side. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @puneetlath 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/puneetlath in version: 9.3.25-0 🚀
|




Explanation of Change
This PR adds a
memberCount >= 2check togetSuggestedSearchesVisibilityso the Top Spenders suggestion is only seeded when the workspace has at least 2 members, since comparing spenders is redundant for single-member workspaces.Fixed Issues
$ #82410
PROPOSAL:
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Mac-Chrome.mp4