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-17] [$500] No space between description & show more option #30039

Closed
6 tasks done
m-natarajan opened this issue Oct 20, 2023 · 36 comments
Closed
6 tasks done
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

@m-natarajan
Copy link

m-natarajan commented Oct 20, 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.87-1
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: @Krishna2323
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697621145743689

Action Performed:

  1. Open Request money & select manual tab
  2. Enter amount & select any user
  3. Hover on description menu item and observer there is no gap between description & show more option
  4. Go back to step one & select distance tab
  5. Hover on finish point and observe the space between finish point & add stop option

Expected Result:

There should be some gap between description & show more option

Actual Result:

There is no gap between description & show more option

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

Android: Native
android_native.mp4
Android: mWeb Chrome
WhatsApp.Video.2023-10-19.at.06.40.31.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e92101d63dc7fd51
  • Upwork Job ID: 1715163936897327104
  • Last Price Increase: 2023-10-20
  • Automatic offers:
    • Krishna2323 | Contributor | 27512429
    • krishna2323 | Reporter | 27512432
Issue OwnerCurrent Issue Owner: @m-natarajan
@m-natarajan m-natarajan 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 Oct 20, 2023
@melvin-bot melvin-bot bot changed the title No space between description & show more option [$500] No space between description & show more option Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

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

melvin-bot bot commented Oct 20, 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
Copy link

melvin-bot bot commented Oct 20, 2023

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

@m-natarajan
Copy link
Author

Proposal by contributor reported the bug

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

No space between description & show more option

What is the root cause of that problem?

We don't apply any margin or padding to top of the show more container.

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

We can either apply margin/padding bottom to description menu item or margin/padding top to the show more container.
We are using 4px padding for "Add Stop" option and I think it will be the best option but we can discuss about it and then apply.

Result

@samilabud
Copy link
Contributor

samilabud commented Oct 20, 2023

Proposal

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

No space between the description & show more option

What is the root cause of that problem?

The components MenuItemWithTopDescription inside of OptionsSelector (in MoneyRequestConfirmationList component in src/components/MoneyRequestConfirmationList.js) are all aligned using a flex-direction row with the same distance when the 'show more' option is displayed has no margins.

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

The best solution is adding the prop styles.mt2 in style as next, this going to add a margin-top of 2 and produce the space needed, this is the code needed (in file src/components/MoneyRequestConfirmationList.js line 619):
<View style={[styles.flexRow, styles.justifyContentBetween, styles.mh3, styles.alignItemsCenter, styles.mb2, styles.mt2]}>

These are the results:
Web:
image
Mac Desktop:
Screenshot 2023-10-19 at 10 12 27 PM
Android:

Screen.Recording.2023-10-19.at.10.08.36.PM.mov

IPhone/IOS:

Screen.Recording.2023-10-19.at.10.09.22.PM.mov

@Krishna2323
Copy link
Contributor

Krishna2323 commented Oct 20, 2023

Just to provide more context for my proposal:

We can add margin bottom on:

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

Or we can margin/padding top on:

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

For add stop button we are using 'pt1':

<View style={[styles.flexRow, styles.justifyContentCenter, styles.pt1]}>

@yh-0218
Copy link
Contributor

yh-0218 commented Oct 20, 2023

Proposal

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

No space between the description & show more option

What is the root cause of that problem?

There is no margin-top

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

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

We need to add margin-top

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

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

What alternative solutions did you explore? (Optional)

@narefyev91
Copy link
Contributor

@shawnborton Design help needed here!
Can you please check and suggestion - do we really need additional spacing between last button and Show More chip?
This is how we currently have it now:
Screenshot 2023-10-20 at 12 03 35
This is after any new padding coming in place (chip will take more space, and visually it show a bigger gap - when menu item is not in hover state):
Screenshot 2023-10-20 at 12 03 59
If we need to add margin - can you please tell how much it should be. Thanks!

@Pujan92
Copy link
Contributor

Pujan92 commented Oct 20, 2023

We had it earlier and I think mistakenly removed in this PR https://github.com/Expensify/App/pull/28110/files#diff-dc0f934ad9e583b0f7ac049563a3dcacbfe314e9c16b5c6f8bba6e5a5225a86cL478
cc: @akinwale

We can use styles.mv2 here instead of styles.mb2

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

@akinwale
Copy link
Contributor

We had it earlier and I think mistakenly removed in this PR https://github.com/Expensify/App/pull/28110/files#diff-dc0f934ad9e583b0f7ac049563a3dcacbfe314e9c16b5c6f8bba6e5a5225a86cL478 cc: @akinwale

We can use styles.mv2 here instead of styles.mb2

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

The idea from that PR was to remove the bottom margins from all push-to-page buttons. #27052 for context.

@Krishna2323
Copy link
Contributor

@akinwale, I think we didn't wanted to remove the spacing between "show more" button.

@akinwale
Copy link
Contributor

@akinwale, I think we didn't wanted to remove the spacing between "show more" button.

Yeah, I think the ideal solution here would be to add a top margin (or padding?) to the "show more" button. If there's another push-to-page button below "Description" (e.g. "Date" or "Merchant"), we don't want a bottom margin separating those.

@narefyev91
Copy link
Contributor

Proposal from @m-natarajan looks good to me #30039 (comment)
All proposals are correct - in root case and area to apply a fix - just @m-natarajan was the faster one
🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

@akinwale
Copy link
Contributor

Proposal from @m-natarajan looks good to me #30039 (comment) All proposals are correct - in root case and area to apply a fix - just @m-natarajan was the faster one 🎀 👀 🎀 C+ reviewed

@narefyev91 Small correction here. @m-natarajan is on the QA / Applause (I think?) team reposting the solution posted by the issue reporter, @Krishna2323.

@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

@samilabud
Copy link
Contributor

@narefyev91 @roryabraham Is there any update related to who is assigned to resolve this bug?

@narefyev91
Copy link
Contributor

@narefyev91 @roryabraham Is there any update related to who is assigned to resolve this bug?

Hey - i think we waiting final decision from @roryabraham

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

@roryabraham removing the overdue here

@melvin-bot melvin-bot bot removed the Overdue label Oct 25, 2023
Copy link

melvin-bot bot commented Nov 3, 2023

@narefyev91 @m-natarajan @roryabraham @adelekennedy 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 Nov 3, 2023
@Krishna2323
Copy link
Contributor

@roryabraham, can you pls assign me 😅. #30039 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Nov 3, 2023
Copy link

melvin-bot bot commented Nov 3, 2023

📣 @Krishna2323 🎉 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 📖

Copy link

melvin-bot bot commented Nov 3, 2023

📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@roryabraham
Copy link
Contributor

Done, sorry @Krishna2323.

@melvin-bot melvin-bot bot added the Overdue label Nov 6, 2023
Copy link

melvin-bot bot commented Nov 7, 2023

@narefyev91, @roryabraham, @adelekennedy, @Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@adelekennedy
Copy link

waiting on the PR

@melvin-bot melvin-bot bot removed the Overdue label Nov 7, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 8, 2023
@Krishna2323
Copy link
Contributor

@narefyev91, PR ready.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 10, 2023
@melvin-bot melvin-bot bot changed the title [$500] No space between description & show more option [HOLD for payment 2023-11-17] [$500] No space between description & show more option Nov 10, 2023
Copy link

melvin-bot bot commented Nov 10, 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 10, 2023
Copy link

melvin-bot bot commented Nov 10, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.97-7 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-17. 🎊

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 10, 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:

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

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
@adelekennedy
Copy link

adelekennedy commented Nov 20, 2023

Payouts due:

Issue Reporter: $50 @Krishna2323 (pre bounty change)
Contributor: $500 @Krishna2323
Contributor+: NA

Eligible for 50% #urgency bonus? N

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