You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Awaiting checklist completion][$250] LHN - HTML "<h1>" tag can be seen on the #admins room LHN preview #40348
@twisterdotcom 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.
Please re-state the problem that we are trying to solve in this issue.
LHN option list content is not rendered properly and we see the html tags in report message
What is the root cause of that problem?
The API responds us HTML text when we receive OpenReport:
This is necessary because we render this HTML in main report screen, but we do not convert this to normal text when we display the message in LHN:
Yes, sorry, being pulled into something else but will look again in a bit. I opened this tab, said that, searched and immediately got distracted, my bad.
changed the title [-][HOLD for payment 2024-05-09] [$250] LHN - HTML "<h1>" tag can be seen on the #admins room LHN preview[/-][+][Awaiting checklist completion][$250] LHN - HTML "<h1>" tag can be seen on the #admins room LHN preview[/+]on May 14, 2024
Activity
melvin-bot commentedon Apr 17, 2024
Triggered auto assignment to @twisterdotcom (
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.izarutskaya commentedon Apr 17, 2024
@twisterdotcom 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.
izarutskaya commentedon Apr 17, 2024
We think this issue might be related to the #collect project.
twisterdotcom commentedon Apr 17, 2024
Pretty sure this is a dupe
allgandalf commentedon Apr 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN option list content is not rendered properly and we see the html tags in report message
What is the root cause of that problem?
The

APIresponds us HTML text when we receiveOpenReport:This is necessary because we render this HTML in main
report screen, but we do not convert this to normal text when we display the message inLHN:App/src/components/LHNOptionsList/OptionRowLHN.tsx
Lines 217 to 225 in 1f694e2
This results in us seeing the content with
HTML tagsWhat changes do you think we should make in order to solve the problem?
We need to convert this message to normal text first before being display, we can use
htmlToTextutil fromExpensify-commonbelow:App/src/components/LHNOptionsList/OptionRowLHN.tsx
Line 223 in 1f694e2
We should also remove the
styles.prefromalternateTextStyleas we no longer need paragraph whitespaces to be shows for theLHNtext:App/src/components/LHNOptionsList/OptionRowLHN.tsx
Lines 61 to 63 in 1f694e2
Result
Result Video
Screen.Recording.2024-04-17.at.7.10.48.PM.mov
allgandalf commentedon Apr 17, 2024
Can you please post the dupe if you find it, I will also search for it @twisterdotcom
twisterdotcom commentedon Apr 17, 2024
Yes, sorry, being pulled into something else but will look again in a bit. I opened this tab, said that, searched and immediately got distracted, my bad.
allgandalf commentedon Apr 17, 2024
haha, no worries
allgandalf commentedon Apr 18, 2024
No luck finding the dupe :), Are you sure that you saw this issue before @twisterdotcom ?
twisterdotcom commentedon Apr 18, 2024
So, here are the issues I think I was thinking about:
https://github.com/Expensify/Web-Expensify/pull/37784
#20590
Basically, I think that we show HTML in the LHN is expected, given @puneetlath closed the last issue I see for this above.
Going to get a C+ involved for their take too, because I agree this would be nice to clean up though if you can do it.
melvin-bot commentedon Apr 18, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01b3428578236ce20d
36 remaining items
melvin-bot commentedon May 13, 2024
@tylerkaraszewski, @twisterdotcom, @allroundexperts, @GandalfGwaihir Eep! 4 days overdue now. Issues have feelings too...
tylerkaraszewski commentedon May 13, 2024
melvin, I told you to go away.
allgandalf commentedon May 14, 2024
@twisterdotcom , can you pay this please :)
twisterdotcom commentedon May 14, 2024
Thanks so much for the patience here folks. Always crazy coming back from a week out.
Payment Summary:
twisterdotcom commentedon May 14, 2024
@allroundexperts we just need the regression steps here.
[-][HOLD for payment 2024-05-09] [$250] LHN - HTML "<h1>" tag can be seen on the #admins room LHN preview[/-][+][Awaiting checklist completion][$250] LHN - HTML "<h1>" tag can be seen on the #admins room LHN preview[/+]allroundexperts commentedon May 14, 2024
Checklist
JmillsExpensify commentedon Jun 28, 2024
$250 approved for @allroundexperts