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 2023-06-30] [$1000] On Terms and Fees Page Monthly Fee, Purchase Fee, ATM Withdrawal fee values are cropped. #20678
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Complete the step until you reach the Terms and Fees Page
Check the value fields mentioned
Expected Result:
Text/Values are visible clearly as it is on other platforms
Actual Result:
Any values/text should not be cropped
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?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.27-2 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 Notes/Photos/Videos: Any additional supporting documentation
Second TextView is the one with the '$0' in it, which is cropped at top. It has style={[styles.textHeadline, styles.textXXXLarge]} where styles.textHeadline sets both fontSize & lineHeight, but styles.textXXXLarge sets only the fontSize, thus making the text bigger than the available line height, resulting in it being cropped. The same happens for all cropped texts here.
What changes do you think we should make in order to solve the problem?
Update styles.textXXXLarge to also include a corresponding lineHeight. In variables.js we currently have lineHeightSmall, lineHeightNormal, ..., lineHeightXXLarge, so we need to add 1 more: lineHeightXXXLarge: getValueUsingPixelRatio(32, 37).
Result:
What alternative solutions did you explore?
Create a new style to be used only for these cropped TextView's like:
changed the title [-]On Terms and Fees Page Monthly Fee, Purchase Fee, ATM Withdrawal fee values are cropped.[/-][+][$1000] On Terms and Fees Page Monthly Fee, Purchase Fee, ATM Withdrawal fee values are cropped.[/+]on Jun 13, 2023
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:
[@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
[@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@allroundexperts] Determine if we should create a regression test for this bug.
[@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@bfitzexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: https://expensify.slack.com/archives/C049HHMV9SM/p1688374732493299
I think a regression test might not be needed here because the existing regression test for this page should have caught this. Let me know @deetergp if you disagree and I'll propose the steps for the test.
I think a regression test might not be needed here because the existing regression test for this page should have caught this. Let me know @deetergp if you disagree and I'll propose the steps for the test.
I agree with you, I don't think we need a new test here.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 13, 2023
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 13, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)DanutGavrus commentedon Jun 13, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
On Terms and Fees Page Monthly Fee, Purchase Fee, ATM Withdrawal fee values are cropped.
What is the root cause of that problem?
In
ShortTermsFormwe have this:Second
TextViewis the one with the '$0' in it, which is cropped at top. It hasstyle={[styles.textHeadline, styles.textXXXLarge]}wherestyles.textHeadlinesets bothfontSize&lineHeight, butstyles.textXXXLargesets only thefontSize, thus making the text bigger than the available line height, resulting in it being cropped. The same happens for all cropped texts here.What changes do you think we should make in order to solve the problem?
Update
styles.textXXXLargeto also include a correspondinglineHeight. Invariables.jswe currently havelineHeightSmall, lineHeightNormal, ..., lineHeightXXLarge, so we need to add 1 more:lineHeightXXXLarge: getValueUsingPixelRatio(32, 37).Result:
What alternative solutions did you explore?
Create a new style to be used only for these cropped
TextView's like:and replace
styles.textXXXLargewith it for the cropped texts on here.[-]On Terms and Fees Page Monthly Fee, Purchase Fee, ATM Withdrawal fee values are cropped.[/-][+][$1000] On Terms and Fees Page Monthly Fee, Purchase Fee, ATM Withdrawal fee values are cropped.[/+]melvin-bot commentedon Jun 13, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01229c1dea62af0f2e
melvin-bot commentedon Jun 13, 2023
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jun 13, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (
External)melvin-bot commentedon Jun 13, 2023
Triggered auto assignment to @deetergp (
External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.31 remaining items
melvin-bot commentedon Jun 23, 2023
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:
bfitzexpensify commentedon Jun 29, 2023
Moved to daily so I can issue payments tomorrow
bfitzexpensify commentedon Jun 30, 2023
Offers sent out @Santhosh-Sellavel @DanutGavrus @allroundexperts.
@allroundexperts, please complete the BZ checklist when you get a chance!
bfitzexpensify commentedon Jul 3, 2023
Bump on BZ checklist @allroundexperts - thanks!
allroundexperts commentedon Jul 3, 2023
bfitzexpensify commentedon Jul 5, 2023
I agree with you, I don't think we need a new test here.
Let's close this out!