-
Notifications
You must be signed in to change notification settings - Fork 3k
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: android app - expand icon doesn't disappear immediately after sending the message #27015
Conversation
@HezekielT On ios the plus button jumps after sending a msg CleanShot.2023-09-08.at.20.10.37.mp4 |
@fedirjh If you search for So, I was wondering if we can go with the main solution I suggested in my proposal which is to set |
@HezekielT Sounds good let's try the main solution. |
@HezekielT Just to confirm, applying the main solution will fix this #27015 (comment) without any extra changes to styles? |
Yes, it will be solved. Sorry for not stating that clearly in my previous comment. Please take a look at the code changes I made when you get the chance. 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.
Test well, left comment about code readability.
src/pages/home/report/ReportActionCompose/ReportActionCompose.js
Outdated
Show resolved
Hide resolved
@HezekielT I think we can update this line to : isFullComposerAvailable={isFullComposerAvailable && !isCommentEmpty}
There is a little improvement in transition after applying that change:
|
Reviewer Checklist
Screenshots/VideosWebCleanShot.2023-09-08.at.19.41.16.mp4Mobile Web - ChromeCleanShot.2023-09-09.at.09.40.36.mp4Mobile Web - SafariCleanShot.2023-09-08.at.19.43.44.mp4DesktopCleanShot.2023-09-09.at.11.17.42.mp4iOSCleanShot.2023-09-09.at.08.20.09.mp4Androidandroid.mp4 |
That is even better in fact we can even do the same for videoedge1.movand trying to solve it by adding videoedgeCase2.movSo I think we can get the best result by combining both the solution you suggested and still reseting the size in SendButton. what do you think? |
@HezekielT This is actually what I had suggested. My intention was to keep the use of |
@fedirjh I have pushed the changes please take a look. Thanks again for the suggestion. |
@HezekielT Can you please revert the last commit, that code is not redundant and it’s used to reset the composer when we send an attachment. reset.mp4 |
@fedirjh reverted. |
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 to me.
🎀 👀 🎀 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. |
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.67-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.67-3 🚀
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.68-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.68-17 🚀
|
@@ -338,7 +347,7 @@ function ReportActionCompose({ | |||
reportID={reportID} | |||
report={report} | |||
reportParticipantIDs={reportParticipantIDs} | |||
isFullComposerAvailable={isFullComposerAvailable} | |||
isFullComposerAvailable={isFullComposerAvailable && !isCommentEmpty} |
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.
This caused regression of not showing compose button on multiple new lines - #28093 (comment)
Details
Fixed Issues
$ #25975
PROPOSAL: #25975 (comment)
Tests
Offline tests
Same as Tests Section.
QA Steps
Same as Tests Section.
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
Web
web.mov
Mobile Web - Chrome
mwebChrome.mov
Mobile Web - Safari
iosSafari.mov
Desktop
Desktop.mov
iOS
IosNative.mov
Android
IosNative.mov