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-06] [$1000] Web - Split bill - Show more button in split bill has no padding below #25562

Closed
1 of 6 tasks
izarutskaya opened this issue Aug 21, 2023 · 53 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 21, 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. Open the app
  2. Click on plus and split bill
  3. Enter any amount and select more then 5 users
  4. After selecting users, click next, observe that show more button has no padding below making it look connected to split button
  5. Click on split
  6. Click on split bill message and observe that due to lack of padding below show more, it appears to be sticked to bottom of screen

Expected Result:

Show more button should have padding below like we generally have for all buttons to ensure they do not appear adjacent to any interface or bottom or screen

Actual Result:

Show more button has no padding below making it look adjacent to split button as well as bottom of screen

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

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

no.padding.below.show.more.button.mp4
Recording.5945.mp4

Expensify/Expensify Issue URL:

Issue reported by: @dhanashree-sawant

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018d1ff6c61c186d88
  • Upwork Job ID: 1694384587884593152
  • Last Price Increase: 2023-08-23
  • Automatic offers:
    • Ollyws | Reviewer | 26307166
    • c3024 | Contributor | 26307169
    • Dhanashree-Sawant | Reporter | 26307172
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 21, 2023

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

@melvin-bot
Copy link

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

@c3024
Copy link
Contributor

c3024 commented Aug 21, 2023

Proposal

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

No margin bottom for show more in split bill.

What is the root cause of that problem?

View containing Show more here

<View style={[styles.flexRow, styles.justifyContentBetween, styles.mh3, styles.alignItemsCenter]}>

does not have a bottom margin

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

When we show fields the merchant item has a margin of margin bottom 2 here

style={[styles.moneyRequestMenuItem, styles.mb2]}

We should add it for the view with show more also

<View style={[styles.flexRow, styles.justifyContentBetween, styles.mh3, styles.alignItemsCenter, styles.mb2]}>

What alternative solutions did you explore? (Optional)

Result Screenshot 2023-08-21 at 3 18 51 PM

@dukenv0307
Copy link
Contributor

dukenv0307 commented Aug 21, 2023

Proposal

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

Show more button in split bill has no padding below

What is the root cause of that problem?

The wrap View of the show more button doesn't have padding

<View style={[styles.flexRow, styles.justifyContentBetween, styles.mh3, styles.alignItemsCenter]}>

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

We should add padding style styles.mb2 to the wrap view of the show more button that is equal to space between the description menu and show more button

<View style={[styles.flexRow, styles.justifyContentBetween, styles.mh3, styles.alignItemsCenter]}>

And we also should add styles,mb2 for Amount menu to consistent with other menu items

titleStyle={styles.moneyRequestConfirmationAmount}

What alternative solutions did you explore? (Optional)

NA

Result

@AmjedNazzal
Copy link
Contributor

@izarutskaya Slack post link? usually there should be a link to the slack post. because of this I couldn't tell it was the same thing and didn't post my proposal. please include the slack links. thank you.

@AmjedNazzal
Copy link
Contributor

Proposal

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

Web - Split bill - Show more button in split bill has no padding below

What is the root cause of that problem?

The reason there is no padding is because although all MenuItemWithTopDescription have mb2, the view used if !showAllFields doesn't have any margin or padding.

{!showAllFields && (
<View style={[styles.flexRow, styles.justifyContentBetween, styles.mh3, styles.alignItemsCenter]}>
<View style={[styles.shortTermsHorizontalRule, styles.flex1, styles.mr0]} />

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

We should add mb2 to the view to keep things consistant.

{!showAllFields && (
    <View style={[..., styles.mb2]}>

Result

Screen.Recording.2023-08-10.at.3.34.51.PM.mov

@huzaifa-99
Copy link
Contributor

huzaifa-99 commented Aug 21, 2023

Proposal

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

We want to update the spacing for the 'Show more' button in the split bill details page.

What is the root cause of that problem?

We are not adding enough spacing to the 'Show more' button which causes it to touch the 'Split bill' button and the bottom of the screen when the bill is split.

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

We should update the padding for the 'Show more' button. This is something we need to confirm from the design team.

For now I think we could add the same padding i.e styles.pv3 = paddingVertical: 12 as we have for <MenuItemWithTopDescription/> which would make the button look like this

Result image image

But curious as to what the design team thinks

What alternative solutions did you explore? (Optional)

N/A

@namhihi237
Copy link
Contributor

Proposal

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

Show more button should have padding below like we generally have for all buttons to ensure they do not appear adjacent to any interface or bottom or screen

What is the root cause of that problem?

Details of split bill being wrapped by OptionsSelector here

When the number of participants increases and the screen length is smaller, we have a confirm button and the show more button will have no space because we have not added any space here and here.

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

we can add styles.pb2 or styles.pb3 in BaseOptionsSelector

What alternative solutions did you explore? (Optional)

We can add space below the button. I think we can add styles.mb2 or styles.mb3 in here

@melvin-bot melvin-bot bot added the Overdue label Aug 23, 2023
@luacmartins luacmartins self-assigned this Aug 23, 2023
@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Aug 23, 2023
@melvin-bot melvin-bot bot changed the title Web - Split bill - Show more button in split bill has no padding below [$1000] Web - Split bill - Show more button in split bill has no padding below Aug 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

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

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

melvin-bot bot commented Aug 23, 2023

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

@luacmartins
Copy link
Contributor

adding external label

@melvin-bot melvin-bot bot removed the Overdue label Aug 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

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

@bobby-beers
Copy link

Proposal

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

There are actually 2 problems here.

  1. There is no margin attached to the 'show more' dropdown, as stated and shown above.

  2. The more difficult issue is the way that the window reacts to being shrunk to the minimum height. When that happens, the Button, 'show more' dropdown, and description item above it get shrunk and overlap one another.

image

What is the root cause of that problem?
incorrect handling of window resizing by the objects mentioned above. Adding too many (more than 5) recipients shrinks the available space, and brings up issues with how the window handles and prioritizes the elements.

What changes do you think we should make in order to solve the problem?
As mentioned above, we can add a class like .mb2 to the view on L372. To fix the other issue, we can actually just add .flex0 to the same line. When we do this, the show more button stacks on top of the item above it, as shown here:
image
Nice and neat!

What alternative solutions did you explore? (Optional)
Verified this suggestion from above: We can add space below the button. I think we can add styles.mb2 or styles.mb3 in here
Also looked at adding the styling in other places, but it makes the most sense to add it here so that it encapsulates the show more dropdown and the horizontal line.

@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

📣 @byobeers! 📣
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>

@bobby-beers
Copy link

Contributor details
Your Expensify account email: bobby.a.beers@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01d6eff652c9b8b4fa

please get in touch with me via email before processing any payment. Thanks!

@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@Ollyws
Copy link
Contributor

Ollyws commented Aug 24, 2023

Thanks for the proposals everyone.

Seems like adding styles.mb2 to match the padding from the above menu-item is the way to go here, so let's go with @c3024's proposal as they were the first to suggest this.

🎀👀🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Aug 24, 2023

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

@bobby-beers
Copy link

and what about the other issue that I found?

@Ollyws
Copy link
Contributor

Ollyws commented Aug 24, 2023

@byobeers Thanks for bringing it up but it's out of scope for this issue, feel free to report it as a bug though.

@c3024
Copy link
Contributor

c3024 commented Sep 12, 2023

@luacmartins It's been a few days since holding period ended. Could the payment be completed?

@luacmartins
Copy link
Contributor

@JmillsExpensify could you please help with payment?

@melvin-bot melvin-bot bot added the Overdue label Sep 15, 2023
@luacmartins
Copy link
Contributor

Bump @JmillsExpensify

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 15, 2023
@luacmartins
Copy link
Contributor

Bumped @JmillsExpensify

@melvin-bot melvin-bot bot removed the Overdue label Sep 18, 2023
@c3024
Copy link
Contributor

c3024 commented Sep 20, 2023

Payment is long overdue. Could you please complete? @JmillsExpensify

@JmillsExpensify
Copy link

Sure thing. Payment summary is as follows:

  • Issue reporter: @dhanashree-sawant $250 (issue created before Sept. 1)
  • Contributor: @c3024 $1,500 (incl. urgency bonus)
  • Contributor+: @Ollyws $1,500 (incl. urgency bonus)

Upwork job is here: https://www.upwork.com/jobs/~018d1ff6c61c186d88. @dhanashree-sawant has been paid out. @c3024 similarly, it looks like you've been paid $1,000, so you're owed the delta of $500. Is that right?

@JmillsExpensify
Copy link

@Ollyws You have an offer outstanding, right? Let me know once you accept on this issue. 🙌🏼

@c3024
Copy link
Contributor

c3024 commented Sep 20, 2023

Thank you. Yes, $500 bonus yet to be paid.

@JmillsExpensify
Copy link

Great, that's been handled now! All paid.

@luacmartins
Copy link
Contributor

Cool, I think we're good to close then?

@Ollyws
Copy link
Contributor

Ollyws commented Sep 20, 2023

@JmillsExpensify, accepted thanks!

@melvin-bot melvin-bot bot added the Overdue label Sep 22, 2023
@luacmartins
Copy link
Contributor

I think payment is handled. Closing the issue. Feel free to reopen if we missed something.

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2023
@Ollyws
Copy link
Contributor

Ollyws commented Sep 25, 2023

@JmillsExpensify Still awaiting payment on this one, thanks.

@Ollyws
Copy link
Contributor

Ollyws commented Oct 3, 2023

@JmillsExpensify Friendly bump for payment.

@Ollyws
Copy link
Contributor

Ollyws commented Oct 9, 2023

@luacmartins Any chance we could open this one back up as I still haven't been paid? Thanks.

@luacmartins luacmartins reopened this Oct 10, 2023
@luacmartins
Copy link
Contributor

@JmillsExpensify seems like I prematurely closed this one. Could you please help with payment?

@JmillsExpensify
Copy link

Ah opps sorry about that.

@JmillsExpensify
Copy link

Looking into this now in any case

@JmillsExpensify
Copy link

@Ollyws I see what happened now. We owed you $500. I accidentally you sent extra and request a portion of it back. Do you mind refunding that portion? Otherwise we are good here!

@Ollyws
Copy link
Contributor

Ollyws commented Oct 12, 2023

@JmillsExpensify I think about 15 minutes ago you paid me $2500? So I should return $1000 right?

@Ollyws
Copy link
Contributor

Ollyws commented Oct 12, 2023

returned $1000. Thanks!

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

10 participants