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] Finder - Concierge chat preview is displayed with code in chat finder #50350

Closed
3 of 6 tasks
IuliiaHerets opened this issue Oct 7, 2024 · 33 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 7, 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.45-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team

Action Performed:

  1. Open the staging.new.expensify.com website.
  2. Sign in with any account.
  3. Tap on the search icon on LHN.
  4. Verify the preview of Concierge chat is displayed without any code or content issue.

Expected Result:

The preview of the Cocnierge chat in chat finder, should display the beggining of the last message without any difference with the message in chat.

Actual Result:

The preview of Concierge chat in chat finder, displays the beggining of the last message, with "

>/h1>" code in the middle of it.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6626663_1728280381573.Concierge.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021845626651629289152
  • Upwork Job ID: 1845626651629289152
  • Last Price Increase: 2024-11-11
Issue OwnerCurrent Issue Owner: @rojiphil
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 7, 2024
Copy link

melvin-bot bot commented Oct 7, 2024

Triggered auto assignment to @VictoriaExpensify (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.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@IuliiaHerets
Copy link
Author

@VictoriaExpensify FYI 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

@VictoriaExpensify
Copy link
Contributor

Unable to reproduce this, posted in #QA - https://expensify.slack.com/archives/C9YU7BX5M/p1728458635539589

@kavimuru
Copy link

kavimuru commented Oct 9, 2024

The issue is reproducible when the concierge chat updates with new information.

screen-20241009-090642.mp4

@melvin-bot melvin-bot bot added the Overdue label Oct 11, 2024
@VictoriaExpensify
Copy link
Contributor

Yup we should fix this!

@melvin-bot melvin-bot bot removed the Overdue label Oct 14, 2024
@VictoriaExpensify VictoriaExpensify added the External Added to denote the issue can be worked on by a contributor label Oct 14, 2024
@melvin-bot melvin-bot bot changed the title Finder - Concierge chat preview is displayed with code in chat finder [$250] Finder - Concierge chat preview is displayed with code in chat finder Oct 14, 2024
Copy link

melvin-bot bot commented Oct 14, 2024

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

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

melvin-bot bot commented Oct 14, 2024

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

@huult
Copy link
Contributor

huult commented Oct 14, 2024

Can we still reproduce this issue on version 9.0.48-0?

@huult
Copy link
Contributor

huult commented Oct 14, 2024

Edited by proposal-police: This proposal was edited at 2024-10-15 15:21:07 UTC.

Proposal

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

Finder - Concierge chat preview is displayed with code in chat finder

What is the root cause of that problem?

The alternateText is returned as an HTML string in the report data.

Example: item.alternateText: "<h1>Let's scan your first receipt</h1>"

When rendering alternateText in the chat finder, it only removes the SMS domain but does not parse the HTML into plain text. As a result, this issue occurs for report items where the alternateText contains an HTML string.

{!!item.alternateText && (
<TextWithTooltip
shouldShowTooltip={showTooltip}
text={Str.removeSMSDomain(item.alternateText ?? '')}
style={[styles.textLabelSupporting, styles.lh16, styles.pre]}
/>
)}

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

To resolve this case, we should parse alternateText from an HTML string to text before removing the SMS domain. We will use Parser.htmlToText, which is used in other places to parse alternateText. The code change will look like this:

//.src/components/SelectionList/UserListItem.tsx#L144
- text={Str.removeSMSDomain(item.alternateText ?? '')}
+ text={Str.removeSMSDomain(Parser.htmlToText(item.alternateText).replace(/\s*\n\s*/g, ' ') ?? '')}
POC Screenshot 2024-10-14 at 15 31 11

Copy link

melvin-bot bot commented Oct 17, 2024

@rojiphil, @VictoriaExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Oct 17, 2024
@VictoriaExpensify
Copy link
Contributor

@rojiphil - can you please review @huult's proposal when you have the chance?

@melvin-bot melvin-bot bot removed the Overdue label Oct 18, 2024
Copy link

melvin-bot bot commented Oct 21, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@rojiphil
Copy link
Contributor

Sorry for the delay here. I will review this my day tomorrow and update.

@melvin-bot melvin-bot bot removed the Overdue label Oct 21, 2024
Copy link

melvin-bot bot commented Oct 21, 2024

@rojiphil @VictoriaExpensify 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!

@rojiphil
Copy link
Contributor

The issue is reproducible when the concierge chat updates with new information.

I am unable to reproduce the problem.
@kavimuru How can we make the concierge chat to send this new information?

@rojiphil
Copy link
Contributor

The alternateText is returned as an HTML string in the report data.

@huult While I figure out a way to reproduce this, can you please investigate why the alternateText is populated with HTML string instead of text?
In my test as demonstrated below, it is showing correctly.

50350-not-reproduced.mp4

@huult
Copy link
Contributor

huult commented Oct 22, 2024

@rojiphil Maybe this issue was resolved by another pull request. Can you ask @kavimuru if she can reproduce the issue? If not, we can close it

@rojiphil
Copy link
Contributor

Maybe this issue was resolved by another pull request. Can you ask @kavimuru if she can reproduce the issue? If not, we can close it

Thanks @huult. That makes sense.
@kavimuru Can you please try to reproduce this again? It looks like this should be fixed in production.

@rojiphil
Copy link
Contributor

@VictoriaExpensify Can you please apply the Retest Weekly label for Applause to check this? Thanks

Copy link

melvin-bot bot commented Oct 28, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@VictoriaExpensify VictoriaExpensify added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Oct 29, 2024
@VictoriaExpensify
Copy link
Contributor

Applied the retest label

@melvin-bot melvin-bot bot removed the Overdue label Oct 29, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Copy link

melvin-bot bot commented Nov 1, 2024

@rojiphil, @VictoriaExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Nov 1, 2024
Copy link

melvin-bot bot commented Nov 4, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Nov 4, 2024

@rojiphil @VictoriaExpensify this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

Copy link

melvin-bot bot commented Nov 5, 2024

@rojiphil, @VictoriaExpensify Still overdue 6 days?! Let's take care of this!

@rojiphil
Copy link
Contributor

rojiphil commented Nov 8, 2024

@VictoriaExpensify I think we can close this issue as this is not reproducible as mentioned here

@melvin-bot melvin-bot bot removed the Overdue label Nov 8, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

Copy link

melvin-bot bot commented Nov 11, 2024

@rojiphil, @VictoriaExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@rojiphil
Copy link
Contributor

@VictoriaExpensify, I think we can close this issue as it is not reproducible for the second week also.
What do you think?

@melvin-bot melvin-bot bot removed the Overdue label Nov 12, 2024
@VictoriaExpensify
Copy link
Contributor

I agree with you @rojiphil - let's close it out!

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 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 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
None yet
Development

No branches or pull requests

6 participants