Skip to content

[HOLD for payment 2023-06-30] [$1000] On Terms and Fees Page Monthly Fee, Purchase Fee, ATM Withdrawal fee values are cropped. #20678

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to https://staging.new.expensify.com/enable-payments
  2. Complete the step until you reach the Terms and Fees Page
  3. 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

Expensify/Expensify Issue URL:
Issue reported by: @Santhosh-Sellavel
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686161977469969

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01229c1dea62af0f2e
  • Upwork Job ID: 1668624335111434240
  • Last Price Increase: 2023-06-13

Activity

  1. added
    Daily
    Bug
    on Jun 13, 2023
  2. melvin-bot commented on Jun 13, 2023

    @melvin-bot

    Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jun 13, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. DanutGavrus commented on Jun 13, 2023

    @DanutGavrus
    Contributor

    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 ShortTermsForm we have this:

    <View style={[styles.flex2]}>
        <View style={[styles.flexRow, styles.mb1]}>
            <Text style={styles.textLarge}>{Localize.translateLocal('termsStep.monthlyFee')}</Text>
        </View>
        <View style={styles.flexRow}>
            <Text style={[styles.textHeadline, styles.textXXXLarge]}>{Localize.translateLocal('termsStep.feeAmountZero')}</Text>
        </View>
    </View>

    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:

      fontSize: variables.fontSizeXXXLarge,
      lineHeight: variables.lineHeightXXXLarge

    and replace styles.textXXXLarge with it for the cropped texts on here.

  5. added
    External
    on Jun 13, 2023
  6. 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
  7. melvin-bot commented on Jun 13, 2023

    @melvin-bot
  8. melvin-bot commented on Jun 13, 2023

    @melvin-bot

    Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new.

  9. melvin-bot commented on Jun 13, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (External)

  10. added
    Help Wanted
    on Jun 13, 2023
  11. melvin-bot commented on Jun 13, 2023

    @melvin-bot

    Triggered auto assignment to @deetergp (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  12. 31 remaining items

  13. melvin-bot commented on Jun 23, 2023

    @melvin-bot

    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:
  14. added
    Daily
    and removed
    Weekly
    on Jun 29, 2023
  15. bfitzexpensify commented on Jun 29, 2023

    @bfitzexpensify
    Contributor

    Moved to daily so I can issue payments tomorrow

  16. bfitzexpensify commented on Jun 30, 2023

    @bfitzexpensify
    Contributor

    Offers sent out @Santhosh-Sellavel @DanutGavrus @allroundexperts.

    @allroundexperts, please complete the BZ checklist when you get a chance!

  17. added
    Daily
    and removed
    Daily
    on Jun 30, 2023
  18. bfitzexpensify commented on Jul 3, 2023

    @bfitzexpensify
    Contributor

    Bump on BZ checklist @allroundexperts - thanks!

  19. allroundexperts commented on Jul 3, 2023

    @allroundexperts
    Contributor
    1. The PR that introduced the bug has been identified. Link to the PR: Add new header font #13714
    2. 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: https://github.com/Expensify/App/pull/13714/files#r1250507929
    3. 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
    4. 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.
  20. bfitzexpensify commented on Jul 5, 2023

    @bfitzexpensify
    Contributor

    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.

    Let's close this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions