Skip to content

[HOLD for payment 2024-01-31] Web - Chat - Cursor shows a hand instead of a text cursor "I" when hovering over text in code block #31085

Closed

Description

@lanitochka17

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.3.97-1
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:

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Go to any chat
  3. Send a code block
  4. Hover over code block

Expected Result:

The cursor shows a text cursor "I"

Actual Result:

The cursor shows a hand cursor

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6269354_1699487008095.code_block.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Nov 8, 2023
  2. melvin-bot commented on Nov 8, 2023

    @melvin-bot

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

  3. melvin-bot commented on Nov 8, 2023

    @melvin-bot
  4. OSBotify commented on Nov 8, 2023

    @OSBotify
    Contributor

    👋 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.
  5. melvin-bot commented on Nov 8, 2023

    @melvin-bot

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

  6. sophiepintoraetz commented on Nov 9, 2023

    @sophiepintoraetz
    Contributor

    Hmm, I'm not able to reproduce this and I don't think this is a deploy blocker - @tylerkaraszewski - do you agree?
    image

  7. dummy-1111 commented on Nov 9, 2023

    @dummy-1111
    Contributor

    Proposal

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

    Pointer cursor shows instead of text cursor when hovering over the code block

    What is the root cause of that problem?

    We removed the role 'text' and use 'presentation' instead(from the PR #24482)
    But we're still use 'text' below to set the cursor

    getCursorStyle(shouldUseDisabledCursor, [rest.accessibilityRole, rest.role].includes('text')),

    Also we replaced the accessibilityRole with role in the same PR, but we're still using accessibilityRole below

    role={props.accessibilityRole as Role}

    This is the root cause

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

    We should use the CONST.ACCESSIBILITY_ROLE.TEXT instead of `text' here

    getCursorStyle(shouldUseDisabledCursor, [rest.accessibilityRole, rest.role].includes('text')),

    And remove this line

    role={props.accessibilityRole as Role}

    This works as expected

    Result
    31085.mp4

    What alternative solutions did you explore? (Optional)

  8. dummy-1111 commented on Nov 9, 2023

    @dummy-1111
    Contributor

    @sophiepintoraetz

    This issue is reproducible in staging(version: 1.3.97-1), but not in production.

  9. 48 remaining items

  10. situchan commented on Jan 31, 2024

    @situchan
    Contributor
    • The PR that introduced the bug has been identified. Link to the PR: Upgrade to react-native-web v0.19.9 #24482
    • 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: It was large PR and PR author (@getusha) is aware of it and thus fixed it
    • 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 need regression test as this is super minor and caught by QA team during staging regression testing
    • 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.
  11. melvin-bot commented on Jan 31, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    • ROLE: @getusha paid $(AMOUNT) via Upwork (LINK)
    • ROLE: @situchan paid $(AMOUNT) via Upwork (LINK)

    BugZero Checklist (@sophiepintoraetz)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  12. added
    Bug
    and removed
    Bug
    on Feb 1, 2024
  13. melvin-bot commented on Feb 1, 2024

    @melvin-bot

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

  14. MitchExpensify commented on Feb 3, 2024

    @MitchExpensify
    Contributor

    Sorry to ask but I'm having trouble tracking down the contracts for this job in Upwork. Mind sharing the links here for payment @getusha @situchan ? Thanks

  15. MitchExpensify commented on Feb 6, 2024

    @MitchExpensify
    Contributor

    Friendly bump on the above, I took another look but don't see anything - Do I need to create contracts for you both @getusha @situchan ?

  16. situchan commented on Feb 6, 2024

    @situchan
    Contributor

    Payment is handled already by @sophiepintoraetz
    We can close this

  17. getusha commented on Feb 6, 2024

    @getusha
    Contributor

    I assume i am not eligible to get paid since we handled it as a regression.

  18. MitchExpensify commented on Feb 8, 2024

    @MitchExpensify
    Contributor

    I assume i am not eligible to get paid since we handled it as a regression.

    Typically yes - No additional payment on regression issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions