Repository navigation
[No QA] [Direct Feeds] Update Feed switcher label - #50972
Conversation
# Conflicts: # src/pages/workspace/companyCards/WorkspaceCompanyCardsListHeaderButtons.tsx
|
@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/VideosAndroid: NativeScreen.Recording.2024-10-18.at.3.30.57.PM.movAndroid: mWeb ChromeScreen.Recording.2024-10-18.at.3.34.13.PM.moviOS: NativeScreen.Recording.2024-10-18.at.3.24.41.PM.moviOS: mWeb SafariScreen.Recording.2024-10-18.at.3.20.38.PM.movMacOS: Chrome / SafariScreen.Recording.2024-10-18.at.3.18.01.PM.movMacOS: DesktopScreen.Recording.2024-10-18.at.3.21.19.PM.mov |
allgandalf
left a comment
There was a problem hiding this comment.
Thanks! Looks neat!
Putting a note:
There is a onyx error on native devices this is because the
BEreturns[]instead of{}, we need to fix that 🚀 (details here)
| [CONST.COMPANY_CARD.FEED_BANK_NAME.MASTER_CARD]: 'Mastercard', | ||
| [CONST.COMPANY_CARD.FEED_BANK_NAME.AMEX]: 'American Express', | ||
| [CONST.COMPANY_CARD.FEED_BANK_NAME.STRIPE]: 'Stripe', | ||
| [CONST.COMPANY_CARD.FEED_BANK_NAME.AMEX_DIRECT]: 'American Express', |
There was a problem hiding this comment.
Maybe we could use official consts for the names too
|
@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 an emergency, probably the checklist check started to run again before i merged |
|
✋ 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.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.52-5 🚀
|
| return Illustrations.MasterCardCompanyCards; | ||
| function getCardFeedIcon(cardFeed: CompanyCardFeed | typeof CONST.EXPENSIFY_CARD.BANK): IconAsset { | ||
| const feedIcons = { | ||
| [CONST.COMPANY_CARD.FEED_BANK_NAME.VISA]: Illustrations.VisaCompanyCardDetail, |
There was a problem hiding this comment.
In the design doc, these images were large in size for card details page, we used the same small size images everywhere, this caused #51910
| return feedIcons[feedKey]; | ||
| } | ||
|
|
||
| return Illustrations.AmexCompanyCards; |
There was a problem hiding this comment.
When the new feedIcons map logic was added, the fact that return Illustrations.AmexCompanyCards wasn't updated led to the following issue:
because there were OD edge cases in which none of the getCardFeedIcon if's were returning an illustration which defaulted to Illustrations.AmexCompanyCards even though the edge cases had nothing to do with AMEX.
We fixed the issue by identifying the edge case card feeds and adding 2 new illustrations for generic (no specific match) and CSV imported feeds.
Details
[Direct Feeds] Update Feed switcher label
Fixed Issues
$ #50452
PROPOSAL: N/A
Tests
companyCardFeedsanddirectFeedsbetas are turned on.Offline tests
Same, as in the
TestssectionQA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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