[No QA] Fix/52558 fix card name and images#52735
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] |
@shawnborton 🤔 Hmm, interesting. It looks like the SVGs do have rounded corners? |
|
@dannymcclain we no longer use the icons from the company cards folder - we use the ones saved in companycards/large still, it's strange as the icons from the 'large' folder also have the corners rounded cc @mountiny |
|
@dannymcclain @shawnborton what is the appropriate border radius for the small card icons - in the lists? |
|
Nice, that's feeling better! Looks like we're using |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-22.at.6.03.52.PM.movAndroid: mWeb ChromeScreen.Recording.2024-11-22.at.6.12.54.PM.moviOS: NativeScreen.Recording.2024-11-22.at.5.17.46.PM.moviOS: mWeb SafariScreen.Recording.2024-11-22.at.5.22.45.PM.mov |
|
@shawnborton fixed |
allgandalf
left a comment
There was a problem hiding this comment.
okay changes LGTM, testing now
| if (!cardholder) { | ||
| return ''; | ||
| } | ||
| return `${cardholder}'s card`; |
There was a problem hiding this comment.
noting that we internally agreed to keep the c as small
I could get down with something like this |
|
🤔 Hmm, if we're considering truncating the beginning of the card number... Is there any reason not to just go ahead and only show the last 4? If you can't see the beginning, are the middle card numbers particularly helpful at all? |
|
@koko57 can you please fix the failing tests :)) |
|
@allgandalf fixed |
|
Thanks, I will wait for the design teams 👍 on the latest changes before approving |
mountiny
left a comment
There was a problem hiding this comment.
Discussing in Slack the change to last 4 pan numbers before merging
It will look like this after the latest changes. |
|
I think that is good! |
|
If any other changes will be necessary, I suggest to do it as a follow-up PR as it'll be more changes in the code. |
mountiny
left a comment
There was a problem hiding this comment.
discussed and for now this is good. We might follow up with changing how we show the card numbers across the app later.
|
✋ 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.67-0 🚀
|
Not sure where I am supposed to check this. Asking! |
|
@joekaufmanexpensify for the physical Expensify Card if you don't change the default name during the issuing process |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.67-9 🚀
|
|
Got it. Tested and confirmed default name is |




















Explanation of Change
Fixed Issues
$ #52558
PROPOSAL:
Tests
IMAGES
Check if the card icon sizing is appropriate on:
CARD NAME
verify that the "[FirstName]'s card" is displayed as a fallback for the cards that had no name displayed after issuing
verify that the newly created Expensify Cards will have the "card" lowercased
Verify that no errors appear in the JS console
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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 */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)Designlabel so 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