-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Change generic card illustration fallback #57064
base: main
Are you sure you want to change the base?
Change generic card illustration fallback #57064
Conversation
…7-fallbackCardIllustration
…7-fallbackCardIllustration
@shawnborton @sobitneupane 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] |
🔄 Still awaiting on decision regarding
UI Context ![]() @mountiny Feel free to trigger an adhoc build in order for @shawnborton to test this with his account data since he was the bug report author. |
🚧 @dannymcclain has triggered a test build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
@sobitneupane can you please complete the testing? thanks! |
This comment was marked as outdated.
This comment was marked as outdated.
@sobitneupane 🟢 The PR is now ready for review, only thing we're waiting on is 🇪🇸 translation confirmation. |
Explanation of Change
The
getCardFeedIcon
was using theIllustrations.AmexCompanyCards
as fallback for when the card feed had an unknown source (including non-AMEX cards & CSV imported cards) which on top of not making sens, was also creating UI inconsistency because the fallback illustration was smaller in size then other card illustrations used for known card sources.This PR implements these themed generic card illustrations for the 2 edge cases described by the bug report author, more details in the issue and in Slack bug report - the changes are replacing the fallback illustration with a generic one which we want to show whenever the card's source is unknown and falls outside of our FE defined map, and also a CSV generic one for CSV imported cards.
Fixed Issues
$ #56567
PROPOSAL: #56567 (comment)
Tests
Context from Slack comment on real data the bug report author (@shawnborton) had in order to reproduce the edge cases:
Prerequisite: Ensure your account has cards added from different sources like OD / imports including CSV imported.
_ccupload
in their name), the label reads:All CSV Imported Cards
Todas las Tarjetas Importadas desde CSV
All
like before._ccupload
in their name) we display the themed CSV icon card illustrationFrontend hardcoded example:
🔄 With updated CSV label:
Design coming from #56567 (comment) (source):
Offline tests
N/A.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
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
Screen.Recording.2025-02-20.at.11.44.10.mov
🔄 With updated CSV label:
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop