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-08-29] [$125] Expense - Mark as cash and Review duplicates buttons have no spacing between each other #47089

Closed
2 of 6 tasks
lanitochka17 opened this issue Aug 8, 2024 · 19 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

@lanitochka17
Copy link

lanitochka17 commented Aug 8, 2024

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: 9.0.18-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4835412
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in to applausetester+pendingreceipt@applause.expensifail.com
  3. Submit two same scan receipts that will match with card transaction, or go to https://staging.new.expensify.com/r/4109811016204814
  4. Go to the transaction thread after scanning is complete

Expected Result:

Mark as cash and Review duplicates buttons will have some spacing between each other

Actual Result:

Mark as cash and Review duplicates buttons have no spacing between each other

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

Bug6565772_1723131703723.20240808_233607.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017310aba17e7a4229
  • Upwork Job ID: 1823604679203469131
  • Last Price Increase: 2024-08-14
  • Automatic offers:
    • c3024 | Reviewer | 103524496
    • dominictb | Contributor | 103524500
Issue OwnerCurrent Issue Owner: @kadiealexander
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Triggered auto assignment to @kadiealexander (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.

@lanitochka17
Copy link
Author

@kadiealexander FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@dominictb
Copy link
Contributor

dominictb commented Aug 8, 2024

Edited by proposal-police: This proposal was edited at 2024-08-09 10:01:49 UTC.

Proposal

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

Mark as cash and Review duplicates buttons have no spacing between each other

What is the root cause of that problem?

If shouldUseNarrowLayout is false the mark as cash and review duplicate button doesn't have any spacing

{hasAllPendingRTERViolations && !shouldUseNarrowLayout && (
<Button

{isDuplicate && !shouldUseNarrowLayout && (
<Button

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

We can add margin-right style for mark as cash here button or margin-left style for review duplicate here. The spacing can be confirmed by design team, maybe it's 12px

Or we can wrap each button in a View and add the margin style that I mentioned above

OPTIONAL: We can only add the margin style if both button appears

What alternative solutions did you explore? (Optional)

We can wrap two buttons in a View and add gap style in the wrap View as we do here

{isMoreContentShown && (
<View style={[styles.dFlex, styles.flexColumn, styles.gap3, styles.pb3, styles.ph5, styles.borderBottom]}>

And we also need to wrap these buttons here

{hasAllPendingRTERViolations && shouldUseNarrowLayout && (

{isDuplicate && shouldUseNarrowLayout && (

{statusBarProps && (

@dominictb
Copy link
Contributor

I updated proposal. Add an alternative solution.

@melvin-bot melvin-bot bot added the Overdue label Aug 12, 2024
Copy link

melvin-bot bot commented Aug 13, 2024

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

@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Aug 14, 2024
Copy link

melvin-bot bot commented Aug 14, 2024

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

@melvin-bot melvin-bot bot changed the title Expense - Mark as cash and Review duplicates buttons have no spacing between each other [$250] Expense - Mark as cash and Review duplicates buttons have no spacing between each other Aug 14, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 14, 2024
Copy link

melvin-bot bot commented Aug 14, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Aug 14, 2024
@c3024
Copy link
Contributor

c3024 commented Aug 14, 2024

We can add margin-right style for mark as cash

When there is only Mark as cash button without the Review duplicates button, the Mark as cash button is shifted by this extra margin which will be consistent.

margin-left style for review duplicate

I think this looks the simplest and fixes it well.

@dominictb 's proposal here looks good to me!

🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Aug 14, 2024

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

@arosiclair
Copy link
Contributor

margin-left style for review duplicate

I think this looks the simplest and fixes it well.

Agreed just use margin-left. spacing.ml1 should be fine.

I'm reducing the bounty on this to $125 since this is just a spacing change.

@arosiclair arosiclair changed the title [$250] Expense - Mark as cash and Review duplicates buttons have no spacing between each other [$125] Expense - Mark as cash and Review duplicates buttons have no spacing between each other Aug 14, 2024
Copy link

melvin-bot bot commented Aug 14, 2024

Upwork job price has been updated to $125

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

melvin-bot bot commented Aug 14, 2024

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

Offer link
Upwork job

Copy link

melvin-bot bot commented Aug 14, 2024

📣 @dominictb 🎉 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 and removed Daily KSv2 labels Aug 16, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 16, 2024
@melvin-bot melvin-bot bot changed the title [$125] Expense - Mark as cash and Review duplicates buttons have no spacing between each other [HOLD for payment 2024-08-29] [$125] Expense - Mark as cash and Review duplicates buttons have no spacing between each other Aug 22, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 22, 2024
Copy link

melvin-bot bot commented Aug 22, 2024

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

Copy link

melvin-bot bot commented Aug 22, 2024

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

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

Copy link

melvin-bot bot commented Aug 22, 2024

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:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 28, 2024
@kadiealexander
Copy link
Contributor

@c3024 don't forget about the checklist :)

@c3024
Copy link
Contributor

c3024 commented Aug 29, 2024

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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR: [Details Revamp] Remove the Three Dot Menu on Affected Reports #44025
  • [@c3024] 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: 2528eac#r146001158
  • [@c3024] 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: No discussion was started because this could not have been identified earlier.
  • [@c3024] Determine if we should create a regression test for this bug. Yes
  • [@c3024] 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.

Regression test proposal

  1. Submit two scan receipts with same details to a workspace. The scan receipt amount should match with a card transaction
  2. Go to the transaction thread after scanning is complete
  3. Verify that: "Mark as cash" and "Review duplicates" buttons have gap between each other

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
Status: Done
Development

No branches or pull requests

5 participants