synchronize composer text between tabs - #15610
Conversation
|
@cristipaval @eVoloshchak One of you needs to 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] |
|
I decided to not handle the edit sync here because when we type empty text to the edit composer, it will save the draft with the value of previous message, and it will mess up the synchronization. App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 130 to 137 in b6ebac3 The edit mode is enabled based on the value of the draft, so if the draft is empty, the edit composer will be hidden. We can create a separate issue to handle the edit composer specifically and change how we show the edit composer (we can use a Boolean when we press edit instead of checking the content of the draft). |
|
Kindly bump for the review @eVoloshchak 😄 if you have the time. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-03-03.at.21.33.43.movMobile Web - ChromeScreen_Recording_20230303-213109_Chrome.mp4Mobile Web - SafariScreen.Recording.2023-03-03.at.21.32.38.mov |
eVoloshchak
left a comment
There was a problem hiding this comment.
Looks good and tests well
cc: @cristipaval
|
@cristipaval looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not related to this one. That is a different problem existing in main. There is already discussion on Slack about it. |
|
✋ 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/cristipaval in version: 1.2.79-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.2.79-0 🚀
|



Details
We want to synchronize the composer text between browser tabs.
Fixed Issues
$ #15284
PROPOSAL: #15284 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Only web/mWeb
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Screen.Recording.2023-03-02.at.07.47.51.mov
Mobile Web - Chrome
android.mweb.mp4
Mobile Web - Safari
Screen.Recording.2023-03-02.at.08.36.04.mov
Desktop
Screen.Recording.2023-03-02.at.07.54.05.mov
iOS
Screen.Recording.2023-03-02.at.08.34.45.mov
Android
android.mp4