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-10-09] [$500] Request money - Scan - Choose file container is pressable #26993

Closed
1 of 6 tasks
kbecciv opened this issue Sep 7, 2023 · 46 comments
Closed
1 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 Design External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Sep 7, 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 any report
  2. Request money and select scan section
  3. Press around choose file

Expected Result:

The container should not be pressable.

Actual Result:

Choose file container is pressable

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: 1.3.65.6
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

Monosnap.screencast.2023-09-03.19-56-06.mp4
Recording.4324.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Krishna2323
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693751505390489

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0152d45357c33d904a
  • Upwork Job ID: 1702227989073571840
  • Last Price Increase: 2023-09-21
  • Automatic offers:
    • hoangzinh | Reviewer | 26879451
    • namhihi237 | Contributor | 26879453
    • Krishna2323 | Reporter | 26879455
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 7, 2023
@dukenv0307
Copy link
Contributor

Proposal

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

Choose file container is pressable

What is the root cause of that problem?

  1. We added padding 36px to the style of the Choose File button in here

style={[styles.p9]}

  1. The same behavior happens in mobile native when asking for permission to scan the file

style={[styles.p9, styles.pt5]}

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

Instead of adding style to the button itself, we should move the styles.p9 to the PressableWithFeedback component by passing wrapperStyle

wrapperStyle={[styles.p9]}

What alternative solutions did you explore? (Optional)

Result

  • Web
Screen.Recording.2023-09-07.at.17.06.55.mov
  • Mobile
Screen.Recording.2023-09-07.at.16.02.34.mov

@namhihi237
Copy link
Contributor

namhihi237 commented Sep 7, 2023

Proposal

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

The cursor shouldn't be displayed as a cursor around the chosen file

What is the root cause of that problem?

We are wrapping Button with PressableWithFeedback and Button has style styles.p9 so we have around button 36px which will be clickable but no action happening here.

<PressableWithFeedback
accessibilityLabel={translate('receipt.chooseFile')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
>
<Button
medium
success
text={translate('receipt.chooseFile')}
style={[styles.p9]}

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

We can remove PressableWithFeedback and just use Button (move prop into Button)

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot
Copy link

melvin-bot bot commented Sep 7, 2023

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

@melvin-bot
Copy link

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

@ahmedGaber93
Copy link
Contributor

Proposal

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

Choose file container is pressable

What is the root cause of that problem?

The root cause is the button has style style={[styles.p9]} and is wrapped with PressableWithFeedback has pointer cursor.

<PressableWithFeedback
accessibilityLabel={translate('receipt.chooseFile')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
>
<Button
medium
success
text={translate('receipt.chooseFile')}
style={[styles.p9]}
onPress={() => {
openPicker({
onPicked: (file) => {
setReceiptAndNavigate(file, props.iou, props.report);
},
});
}}
/>
</PressableWithFeedback>

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

  1. remove the wrapper PressableWithFeedback.
  2. use PressableWithFeedback inside the Button to handle the accessibility by pass accessibilityLabel={translate('receipt.chooseFile')} in a Button prop.
  3. inside Button > PressableWithFeedback add new static prop accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON} or we can create it as Button prop and pass it to PressableWithFeedback

What alternative solutions did you explore? (Optional)

we can instead remove the style style={[styles.p9]} from Button and add it as margin style={[styles.m9]} to the wrapper PressableWithFeedback

@kbecciv
Copy link
Author

kbecciv commented Sep 7, 2023

Proposal by: @Krishna2323
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693751505390489

Proposal

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

Choose file container is pressable

What is the root cause of that problem?

We are adding padding of '36px' on the button which is a child of PressableWithFeedback thats why we are getting the press effect around the button.

<PressableWithFeedback
accessibilityLabel={translate('receipt.chooseFile')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
>
<Button
medium
success
text={translate('receipt.chooseFile')}
style={[styles.p9]}
onPress={() => {
openPicker({
onPicked: (file) => {
setReceiptAndNavigate(file, props.iou, props.report);
},
});
}}
/>
</PressableWithFeedback>

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

Remove padding from button & add it to PressableWithFeedback.
Result:

@saisixthblock
Copy link

Please re-state the problem that we are trying to solve in this issue.
Choose file container is pressable

What is the root cause of that problem?

We added style with 30 px padding property, Thats why button surrounding area became pressable.

What changes do you think we should make in order to solve the problem?
To clear this we need to replace style with wrapperStyle to the button component

@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

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

@kbecciv kbecciv changed the title [Distance] - Choose file container is pressable Request money - Scan - Choose file container is pressable Sep 8, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

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

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Sep 14, 2023

Sorry it took a min to get to this.
@Krishna2323 to make sure I fully understand

The container should not be pressable.

means that only the green Choose File button should be clickable and not the rectangle area outside of the button, right? I'm going to assume so and make this External. Also adding design for bonus 👀 in case there's a design-related detail I'm unaware of (this seems pretty straight forward though)

@melvin-bot melvin-bot bot removed the Overdue label Sep 14, 2023
@Krishna2323
Copy link
Contributor

@mallenexpensify yes.

@mallenexpensify mallenexpensify added External Added to denote the issue can be worked on by a contributor Design labels Sep 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

Triggered auto assignment to @shawnborton (Design), see these Stack Overflow questions for more details.

@melvin-bot melvin-bot bot changed the title Request money - Scan - Choose file container is pressable [$500] Request money - Scan - Choose file container is pressable Sep 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

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

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

melvin-bot bot commented Sep 14, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

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

@shawnborton
Copy link
Contributor

Nice, this proposal here makes sense to me.

@melvin-bot melvin-bot bot added the Overdue label Sep 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 27, 2023

🎯 ⚡️ Woah @hoangzinh / @namhihi237, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @namhihi237 got assigned: 2023-09-26 08:47:37 Z
  • when the PR got merged: 2023-09-27 03:01:35 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 2, 2023
@melvin-bot melvin-bot bot changed the title [$500] Request money - Scan - Choose file container is pressable [HOLD for payment 2023-10-09] [$500] Request money - Scan - Choose file container is pressable Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 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 Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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-10-09. 🎊

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:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 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:

  • [@hoangzinh] The PR that introduced the bug has been identified. Link to the PR:
  • [@hoangzinh] 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:
  • [@hoangzinh] 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:
  • [@hoangzinh] Determine if we should create a regression test for this bug.
  • [@hoangzinh] 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.
  • [@mallenexpensify] 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 Daily KSv2 labels Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

@shawnborton, @dangrous, @hoangzinh, @mallenexpensify, @namhihi237 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@hoangzinh
Copy link
Contributor

BugZero Checklist:

  • The PR that introduced the bug has been identified. Link to the PR: Add ability to Take/Upload Receipts #23046
  • 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: https://github.com/Expensify/App/pull/23046/files#r1357060177
  • 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: N/A
  • Determine if we should create a regression test for this bug: ❌ No I think it's just an UI improvement.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

@shawnborton, @dangrous, @hoangzinh, @mallenexpensify, @namhihi237 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@shawnborton
Copy link
Contributor

What's left for this one?

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2023
@hoangzinh
Copy link
Contributor

@shawnborton I think the payout.

@mallenexpensify
Copy link
Contributor

Issue reporter: @Krishna2323 paid $50 via Upwork
Contributor: @namhihi237 paid $750 via Upwork, inc. urgency bonus
Contributor+: @hoangzinh paid $750 via Upwork, inc. urgency bonus

Thanks all!

@dangrous

This comment was marked as outdated.

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 Design External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests