-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[No QA] Fix/52558 fix card name and images #52735
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay changes LGTM, testing now
if (!cardholder) { | ||
return ''; | ||
} | ||
return `${cardholder}'s card`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noting that we internally agreed to keep the c
as small
Agree. I'm not sure we can truncate the last 4 here. @shawnborton do you think it'd be better to:
|
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop