-
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 inconsistent input field size in close account page message field #21333
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
@NikkiWines 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] |
hey @NikkiWines, sorry for the assign, I think it might've been linked differently |
I have read the CLA Document and I hereby sign the CLA |
@venture1981 I think my changes aren't worth mentioning on the docs since it doesn't affect how to implement the Form component. But let me know if you have a different opinion 🙏 |
I have read the CLA Document and I hereby sign the CLA |
recheck |
@shawnborton, should we keep the max height same as invite message field? ![]() ![]() |
@@ -224,6 +224,8 @@ class BaseTextInput extends Component { | |||
{}, | |||
); | |||
const isMultiline = this.props.multiline || this.props.autoGrowHeight; | |||
//if AutoGrowWeight is true, placeholder needs to be filled with any string. | |||
const hiddenTextPlaceholder = this.props.placeholder ? this.props.placeholder : this.props.autoGrowHeight ? ' ' : ''; |
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 do we need this @reinaldosg ?
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.
@thesahindia Actually this is kind of weird behavior. In the Desktop app, the height isn't set right away if there's no text set on the hidden Text component. (see attached video)
Screen.Recording.2023-06-23.at.16.32.39.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.
@reinaldosg, I think you can revert this fix. It's not a part of this PR. It's a known issue and I think there's already an issue for this on GH.
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.
@thesahindia Oh didn't know that! I pushed the revert, please take a look again when you have time 🙏
I think it makes sense to keep them consistent, yeah. It should just be a global component that behaves the same everywhere as much as we can. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-06-24.at.3.28.39.AM.movMobile Web - ChromeScreen.Recording.2023-06-24.at.3.36.50.AM.movMobile Web - SafariScreen.Recording.2023-06-24.at.3.42.18.AM.movDesktopScreen.Recording.2023-06-24.at.1.51.49.PM.moviOSScreen.Recording.2023-06-24.at.3.43.54.AM.movAndroidScreen.Recording.2023-06-24.at.3.30.31.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.
Tests well!
NOTE: In mWeb and desktop the field height will be 115 px from the start and the height will be auto adjusted on entering some text.
cc: @srikarparsi
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.
@reinaldosg, it seems like the commits aren't signed.
@thesahindia Hi sorry for the inconvenience. I found that for signing the existing commit, I need to force push the commit. Is that okay or do I have another way to sign the commit? |
Yeah, you can do that. |
@thesahindia thanks for the confirmation! Done signing the commit! |
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 @reinaldosg! It looks good now.
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!
Hi @reinaldosg! Tests are failing but I believe merging main into your branch should fix it. Could you try that whenever you get a chance? |
@srikarparsi done! |
Thanks @reinaldosebastian and @thesahindia! |
🚀 Deployed to staging by https://github.com/srikarparsi in version: 1.3.33-2 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.33-4 🚀
|
Details
Fixed Issues
$ #20904
PROPOSAL: #20904(COMMENT)
Tests
Offline tests
N/A
QA Steps
Same as test 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
Web
Screen.Recording.2023-06-22.at.18.50.23.mp4
Mobile Web - Chrome
Screen.Recording.2023-06-22.at.23.21.16.mov
Mobile Web - Safari
Screen.Recording.2023-06-22.at.23.08.07.mov
Desktop
Screen.Recording.2023-06-22.at.23.06.54.1.mp4
iOS
iphone.mp4
Android
Screen.Recording.2023-06-22.at.23.18.57.mp4