-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-03-14] [$500] Task - Pointer shows up for an archived task when hovering over the edge of the checkbox #37236
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0115fb6326c37966b2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
👋 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:
|
Triggered auto assignment to @jasperhuangg ( |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task - Pointer shows up for an archived task when hovering over the edge of the checkbox What is the root cause of that problem?Cursor styles are not on the parent and the parent has a padding of App/src/components/Checkbox.tsx Lines 89 to 111 in 297bcec
What changes do you think we should make in order to solve the problem?Move cursor styles to
ResultAlternatives
|
Proposal Updated
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The issue at hand is that when hovering over the edge of a checkbox within an archived task, a pointer cursor appears, despite the task being archived and not interactive. The expectation is that no pointer should appear, indicating the task cannot be interacted with, aligning with the What is the root cause of that problem?The root cause of this problem lies in the CSS specificity and inheritance conflict between the styles applied to the inner and outer The issue is the element inside of The root cause is in the What changes do you think we should make in order to solve the problem?To resolve this issue, ensure consistent styling across both the inner and outer This can be achieved by applying a https://github.com/Expensify/App/blob/main/src/components/Pressable/GenericPressable/index.tsx |
Definitely do not need to be blocking deploy on something so minor |
Triggered auto assignment to @trjExpensify ( |
📣 @ntdiary 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
This comment was marked as outdated.
This comment was marked as outdated.
Just to make things more clear, here is my explaination. On this line we pass App/src/components/Checkbox.tsx Line 90 in 297bcec
But on the line below we pass style prop to PressableWithFeedback , in the style prop we use getCheckboxPressableStyle which also returns cursorPointer , and due to this the cursor style determined by disabled prop is overridden and we always have cursorPointer on the edges (2px padding which is also returned from getCheckboxPressableStyle ).App/src/components/Checkbox.tsx Line 94 in 297bcec
On this line the cursor style is overridden by the style we pass to App/src/components/Pressable/GenericPressable/BaseGenericPressable.tsx Lines 138 to 139 in d2a9c6f
I hope this makes things crystal clear. |
From the look at Krishna's original proposal (and updated), looks like their fix is to do something completely different than the fix I am proposing. I am focused on the 'disabled' prop in the PressableWithFeedback That prop doesn't seem to be used at all inside of the GenericPressable component so we need to make sure we reference that prop so that it doesn't apply cursor pointer using "cursorStyles" if that prop is passed down |
@brandonhenry, pls look at the codebase :), App/src/components/Pressable/GenericPressable/BaseGenericPressable.tsx Lines 138 to 139 in d2a9c6f
|
I understand what you mean @Krishna2323 - we did not have same proposal, but superrrr close. Your fix is definitely the appropriate one 👍🏿 |
Deployed to staging 13 hours ago, Melv. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-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-03-14. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
👋 @ntdiary checklist time! :) |
@trjExpensify, ah, time flies. 😂 BTW, I'm still waiting to switch to NewDot for the payments. 😄 |
Haha, that it does! 🕐 Cool, I've asked Matt for an update on that quickly. If not, I can pay you via Upwork. In the meantime.. I don't think it's worth having a regression test for this pointer cursor. 👍 Payment summary as follows: $500 to @ntdiary for the C+ review |
@trjExpensify any updates here? |
Yep, we're proceeding with Upwork for now. @Krishna2323 - paid |
@trjExpensify, ah, sorry, just accepted. 😂 |
Perfect, paid. Closing! 👍 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.44.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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing Pr #31674
Action Performed:
Expected Result:
No pointer should show up since the task is archived and can not be checked
Actual Result:
A pointer shows up when hovering over the edge of the checkbox
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6393369_1708984778627.pointer_bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: