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-05-26] [$4000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message #15194

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

Comments

@kavimuru
Copy link

kavimuru commented Feb 16, 2023

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:

  1. Launch the app -> Login in account
  2. Navigate to any conversation
  3. Send an message -> Edit that message (make sure that has (edited) label at end of statement)
  4. Try to select that message by triple clicking on message -> Notice message is selected along with (edited) label

Expected Result:

(edited) label should not get selected

Actual Result:

(edited) label get selected along with message

Workaround:

unknown

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.2.72-0
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.1531.mp4
Screen.Recording.2023-02-15.at.12.13.05.PM.mov

Expensify/Expensify Issue URL:
Issue reported by: @dhairyasenjaliya
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1676445116253349

View all open jobs on GitHub

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

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

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 16, 2023
@MelvinBot
Copy link

MelvinBot commented Feb 16, 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 Feb 20, 2023
@MelvinBot
Copy link

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

@kevinksullivan kevinksullivan added 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 labels Feb 22, 2023
@melvin-bot melvin-bot bot unlocked this conversation Feb 22, 2023
@melvin-bot melvin-bot bot changed the title Web - Triple clicking an edited message select’s the (edited) label along with the actual message [$1000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message Feb 22, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@MelvinBot
Copy link

📣 @MelvinBot! 📣

Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.

Screen Shot 2022-11-16 at 4 42 54 PM

Format:

Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@kevinksullivan
Copy link
Contributor

kevinksullivan commented Feb 22, 2023

Exported with Help wanted applied

@melvin-bot melvin-bot bot removed the Overdue label Feb 22, 2023
@allroundexperts
Copy link
Contributor

allroundexperts commented Feb 22, 2023

Proposal

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

The edited text gets selected when message is double clicked along with the actual message.

What is the root cause of that problem?

The edited text is user-selectable by default. As such, the edited text gets copied along with the original message.

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

We can disable the userSelect style in the edit tag renderer:
style={{userSelect: 'none'}}

Works well after the fix.

Screen.Recording.2023-02-23.at.4.47.47.AM.mov

What alternative solutions did you explore? (Optional)

None

@dhairyasenjaliya
Copy link
Contributor

dhairyasenjaliya commented Feb 23, 2023

Proposal (added along with bug report)

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

  • Web - Triple-clicking an edited message selects the (edited) label along with the actual message

What is the root cause of that problem?

  • Here we don’t differentiate between message and edited label and render components in uniformity thus making text selectable on triple click along with the entire message

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

  • We are placing edited labels on a 2-page simple message and HTML message
  1. EditedRenderer
  2. ReportActionItemFragment
  • We need to pass selectable false to component on 2 pages
  1. EditedRenderer.js
     <Text
      // eslint-disable-next-line react/jsx-props-no-spreading
      {...defaultRendererProps}
      fontSize={variables.fontSizeSmall}
      color={themeColors.textSupporting}
+      selectable={false} 
    >
  1. ReportActionItemFragment.js
    {props.fragment.isEdited && (
{props.fragment.isEdited && (
          <Text
            fontSize={variables.fontSizeSmall}
            color={themeColors.textSupporting}
+            selectable={false}
          >
            {` ${props.translate(‘reportActionCompose.edited’)}`}
          </Text>
          )}

What alternative solutions did you explore? (Optional)

  • Along with the above change we could add <EditedRenderer> component to ReportActionItemFragment.js seems like that does the same job

Edited Comment

@getusha
Copy link
Contributor

getusha commented Feb 23, 2023

I believe I reported this issue previously. (Jan 20th)
https://expensify.slack.com/archives/C049HHMV9SM/p1674203776202409

cc @kavimuru

@parasharrajat
Copy link
Member

Is this issue happening on all platforms?
image

Is the Expected Result Correct? Should we completely disable selection on Edited label?

Triage Checklist was not modified so making sure. cc: @kevinksullivan

@kavimuru
Copy link
Author

@parasharrajat I have updated the platforms affected.

@parasharrajat
Copy link
Member

Thanks, @kavimuru. @kevinksullivan Can you please also confirm the Expected behaviour #15194 (comment).

@kevinksullivan
Copy link
Contributor

Good question actually @parasharrajat . Going to bring to the room before going further.

@marcochavezf
Copy link
Contributor

Last PR has been merged but has not been deployed yet.

@melvin-bot melvin-bot bot removed the Overdue label May 22, 2023
@arielgreen
Copy link
Contributor

Merged May 19, updating payment date accordingly.

@arielgreen arielgreen changed the title [HOLD for payment 2023-05-16] [$4000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message [HOLD for payment 2023-05-26] [$4000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message May 23, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels May 25, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-05-26] [$4000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message [HOLD for payment 2023-06-01] [HOLD for payment 2023-05-26] [$4000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message May 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.17-5 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-06-01. 🎊

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

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 May 25, 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:

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

@arielgreen arielgreen removed the Bug Something is broken. Auto assigns a BugZero manager. label May 26, 2023
@arielgreen
Copy link
Contributor

Reassigning, OOO tomorrow and Monday.

@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 @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 26, 2023
@melvin-bot

This comment was marked as duplicate.

@twisterdotcom twisterdotcom changed the title [HOLD for payment 2023-06-01] [HOLD for payment 2023-05-26] [$4000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message [HOLD for payment 2023-05-26] [$4000] Web - Triple clicking an edited message select’s the (edited) label along with the actual message May 26, 2023
@twisterdotcom
Copy link
Contributor

Just waiting on you @parasharrajat for the contract: https://www.upwork.com/nx/wm/offer/24481238

And the BZ Checklist: #15194 (comment)

@parasharrajat
Copy link
Member

parasharrajat commented May 26, 2023

[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: This was a browser standard behavior so not caused by us.

[@parasharrajat] 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: NA
[@parasharrajat] 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: NA
[@parasharrajat] Determine if we should create a regression test for this bug. Yes
[@parasharrajat] 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. #15194 (comment)

@parasharrajat
Copy link
Member

parasharrajat commented May 26, 2023

Regression Test Steps

  1. Navigate to any conversation
  2. Send an message -> Edit that message (make sure it has the (edited) label at end)
  3. Select the message by triple-clicking on the message itself.
  4. Verify that only the message, and not the (edited) label is selected.

Do you agree 👍 or 👎 ?

@parasharrajat
Copy link
Member

@twisterdotcom done.

@melvin-bot melvin-bot bot added the Overdue label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

@marcochavezf, @twisterdotcom, @Ollyws, @parasharrajat, @arielgreen Whoops! This issue is 2 days overdue. Let's get this updated quick!

@twisterdotcom
Copy link
Contributor

Payment sent.

@melvin-bot melvin-bot bot removed the Overdue label May 30, 2023
@twisterdotcom
Copy link
Contributor

Test Case addition requested.

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. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests