You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-10-20] [$500] Setting - Menu Item can not click but still show pointer cursor #28565
changed the title [-]Setting - Menu Item can not click but still show pointer cursor[/-][+][$500] Setting - Menu Item can not click but still show pointer cursor[/+]on Oct 1, 2023
Please re-state the problem that we are trying to solve in this issue.
Menu Item can not click but still show pointer cursor. We should update the default cursor.
What is the root cause of that problem?
In the application, we have some places that after clicking, it will switch to an unclickable state, such as some copy buttons (copy message, copy 2FA code, copy URL,...) and mark as unread.
We are using ContextMenuItemand PressableWithDelayToggle here to display them but there is no logic to disable interactively or show the default cursor during non-clickable time.
What changes do you think we should make in order to solve the problem?
We should add logic to show the default cursor when the menu item is not clickable.
At ContextMenuItem we already have isThrottledButtonActive state to check the state, so we just need to add isThrottledButtonActive prop here.
My proposal for fixing the issue it's
-Add the pseudo-class :disabled to buttons CSS, so if the button is disabled(Can't be clicked) the cursor will be default.
📣 @aromeral98! 📣
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:
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.
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.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
changed the title [-][HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Setting - Menu Item can not click but still show pointer cursor[/-][+][HOLD for payment 2023-10-20] [$500] Setting - Menu Item can not click but still show pointer cursor[/+]on Oct 26, 2023
Issue reporter: @namhihi237 paid $50 via Upwork
Contributor: @namhihi237 paid $750 via Upwork, inc. urgency bonus
Contributor+: @thesahindia due $750 via NewDot, inc. urgency bonus
There were multiple instances of this issue and their isn't one specific PR that is responsible for them so we should just skip the checklist. We can add a test case for all the buttons.
Hover over any button
Verify the cursor is pointer
Click on the button
Verify the cursor changes to default during the non clickable state
Activity
[-]Setting - Menu Item can not click but still show pointer cursor[/-][+][$500] Setting - Menu Item can not click but still show pointer cursor[/+]melvin-bot commentedon Oct 1, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0173c232e99dc92430
melvin-bot commentedon Oct 1, 2023
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 1, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Oct 1, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)ZhenjaHorbach commentedon Oct 1, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue
Pointer cursor stay after copy
What is the root cause of that problem?
We don't pass interactive param
What changes do you think we should make in order to solve the problem?
Add
interactive={isThrottledButtonActive}for this componentApp/src/components/ContextMenuItem.js
Lines 92 to 103 in 00933e1
Screen.Recording.2023-10-01.at.22.19.44.mov
What alternative solutions did you explore? (Optional)
We can create ability use interactive param for ContextMenuItem and pass this param in ShareCodePage
To avoid affecting ContextMenuItem elsewhere
namhihi237 commentedon Oct 2, 2023
Proposal
My proposal adds first on slack.
Please re-state the problem that we are trying to solve in this issue.
Menu Item can not click but still show pointer cursor. We should update the default cursor.
What is the root cause of that problem?
In the application, we have some places that after clicking, it will switch to an unclickable state, such as some copy buttons (copy message, copy 2FA code, copy URL,...) and mark as unread.
We are using
ContextMenuItemandPressableWithDelayTogglehere to display them but there is no logic to disable interactively or show the default cursor during non-clickable time.What changes do you think we should make in order to solve the problem?
We should add logic to show the default cursor when the menu item is not clickable.
ContextMenuItemwe already haveisThrottledButtonActivestate to check the state, so we just need to addisThrottledButtonActiveprop here.For
BaseMiniContextMenuItemwe add style herePressableWithDelayTogglewe haveisActiveto check the status so we add style hereWhat alternative solutions did you explore? (Optional)
N/A
aromeral98 commentedon Oct 2, 2023
My proposal for fixing the issue it's
-Add the pseudo-class :disabled to buttons CSS, so if the button is disabled(Can't be clicked) the cursor will be default.
melvin-bot commentedon Oct 2, 2023
📣 @aromeral98! 📣
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:
Format:
39 remaining items
melvin-bot commentedon Oct 23, 2023
@mallenexpensify, @neil-marcellini, @namhihi237, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!
neil-marcellini commentedon Oct 23, 2023
Bump @thesahindia
[-][HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Setting - Menu Item can not click but still show pointer cursor[/-][+][HOLD for payment 2023-10-20] [$500] Setting - Menu Item can not click but still show pointer cursor[/+]mallenexpensify commentedon Oct 26, 2023
Issue reporter: @namhihi237 paid $50 via Upwork
Contributor: @namhihi237 paid $750 via Upwork, inc. urgency bonus
Contributor+: @thesahindia due $750 via NewDot, inc. urgency bonus
@thesahindia plz complete the BZ checklist. Thx
thesahindia commentedon Oct 28, 2023
There were multiple instances of this issue and their isn't one specific PR that is responsible for them so we should just skip the checklist. We can add a test case for all the buttons.
melvin-bot commentedon Oct 30, 2023
@mallenexpensify, @neil-marcellini, @namhihi237, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!
mallenexpensify commentedon Oct 30, 2023
Thanks @thesahindia , closing! Regression test GH is here
JmillsExpensify commentedon Oct 31, 2023
$750 payment approved for @thesahindia based on this summary.