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-16] [HOLD for payment 2023-10-13] Task - No-entry mouse sign is displayed when hovering over 'Chevron' icon options displayed on 'Confirm task' page #28919

Closed
2 of 6 tasks
kbecciv opened this issue Oct 5, 2023 · 20 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 Engineering

Comments

@kbecciv
Copy link

kbecciv commented Oct 5, 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. Click on 'FAB' menu
  2. Click on 'Assign task'
  3. Enter title & click 'Next'
  4. Hover over the chevron icon of 'Title', 'Assignee', 'Description', and 'Share somewhere' fields

Expected Result:

Hand icon should be displayed and the chevron icon should be clickable

Actual Result:

No-entry mouse sign is displayed

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native - mouse hover effect can't be tested
  • Android / Chrome - mouse hover effect can't be tested
  • iOS / native - mouse hover effect can't be tested
  • iOS / Safari - mouse hover effect can't be tested
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.78.0
Reproducible in staging?: y
Reproducible in production?: n
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

Screen.Recording.2023-10-05.at.11.54.52.AM.mov
Screen.Recording.2023-10-05.at.11.43.46.AM.mov
Recording.4861.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Natnael-Guchima
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696495753528999

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Oct 5, 2023
@ishpaul777
Copy link
Contributor

ishpaul777 commented Oct 5, 2023

Proposal

Problem

not allowed cursor is displayed when hovering over 'Chevron' icon options displayed on 'Confirm task' page

Root cause

The PressableWithFeedBack component for right chevron icon has a disabled prop set to !props.onIconRightPress, we are not passing onIconRightPress prop to the component, so it is undefined and disabled prop is set to true. In fact we are not using onIconRightPress prop any of the MenuItem across the app.

disabled={!props.onIconRightPress}

offending PR : #26789

Solution

We need to modify the disabled prop to props.disabled instead of !props.onIconRightPress in PressableWithFeedBack component for right chevron icon in MenuItem component or we can remove the disabled prop also

@OSBotify
Copy link
Contributor

OSBotify commented Oct 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

Triggered auto assignment to @joelbettner (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@dukenv0307
Copy link
Contributor

I think this is regression from this PR #26778

@mountiny mountiny assigned mountiny and unassigned joelbettner Oct 5, 2023
@saranshbalyan-1234
Copy link
Contributor

Proposal

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

Cursor is disabled on Right Icon on Confirm Task Page

What is the root cause of that problem?

We are handling different onPress event for iconRight, We have passed shouldShowRightIcon but have not passed onIconRightPress here.

<MenuItem
label={assignee.displayName ? props.translate('task.assignee') : ''}
title={assignee.displayName || ''}
description={assignee.displayName ? LocalePhoneNumber.formatPhoneNumber(assignee.subtitle) : props.translate('task.assignee')}
icon={assignee.icons}
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_ASSIGNEE)}
shouldShowRightIcon
/>

There is however one condition on onIconRightPress which is, if no present make the iconRight disabled, the below code will explain this line
accessible={!props.onIconRightPress}
disabled={!props.onIconRightPress}
onPress={props.onIconRightPress}

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

We have to pass another prop which is onIconRightPress same as onPress like this

             <MenuItem
                        key={item.translationKey}
                        onPress={() => item.action()}
                        onIconRightPress={() => item.action() }

After passing this prop it will show the same cursor on iconRight and onPress will work as well as on hover it will show the expected behaviour

What alternative solutions did you explore? (Optional)

Or what we can do is by default onIconRightPress should be same as onPress prop in the MenuItem.js. This would keep the rightIcon work similar to the old behaviour till onIconRightPress prop is passed explicitly.

@rezkiy37
Copy link
Contributor

rezkiy37 commented Oct 5, 2023

Hi, I’m Michael (Mykhailo) from Callstack and I would like to work in this issue.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Oct 5, 2023
@mountiny mountiny added Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment labels Oct 5, 2023
@mountiny
Copy link
Contributor

mountiny commented Oct 5, 2023

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 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 melvin-bot bot removed the Weekly KSv2 label Oct 5, 2023
@mountiny
Copy link
Contributor

mountiny commented Oct 5, 2023

@stephanieelliott Only payment is $50 to @Natnael-Guchima for reporting

@stephanieelliott
Copy link
Contributor

@Natnael-Guchima I've extended the offer to you on Upwork, please accept when you get a chance!

https://www.upwork.com/jobs/~01b22c4c1e40175755

@Natnael-Guchima
Copy link

Accepted the offer. Thanks @stephanieelliott

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Oct 6, 2023
@melvin-bot melvin-bot bot changed the title Task - No-entry mouse sign is displayed when hovering over 'Chevron' icon options displayed on 'Confirm task' page [HOLD for payment 2023-10-13] Task - No-entry mouse sign is displayed when hovering over 'Chevron' icon options displayed on 'Confirm task' page Oct 6, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

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

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

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 9, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-13] Task - No-entry mouse sign is displayed when hovering over 'Chevron' icon options displayed on 'Confirm task' page [HOLD for payment 2023-10-16] [HOLD for payment 2023-10-13] Task - No-entry mouse sign is displayed when hovering over 'Chevron' icon options displayed on 'Confirm task' page Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

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

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

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

@mountiny
Copy link
Contributor

mountiny commented Oct 9, 2023

No need for regression PR, this was a small design bug and we handled it with the engineer related to the PR.

We should be good to pay this out which is only for reporting to @Natnael-Guchima $50

@mountiny
Copy link
Contributor

mountiny commented Oct 9, 2023

cc @stephanieelliott

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 12, 2023
@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

  • Issue reporter: @Natnael-Guchima $50, paid via Upwork
  • Contributor: N/A
  • Contributor+: N/A

Upwork job is here, no bonus on final payout

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
None yet
Development

No branches or pull requests

10 participants