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

[$250] Attachment – Cursor moves to beginning of password in PDF protected file when click on eye #44599

Closed
3 of 6 tasks
izarutskaya opened this issue Jun 28, 2024 · 11 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@izarutskaya
Copy link

izarutskaya commented Jun 28, 2024

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: 9.0.3-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: https://expensify.testrail.io/index.php?/tests/view/4678543
Email or phone of affected tester (no customers): applausetester+jp_e_category_1@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in
  3. Open any chat
  4. Click on + and Add attachment
  5. Select PDF protected file (do not click send)
  6. Click on Enter the password
  7. Enter text and click on the Eye to make your text visible

Expected Result:

Cursor is at the end of the password in PDF protected file when click on the eye

Actual Result:

Cursor moves to the beginning of the password in PDF protected file when click on the eye

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Bug6526992_1719551334358.Atach.mp4

PDf file
Password_protected_Test12345.pdf

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01eb95943a6e16733e
  • Upwork Job ID: 1806640970628869277
  • Last Price Increase: 2024-06-28
Issue OwnerCurrent Issue Owner: @allgandalf
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Triggered auto assignment to @joekaufmanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Jun 28, 2024

Triggered auto assignment to @nkuoch (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
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.

@izarutskaya
Copy link
Author

@joekaufmanexpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb.

@izarutskaya
Copy link
Author

Production

Recording.2585.mp4

@Julesssss Julesssss assigned Julesssss and unassigned nkuoch Jun 28, 2024
@Julesssss Julesssss added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Jun 28, 2024
@Julesssss
Copy link
Contributor

Julesssss commented Jun 28, 2024

Definitely not a blocker. I'm not sure we should even bothering to fix this to be honest.

@Julesssss Julesssss added the External Added to denote the issue can be worked on by a contributor label Jun 28, 2024
@melvin-bot melvin-bot bot changed the title Attachment – Cursor moves to beginning of password in PDF protected file when click on eye [$250] Attachment – Cursor moves to beginning of password in PDF protected file when click on eye Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01eb95943a6e16733e

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (External)

@grogou
Copy link

grogou commented Jun 28, 2024

Proposal

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

When clicking on the eye icon in a PDF protected file, the cursor moves to the beginning of the password field.

What is the root cause of that problem?

The root cause is passwordHidden state change that triggers secureTextEntry prop change.

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

We need to remember the cursor position in the BaseTextInput component and use setSelectionRange to restore it when togglePasswordVisibility is called. Instead of tracking it with a new useEffect, we can use requestAnimationFrame or setTimeout as alternative to ensure the DOM has updated before restoring the cursor position in togglePasswordVisibility.

@joekaufmanexpensify
Copy link
Contributor

Agreed with @Julesssss. The #vip-vsb project has been paused, so this doesn't feel worth prioritizing right now. This is a very niche bug. I'd be surprised if many/any customers experience this, and even if they do, there isn't really much impact.

Going to close this for now, and we can revisit when/if we ever receive feedback from customers about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants