-
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
[TS Migration] NewDatePicker #35642
[TS Migration] NewDatePicker #35642
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
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.
Nice work! LGTM
src/components/DatePicker/index.tsx
Outdated
DatePickerWithRef.displayName = 'DatePickerWithRef'; | ||
|
||
export default DatePickerWithRef; | ||
export default React.forwardRef(DatePicker); |
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.
NAB: import forwardRef
instead of using React.forwardRef
@WojtekBoman Are there test steps for validating the |
Reviewer Checklist
Screenshots/VideosAndroid: Native35642-android-native.mp4Android: mWeb Chrome35642-android-chrome.mp4iOS: Native35642-ios-native.mp4iOS: mWeb Safari35642-ios-safari.mp4MacOS: Chrome / Safari35642-web.mp4 |
@WojtekBoman I get the following error trying to access the Date of Birth screen from Personal Details.
|
This issue has been solved :) |
I've updated |
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.
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.
Just one small question.
✋ 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/puneetlath in version: 1.4.42-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.42-5 🚀
|
Details
Migration of
DatePicker
to Typescript. This PR also contains the fix for the dates comparison in thegetDayValidationErrorKey
function. Currently on the main branch in thegetDayValidationErrorKey
dates are compared based ongetDayOfYear
function fromdate-fns
. This function checks if the input date is in the future compared to the reference date. But this function doesn't work correctly when the input date has an earlier day of the year than the reference date, but has a later year. It can be noticed on the main branch when we try to set the date according to the mentioned conditions inStatusClearAfterPage
:Screen.Recording.2024-02-12.at.10.11.08.mov
Fixed Issues
$ #25148
PROPOSAL: N/A
Tests
StatusClearAfterPage
.StatusClearAfterPage
Offline tests
N/A
QA Steps
Same as tests
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
Screen.Recording.2024-02-02.at.13.53.14.mov
Android: mWeb Chrome
Screen.Recording.2024-02-02.at.13.51.10.mov
iOS: Native
Screen.Recording.2024-02-02.at.14.17.23.mov
iOS: mWeb Safari
Screen.Recording.2024-02-02.at.14.28.59.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-02.at.13.54.49.mov
MacOS: Desktop
Screen.Recording.2024-02-02.at.13.56.34.mov