Skip to content

[HOLD for payment 2024-01-04] [$500] Merchant line on preview card is using wrong text size #32415

Closed

Description

@m-natarajan

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


Version Number: 1.4.7.0
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/p1701391780917959

Action Performed:

Submit a request on a workspace

Expected Result:

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?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Snip - (60) New Expensify - Google Chrome

CleanShot 2023-11-30 at 19 48 29@2x

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a6a405785ccbd170
  • Upwork Job ID: 1731337099034644480
  • Last Price Increase: 2023-12-03
  • Automatic offers:
    • 0xmiroslav | Reviewer | 28062368
    • mkhutornyi | Contributor | 28062369

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Dec 3, 2023
  2. 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
  3. melvin-bot commented on Dec 3, 2023

    @melvin-bot
  4. melvin-bot commented on Dec 3, 2023

    @melvin-bot

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

  5. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Dec 3, 2023
  6. melvin-bot commented on Dec 3, 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
  7. melvin-bot commented on Dec 3, 2023

    @melvin-bot

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

  8. BhuvaneshPatil commented on Dec 3, 2023

    @BhuvaneshPatil
    Contributor

    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 textLabelSupporting which uses - fontSizeLabel here at

    <Text style={[styles.textLabelSupporting, styles.mb1, styles.lh20, styles.breakWord]}>

    For radius we have not applied border radius for bottom side of image in reportActionItemImages styles.

    What changes do you think we should make in order to solve the problem?

    We should use fontSizeNormal instead of that, here -

    App/src/styles/styles.ts

    Lines 1138 to 1142 in 1682be4

    textLabelSupporting: {
    fontFamily: fontFamily.EXP_NEUE,
    fontSize: variables.fontSizeLabel,
    color: theme.textSupporting,
    },

    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.

    Screenshot 2023-12-03 at 9 39 26 PM

    For border radius -
    We shall remove the borderTopLeftRadius and borderTopRightRadius and apply borderRadius styles with variables.componentBorderRadiusLarge

    Screenshot 2023-12-03 at 9 46 16 PM

    What alternative solutions did you explore? (Optional)

  9. ZhenjaHorbach commented on Dec 3, 2023

    @ZhenjaHorbach
    Contributor

    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 for ReportActionItemImages (Border radius)

    What changes do you think we should make in order to solve the problem?

    1. Pass on extra style here (The font size for the merchant is too small, at 13px)

    styles.textNormal

    <Text style={[styles.textLabelSupporting, styles.mb1, styles.lh20, styles.breakWord]}>

    Or change styles here

    fontSize: variables.fontSizeNormal,

    fontSize: variables.fontSizeLabel,

    1. Update styles here (The bottom of the receipt is not rounded)

    borderRadius: variables.componentBorderRadiusLarge,

    App/src/styles/styles.ts

    Lines 3710 to 3711 in 1682be4

    borderTopLeftRadius: variables.componentBorderRadiusLarge,
    borderTopRightRadius: variables.componentBorderRadiusLarge,

    What alternative solutions did you explore? (Optional)

    NA

  10. ZhenjaHorbach commented on Dec 3, 2023

    @ZhenjaHorbach
    Contributor

    @BhuvaneshPatil
    add comment that your proposal for updating border was later than my proposal)

  11. BhuvaneshPatil commented on Dec 3, 2023

    @BhuvaneshPatil
    Contributor

    I was typing that when your proposal was posted.

  12. 50 remaining items

  13. abekkala commented on Jan 4, 2024

    @abekkala
    Contributor

    @0xmiroslav can you complete the checklist please?

  14. pecanoro commented on Jan 8, 2024

    @pecanoro
    Contributor

    @0xmiroslav Friendly bump! Basically so we can complete the payments

  15. 0xmiroslav commented on Jan 8, 2024

    @0xmiroslav
    Contributor

    No PR caused regression.
    This is just minor design improvement.

    Regression Test Proposal

    1. Submit 2 requests (one for manual, one for scan) on any workspace
    2. Observe preview card in workspace chat
    3. Verify that receipt image is rounded in all 4 corners
    4. Verify that "2 requests" text has 15px font size
    5. Go to expense report
    6. Verify that receipt image is rounded in all 4 corners
    7. Verify that merchant line text has 15px font size

    I am not sure regression test is needed here as this will change again in #33979

  16. abekkala commented on Jan 8, 2024

    @abekkala
    Contributor

    @mkhutornyi payment sent and contract ended - thank you! 🎉

  17. abekkala commented on Jan 8, 2024

    @abekkala
    Contributor

    @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?

  18. 0xmiroslav commented on Jan 8, 2024

    @0xmiroslav
    Contributor

    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.

  19. abekkala commented on Jan 10, 2024

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

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions