[CP Staging] create common render for html and fix wrapping of title#27736
Conversation
|
@narefyev91 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] |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
narefyev91
left a comment
There was a problem hiding this comment.
LGTM!
🎀 👀 🎀 C+ reviewed
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| (isNative ? ( | ||
| <RenderHTML html={getProcessedTitle} /> | ||
| ) : ( | ||
| <View style={styles.chatItemMessage}> | ||
| <RenderHTML html={getProcessedTitle} /> | ||
| </View> | ||
| ))} |
There was a problem hiding this comment.
I missed this in my initial review, but writing platform specific code like this is against our guidelines
|
@jeet-dhandha can you please create one more pr - and create an additional component to render correctly description based on platform - just add 2 index files - one for index.native.js and one for index.js , and place in first one render without view and in second render with view. Just to follow guidance |
(cherry picked from commit 1127be9)
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.3.71-9 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.71-12 🚀
|
Details
styles.chatItemMessagefixed it.<comment></comment>as not needed.Fixed Issues
$ #27722
PROPOSAL: #27722 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android