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

[HOLD for payment 2023-09-27] [$250] Web – Split Bill – Difference in padding among amount and description. #26210

Closed
1 of 6 tasks
izarutskaya opened this issue Aug 29, 2023 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Aug 29, 2023

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 any chat and split a bill.
  2. Notice the difference in padding among amount and description. Amount is relatively above then description.

Expected Result:

Padding should be consistent among amount and description.

Actual Result:

Padding is not consistent among amount and description.

Workaround:

Unknown

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: v1.3.57-5

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

Bug.3.mp4

1

image

Expensify/Expensify Issue URL:

Issue reported by: @usmantariq96

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692690646431509

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0137a2de3122624eed
  • Upwork Job ID: 1699562237383294976
  • Last Price Increase: 2023-09-06
  • Automatic offers:
    • namhihi237 | Contributor | 26568205
@namhihi237
Copy link
Contributor

Proposal

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

Padding should be consistent among amount and description.

What is the root cause of that problem?

We using mt1 for the description, and in an amount for each, we missing for this.

{!_.isEmpty(description) && <Text style={[styles.mt1, styles.colorMuted]}>{description}</Text>}

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

We should add mt1 here

 <Text style={[styles.textLabel, styles.colorMuted, styles.ml1, styles.mt1]}>

What alternative solutions did you explore? (Optional)

Or we can remove mt1 here and here and add mt1 here:

<View style={[styles.flexRow]}>

@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

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

@s-alves10
Copy link
Contributor

Proposal

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

Split bill preview has inconsistency in padding among amount and description

What is the root cause of that problem?

Description has style styles.mt1 but amount doesn't

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

I suggest to add styles.mt1 to the parent here

<View style={[styles.flexRow]}>

and remove all mt1 in its children

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Sep 1, 2023
@stephanieelliott
Copy link
Contributor

I agree the padding is obviously off. I think it should be fixed but considering how minor this is, adjusting the price to $250.

@melvin-bot melvin-bot bot removed the Overdue label Sep 1, 2023
@stephanieelliott stephanieelliott changed the title Web – Split Bill – Difference in padding among amount and description. [$250] Web – Split Bill – Difference in padding among amount and description. Sep 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 1, 2023

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@PiyushChandra17
Copy link

PiyushChandra17 commented Sep 4, 2023

Proposal

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

Padding is not consistent among amount and description.

What is the root cause of that problem?

We are using styles.ml1 while styling the amount each text

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

  • Instead of using styles.ml1, we should add styles.mt1 on styling the amount each text (just to be consistent on both the description and amount text)

  • In MoneyRequestPreview.js, line number: 286, add styles.mt1

<Text style={[styles.textLabel, styles.colorMuted, styles.mt1]}>

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

@stephanieelliott Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@stephanieelliott stephanieelliott added the External Added to denote the issue can be worked on by a contributor label Sep 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0137a2de3122624eed

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

@stephanieelliott
Copy link
Contributor

Forgot to add External label, @robertKozik looks like we have a proposal #26210 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Sep 6, 2023
@munsuyog
Copy link

munsuyog commented Sep 7, 2023

Proposal

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

Inconsistent padding between amount and description.

What is the root cause of that problem?

styles.ml1 is being used for styling.

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

In MoneyRequestPreview.js, add styles.mt1

<Text style={[styles.textLabel, styles.colorMuted, styles.mt1]}>

What alternative solutions did you explore? (Optional).

@robertKozik
Copy link
Contributor

Thanks for pinging @stephanieelliott !

Thank you all for your proposals 🙇🏼
It seems that each of you has correctly pinpointed the root cause of the issue. Additionally, the proposed solutions were quite similar. I'm inclined to choose @namhihi237's proposal, as it was the quickest and first to introduce this particular solution. However, I believe we should proceed with your alternative solution to avoid any style duplications on children nodes.

Selected proposal: Proposal
Contributor: @namhihi237

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 7, 2023

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

@PiyushChandra17
Copy link

@stephanieelliott How about my proposal ? I think it's slightly different from what's @namhihi237 proposed

@aldo-expensify
Copy link
Contributor

@PiyushChandra17 thanks for the proposal, but to me it looks almost the same as @namhihi237's proposal, except that you are dropping the left margin (styles.ml1) which I'm not sure is something we want.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 8, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

📣 @namhihi237 🎉 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 📖

@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

📣 @usmantariq96 We're missing your Upwork ID to automatically send you an offer for the Reporter role.
Once you apply to the Upwork job, your Upwork ID will be stored and you will be automatically hired for future jobs!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @namhihi237 got assigned: 2023-09-08 17:06:07 Z
  • when the PR got merged: 2023-09-18 04:49:29 UTC
  • days elapsed: 5

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 20, 2023
@melvin-bot melvin-bot bot changed the title [$250] Web – Split Bill – Difference in padding among amount and description. [HOLD for payment 2023-09-27] [$250] Web – Split Bill – Difference in padding among amount and description. Sep 20, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-09-27. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 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:

  • [@robertKozik] The PR that introduced the bug has been identified. Link to the PR:
  • [@robertKozik] 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:
  • [@robertKozik] 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:
  • [@robertKozik] Determine if we should create a regression test for this bug.
  • [@robertKozik] 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.
  • [@stephanieelliott] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Sep 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 29, 2023

@stephanieelliott, @namhihi237, @robertKozik, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@aldo-expensify
Copy link
Contributor

ping @robertKozik for the checklist

@melvin-bot melvin-bot bot removed the Overdue label Oct 2, 2023
@robertKozik
Copy link
Contributor

robertKozik commented Oct 2, 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:

  • [@robertKozik] The PR that introduced the bug has been identified. Link to the PR: It's hard to find exact PR as the lint commit was applied for these styles, considering that It could be forgotten during initial implementation of component I've stopped looking for it
  • [@robertKozik] 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: N/A
  • [@robertKozik] 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: N/A
  • [@robertKozik] Determine if we should create a regression test for this bug. I think we don't need any regression tests for it as it is purely visual bug
  • [@robertKozik] 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. N/A

@aldo-expensify checklist done. I propose not to create regression tests for this case, as it is purely visual bug

@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

Upwork job is here, no bonus onpayout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants