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-20] [$500] IOU - Inconsistent margin between green tick and amount on right and left #26061

Closed
1 of 6 tasks
izarutskaya opened this issue Aug 28, 2023 · 38 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 28, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open a 'paid' report OR use another user to request money to current user, pay the request and open 'paid' report
  3. Inspect the margin between green tick and amount in line of Total, it is 4px and margin between green tick and amount for IOU messages below, it is 8px

Expected Result:

App should maintain consistent margin between amount and green tick irrespective of amount being on left or right of green tick

Actual Result:

App maintains 4px margin between amount and green tick for amount on right of green tick and 8px margin for amount on left of green tick

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

inconsistent.margin.between.green.tick.and.amount.mp4
Recording.1343.mp4

Expensify/Expensify Issue URL:

Issue reported by: @dhanashree-sawant

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c9f347b0a5be3236
  • Upwork Job ID: 1699225416989421568
  • Last Price Increase: 2023-09-06
  • Automatic offers:
    • dukenv0307 | Contributor | 26604851
    • Dhanashree-Sawant | Reporter | 26604854
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 28, 2023
@dukenv0307
Copy link
Contributor

Proposal

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

Inconsistent margin between green tick and amount on right and left

What is the root cause of that problem?

We use styles.defaultCheckmarkWrapper style that contains marginLeft: 8px in ReportPreview

<View style={styles.defaultCheckmarkWrapper}>

While we use styles.mh1 in MoneyReportView

<View style={[styles.defaultCheckmarkWrapper, styles.mh1]}>

That is inconsistent.

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

We should use styles.mh2 in MoneyReportView here to be consistent with the check mark in ReportPreview

<View style={[styles.defaultCheckmarkWrapper, styles.mh1]}>

OPTION: we also could be consistent the position of the checkmark

What alternative solutions did you explore? (Optional)

We can add styles.mh1 here

<View style={styles.defaultCheckmarkWrapper}>

@Nodebrute
Copy link
Contributor

Proposal

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

Inconsistent margin between green tick and amount on right and left

What is the root cause of that problem?

Here we are applying a horizontal margin of 4
https://github.com/Expensify/App/blob/74918db214c93349cdf77cd3236be36624c8bc5e/src/components/ReportActionItem/MoneyReportView.js#L53C78-L53C81

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

We have two options here: we can either utilize a horizontal margin of 8 by switching this to styles.mh2, or we can modify it to employ styles.mr2 to apply margin exclusively on the right.

@c3024
Copy link
Contributor

c3024 commented Aug 28, 2023

Proposal

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

Margin between the tick and number for the total is different from margin between tick and amount in IOU preview.

What is the root cause of that problem?

This is the style used for total

<View style={[styles.defaultCheckmarkWrapper, styles.mh1]}>

This defaultCheckmarkWrapper has only a left margin of 8 so the style.mh1 gives a margin of 4 to right.
For IOU preview,
<View style={styles.defaultCheckmarkWrapper}>

the tick is to the right and the left margin in defaultCheckmarkWrapper keeps the margin between the tick and amount to 8. So these two appear inconsistent.

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

We can change the marginLeft: 8 of defaultCheckmarkWrapper to marginHorizontal: 8 and remove the styles.mh1 in the total checkmark style. defaultCheckmarkWrapper is used only in IOUPreview, MoneyReportView, and ReportPreview so this change does not cause any new issues.

What alternative solutions did you explore? (Optional)

We can change the mh1 to mr2 in the total style and keep the defaultCheckmarkWrapper as it is.

Result
uniformMarginForTicks.mov

@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 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

@alphaboss1104
Copy link
Contributor

Proposal

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

Inconsistent margin between green tick and amount on right and left

What is the root cause of that problem?

We use styles.defaultCheckmarkWrapper style that contains marginLeft: 8px in IOUPreview.js.

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

But we use styles.mh1 style that contains marginHorizontal: 4px in MoneyReportView.js.

<View style={[styles.defaultCheckmarkWrapper, styles.mh1]}>
<Icon
src={Expensicons.Checkmark}
fill={styles.success}
/>
</View>

This is the root cause of this issue.

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

We can modify the styles.defaultCheckmarkWrapper style like this:

    defaultCheckmarkWrapper: {
        marginHorizontal: 8,
        alignSelf: 'center',
    },

Then remove the styles.mh1 style from the MoneyReportView.js.

What alternative solutions did you explore? (Optional)

None.

@melvin-bot melvin-bot bot added the Overdue label Aug 30, 2023
@anmurali
Copy link

Will reproduce and slap the label on tomorrow

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Aug 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

@anmurali Eep! 4 days overdue now. Issues have feelings too...

@anmurali
Copy link

anmurali commented Sep 6, 2023

Can reproduce but am not sure this is all that egregiously inconsistent

@melvin-bot melvin-bot bot removed the Overdue label Sep 6, 2023
@anmurali anmurali added the External Added to denote the issue can be worked on by a contributor label Sep 6, 2023
@melvin-bot melvin-bot bot changed the title IOU - Inconsistent margin between green tick and amount on right and left [$500] IOU - Inconsistent margin between green tick and amount on right and left Sep 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01c9f347b0a5be3236

@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 @anmurali 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 - @ArekChr (External)

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@anmurali @ArekChr this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@ArekChr
Copy link
Contributor

ArekChr commented Sep 11, 2023

Proposal from @dukenv0307 Look good to me!

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@anmurali, @ArekChr Huh... This is 4 days overdue. Who can take care of this?

@ArekChr
Copy link
Contributor

ArekChr commented Sep 14, 2023

  • Link to the PR: No bug identified.
  • Link to comment: n/a
  • Link to discussion: n/a
  • Determine if we should create a regression test for this bug: I don’t think we need to add a regression test here.

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

Ready for payment

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

@Julesssss, @anmurali, @ArekChr, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@Julesssss
Copy link
Contributor

I think this one is awaiting payment for:

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 26, 2023
@Julesssss
Copy link
Contributor

Hi @anmurali, this issue is ready for payment

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 29, 2023
@Julesssss
Copy link
Contributor

Hi @anmurali, this issue is ready for payment

Bumping for payment

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 2, 2023
@anmurali
Copy link

anmurali commented Oct 4, 2023

Paid contributor.
@dhanashree-sawant you need to accept this offer before I can pay

@melvin-bot melvin-bot bot removed the Overdue label Oct 4, 2023
@dhanashree-sawant
Copy link

Hi @anmurali, the offer is for 50$ but the issue was raised on GH on 28 August, can you modify the offer to 250 for it?

@melvin-bot melvin-bot bot added the Overdue label Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 2023

@Julesssss, @anmurali, @ArekChr, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too...

@anmurali
Copy link

@melvin-bot melvin-bot bot removed the Overdue label Oct 11, 2023
@dhanashree-sawant
Copy link

Thanks @anmurali, I have accepted the offer.

@melvin-bot melvin-bot bot added the Overdue label Oct 13, 2023
@Julesssss
Copy link
Contributor

I think this can be closed, please someone comment or re-open if I am mistaken!

@melvin-bot melvin-bot bot removed the Overdue label Oct 13, 2023
@dhanashree-sawant
Copy link

Hi @anmurali, can you approve the milestone on upwork once you are available?

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

9 participants