fix: thread header is not showing the exact message sent#73242
Conversation
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
thanks @ZhenjaHorbach, i updated |
Reviewer Checklist
Screenshots/Videos |
|
@ZhenjaHorbach What's the next here? |
|
LGTM ! |
puneetlath
left a comment
There was a problem hiding this comment.
Just one small comment from me.
| const policyDescription = getPolicyDescriptionText(policy); | ||
| const isPersonalExpenseChat = isPolicyExpenseChat && isCurrentUserSubmitter(report); | ||
| const hasTeam2025Pricing = useHasTeam2025Pricing(); | ||
| // If the parent report action has type add comment, we don't want to parse the full title |
There was a problem hiding this comment.
Can we explain why that is in this comment.
There was a problem hiding this comment.
We will not parse from html to text if it is an ADD_COMMENT action (the message that the user directly outputs)
There was a problem hiding this comment.
Right, I'm saying can you explain why in the code comment. The code comment just says what we're doing, but not why we're doing it.
There was a problem hiding this comment.
@puneetlath this is the part where we display the header text. Adding this condition is to prevent us from parsing HTML to text for user inputs — for example, if a user enters <div>test</div>, it would display the entire <div>test</div> instead of just test in the header text. It also ensures that all system messages (like in this issue: #73092) are properly parsed
There was a problem hiding this comment.
That makes sense. I'm asking for you to update the comment in the code with that explanation.
I think we should fix that in a follow-up PR. |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective 👍
891f92e to
320a670
Compare
Co-authored-by: Puneet Lath <puneet@expensify.com>
|
Sorry, looks like there are conflicts. |
|
@nkdengineer |
|
@ZhenjaHorbach I updated. |
|
@puneetlath |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.2.63-0 🚀
|
|
Unfortunately had to revert this again due to #75942 |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.63-8 🚀
|









Explanation of Change
Fixed Issues
$ #71434
#73092
PROPOSAL: #71434 (comment)
Tests
<div>test<div>Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop