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

[HOLD for payment 2023-08-02] [HOLD for payment 2023-05-29] [$1000] Normal cursor is displayed in some parts of compose box and on double click in that cursor, app doesn't focus on compose box but selects placeholder 'Write something...' text #18110

Closed
1 of 6 tasks
kavimuru opened this issue Apr 27, 2023 · 54 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Apr 27, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open any report
  3. Lose focus from compose box
  4. Hover over compose box and observe that few area above and below 'Write something...' text displays normal pointer
  5. Double click when normal pointer is visible and observe

Expected Result:

App should display edit pointer on the whole compose box and on double click, it shouldn't select placeholder text

Actual Result:

App displays normal pointer on some parts of compose box when not in focus and on double click, it selects placeholder text

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.7
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: Any additional supporting documentation

Recording.398.mp4
normal.pointer.on.compose.box.and.select.on.placeholder.on.double.click.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682594448594829

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f860adb042d7b50e
  • Upwork Job ID: 1655965727105691648
  • Last Price Increase: 2023-05-16
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 27, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Apr 27, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Overdue label May 1, 2023
@miljakljajic
Copy link
Contributor

I've been rolling out the monthly leaderboard so I haven't been able to get to this yet.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 8, 2023

@miljakljajic Huh... This is 4 days overdue. Who can take care of this?

@miljakljajic
Copy link
Contributor

Got the go ahead to work on this: https://expensify.slack.com/archives/C01SKUP7QR0/p1683645493591139

@melvin-bot melvin-bot bot removed the Overdue label May 9, 2023
@miljakljajic miljakljajic added the External Added to denote the issue can be worked on by a contributor label May 9, 2023
@melvin-bot melvin-bot bot changed the title Normal cursor is displayed in some parts of compose box and on double click in that cursor, app doesn't focus on compose box but selects placeholder 'Write something...' text [$1000] Normal cursor is displayed in some parts of compose box and on double click in that cursor, app doesn't focus on compose box but selects placeholder 'Write something...' text May 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

Current assignee @miljakljajic is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

Triggered auto assignment to @tgolen (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@alitoshmatov
Copy link
Contributor

alitoshmatov commented May 9, 2023

Proposal

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

Normal cursor is displayed in some parts of compose box and on double click in that cursor, app doesn't focus on compose box but selects placeholder 'Write something...' text

What is the root cause of that problem?

Screenshot 2023-05-09 at 9 37 25 PM As you can see input itself is not covering all of the composer area. Thus, when we click on wrapper it won't focus composer

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

We should turn style outer wrapper to have cursor: text. Also we should turn View element into Pressable and when it is pressed we should focus composer if not focused

<View style={[styles.textInputComposeSpacing, styles.textInputComposeBorder]}>

We should also, add

  onMouseDown={e => e.preventDefault()}

to prevent losing focus when outside of input element is pressed

What alternative solutions did you explore? (Optional)

@dukenv0307
Copy link
Contributor

dukenv0307 commented May 9, 2023

Proposal

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

  1. App displays normal pointer on some parts of compose box when not in focus

  2. On double click, it selects placeholder text

What is the root cause of that problem?

  1. The textarea is not covering the full height of the input
    There's the paddingVertical: 5 here https://github.com/Expensify/App/blob/802e406cc8a7f8d5677061a13b2a5b4076f0bae5/src/styles/styles.js#LL1557C28-L1557C28 of the textarea container
    And also when the textarea is 1 line, its height is only 20px while the height of the container is 38px (40px minHeight minus 2px border)
    So when we click anywhere outside that 20px, it will show normal cursor since we're not hovering over the textarea but the container instead

  2. The placeholder text of textarea is currently selectable, while placeholder of input is not as per this logic

    input::placeholder {

This can be reproduced not only as in the OP, but if we double click a bit below the composer container itself, we can select the placeholder text.

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

  1. We need to make the textarea capture the full height of the container.
  1. We need to add , textarea::placeholder to
    input::placeholder {
    so that the disabling of placeholder text select is applied to textarea as well.

What alternative solutions did you explore? (Optional)

NA

@melvin-bot
Copy link

melvin-bot bot commented May 11, 2023

@tgolen @mananjadhav @miljakljajic 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!

@melvin-bot melvin-bot bot added the Overdue label May 11, 2023
@miljakljajic
Copy link
Contributor

Still reviewing proposals. @mananjadhav do you have any initial thoughts on these two entries?

@melvin-bot melvin-bot bot removed the Overdue label May 12, 2023
@miljakljajic
Copy link
Contributor

Going to assign another BZ team member for while I'm at ExpensiCon 3 and then OOO for a week after.

@miljakljajic miljakljajic added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels May 15, 2023
@arielgreen arielgreen added the Bug Something is broken. Auto assigns a BugZero manager. label May 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 26, 2023

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels May 26, 2023
@isabelastisser
Copy link
Contributor

isabelastisser commented May 31, 2023

Reviewing this, the payment is due, but the issue caused a regression, so a penalty will be applied.

Each regression reduces the payment amount for C+ by 50%. Additionally, no efficiency bonus is paid for merging quickly if there are any regressions.

C+ @mananjadhav
Reported by: @dhanashree-sawant
Assigned contributor: @dukenv0307, assigned on May 22.

PR was merged on May 22.

  • I will process the payments in Upwork now. @mananjadhav, please complete the checklist so that I can close the issue. Thanks!

@isabelastisser
Copy link
Contributor

@dukenv0307 what's your Upwork name/profile? I can't find you there. Please apply for the job below and I will process the payment. Thanks!

Upwork: https://www.upwork.com/jobs/~01f860adb042d7b50e

@mananjadhav
Copy link
Collaborator

@isabelastisser The payment should've been pending for this one. The linked PR fixing the regression is still open.

About the checklist, I couldn't trace the PR for this change. I can see the textInputComposeSpacing exists a long time.

@dukenv0307
Copy link
Contributor

@isabelastisser I've already applied, my profile is https://www.upwork.com/freelancers/~01f5cbe690701118a2
Thank you!

@isabelastisser
Copy link
Contributor

@arielgreen @tgolen I'm not sure how to follow up on @mananjadhav comment below, can you please help? Thanks!

About the checklist, I couldn't trace the PR for this change. I can see the textInputComposeSpacing exists a long time.

@isabelastisser
Copy link
Contributor

@arielgreen unassigning myself based on this new process (SO here), and assigning you again since you were the original assignee; I'm going OOO.

@isabelastisser isabelastisser removed their assignment Jun 5, 2023
@miljakljajic
Copy link
Contributor

I've tagged @mananjadhav in the C+ room to discuss.

@miljakljajic
Copy link
Contributor

@dukenv0307 please accept the contract and we'll get you paid!

@dukenv0307
Copy link
Contributor

@miljakljajic accepted, thank you!

@Expensify Expensify deleted a comment from melvin-bot bot Jun 7, 2023
@miljakljajic miljakljajic assigned arielgreen and unassigned arielgreen Jun 7, 2023
@miljakljajic
Copy link
Contributor

All agents have been paid, contracts ended - closing

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @dukenv0307 got assigned: 2023-05-23 01:01:46 Z
  • when the PR got merged: 2023-07-24 15:00:45 UTC
  • days elapsed: 44

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jul 26, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-05-29] [$1000] Normal cursor is displayed in some parts of compose box and on double click in that cursor, app doesn't focus on compose box but selects placeholder 'Write something...' text [HOLD for payment 2023-08-02] [HOLD for payment 2023-05-29] [$1000] Normal cursor is displayed in some parts of compose box and on double click in that cursor, app doesn't focus on compose box but selects placeholder 'Write something...' text Jul 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.45-7 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-08-02. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

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:

  • [@mananjadhav] The PR that introduced the bug has been identified. Link to the PR:
  • [@mananjadhav] 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:
  • [@mananjadhav] 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:
  • [@mananjadhav] Determine if we should create a regression test for this bug.
  • [@mananjadhav] 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.
  • [] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests