-
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 for payment 2024-03-13] Incorrect spacing and border radius on receipt thumbnail #33979
Comments
Triggered auto assignment to @abekkala ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect border radius on receipt thumbnail What is the root cause of that problem?There's 4px margin so if inner (ReportActionItemImages) border radius and outer (ReportPreview or MoneyRequestPreview) border radius are same, it doesn't look good Lines 3812 to 3818 in 5b0ceb2
What changes do you think we should make in order to solve the problem?reduce inner border radius to 12px (16-4) Line 3815 in 5b0ceb2
|
This comment has been minimized.
This comment has been minimized.
Job added to Upwork: https://www.upwork.com/jobs/~0175c678ba62df22b2 |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @situchan ( |
So this is what I'm thinking we should do for the preview cards. As an outline, here is what we have (Figma file so you can inspect): I'm thinking of this preview component as two parts:
When a receipt is present, I have it so that the upper receipt area and the lower info area overlap by -4px, which basically accounts for that inner border stroke (4px) of the receipt area not adding to the height of the lower info area. The upper receipt area has a border radius of 16px: And that means the inner receipt area there has a border radius of 12px (16px minus the 4px border): For the bottom info area, the whole thing has a padding of 16px (vertically and horizontally): The eyebrow part ( The amount is good as it is, which is our h2 size. The merchant/description line below should use our normal text size and use our text supporting color. It should have a line height of 20px. In terms of spacing, I'm thinking it goes:
Let me know how all of that sounds! cc @Expensify/design for eyes too. |
@shawnborton if you haven't already, can you please put these screens someplace where we can reference them when building out the legit preview component? I don't want these details to get lost in the void! 💚 |
We've combined #33980 into this issue! Taking internally |
This is brilliant. I'll use this for my Preview Card Figma component. |
@dannymcclain totally! I put the Figma link at the very beginning of my comment here |
@shawnborton fantastic write up! I should be able to get to this one this week |
Looking at this, I was trying to see if there's an easy way to get this component in storybook without tons of fake onyx data so we can prevent future regressions as well |
I have a draft for this |
PR in progress! |
@grgia do you want to link the PR to this? |
@abekkala I was working on a wave-related doc, but that's done so I'll get the PR merged and ready for final review before EOW! |
@grgia ah ok! I misinterpreted your post above! sorry about that. |
Updating PR now |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.47-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-03-13. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
PAYMENT SUMMARY FOR MAR 13
|
No regression. This is design inconsistency fix. I don't think regression test is needed here. |
@situchan can you accept the offer in Upwork so I can release payment today? thanks! |
sorry I thought I accepted offer. Just did now |
@situchan payment sent and contract ended - thank you! 🎉 |
DESIGN UPDATES
So this is what I'm thinking we should do for the preview cards. As an outline, here is what we have (Figma file so you can inspect):
I'm thinking of this preview component as two parts:
When a receipt is present, I have it so that the upper receipt area and the lower info area overlap by -4px, which basically accounts for that inner border stroke (4px) of the receipt area not adding to the height of the lower info area.
The upper receipt area has a border radius of 16px:
And that means the inner receipt area there has a border radius of 12px (16px minus the 4px border):
For the bottom info area, the whole thing has a padding of 16px (vertically and horizontally):
The eyebrow part (
XXXX owes:
) should use ourlabel
font size, with a line height of 16px. It's in our text supporting color.The amount is good as it is, which is our h2 size. The merchant/description line below should use our normal text size and use our text supporting color. It should have a line height of 20px.
In terms of spacing, I'm thinking it goes:
ORIGINAL ISSUE
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: 1.4.22-4
Reproducible in staging?: y
Reproducible in production?: y
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: https://expensify.slack.com/archives/C049HHMV9SM/p1704274831152639
Action Performed:
Create a receipt request in a workspace
Expected Result:
The receipt image in the request preview should have a border radius that is exactly 4px less than the outer border radius of the request preview card
Actual Result:
It looks like the receipt has the same border radius as the outer preview card.
Workaround:
unknown
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: @grgiaThe text was updated successfully, but these errors were encountered: