-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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