-
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
[HOLD][$250] AmEx icon is smaller than other card icons in the Filters #56567
Comments
Triggered auto assignment to @NicMendonca ( |
Job added to Upwork: https://www.upwork.com/jobs/~021888023998366911450 |
Triggered auto assignment to @shawnborton ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.amex icon is smaller than other card icons in the Filters What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?we can return amex large card image here: Line 292 in b0b7709
as: return Illustrations.AmexCardCompanyCardDetailLarge; What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional) |
@Shahidullah-Muffakir The dark point here is why we return Illustrations.AmexCompanyCards. It should match with above conditions |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-17 20:35:03 UTC. ProposalPlease re-state the problem that we are trying to solve in this issueAmEx icon is smaller than other card icons in the Filters. What is the root cause of that problem?♻ TLDR: Seems like we have an edge case regarding adding AMEX Company cards to a workspace and the data returned by BE which causes FE to display the fallback smaller AMEX card illustration. In this function we map card icons to specific FE held CONST strings returned by BE once a card is added.
which if mapped correctly to BE returned values, will display the The reason why we see the small AMEX card illustration is because at the end of the function, if none of the FE held feed bank name constants match with the added AMEX feed bank name returned by BE, the function will display the smaller What changes do you think we should make in order to solve the problem?🗒 Since I wasn't able to reproduce on my side in order to extract the unknown AMEX feed bank name , in order to fix this issue accordingly we need help from BE to identify the missing AMEX feed bank name returned by BE in the case of the OP issue's workspace, that way we can add the new feed bank name to the FE held CONST list and return the correct illustration. Note I added a personal AMEX card via Workspace > Company cards, which for me returned 🔄 Update from BEQuoting vit from Slack thread:
Based on the latest information quoted above from the Slack thread, and as suggested before this update, we should apply suggestions from (1.) to (4.) depending on how the Slack conversation flows, by doing the following:
(all new illustrations will be provided by @Expensify/design based on Slack conversation) What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A. |
Thanks for the proposal @Shahidullah-Muffakir and @ikevin127 Below are the Lines 2885 to 2897 in 15d9f03
In any case, if there is no specific reason to return 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @deetergp, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @Shahidullah-Muffakir You have been assigned to this job! |
Note More contextWe're actively discussing this on Slack in this thread where it looks like the consensus seems to be that we're looking for the missing AMEX This is the PR which added the initial ♻ Tagged you both in the Slack thread as well where I explained more on why the selected proposal seems redundant to me and suggested to [HOLD] until the other involved Expensify team members confirm that we want to go this way. |
ProposalPlease re-state the problem that we are trying to solve in this issue.AmEx icon is smaller than other card icons in the Filters What is the root cause of that problem?@ikevin127's proposal already explained the RCA exactly and I have the same opinion as him What changes do you think we should make in order to solve the problem?I don't understand why we return the AMEX card icon as default. It will be so confusing to users. Let's design a default card icon and return it here Line 292 in 631006e
In addition, we still need to make clear why the BE returns weird cards that don't match any cards defined in FE (Follow on Slack) What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. NA |
|
@shawnborton, @NicMendonca, @sobitneupane, @mountiny, @Shahidullah-Muffakir Eep! 4 days overdue now. Issues have feelings too... |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I will go with @ikevin127 proposal and their help during the Slack conversion showing proactive approach. Lets use the generic card as a fallback and wait for Design team if we want to use some specific card icon for the csv import |
This comment has been minimized.
This comment has been minimized.
🔄 Draft PR #57064 is ready to be opened once we decide on the Currently we have this Expensify card illustration (see below) which we could use as generic fallback even though it's not quite generic because of the VISA part, but the decision is yours on whether we should have a new illustration. ♻ To recap on the issue:
🟢 Solution:
|
@shawnborton Yes, we already have that one added in the repo including a Large size. Here's an updated before / after:
Let me know if we want to go with something even more specific for the CSV edge cases or we're good with this one as general edge case fallback, then I'll be able to open the PR 👍 |
@ikevin127 confirmed and the csv uploads are the ones with |
Sounds good! I exported a generic csv icons here for you, feel free to rename the files to match the other names we already have in the system: cc @Expensify/design for viz @ikevin127 your screenshots look good to me so far though! |
Actually @Expensify/design I noticed this card uses our theme's icon color for the BG - so I assume we should have different versions depending on if we have dark mode or light mode. @ikevin127 what do you recommend we do there? Do you want separate files or can you control the fill of these icons using our color variables? |
I don't feel strongly, I probably lean towards a more generic gray to communicate the generic nature of these? Let's see what the Judge thinks! |
TLDR: Could be done with some code gymnastics, not sure it's worth it though since we can export them already colored. These card illustrations have 3 different fill colors, therefore controlling the color through
Who's The Judge ? 🤔 ♻ I think we can go about this in 2 main ways:
Note As for going with option (2) and keeping both illustrations gray, that doesn't make much sense to me since there only difference in the illustration is the very small icon - so in this case I'd rather go with option (1) if we want to keep things gray: ![]() What I did below in the colored examples is I extracted the fill colors from here and changed them in the svg file for the sake of example, but if we're to go with option (2) I'll need both illustrations exported again as colored.
Additionally, if we want to go with option (2) I'll need a decision on copy regarding how we want to name the generic CSV card feed, examples (see picture above) could be:
|
Can we just supply you with different illustrations for light mode vs dark mode? I feel like we've done that elsewhere. This way we can use our icon gray that is specific to each theme. Thoughts? |
@shawnborton Yes, it's possible ▶ Took the liberty to modify current generic svg in 2 different themed variants for the purpose of demonstrating theme based illustration implementation: See videothemed-illustrations.movI guess this could be option 3 in addition to my previous comment.
Actually, we do already have theme based illustrations logic 👍 |
@shawnborton that'd give us something like this: I think this looks pretty good. I also explored using other colors for the cards (borders, highlight-background, etc) but they all bummer out with the different row states (default, hover, selected) so I think this is the best option. |
Nice, that would be my vote then - I say let's do it! I'm mostly away from laptop today so I'll try to get the new assets over to Kevin either tomorrow or Monday. |
I gotchu. Let's try these: generic-card-images-light-dark.zip That ZIP includes images for:
|
Dope, thank you! |
Thanks for the feedback, I'm working on the PR which will be opened soon 👍 I was wrong in my previous comment, turns out we do already have theme based illustrations logic which will make the implementation even easier. |
♻ Opened the PR #57064, but awaiting for a copy decision - in the meantime I asked for an adhoc build in order for Shawn to test the changes and see how it looks on his side with all the edge cases since he's the bug report author, then adjust based on the feedback. |
I like the new card illustration a lot 👍 |
Nice, PR is looking good to me too 👍 |
Same! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number:
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation (hyperlinked to channel name): Expensify Bugs
Action Performed:
Prerequisite: Amex cards added as company cards
Expected Result:
All the cards displayed to select without any issues
Actual Result:
AmEx icon is smaller than other card icons in the Filters
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sobitneupaneThe text was updated successfully, but these errors were encountered: