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

[$500] LHN - First line and second line of the message are visible on LHN #35596

Closed
5 of 6 tasks
kbecciv opened this issue Feb 1, 2024 · 43 comments
Closed
5 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Monthly KSv2 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@kbecciv
Copy link

kbecciv commented Feb 1, 2024

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


Version Number: 1.4.35-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: https://expensify.testrail.io/index.php?/tests/view/4262578&group_by=cases:section_id&group_order=asc&group_id=296775
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. Log in with the following account - [email protected]
  2. Once logged in navigate to each of the conversations available (multiline+1 to multiline+9) and check LHN
  3. Verify each of the multiline preview messages are displayed correctly in the LHN, only the first line of the message should be visible

Expected Result:

Only the first line of the message should be visible on LHN

Actual Result:

First line and second line of the message are visible on LHN

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

Add any screenshot/video evidence

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01be20407fd253f3da
  • Upwork Job ID: 1753175258047799296
  • Last Price Increase: 2024-02-22
  • Automatic offers:
    • akinwale | Reviewer | 0
    • dukenv0307 | Contributor | 0
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 1, 2024
@melvin-bot melvin-bot bot changed the title Web - LHN - First line and second line of the message are visible on LHN [$500] Web - LHN - First line and second line of the message are visible on LHN Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

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

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

melvin-bot bot commented Feb 1, 2024

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

Copy link

melvin-bot bot commented Feb 1, 2024

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

@kbecciv kbecciv changed the title [$500] Web - LHN - First line and second line of the message are visible on LHN [$500] LHN - First line and second line of the message are visible on LHN Feb 1, 2024
@dukenv0307
Copy link
Contributor

dukenv0307 commented Feb 2, 2024

Proposal

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

  • LHN - First line and second line of the message are visible on LHN

What is the root cause of that problem?

  • With ADDCOMMENT action, the message to display in LHN is from lastMessageText, that was removed all the line break character. See the logic

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

  • With the ADDCOMMENT action, we can get the message to display from lastMessageHtml, then use parser.htmlToText
  • For example, we can update this to:
     return lastMessageTextFromReport || (lastActionName === 'ADDCOMMENT' ? parser.htmlToText(report?.lastMessageText).split("\n")[0] : report?.lastMessageHtml ?? '');

What alternative solutions did you explore? (Optional)

@FitseTLT
Copy link
Contributor

FitseTLT commented Feb 2, 2024

This is intentional behavior that aligns with other social media apps; when the last message has text with line breaks it will be joined with space and displayed on the last message preview.

@puneetlath
Copy link
Contributor

Hmm, I agree. I think this is the intentional behavior.

@kbecciv is the expected behavior from a regression test?

@puneetlath puneetlath added Weekly KSv2 and removed 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 Daily KSv2 labels Feb 2, 2024
@kbecciv
Copy link
Author

kbecciv commented Feb 5, 2024

@melvin-bot melvin-bot bot added the Overdue label Feb 12, 2024
@puneetlath
Copy link
Contributor

Ok, seems like a legit bug then. @kbecciv would you mind confirming if you're still seeing the issue?

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2024
@kbecciv
Copy link
Author

kbecciv commented Feb 14, 2024

@puneetlath Checking

@kbecciv
Copy link
Author

kbecciv commented Feb 14, 2024

Issue is still reproducible
image (7)

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Feb 14, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 14, 2024
@ghost
Copy link

ghost commented Feb 14, 2024

Can't login using this account - [email protected], because I can't enter magic code

@puneetlath puneetlath reopened this Jun 4, 2024
@melvin-bot melvin-bot bot closed this as completed Jun 4, 2024
Copy link

melvin-bot bot commented Jun 4, 2024

@puneetlath, @akinwale, @dukenv0307, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

@puneetlath puneetlath reopened this Jun 4, 2024
@puneetlath puneetlath added Weekly KSv2 and removed Monthly KSv2 Not a priority Reviewing Has a PR in review labels Jun 4, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 13, 2024
@puneetlath
Copy link
Contributor

Still on the list. Have been working on higher priority #newdot-quality and #fast-apis stuff.

@melvin-bot melvin-bot bot removed the Overdue label Jun 20, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 28, 2024
@puneetlath puneetlath added Monthly KSv2 and removed Weekly KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2024
@melvin-bot melvin-bot bot added the Overdue label Aug 5, 2024
@puneetlath puneetlath added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Aug 7, 2024
@puneetlath
Copy link
Contributor

Asking for a re-test to see if this is still occurring.

@melvin-bot melvin-bot bot removed the Overdue label Aug 7, 2024
@m-natarajan
Copy link

Still reproducible
image (2)

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@puneetlath
Copy link
Contributor

Will try to get to it at some point, but it's really not high priority.

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2024
@puneetlath
Copy link
Contributor

I'm going to close this as I don't think this is a priority right now with #vip-vsb being closed. Comment or reopen if you disagree!

@akinwale
Copy link
Contributor

akinwale commented Oct 8, 2024

@puneetlath This would be eligible for compensation since a PR was created and we went through the review process.

@puneetlath puneetlath reopened this Oct 8, 2024
@puneetlath
Copy link
Contributor

Fair enough. I've paid out the contracts. Thanks y'all.

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. Engineering Monthly KSv2 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
No open projects
Status: No status
Development

No branches or pull requests

7 participants