update images, update paymentList cardNumber view, update maskCardNumber#52389
Conversation
|
@dannymcclain @allgandalf One of you needs to 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] |
|
Also wondering about removing old cards as its not used anymore and new cards looks correct |
|
Screenshots are looking good so far. Do we need to verify with other card images too?
Are you talking about removing old card images from the repo? If so, I think we should only keep the card images we're actually using in the product in the repo and trash the rest. That's my 2 cents anyways. |
|
Agree. Would be good to confirm that the card images are all working as expected. |
|
@waterim can you please resolve conflicts 😄 |
Found one usage where we still use those old images, so i think lets keep it for now, unless we clean those up too in this PR |
# Conflicts: # src/pages/workspace/companyCards/WorkspaceCompanyCardsList.tsx
Reviewer Checklist
Screenshots/Videos |
allgandalf
left a comment
There was a problem hiding this comment.
LGTM!!, @mountiny can you create a follow up issue where we can decide if we want to get rid of the old companyCard images as @dannymcclain was asking about that here
| const hasSpace = /\s/.test(cardName); | ||
| const maskedString = cardName.replace(/X/g, '•'); | ||
| return maskedString.replace(/(.{4})/g, '$1 ').trim(); | ||
| return hasSpace ? cardName : maskedString.replace(/(.{4})/g, '$1 ').trim(); |
mountiny
left a comment
There was a problem hiding this comment.
Thanks! i dont think we need a new issue for that, we can just tag it to some existing one
| const hasSpace = /\s/.test(cardName); | ||
| const maskedString = cardName.replace(/X/g, '•'); | ||
| return maskedString.replace(/(.{4})/g, '$1 ').trim(); | ||
| return hasSpace ? cardName : maskedString.replace(/(.{4})/g, '$1 ').trim(); |
|
@koko57 @VickyStash Could you please remove the not used card svg images in some of your follow up prs? |
|
✋ 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.62-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.62-4 🚀
|
| [CONST.COMPANY_CARD.FEED_BANK_NAME.CITIBANK]: Illustrations.CitibankCompanyCardDetailLarge, | ||
| [CONST.COMPANY_CARD.FEED_BANK_NAME.WELLS_FARGO]: Illustrations.WellsFargoCompanyCardDetailLarge, | ||
| [CONST.COMPANY_CARD.FEED_BANK_NAME.BREX]: Illustrations.BrexCompanyCardDetailLarge, | ||
| [CONST.COMPANY_CARD.FEED_BANK_NAME.STRIPE]: Illustrations.StripeCompanyCardDetailLarge, |
There was a problem hiding this comment.
Discussed in DM, let's try to find a root cause of why the larger SVG are shown wrong






Details
Fixed Issues
$ #51910
PROPOSAL: N/A
Tests
Offline tests
Same as tests
QA Steps
None
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Details