[Internal QA]: Show card name instead of Bank for Company cards search#52625
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/Videos |
allgandalf
left a comment
There was a problem hiding this comment.
sorry for the delay, native platforms were blocking me from testing.
This LGTM and tests well 🚀 . thanks for the quick work @narefyev91
| lastFourPAN: card.lastFourPAN, | ||
| isVirtual: card?.nameValuePairs?.isVirtual, | ||
| text: card.bank, | ||
| text: card.bank === CONST.EXPENSIFY_CARD.BANK ? card.bank : card?.nameValuePairs?.cardTitle ?? card?.cardName, |
There was a problem hiding this comment.
NAB, but i feel we should define a variable cardName and move this logic there
allgandalf
left a comment
There was a problem hiding this comment.
this looks much cleaner to me, @mountiny thoughts ?
|
✋ 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.65-0 🚀
|
|
Some questions, asked here. No blockers though. We don't need to hold the deploy on any additional changes, so I'll check this off. |
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.65-5 🚀
|






Explanation of Change
Currently for Search by card - we are showing Bank as a title for each card. But for company card - each card has it's own Card Name - which should be shown instead of Bank.
Precondition - user should have cardList data in Onyx. Or some mock data can be used:
Fixed Issues
$ #52554
PROPOSAL:
Tests
/search/filters/cardOffline tests
No changes
QA Steps
For example:
/search/filters/cardPR 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