-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[$500] Task - Hand cursor is displayed when hovering over the task description placeholder #35207
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01bb349ec7e874f74f |
Triggered auto assignment to @abekkala ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issueHand cursor is displayed when hovering over the task description placeholder. What is the root cause of that problem?
We're using cursor: pointer on the task description label. But due to the fact that the input container has
on this line there's no accesibilityRole or role passed down to the What changes do you think we should make in order to solve the problem?We should change the style to cursor: default. To do this, within What alternative solutions did you explore? (Optional)We can also do this by adding VideosMacOS: Chrome / Safari
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Task - Hand cursor is displayed when hovering over the task description placeholder What is the root cause of that problem?We are applying padding top of What changes do you think we should make in order to solve the problem?We should also apply Line 1024 in ac94dc5
Note: I believe that there is no difference in applying Resultdemo_cursor_text.mp4 |
@ikevin127, pls comment proposal updated if you are updating to similar root cause or solution to other proposals, just to avoid confusions. cc: @rushatgabhane |
Proposal UpdateIncluded screenshots. |
Proposal UpdateAdded a note. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Hand cursor is displayed when hovering over the task description placeholder What is the root cause of that problem?We has paddingTop: 23px in container
to make the text area visible when we have label Unfortunately, the container inherits the GenericPressable's cursor.pointer styles (cursor: pointer) that why when we hover on the label, the cursor pointer is shown What changes do you think we should make in order to solve the problem?Why does this problem happen on title? We should apply the padding top for the textarea as well for consistency Move paddingTop
to below this line
We can define the variable for What alternative solutions did you explore? (Optional)NA ResultScreen.Recording.2024-01-26.at.11.10.40.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Wrong cursor displayed hovering description top area. What is the root cause of that problem?To understand what's happening, let's add a green background to the View wrapping the As on the screenshot, there's another layer at the top. This is because When this padding is added, the extra zone (padding/light green on screenshot above) will ask about the style of the cursor state on hover. What changes do you think we should make in order to solve the problem?Where we set <View style={[
styles.textInputAndIconContainer,
isMultiline && hasLabel && styles.textInputMultilineContainer,
styles.pointerEventsBoxNone
+ styles.cursorText
]}> POC:2024-01-26.16.54.42.mp4 |
@abekkala, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@rushatgabhane do you have any feedback for the proposals above? |
reviewing |
Just wanted to mention my proposal vs the second one's timestamp snapshots to avoid any confusions as my colleague mentioned in the beginning. In chronological order: ikevin127: Jan 26, 2024, 12:57 AM GMT+2 - initial proposal timestamp ikevin127: Jan 26, 2024, 1:28 AM GMT+2 - 1st edit of proposal timestamp - added more context to the initial proposal, being first to mention the full RCA (why do we see the pointer cursor and where is the style coming from) |
@ikevin127, your first edit( which has the same root cause and solution as mine initial proposal) came 27mins after my initial proposal. This is your initial proposal: This is my initial proposal, which has the root cause & solution: |
Correction: your initial proposal had and still has the incomplete RCA 🙂 |
Incorrect, if you take a closer look at the issue's title, actual result and expected result - one can clearly deduce that when the proposal's template Regarding your argument, I think that only mentioning the padding does not fulfil this analysis IMO as that's just the reason that causes the hand cursor to be seen, without any mention of where is that styling coming from. This way you'll apply a fix to something you don't fully understand. We all know that without a clear understanding of the root cause, a solution cannot be applied - no matter whether or not it looks good or it fixes the issue (apparently). See example: #35197 (comment) |
@ikevin127, I'm sorry to say, but your arguments always seem redundant. How can you compare that issue with such a minor styling fix? You clearly copied my proposal and are now trying to prove my solution wrong. let @rushatgabhane decide, I don't want to argue more. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@abekkala @rushatgabhane @aldo-expensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@aldo-expensify can you review this please? Looks like there may be some confusion on the proposal selected by @rushatgabhane |
I see your point here, but in this case it doesn't make sense to me to try to preserve the Playing with the padding so it becomes impossible to hover just over the "pressable" feels more brittle to me than just aligning the role of the "pressable" with the input that is wrapping. I prefer @ikevin127 's proposal that adds @Krishna2323 's proposal is also simple, but I like it better the use of @ikevin127 won by timestamp on posting a proposal first, but that first proposal is veeery generic:
In summary, the way I see things is:
|
About other proposals: |
@aldo-expensify thanks for the review, I still don't think adding role is different from adding styles on view, in both cases we are setting the parent's container style to cursorText and that's not very major point to differentiate a proposal, @ikevin127 has literally nothing in his proposal until I commented. I'm sorry for the argument but I think it's unfair to assign @ikevin127 just because of a minor point. Thanks 🥲 |
Oops, I thought your proposal was to adjust paddings hehe, I see now that you are proposing change the cursor style. Re-reading again.................. |
I think @aldo-expensify's assessment is fair here. I was amazed that @rushatgabhane did not go with the My RCA identified the full root cause (why we see the hand cursor, where is the style coming from) and came up with the correct solution which is to use the Pressable's role which will return text cursor if passd, instead of adding that style directly where the other proposal suggested - this would mean that the Pressable will still have the pointer cursor, we would just override it from a child of the Pressable. |
@ikevin127, your proposal was not selected because you copied, sorry for being rude but you are trying to put redundant arguments to create confusions, does applying role wouldn't override the cursor style of the parent component? Does role wouldn't override pressable's default cursor style? Is there any major difference in applying role to parent pressable or view? Also can you look at your initial proposal? cc: @aldo-expensify |
Nope, this is the point I'm trying to make here - since the Pressable is the parent that wraps the input but we're not passing the
Passing the input I don't understand how can somebody call this overriding ? No matter how much you throw accusations, call my clarifications redundant and that I'm trying to create confusion - this is still the reality of what we're dealing with here in this issue and we should'n just slap a bandaid on something when we don't fully understand the workings of the code. Try to keep the conversation without any personal comments, take this as a piece of feedback. |
Even if you remove this |
I am aware of this but we are not going to do that since this Pressable logic is currently used throughout the codebase. This is why I said that we have to work with the current codebase logic and not against it by: 'what if we remove this logic ? then I would be right' kind of arguments as this would add redundant code while the root problem is still there. I'm going to stop here as given all the context I think this is enough for the team to make an educated decision on the matter. |
Drawing the line wether a proposal is different than another or not is pretty subjective, so I think we have to accept that what was decided may not be aligned with our opinion. It is true that all proposals in the end are changing a cursor style somehow, but that is unavoidable, so I don't think For me, the implementation using
Again, there is lots of subjective things in this conversation and decision, and I don't think this comment above is accurate neither constructive, so I would suggest avoiding such comments because it derails conversations into arguments that become personal (this does look like a personal attack to me). Keeping a good and friendly work environment is important for a long term working relationship, so I would recommend to not lose sight of that. I think everything that was important to be said about why one proposal is better than the other has been said, the latest comments in this thread have very little value, so I ask you to refrain from continuing this discussion. |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@aldo-expensify, I apologize if this appears to be a personal remark, but I'd like to address that in the situation mentioned here, the payment was reduced to $250 and split among other members, despite the fact that the other two proposals were incomplete and likely to cause regressions. I did not contest their contributions. However, I feel that I invested time in identifying the root cause and providing a working solution before any other proposals were made. Consequently, I anticipated being assigned to this task in a similar manner. Regardless, I'll consider it unfortunate luck for me. Thanks for your time 🙏🏻 |
@ikevin127 refrain with reacting with 👎 or such because it is not constructive and may be annoying to the commenter (or me reading it) @Krishna2323 are you suggesting that we should split 250/250 because you contributed here and the other issues is an example of this outcome? If that is your suggestion, I will decline that because: it is true that sometimes we do that, but I don't think that this should be the norm. I don't want everyone requesting this just because they posted the right RCA before or because in their opinion their solution is the same. This is just how the rules currently are, sometimes you will spend time investigating and you just won't get rewarded, but hopefully some other issue reward will make up for it so you still feel it was worth it. If you think the system should be improved, I think you should bring the conversation to the right slack channel.
I disagree with that they would likely cause regressions
I think this is the best in this case, there is a lot in this that is out of your control. For example, if there was another internal engineer assigned, that engineer could have chosen your solution (same as @rushatgabhane) as best. Just keep in mind that I don't have a personal preference between you or @ikevin127 , I don't know any of you personally, I'm just making a decision considering what I think is fair and what I think is best for our codebase. Hopefully, in average, you shouldn't feel wronged because sometimes you will get lucky and sometimes someone else. |
@aldo-expensify, I didn't meant to split 250/250 😅, thanks this helps🙏🏻
|
PR #36286 ready for review! 🚀 Note I passed down the |
Yeah, I checked too, it seems to be working fine now |
Thank you all for work! |
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: 1.4.32-2
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Hand cursor should not be displayed when hovering over the task description placeholder
Actual Result:
Hand cursor is displayed when hovering over the task description placeholder
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6355223_1706222101562.2024-01-26_03-31-46.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: