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-06-02] [$1000] Inconsistent spacing between amount and tick mark #19049

Closed
1 of 6 tasks
kavimuru opened this issue May 16, 2023 · 32 comments
Closed
1 of 6 tasks
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

@kavimuru
Copy link

kavimuru commented May 16, 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. Send a money request from account A to account B
  2. Settle the requested amount from account B
  3. Look at the "settled up [amount]" and tick mark

Expected Result:

There should be a spacing between the amount and the tick mark

Actual Result:

There is no space between the amount and the tick mark

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.14-10
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
image

2023-05-15.12.32.12.mp4
1

Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684143189663259

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0172355caaa1314f42
  • Upwork Job ID: 1658893137305018368
  • Last Price Increase: 2023-05-17
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 16, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 16, 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

@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented May 16, 2023

Proposal

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

Inconsistent spacing between amount and tick mark

What is the root cause of that problem?

In the first place, we surround the icon with <View style={styles.iouPreviewBoxCheckmark}> which have extra marginLeft, but not surround it in the second place.

in the first place

<View style={styles.iouPreviewBoxCheckmark}>
<Icon
src={Expensicons.Checkmark}
fill={themeColors.iconSuccessFill}
/>
</View>

in the second place

<Icon
style={[styles.ml10]}
src={Expensicons.Checkmark}
fill={themeColors.iconSuccessFill}
/>

iouPreviewBoxCheckmark style

App/src/styles/styles.js

Lines 2415 to 2418 in f013fe2

iouPreviewBoxCheckmark: {
marginLeft: 4,
alignSelf: 'center',
},

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

Surround icon in the second place with

<View style={styles.iouPreviewBoxCheckmark}>
    
</View>

What alternative solutions did you explore? (Optional)

N/A

@hungvu193
Copy link
Contributor

hungvu193 commented May 17, 2023

Proposal

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

Inconsistent spacing between amount and tick mark

What is the root cause of that problem?

We are passing style to the Icon component in here:


But inside Icon component we don't have style props, so we don't see any margin here.

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

In stead of using style props we should use additionalStyles props for Icon component, we also need to make sure the margin is consistent with the Checkmark in IOUPreview.

              <Icon
// we should use additionalStyles instead of style here, we can use iouPreviewBoxCheckmark styles or ml1.
                     additionalStyles={[styles. iouPreviewBoxCheckmark]}
                     src={Expensicons.Checkmark}
                     fill={themeColors.iconSuccessFill}
                />

What alternative solutions did you explore? (Optional)

None

@Christinadobrzyn
Copy link
Contributor

This seems to just be affecting the browser - I don't see the same padding issues on the other devices. Making External

@Christinadobrzyn Christinadobrzyn added the External Added to denote the issue can be worked on by a contributor label May 17, 2023
@melvin-bot melvin-bot bot changed the title Inconsistent spacing between amount and tick mark [$1000] Inconsistent spacing between amount and tick mark May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0172355caaa1314f42

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

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

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

melvin-bot bot commented May 17, 2023

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

@Christinadobrzyn
Copy link
Contributor

Hey @ahmedGaber93 Please make sure to wait until the job is in Upwork before adding a proposal to the GH.

@grucare
Copy link

grucare commented May 17, 2023

I think if you change code like this, the bug will disappear
App/tree/main/src/styles line 2486:

current :
iouPreviewBoxCheckmark: {
marginLeft: 4,
alignSelf: 'center',
}
Change it:
iouPreviewBoxCheckmark: {
marginLeft: 5,
alignSelf: 'center',
}

Is it easy, right ?

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

📣 @lobcare! 📣
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. 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.
  2. 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.
  3. 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>

@ahmedGaber93
Copy link
Contributor

Hey @ahmedGaber93 Please make sure to wait until the job is in Upwork before adding a proposal to the GH.

Thanks @Christinadobrzyn.
But guideline here recently changed to allow proposal at any time

You can propose solutions on any issue at at any time, but if you propose solutions to jobs before the Help Wanted label is applied, you do so at your own risk. Proposals will not be reviewed until the label is added and there is always a chance that we might not add the label or hire an external contributor for the job.

@jasperhuangg
Copy link
Contributor

I think if you change code like this, the bug will disappear App/tree/main/src/styles line 2486:

current : iouPreviewBoxCheckmark: { marginLeft: 4, alignSelf: 'center', } Change it: iouPreviewBoxCheckmark: { marginLeft: 5, alignSelf: 'center', }

Is it easy, right ?

Hey @lobcare, please follow the proposal template: https://github.com/Expensify/App/blob/main/contributingGuides/PROPOSAL_TEMPLATE.md

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

melvin-bot bot commented May 18, 2023

📣 @ahmedGaber93 You have been assigned to this job by @jasperhuangg!
Please apply to this job in Upwork 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 📖

@Santhosh-Sellavel
Copy link
Collaborator

Thanks @jasperhuangg for the Review!

@ahmedGaber93 Let us know when is PR is ready for Review!

@ahmedGaber93
Copy link
Contributor

@Santhosh-Sellavel PR is ready for review.

@grucare
Copy link

grucare commented May 19, 2023 via email

@Santhosh-Sellavel
Copy link
Collaborator

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

Post your questions on the channel, so people will address your queries.
For now, Upwork is mandatory for getting paid.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels May 26, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Inconsistent spacing between amount and tick mark [HOLD for payment 2023-06-02] [$1000] Inconsistent spacing between amount and tick mark May 26, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 26, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.18-2 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-06-02. 🎊

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

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 May 26, 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:

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

@Christinadobrzyn
Copy link
Contributor

Hired in Upwork - https://www.upwork.com/jobs/~0172355caaa1314f42

@Santhosh-Sellavel what do you think of a regression test for this?

@Santhosh-Sellavel
Copy link
Collaborator

@Santhosh-Sellavel what do you think of a regression test for this?

Not needed here as it's a small UI polish cc: @jasperhuangg

@jasperhuangg
Copy link
Contributor

Not needed here as it's a small UI polish cc: @jasperhuangg
agree!

@grucare
Copy link

grucare commented May 31, 2023 via email

@Santhosh-Sellavel
Copy link
Collaborator

@lobcare I've already replied here. Further queries post your questions on channel

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 1, 2023
@Christinadobrzyn
Copy link
Contributor

Ready for payment but there are some additional convos on the PR - @Santhosh-Sellavel @luacmartins can you confirm if this can be paid or if we're working on something else first?

Do we need a regression test for this?

@luacmartins
Copy link
Contributor

@Christinadobrzyn yes, we can pay that one. We're addressing those in a separate issue.

@Christinadobrzyn
Copy link
Contributor

Awesome! Thanks for confirming @luacmartins

Looks like this isn't eligible for a speed bonus (PR created May 18th - merged May 23rd)

Paid in Upwork based on this - #19049 (comment)

Let me know about any regression tests!

@Santhosh-Sellavel
Copy link
Collaborator

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:

@Santhosh-Sellavel
Copy link
Collaborator

We are good to close this!

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