Block any attempts to connect to feed with collect limitation#74557
Conversation
…feed-with-collect-limitation # Conflicts: # src/hooks/useIsBlockedToAddFeed.ts # tests/unit/hooks/useIsBlockedToAddFeed.test.ts
|
@dominictb 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] |
src/pages/workspace/companyCards/BankConnection/index.native.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/companyCards/WorkspaceCompanyCardFeedSelectorPage.tsx
Show resolved
Hide resolved
Co-authored-by: Dominic <165644294+dominictb@users.noreply.github.com>
Co-authored-by: Dominic <165644294+dominictb@users.noreply.github.com>
…feed-with-collect-limitation # Conflicts: # src/pages/workspace/companyCards/BankConnection/index.native.tsx # src/pages/workspace/companyCards/WorkspaceCompanyCardFeedSelectorPage.tsx
…ollect-limitation # Conflicts: # src/pages/workspace/companyCards/BankConnection/index.native.tsx # src/pages/workspace/companyCards/BankConnection/index.tsx # src/pages/workspace/companyCards/WorkspaceCompanyCardFeedSelectorPage.tsx
|
@dominictb i resolved everything and updated PR - could we move forward here? |
|
I'm on limited Internet access rn. Code changes are good. Will retest and complete checklist tomorrow. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-19.at.23.54.58.movAndroid: mWeb ChromeScreen.Recording.2025-11-19.at.23.57.58.moviOS: HybridAppScreen.Recording.2025-11-19.at.23.48.52.moviOS: mWeb SafariScreen.Recording.2025-11-19.at.23.51.18.movMacOS: Desktop |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
This was not emergency, the AI reviewer job was stuck but no need to hold on that |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.62-0 🚀
|
|
tested well 👍 |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.62-5 🚀
|
| }, [url]); | ||
|
|
||
| useEffect(() => { | ||
| if (!policyID || !isBlockedToAddNewFeeds) { |
There was a problem hiding this comment.
We should also add the check for direct feed to prevent showing the Upgrade page while reauthentication is required.
Context: #80799 (comment)

Explanation of Change
if user's workspace is on Collect plan and they already has set feed - we should block any deeplinks to the direct feed flow, and redirect them to the upgrade modal in case they already have some feed connected to the Collect workspace
Fixed Issues
$ #72607, #74495, #74453
PROPOSAL:
Tests
Precondition - user should have workspace on collect plan with at least 1 feed.
Offline tests
No changes
QA Steps
Precondition - user should have workspace on collect plan with at least 1 feed.
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.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
web2.mov
MacOS: Desktop
desktop.mov