Fix broken feed connection error display on the Company Cards page#55286
Conversation
…nnection-error-display
…Y_CARDS_BANK_CONNECTION route
…nnection-error-display # Conflicts: # src/libs/actions/CompanyCards.ts # src/types/onyx/CardFeeds.ts
…nnection-error-display # Conflicts: # src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx # src/pages/workspace/companyCards/addNew/BankConnection/index.tsx
|
@getusha kind bump 🙂 |
…nnection-error-display # Conflicts: # src/pages/workspace/companyCards/WorkspaceCompanyCardsListHeaderButtons.tsx
|
@getusha I've applied your feedback, please take another look |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-27.at.5.24.31.in.the.afternoon.movAndroid: mWeb ChromeScreen.Recording.2025-01-27.at.4.26.52.in.the.afternoon.moviOS: NativeScreen.Recording.2025-01-27.at.4.44.21.in.the.afternoon.movMacOS: DesktopScreen.Recording.2025-01-27.at.4.31.13.in.the.afternoon.mov |
Co-authored-by: Getabalew <75031127+getusha@users.noreply.github.com>
| API.read(READ_COMMANDS.OPEN_POLICY_COMPANY_CARDS_FEED, parameters); | ||
| } | ||
|
|
||
| function flatAllCardsList(allCardsList: OnyxCollection<WorkspaceCardsList>, workspaceAccountID: number): Record<string, Card> | undefined { |
There was a problem hiding this comment.
I think this method would deserve some plain English explanation of what its used for and what is the expected output format (unit test possibly too)
| }, {}); | ||
| } | ||
|
|
||
| function checkIfFeedConnectionIsBroken(feedCards: Record<string, Card> | undefined, feedToExclude?: string): boolean { |
There was a problem hiding this comment.
Could you please add docs here as well and try to explain why the feedToExclude might be needed? Thanks!
mountiny
left a comment
There was a problem hiding this comment.
@VickyStash Thanks, lets add the unit tests in a follow up
| } | ||
|
|
||
| /** | ||
| * Check if any feed card has a broken connection |
There was a problem hiding this comment.
| * Check if any feed card has a broken connection | |
| * Check if any card from the provided feed(s) has a broken connection |
|
✋ 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/mountiny in version: 9.0.90-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.90-6 🚀
|
| domainName: PolicyUtils.getDomainNameForPolicy(policyID), | ||
| isCorporate: 'true', | ||
| scrapeMinDate: scrapeMinDate ?? '', | ||
| scrapeMinDate: '', |
There was a problem hiding this comment.
hey @VickyStash do you remember why this was removed?
I'm looking at #84401
There was a problem hiding this comment.
Sorry, but I don't remember
Maybe, cause the scrapeMinDate wasn't passed to this function, but I'm not sure




Explanation of Change
Fix the broken feed connection error display on the Company Cards page by checking feed's cards
lastScrapeResultFixed Issues
$ #55103
PROPOSAL: N/A
Tests
login to your banklink should lead to the bank page to enter credentialsOffline tests
N/A
QA Steps
Same, as in the Tests section
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))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.mp4
Android: mWeb Chrome
android_web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4