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-11-29] [$125] Desktop - Avatars in split preview card too close to right edge #31394

Closed
2 of 6 tasks
kbecciv opened this issue Nov 15, 2023 · 22 comments
Closed
2 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. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Nov 15, 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!


Version Number: 1.3.99.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/p1700000146978699

Action Performed:

  1. Create a split with two other people
  2. Look at the preview card

Expected Result:

Avatar stacak should be 20px (or is it 16px?) away from the right edge of the card, it should match the same padding as left side

Actual Result:

Avatar stack is too close to right edge

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

CleanShot 2023-11-14 at 17 13 14@2x (1)

2023-11-15.1.10.24.PM.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014ce3040ec2425cf6
  • Upwork Job ID: 1724853684623753216
  • Last Price Increase: 2023-11-15
  • Automatic offers:
    • paultsimura | Contributor | 27689355
@kbecciv kbecciv 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 Nov 15, 2023
@melvin-bot melvin-bot bot changed the title Desktop - Avatars in split preview card too close to right edge [$500] Desktop - Avatars in split preview card too close to right edge Nov 15, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

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

Copy link

melvin-bot bot commented Nov 15, 2023

Job added to Upwork: https://www.upwork.com/jobs/~014ce3040ec2425cf6

Copy link

melvin-bot bot commented Nov 15, 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

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

melvin-bot bot commented Nov 15, 2023

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

@youssef-lr youssef-lr changed the title [$500] Desktop - Avatars in split preview card too close to right edge [$125] Desktop - Avatars in split preview card too close to right edge Nov 15, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

Upwork job price has been updated to $125

@youssef-lr
Copy link
Contributor

I'm going to try and fix this in an ongoing PR. If not we can let this be external.

@paultsimura
Copy link
Contributor

paultsimura commented Nov 15, 2023

Proposal

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

The avatars are incorrectly placed

What is the root cause of that problem?

The avatars use the negative margin here, which was added in 2021 (#2112), but now seems like a redundant code:

App/src/styles/styles.ts

Lines 2661 to 2664 in e953a65

moneyRequestPreviewBoxAvatar: {
marginRight: -10,
marginBottom: 0,
},

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

We actually can remove the special style here:

<View style={styles.moneyRequestPreviewBoxAvatar}>

And the moneyRequestPreviewBoxAvatar style altogether.

What alternative solutions did you explore? (Optional)

@abzokhattab
Copy link
Contributor

abzokhattab commented Nov 15, 2023

Proposal

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

The avatars are incorrectly placed

# What is the root cause of that problem?

The avatars margin is -10 .. and in the left we have 16 px so the padding on the right and left are not the same

App/src/styles/styles.ts

Lines 2666 to 2668 in 91979f9

padding: 16,
},

marginRight: -10,

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

we have 16 px in the front padding so we need to make the avatar padding -16 instad of -10

 marginRight: -16, 

@yh-0218
Copy link
Contributor

yh-0218 commented Nov 15, 2023

Proposal

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

The avatars are incorrectly placed

What is the root cause of that problem?

We have incorrect marginRight in moneyRequestPreviewBoxAvatar

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

We need to remove marginRight or smaller than now.

marginRight: -10,

What alternative solutions did you explore? (Optional)

Screenshot 2023-11-15 at 8 56 14 PM

@parasharrajat
Copy link
Member

@paultsimura 's proposal looks good to me.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Nov 15, 2023

Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@chuckchoiboi
Copy link

chuckchoiboi commented Nov 15, 2023

Proposal

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

The Avatar stack has a hard-coded margin which makes the margin to go beyond the parent container's width.

Screenshot 2023-11-15 at 11 05 26 AM

What is the root cause of that problem?

The Avatar stack has a margin-right of -16.

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

It seems like the row with the amount and avatar has flex: 1 1 0% so the row's items (amount/avatar stack) are each at the left-most end and right-most end of the row, but the avatar image doesn't align with the text below due to its border-width of 2px giving the image stack the cool hovering look.

We should adjust this to the margin-right of -3px to make the image content align with the text below.

Screenshot 2023-11-15 at 11 15 34 AM

What alternative solutions did you explore? (Optional)

We should remove margin from moneyRequestPreviewBoxAvatar, but set border-right to 0px for the right most child of the avatar stack. This will make the content align perfectly with the text below.

Screenshot 2023-11-15 at 11 34 39 AM

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

melvin-bot bot commented Nov 15, 2023

📣 @parasharrajat Please request via NewDot manual requests for the Reviewer role ($125)

Copy link

melvin-bot bot commented Nov 15, 2023

📣 @paultsimura 🎉 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 melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 16, 2023
@paultsimura
Copy link
Contributor

Thanks. The PR is ready: #31430

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Nov 22, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Nov 22, 2023
@melvin-bot melvin-bot bot changed the title [$125] Desktop - Avatars in split preview card too close to right edge [HOLD for payment 2023-11-29] [$125] Desktop - Avatars in split preview card too close to right edge Nov 22, 2023
Copy link

melvin-bot bot commented Nov 22, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 22, 2023
Copy link

melvin-bot bot commented Nov 22, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.1-13 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-11-29. 🎊

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:

Copy link

melvin-bot bot commented Nov 22, 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:

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

@parasharrajat
Copy link
Member

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:

  • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: Hard to determine as UI was changed many times and it is difficult to say where the style went wrong.
  • [@parasharrajat] 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: NA
  • [@parasharrajat] 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: Nope. I think we should check style in each PR.
  • [@parasharrajat] Determine if we should create a regression test for this bug. Not. Required. It is a style issue.
  • [@parasharrajat] 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.

@puneetlath
Copy link
Contributor

Payment summary:

Closing. Thanks everyone!

@parasharrajat
Copy link
Member

Payment requested as per #31394 (comment)

@JmillsExpensify
Copy link

$125 payment approved for @parasharrajat based on comment above.

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. 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