Repository navigation
Drop the Vendor column from the Spend table when no workspace has the vendor feature - #101864
Conversation
… vendor feature The saved Search column list outlives the vendor feature, so getColumnsToShow now takes isVendorColumnAvailable and removes Vendor from the saved list and from the report view auto-show when it is false. A shared useIsVendorColumnAvailable hook feeds every Search caller and the column picker.
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-09-22.at.9.05.28.PM.mov |
eh2077
left a comment
There was a problem hiding this comment.
works well and looks good - the new hook useIsVendorColumnAvailable and updated method in SearchUIUtils make the Vendor column work properly in different use cases.
|
🚧 Beamanator 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/Beamanator in version: 9.4.92-0 🚀
|
|
🤖 Yes — help site changes were required, and I've opened a draft PR for them. Draft PR: Docs updates for E/A#101864 Vendor column availability in Spend — labeled Why a docs change was neededThis PR makes the Vendor column in Spend depend on at least one workspace having vendor matching active, and it applies that check everywhere the saved column list is read — the Spend table, the expense table on a report, Display > Edit columns, the sort popup, grouped views, and the Current view CSV export ( The help site never documented the Vendor column at all. So a member who added it and then disconnected QuickBooks Online or Sage Intacct would see it silently vanish with nothing explaining why. What the docs PR changes
I documented only the QuickBooks Online and Sage Intacct paths, since Xero, Rillet, and Business Central are still gated behind the vendor matching beta in Written against @c3024, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.92-8 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
The saved Search column list outlives the vendor feature. After the accounting integration is disconnected, the column picker and the report table already drop Vendor, but the Spend table rendered the saved list as is, so the Vendor column stayed with empty cells.
getColumnsToShownow takesisVendorColumnAvailable. When it is false the saved list loses Vendor and the report view skips the data-driven auto-show. A newuseIsVendorColumnAvailablehook supplies the flag to every Search caller (table, overlay, sort popup, grouped views, CSV export) and replaces the inline check in the column picker. The report table passes its per-workspacehasVendorFeatureresult instead of pre-filtering the saved list itself.Fixed Issues
$ #101859
Tests
Offline tests
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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