Repository navigation
Amex direct feeds polish - #53122
Amex direct feeds polish#53122mountiny merged 3 commits into
Conversation
|
@allgandalf 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/VideosMacOS: DesktopScreen.Recording.2024-11-26.at.11.17.04.PM.mov |
allgandalf
left a comment
There was a problem hiding this comment.
this one was hard to test, I mocked the data, the updated code should work in theory :))
LGTM 🚀 , thanks for the changes @VickyStash 🙇
|
|
||
| return feedNamesMapping[feedType]; | ||
| // In existing OldDot setups other variations of feeds could exist, ex: vcf2, vcf3, oauth.americanexpressfdx.com 2003 | ||
| const feedKey = (Object.keys(feedNamesMapping) as CompanyCardFeed[]).find((feed) => feedType.startsWith(feed)); |
mountiny
left a comment
There was a problem hiding this comment.
changes look great, thank yyou!
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.68-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.68-7 🚀
|
|
Tested and works great! |
One thing actually, the feed name is not correct in the switcher. cc @mountiny @VickyStash
|
|
|
||
| return feedNamesMapping[feedType]; | ||
| // In existing OldDot setups other variations of feeds could exist, ex: vcf2, vcf3, oauth.americanexpressfdx.com 2003 | ||
| const feedKey = (Object.keys(feedNamesMapping) as CompanyCardFeed[]).find((feed) => feedType.startsWith(feed)); |
There was a problem hiding this comment.
Coming from #70525, the lack of optional chaining for feedType caused a crash when removing a direct feed with assigned card transactions.
| const currentFeeds = Object.keys(currentFeedsData); | ||
|
|
||
| return { | ||
| isNewFeedConnected: currentFeeds.length > prevFeeds.length, |
There was a problem hiding this comment.
Coming from #81573 where duplicate feeds caused an infinite spinner in the RHP. Assuming that the feed length will increase on new feed connecting is partially responsible, since the length won't change on the addition of a duplicate feed, but the feed connection technically succeeded.







Explanation of Change
Amex direct feeds polish
Fixed Issues
$ #53083
PROPOSAL: N/A
Tests
Onyx data for testing:
Offline tests
Same, as in the Tests section.
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop