-
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
Fix/35368: Composer is not shrinked #35865
Fix/35368: Composer is not shrinked #35865
Conversation
@thesahindia 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] |
I encountered an error in my Android native device so cannot test on it. Please help test @thesahindia and I will update the screenshot when my device is fixed |
@@ -14,6 +15,9 @@ const updateNumberOfLines: UpdateNumberOfLines = (props, event, styles) => { | |||
return; | |||
} | |||
const numberOfLines = getNumberOfLines(lineHeight, paddingTopAndBottom, inputHeight); | |||
if (numberOfLines === 1) { |
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.
Why did we remove ReportUtils.getCommentLength(value ?? '') === 0
?
@@ -1,5 +1,6 @@ | |||
import getNumberOfLines from '@libs/ComposerUtils/getNumberOfLines'; | |||
import updateIsFullComposerAvailable from '@libs/ComposerUtils/updateIsFullComposerAvailable'; | |||
import * as ReportUtils from '@libs/ReportUtils'; |
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.
You forgot to remove this.
Bump @dukenv0307 |
@thesahindia I`ll work on it today |
@MariaHCD @thesahindia I need to confirm that we only shrink the composer if the content is empty or the line height is equal to 1? |
How would the UX differ for these two approaches? |
Screencast.from.16-02-2024.16.38.24.webm
Screencast.from.16-02-2024.16.41.28.webm |
I prefer this option. |
I agree with option 1 as well 👍🏼 |
@thesahindia I just updated PR to match the option 1 |
src/pages/home/report/ReportActionCompose/ReportActionCompose.js
Outdated
Show resolved
Hide resolved
src/pages/home/report/ReportActionCompose/ReportActionCompose.js
Outdated
Show resolved
Hide resolved
@thesahindia I resolved all your comments |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-22.at.12.50.15.AM.movAndroid: mWeb ChromeScreen.Recording.2024-02-22.at.12.49.02.AM.moviOS: NativeScreen.Recording.2024-02-22.at.12.55.08.AM.moviOS: mWeb SafariScreen.Recording.2024-02-22.at.12.56.48.AM.movMacOS: Chrome / SafariScreen.Recording.2024-02-22.at.12.46.41.AM.movMacOS: DesktopScreen.Recording.2024-02-22.at.12.58.28.AM.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.
LGTM!
✋ 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/MariaHCD in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
Fixed Issues
$ #35368
PROPOSAL: #35368 (comment)
Tests
Offline tests
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Screencast.from.07-02-2024.18.28.21.webm
Android: mWeb Chrome
Screencast.from.06-02-2024.09.03.46.webm
iOS: Native
Screencast.from.06-02-2024.10.53.49.webm
iOS: mWeb Safari
Screencast.from.06-02-2024.09.02.34.webm
MacOS: Chrome / Safari
Screencast.from.06-02-2024.08.59.55.webm
MacOS: Desktop
Screencast.from.06-02-2024.09.21.04.webm