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-02] Dupe detection - Green Confirm button is shorter in width #45815

Closed
2 of 6 tasks
lanitochka17 opened this issue Jul 20, 2024 · 21 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. Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 20, 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.10-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Submit two same expenses (same amount and merchant)
  4. Go to transactiont thread of any expense
  5. Click Review duplicates
  6. Click Keep this one
  7. Proceed to confirmation page

Expected Result:

The green Confirm button will have the same size as other green buttons across the app

Actual Result:

The green Confirm button is shorter

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

Bug6547678_1721437920252.20240720_091138.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 20, 2024
Copy link

melvin-bot bot commented Jul 20, 2024

Triggered auto assignment to @hayata-suenaga (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Jul 20, 2024

Proposal

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

Green Confirm button is shorter in width

What is the root cause of that problem?

We don't handle the medium and large props on the confirm button like here

<Button
text={translate('common.confirm')}
success
style={[styles.ph5, styles.mt2]}
onPress={mergeDuplicates}
/>

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

Pass medium and large based on the isExtraSmallScreenHeight value from useWindowDimensions()

Add the following code here

const {isExtraSmallScreenHeight} = useWindowDimensions();

And update this code to the following

<Button
    text={translate('common.confirm')}
    success
    style={[styles.ph5, styles.mt2]}
    onPress={mergeDuplicates}
    medium={isExtraSmallScreenHeight}
    large={!isExtraSmallScreenHeight}
/>

RESULT

image

What alternative solutions did you explore? (Optional)

@nyomanjyotisa
Copy link
Contributor

Proposal updated

@Krishna2323
Copy link
Contributor

Krishna2323 commented Jul 20, 2024

Proposal

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

Dupe detection - Green Confirm button is shorter in width

What is the root cause of that problem?

There are two issues here.:

  1. Confirmation width/height is shorter.
  1. Confirmation button isn't at the bottom
  • ScrollView content container doesn't take full available height.
  • We have applied styles.mt2 instead of styles.auto to Button element.

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

  • We should add large prop to Button element.
  • We need to pass contentContainerStyle={styles.flex1} to ScrollView.
  • Replace styles.mt2 with styles.auto on Button element.

What alternative solutions did you explore? (Optional)

  • We can remove style={styles.mb3} from ScrollView and add contentContainerStyle={styles.flex1}.
  • Wrap Button with FixedFooter and apply style={[styles.mtAuto]} to `FixedFooter.
  • Remove style prop from Button or only keep margin top if required.

Result

Before fix

Monosnap (185) New Expensify 2024-07-20 09-38-58

After fix

Monosnap (185) New Expensify 2024-07-20 09-38-36

@Krishna2323
Copy link
Contributor

Proposal Updated

  • Added alternative solution and screenshots

Copy link

melvin-bot bot commented Jul 20, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Jul 21, 2024
@mountiny
Copy link
Contributor

Dupe detection is behind beta so we can remove the blocker

cc @kubabutkiewicz @pecanoro @parasharrajat

@kubabutkiewicz
Copy link
Contributor

Hi, I will create PR soon to fix that issue @mountiny @pecanoro @parasharrajat

@parasharrajat
Copy link
Member

parasharrajat commented Jul 22, 2024

@kubabutkiewicz Assign me to the PR as reviewer.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 22, 2024
@pecanoro
Copy link
Contributor

@hayata-suenaga I am reassigning the issue to myself so I can review and track the fixes since this is for the duplicate detection project that I am handling.

@pecanoro pecanoro added the Bug Something is broken. Auto assigns a BugZero manager. label Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 22, 2024
@pecanoro pecanoro added Weekly KSv2 and removed Daily KSv2 labels Jul 22, 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 Jul 26, 2024
@melvin-bot melvin-bot bot changed the title Dupe detection - Green Confirm button is shorter in width [HOLD for payment 2024-08-02] Dupe detection - Green Confirm button is shorter in width Jul 26, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 26, 2024
Copy link

melvin-bot bot commented Jul 26, 2024

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

Copy link

melvin-bot bot commented Jul 26, 2024

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

Copy link

melvin-bot bot commented Jul 26, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Aug 1, 2024
Copy link

melvin-bot bot commented Aug 2, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

Copy link

melvin-bot bot commented Aug 6, 2024

@JmillsExpensify, @pecanoro Eep! 4 days overdue now. Issues have feelings too...

@JmillsExpensify
Copy link

Payment summary: $250 to @parasharrajat for PR review and testing. This is a new feature and we already have an issue to add tests centrally. @parasharrajat please submit a request on New Expensify when you have a chance.

@parasharrajat
Copy link
Member

payment requested as per #45815 (comment)

@garrettmknight
Copy link
Contributor

garrettmknight commented Sep 2, 2024

Payment summary:

@JmillsExpensify
Copy link

JmillsExpensify commented Sep 2, 2024

Thanks, moving forward with the approval. $250 approved for @parasharrajat

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

No branches or pull requests

10 participants