-
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
Composer - optimise rendering behaviour for onKeyPress & onSubmit #29561
Composer - optimise rendering behaviour for onKeyPress & onSubmit #29561
Conversation
UpdateBefore 🐢Screen.Recording.2023-10-13.at.15.22.56.movAfter 🔥Screen.Recording.2023-10-13.at.15.21.32.mov |
Removal of side effect setting the Report's draft in LHN, done in 956d717, was investigated and it looks like draft are being updated properly. Same goes for functionality after logout - draft are being deleted after user logs out. Here is a video showing this functionality on current main: lhn-draft-after-logout.mp4Please feel free to drop in your insight on if this useEffect can be safely removed. Thanks! |
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.
LGTM !! One change requested 🙏
src/pages/home/report/ReportActionCompose/ReportActionCompose.js
Outdated
Show resolved
Hide resolved
@ 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] |
Melvin you haven't mentioned anyone |
95d93fb
to
b0fc9a4
Compare
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
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.
Please fix conflict
This reverts commit 956d717.
Shall we move the PR forward? @aimane-chnaif |
I think so. Please fix conflict |
@aimane-chnaif conflicts resolved - ready for next step 👍 |
@aimane-chnaif Another pack of conflicts resolved, let me know if you could review it soon 👍 |
reviewing today |
Hi @aimane-chnaif did you have a chance to look at the PR? Is there anything I can help you with to move it further? Thanks! |
I think mentions test case needs to be added as that component is affected |
Other platforms work well but not in android emulator which is super slow device Screen.Recording.2023-11-03.at.6.44.23.PM.movwill test on real device |
ok, so this PR doesn't fix #26347 actually but a bit improvement bug.mp4 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.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.
It would be good to add this to QA step:
7. Logout and re-login
8. Go to any report and focus on composer
9. Type @
10. Verify that mention suggestions show correctly
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.
Thanks! added the steps
✋ 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/mountiny in version: 1.3.96-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|
Details
Fixed Issues
$ #26347
PROPOSAL: #26347 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Android: Native
android.mp4
Android: mWeb Chrome
mandroid.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
mios.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4