Skip to content
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

[Payment due 3/6][$500] Font in "Hold Request" reason heading text is looks wrong #37039

Closed
6 tasks done
m-natarajan opened this issue Feb 21, 2024 · 25 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 21, 2024

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.43-7
Reproducible in staging?: y
Reproducible in production?: new feature
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: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1708436683366409

Action Performed:

  1. Create a IOU request
  2. Open the IOU details and click on 3 dot and select "Hold request" option
  3. Look at the Explain why you're holding this request

Expected Result:

Should match with same font in other section like display name

Actual Result:

It shows with different font.

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
Screen Shot 2024-02-21 at 12 50 00 PM

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017627c882f3450aea
  • Upwork Job ID: 1760361321264185344
  • Last Price Increase: 2024-02-21
  • Automatic offers:
    • s77rt | Reviewer | 0
    • shahinyan11 | Contributor | 0
@m-natarajan m-natarajan added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 21, 2024
@melvin-bot melvin-bot bot changed the title Font in "Hold Request" reason heading text is looks wrong [$500] Font in "Hold Request" reason heading text is looks wrong Feb 21, 2024
Copy link

melvin-bot bot commented Feb 21, 2024

Job added to Upwork: https://www.upwork.com/jobs/~017627c882f3450aea

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 21, 2024
Copy link

melvin-bot bot commented Feb 21, 2024

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

Copy link

melvin-bot bot commented Feb 21, 2024

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

@shahinyan11
Copy link

shahinyan11 commented Feb 21, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Font in "Hold Request" reason heading text is looks wrong

What is the root cause of that problem?

the styles.textHeadline style is set for this text

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

Change this style with corresponding style or remove it

What alternative solutions did you explore? (Optional)

@eucool
Copy link
Contributor

eucool commented Feb 21, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Font in "Hold Request" reason heading text is looks wrong

What is the root cause of that problem?

We currently set the text style to textHeadline.

<Text style={[styles.textHeadline, styles.mb6]}>{translate('iou.explainHold')}</Text>

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

Remove the corresponding style don't set it to anything, only keep margin

What alternative solutions did you explore? (Optional)

@eucool
Copy link
Contributor

eucool commented Feb 21, 2024

btw, regression from #33897

@dukenv0307
Copy link
Contributor

dukenv0307 commented Feb 21, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

It shows with different font.

What is the root cause of that problem?

The Explain why you're holding this request has textHeadline which has the same fontFamily as title of HeaderWithBackButton but the font size is larger.

<Text style={[styles.textHeadline, styles.mb6]}>{translate('iou.explainHold')}</Text>

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

We can use textHeadlineH1 style that we used for the title of HeaderWithBackButton or use headerText style that we used for the display name in HeaderView

<Text style={[styles.textHeadline, styles.mb6]}>{translate('iou.explainHold')}</Text>

What alternative solutions did you explore? (Optional)

NA

@s77rt
Copy link
Contributor

s77rt commented Feb 21, 2024

@shahinyan11 Thanks for the proposal. Your RCA is correct. The solution looks good to me.

🎀 👀 🎀 C+ reviewed
Link to proposal

Copy link

melvin-bot bot commented Feb 21, 2024

Triggered auto assignment to @hayata-suenaga, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@s77rt
Copy link
Contributor

s77rt commented Feb 21, 2024

@codinggeek2023 Thanks for the proposal. Unfortunately it's a dupe.

@s77rt
Copy link
Contributor

s77rt commented Feb 21, 2024

@dukenv0307 Thanks for the proposal. Your RCA is correct but the solution does not achieve the expected results.

@eucool
Copy link
Contributor

eucool commented Feb 21, 2024

@s77rt , thanks for the review, but it's not a dupe, i was working on the proposal while @shahinyan11 posted his and i didn't realize that he posted it before me and edited it over time,

No conflict with your chosen proposal but just wanted to state that I didn't copy his solution :)

@s77rt
Copy link
Contributor

s77rt commented Feb 21, 2024

@codinggeek2023 No worries. I didn't imply that you copied the solution 😅. I checked the timeline both solutions posted closely at the same time (2 mins apart).

Copy link

melvin-bot bot commented Feb 22, 2024

📣 @handipriyono! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 22, 2024
Copy link

melvin-bot bot commented Feb 22, 2024

📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Feb 22, 2024

📣 @shahinyan11 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@hayata-suenaga
Copy link
Contributor

although @codinggeek2023 posted similar proposal, @shahinyan11's proposal was slightly earlier 🙇

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 22, 2024
@eucool
Copy link
Contributor

eucool commented Feb 22, 2024

No worries @hayata-suenaga , let him do it, he rightly proposed earlier than me

hey @shahinyan11 , you can try using styles.textHeadlineLineHeightXXL over here rather than removing the heading style altogether, we already use it in business info step:

image

I think you should talk with the design team once before implementing this, best luck with the PR :)

@robertjchen
Copy link
Contributor

Thanks @codinggeek2023 !

cc: @Expensify/design for a quick sanity check (👍 / 👎 ). Based on the Slack discussion it sounds like we're simply removing the textheadline style from the text to match that of the display name message (which has none)?

@dannymcclain
Copy link
Contributor

it sounds like we're simply removing the textheadline style from the text to match that of the display name message (which has none)

That's correct! It should end up looking something like this
CleanShot 2024-02-23 at 08 12 31@2x

@hayata-suenaga hayata-suenaga removed the Reviewing Has a PR in review label Mar 4, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2024
@hayata-suenaga
Copy link
Contributor

payment should be issued after the regression period is over

@melvin-bot melvin-bot bot removed the Overdue label Mar 4, 2024
@slafortune slafortune changed the title [$500] Font in "Hold Request" reason heading text is looks wrong [Payment due 3/6][$500] Font in "Hold Request" reason heading text is looks wrong Mar 4, 2024
@slafortune
Copy link
Contributor

@s77rt can you please complete the check list?

  1. The PR that introduced the bug has been identified. Link to the PR:
  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:
  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:
  4. Determine if we should create a regression test for this bug:
  5. 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:

@s77rt
Copy link
Contributor

s77rt commented Mar 6, 2024

@s77rt
Copy link
Contributor

s77rt commented Mar 6, 2024

@slafortune Done ^

@slafortune
Copy link
Contributor

Great! Thanks @s77rt 👍
No regression test
Both @s77rt and @shahinyan11 are paid
Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants