-
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 2023-03-28] [$1000] Couldn’t copy by command C on the placeholder in the Search Page after selecting it #15800
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
OOO today, will take a closer look on Monday |
Not overdue. |
I don't think we want to allow users to select placeholder text (we don't allow this in other places of the app). So updated the fix to be removing the ability to select this text, rather than adding the ability to copy it. |
Assigning to engineering for confirmation that this can be external! |
Triggered auto assignment to @hayata-suenaga ( |
I'm checking on this issue now |
The placeholder text should not be selectable. |
I clarified the reproduction steps above. This issue can be external. |
Job added to Upwork: https://www.upwork.com/jobs/~011914d9d4422901ad |
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @hayata-suenaga is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.In the Search Page, after selecting the placeholder, we couldn’t copy it by command C What is the root cause of that problem?The placeholder couldn't be copied but we still allow the user to select the placeholder What changes do you think we should make in order to solve the problem?I suggest we adopt the same approach as other messaging apps such as Slack and WhatsApp, where the text input placeholder is not selectable by setting the In this case, adding this line
into App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 272 to 286 in ad1e244
Using the styles.userSelectNone for the TextInput component in all scenarios, not just the one mentioned above, would be consistent with other messaging applications such as Slack and WhatsApp. In order for the proposed solution to be effective, it will be necessary to remove the Safari hack mentioned in issue #3613. I have tested this and can confirm that removing the hack will not reintroduce the bug that the hack was originally implemented to fix, using the latest code in the main branch. ResultScreen.Recording.2023-03-13.at.11.09.58.mov |
Aha, good one. We forgot to revert the PR when we upgraded RNweb. #3613 (comment) So first thing is to revert the PR #3613. |
Hi @parasharrajat @hayata-suenaga The PR is ready for review |
@tienifr thank you for the quick PR! |
Regression Test ProposalBug: Couldn’t copy by command C on the placeholder in the Search Page after selecting it Proposed Test Steps:
Do we 👍 or 👎 |
You can also add drag the cursor from the start of the input over the placeholder text to select the placeholder with point 4. |
@parasharrajat Yes, I've updated my regression test proposal |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.87-1 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 2023-03-28. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
This is a fairly niche bug. I'm thinking no need to have a regression test here. Curious if y'all agree @parasharrajat @hayata-suenaga ? |
yes I agree we don't need a regression test for this one. |
[@parasharrajat / @hayata-suenaga] The PR that introduced the bug has been identified. Link to the PR: NA |
Great, thanks! BZ checklist is updated and complete. |
All set to issue payment here. @tienifr was assigned on 2023-03-15, and the PR was merged on 2023-03-16, so this qualifies for a speed bonus. Great job! So we need to issue the following payments:
|
@tienifr , offer sent for $1000 (remaining $750 will be paid as a bonus during payment). |
@parasharrajat offer sent for $1000 (remaining $500 will be paid as a bonus during payment). |
@parasharrajat $1500 sent and contract ended! |
@tienifr $1750 sent and contract ended! |
Upwork job closed! |
Bug is fixed, BZ checklist complete, and all payment issued. Closing as this is all set. Thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User should not be able to select placeholder text.
Actual Result:
Placeholder text could be copied.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.81-1
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
Notes/Photos/Videos:
Recording.1662.mp4
Screen.Recording.2023-03-06.at.16.17.24.mov
Expensify/Expensify Issue URL:
Issue reported by: @tienifr
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678094304431979
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: