-
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 cursor styling for NewDatePicker & BaseTextInput #17783
fix cursor styling for NewDatePicker & BaseTextInput #17783
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@mountiny @Santhosh-Sellavel 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] |
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.
Overall looks good, love the idea on using the editable
prop instead of creating a new prop!
With this PR, since we are proceeding with the assumption that the NewDatePicker will always be open, we can get rid of the Animated View that is used when the picker is opened manually by user. This is because when the user navigates to the DOB page, the is animation is fast enough such that the picker already shown and the user is not able to actually see the animation. Thoughts @daraksha-dk @Santhosh-Sellavel @mountiny? The changes would involve:
|
I don't have a strong opinion on that, but it may not be relevant to this PR. |
@daraksha-dk This is part of @Prince-Mendiratta's proposal refactor which we agreed on, so can you make the changes? |
@Santhosh-Sellavel sure, I can do that. But I'd like to clarify that these changes were not a part of @Prince-Mendiratta's proposal. @Prince-Mendiratta can confirm. |
Yup, these were not a part of the original proposal, those were already
implemeted by @daraksha-dk.
These are some additional things I think we can remove, that's why I asked
for a reconsidered opinion.
…On Sat, Apr 22, 2023 at 1:07 AM Daraksha ***@***.***> wrote:
@Santhosh-Sellavel <https://github.com/Santhosh-Sellavel> sure, I can do
that. But I'd like to clarify that these changes
<#17783 (comment)>
were not a part of @Prince-Mendiratta
<https://github.com/Prince-Mendiratta>'s proposal
<#16513 (comment)>.
@Prince-Mendiratta <https://github.com/Prince-Mendiratta> can confirm.
—
Reply to this email directly, view it on GitHub
<#17783 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM4SPLFNRCUPWFEDP5J3GULXCLOZFANCNFSM6AAAAAAXGYNBYU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Oops I misread it then, I think this should be removed as well there is no point in keeping them. |
Got it, thanks! Updating the PR 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.
LGTM, tests well too!
@Prince-Mendiratta Can you complete the reviewer checklist too as you are testing this one thanks! |
Sure, will do.
…On Sat, 22 Apr, 2023, 2:01 am Santhoshkumar Sellavel, < ***@***.***> wrote:
@Prince-Mendiratta <https://github.com/Prince-Mendiratta> Can you
complete the reviewer checklist too as you are testing this one thanks!
—
Reply to this email directly, view it on GitHub
<#17783 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM4SPLFUMAH6VSSTO4AIYZ3XCLVDJANCNFSM6AAAAAAXGYNBYU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Updated all the videos in the OP after the latest changes! |
Reviewer Checklist
Screenshots/VideosWebweb.mp4Mobile Web - Chromeandroid-mWeb.mp4Mobile Web - SafariiOS-mWeb.mp4Desktopdesktop.mp4iOSiOS.mp4Androidandroid.mp4 |
@daraksha-dk can you please add the test in the OP to click on the Icon & Textbox and ensure that it does flicker? Thanks. |
@Prince-Mendiratta OP updated! |
label={this.props.label} | ||
value={this.props.value || ''} | ||
defaultValue={this.defaultValue} | ||
placeholder={this.props.placeholder || this.props.translate('common.dateFormat')} | ||
errorText={this.props.errorText} | ||
containerStyles={this.props.containerStyles} | ||
textInputContainerStyles={this.state.isPickerVisible ? [styles.borderColorFocus] : []} | ||
textInputContainerStyles={[styles.borderColorFocus]} | ||
inputStyle={[styles.pointerEventsNone]} |
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.
@daraksha-dk Adding this makes the label "Date" selectable when double clicking just above the input date, which is not happening on staging. I don't think we'd like to see that, double clicking anywhere should only select the text and not the label.
2023-04-22.03-15-21.mp4
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.
Not a problem
Also, double clicking on the icon selects the Month text but that is reproducible on staging as well. Should we do anything for this or let it remain @Santhosh-Sellavel @mountiny? |
Not a problem here. |
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! All yours @Santhosh-Sellavel @mountiny !
Got the be a C+ for the day experience today haha
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.
I love this refactoring and the collaboration here, really great job @Prince-Mendiratta and @Santhosh-Sellavel helping @Prince-Mendiratta to do his C+ trial :D
I hope to see you applying at some point!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Thank you @mountiny @Santhosh-Sellavel, loved the trail! I do plan on applying for the C+ program once I'm done with my semester exams soon and eventually for the job as well so we can actually meet up in SA! :D |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.5-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.5-6 🚀
|
Details
#16513 (comment)
#16513 (comment)
#16513 (comment)
#16513 (comment)
We decided to only change the cursor styling to default value for this input
Fixed Issues
$ #16513
PROPOSAL: #16513 (comment)
Tests
Offline tests
QA Steps
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-04-22.at.2.07.58.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-04-22.at.1.55.39.AM.mov
Mobile Web - Safari
Screen.Recording.2023-04-22.at.1.47.52.AM.mov
Desktop
Screen.Recording.2023-04-22.at.2.01.36.AM.mov
iOS
Screen.Recording.2023-04-22.at.1.57.33.AM.mov
Android
Screen.Recording.2023-04-22.at.2.02.23.AM.mov