You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-01-04] [$500] Merchant line on preview card is using wrong text size #32415
In the preview card of both the workspace chat and the expense report, the merchant line should be in our normal font size which is 15px. The bottom of the receipt should also be rounded.
Actual Result:
The font size for the merchant is too small, at 13px. The bottom of the receipt is not rounded
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Merchant line on preview card is using wrong text size[/-][+][$500] Merchant line on preview card is using wrong text size[/+]on Dec 3, 2023
But textLabelSupporting is being used at many places, so we shall avoid changing that, instead we can create a new style for merchant or add the style in styles prop.
For border radius -
We shall remove the borderTopLeftRadius and borderTopRightRadius and apply borderRadius styles with variables.componentBorderRadiusLarge
What alternative solutions did you explore? (Optional)
I provided regression test in case anyone disagrees skipping it.
No issue with my upwork but still holding my payment.
Let's close this for now if everything else is set.
Activity
[-]Merchant line on preview card is using wrong text size[/-][+][$500] Merchant line on preview card is using wrong text size[/+]melvin-bot commentedon Dec 3, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01a6a405785ccbd170
melvin-bot commentedon Dec 3, 2023
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 3, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 3, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav (
External)BhuvaneshPatil commentedon Dec 3, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Merchant line on preview card is using wrong text size
What is the root cause of that problem?
we are using
textLabelSupportingwhich uses -fontSizeLabelhere atApp/src/components/ReportActionItem/MoneyRequestPreview.js
Line 329 in 1682be4
For radius we have not applied border radius for bottom side of image in
reportActionItemImagesstyles.What changes do you think we should make in order to solve the problem?
We should use
fontSizeNormalinstead of that, here -App/src/styles/styles.ts
Lines 1138 to 1142 in 1682be4
But
textLabelSupportingis being used at many places, so we shall avoid changing that, instead we can create a new style for merchant or add the style in styles prop.For border radius -
We shall remove the
borderTopLeftRadiusandborderTopRightRadiusand applyborderRadiusstyles withvariables.componentBorderRadiusLargeWhat alternative solutions did you explore? (Optional)
ZhenjaHorbach commentedon Dec 3, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Merchant line on preview card is using wrong text size and the bottom of the receipt is not rounded
What is the root cause of that problem?
We use other styles for merchant text in
MoneyRequestPreview(Font size) and forReportActionItemImages(Border radius)What changes do you think we should make in order to solve the problem?
styles.textNormalApp/src/components/ReportActionItem/MoneyRequestPreview.js
Line 329 in 1682be4
Or change styles here
fontSize: variables.fontSizeNormal,App/src/styles/styles.ts
Line 1140 in 1682be4
borderRadius: variables.componentBorderRadiusLarge,App/src/styles/styles.ts
Lines 3710 to 3711 in 1682be4
What alternative solutions did you explore? (Optional)
NA
ZhenjaHorbach commentedon Dec 3, 2023
@BhuvaneshPatil
add comment that your proposal for updating border was later than my proposal)
BhuvaneshPatil commentedon Dec 3, 2023
I was typing that when your proposal was posted.
50 remaining items
abekkala commentedon Jan 4, 2024
@0xmiroslav can you complete the checklist please?
pecanoro commentedon Jan 8, 2024
@0xmiroslav Friendly bump! Basically so we can complete the payments
0xmiroslav commentedon Jan 8, 2024
No PR caused regression.
This is just minor design improvement.
Regression Test Proposal
I am not sure regression test is needed here as this will change again in #33979
abekkala commentedon Jan 8, 2024
@mkhutornyi payment sent and contract ended - thank you! 🎉
abekkala commentedon Jan 8, 2024
@0xmiroslav you provided a regression test proposal but then also state that a regression test is not needed?
Also, are we still in the process of holding your payments? Do you not have your Upwork profile sorted yet?
0xmiroslav commentedon Jan 8, 2024
I provided regression test in case anyone disagrees skipping it.
No issue with my upwork but still holding my payment.
Let's close this for now if everything else is set.
abekkala commentedon Jan 10, 2024
Thanks @0xmiroslav