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 2024-12-20] [$250] Inbox LHN wrapper is missing 12px of top padding #52198

Closed
1 of 8 tasks
m-natarajan opened this issue Nov 7, 2024 · 58 comments
Closed
1 of 8 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

@m-natarajan
Copy link

m-natarajan commented Nov 7, 2024

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


Version Number: 9.0.59-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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 (hyperlinked to channel name): ts_external_expensify_bugs

Action Performed:

  1. Go to staging.new.expensify.com
  2. Observe LHN padding

Expected Result:

12px padding for the wrapper that wraps LHN items

Actual Result:

Inbox doesn't have this same top padding.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

CleanShot 2024-11-07 at 10 04 39@2x

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021857045218853656773
  • Upwork Job ID: 1857045218853656773
  • Last Price Increase: 2024-11-21
  • Automatic offers:
    • mkzie2 | Contributor | 105086530
Issue OwnerCurrent Issue Owner: @greg-schroeder / @greg-schroeder
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 7, 2024
Copy link

melvin-bot bot commented Nov 7, 2024

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@mkzie2
Copy link
Contributor

mkzie2 commented Nov 7, 2024

Edited by proposal-police: This proposal was edited at 2024-11-08 03:07:59 UTC.

Proposal

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

Inbox doesn't have this same top padding.

What is the root cause of that problem?

We don't add padding or margin style to the wrap View of LHN items

<View style={[styles.pRelative, styles.flex1]}>

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

We can add styles.mv3 or styles.pv3 if we want to add both margin/padding top and bottom

<View style={[styles.pRelative, styles.flex1]}>

Or if we only want to add a margin/padding top, we can add styles.mt3 or styles.pt3 here

<View style={[styles.pRelative, styles.flex1]}>

To reach here, we need to decrease the margin-bottom here from 20px to 8px. Change styles.mv5 to styles.mt5, styles.mb2. Or if we want the margin top and bottom of TopBar is equal, we can remove styles.mv5 and add marginTop and marginBottom 14px to the View here.

style={[styles.flexRow, styles.gap4, styles.mh3, styles.mv5, styles.alignItemsCenter, styles.justifyContentBetween]}

What alternative solutions did you explore? (Optional)

We can add paddingTop: 12 to sidebarListContainer style or add styles.pt3/styles.mt3 here

const contentContainerStyles = useMemo(() => StyleSheet.flatten([styles.sidebarListContainer, {paddingBottom: StyleUtils.getSafeAreaMargins(insets).marginBottom}]), [insets]);

Result

Screen.Recording.2024-11-15.at.18.41.27.mov

@mkzie2
Copy link
Contributor

mkzie2 commented Nov 7, 2024

@shawnborton Actually, the padding is added to the inner component.

Screenshot 2024-11-07 at 23 20 55

The expectation we want here is to move this to the outside component like this, right?

Screenshot 2024-11-07 at 23 23 40

@Themoonalsofall
Copy link

Proposal

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

Inbox LHN wrapper is missing 12px of top padding

What is the root cause of that problem?

New style for inbox LHN

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

We can style Inbox LHN wrapper like we did with Search page and workspace

search workspace
  • Remove marginHorizontal on each item in LHN

marginHorizontal: 12,

  • Add missing margin to wrapper

<View style={[styles.pRelative, styles.flex1]}>

<View style={[styles.pRelative, styles.flex1, styles.mt3, styles.mh3]}>
result

What alternative solutions did you explore? (Optional)

More simply just need to add styles.mt3 or styles.pt3 to wrapper

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@mkzie2
Copy link
Contributor

mkzie2 commented Nov 8, 2024

Updated proposal.

@shawnborton
Copy link
Contributor

Yeah @Themoonalsofall's proposal is what I had in mind for this.

@melvin-bot melvin-bot bot added the Overdue label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

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

@anmurali anmurali removed their assignment Nov 12, 2024
@melvin-bot melvin-bot bot removed the Overdue label Nov 12, 2024
@anmurali anmurali added Overdue Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Nov 12, 2024
Copy link

melvin-bot bot commented Nov 12, 2024

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 12, 2024
@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Nov 14, 2024
@melvin-bot melvin-bot bot changed the title Inbox LHN wrapper is missing 12px of top padding [$250] Inbox LHN wrapper is missing 12px of top padding Nov 14, 2024
Copy link

melvin-bot bot commented Nov 14, 2024

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

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

melvin-bot bot commented Nov 14, 2024

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

@hoangzinh
Copy link
Contributor

Hi @shawnborton, just wanna confirm, given we want to add top padding with 12px, then when we scroll chat list, will it reach the "upper bound 1" or "upper bound 2" in my below screenshot?

Screenshot 2024-11-15 at 17 36 19

@shawnborton
Copy link
Contributor

The top padding should be considered part of the scrollable content, if that makes sense. So your upper bound 1.

@melvin-bot melvin-bot bot added the Weekly KSv2 label Nov 29, 2024
@sonialiap sonialiap removed their assignment Dec 13, 2024
@sonialiap sonialiap added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Dec 13, 2024
Copy link

melvin-bot bot commented Dec 13, 2024

Triggered auto assignment to @greg-schroeder (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 13, 2024
@sonialiap
Copy link
Contributor

I'm OOO Dec 16-20, adding a leave buddy

next steps:

  • might need payment while I'm out

@sonialiap sonialiap self-assigned this Dec 13, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Dec 13, 2024
@melvin-bot melvin-bot bot changed the title [$250] Inbox LHN wrapper is missing 12px of top padding [HOLD for payment 2024-12-20] [$250] Inbox LHN wrapper is missing 12px of top padding Dec 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 13, 2024
Copy link

melvin-bot bot commented Dec 13, 2024

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

Copy link

melvin-bot bot commented Dec 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.75-6 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 2024-12-20. 🎊

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

Copy link

melvin-bot bot commented Dec 13, 2024

@hoangzinh @sonialiap / @greg-schroeder @hoangzinh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@hoangzinh
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: Nope, it's just a UI adjustment to keep consistency with other pages

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Nope, it's just a small change in UI.

@greg-schroeder
Copy link
Contributor

This looks ready to go for 12/20

@hoangzinh
Copy link
Contributor

Requested payment in ND

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 20, 2024
@garrettmknight
Copy link
Contributor

@greg-schroeder can you post a payment summary when you get a chance? I don't think the automation ran.

@melvin-bot melvin-bot bot added the Overdue label Dec 23, 2024
Copy link

melvin-bot bot commented Dec 23, 2024

@tylerkaraszewski, @hoangzinh, @sonialiap, @greg-schroeder, @mkzie2 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@sonialiap
Copy link
Contributor

Payment summary:
@hoangzinh $250 through NewDot cc @garrettmknight
@mkzie2 $250 through upwork ✔️

@github-project-automation github-project-automation bot moved this from LOW to Done in [#whatsnext] #quality Dec 23, 2024
@melvin-bot melvin-bot bot removed the Overdue label Dec 23, 2024
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
Development

No branches or pull requests

10 participants