-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore(ui): migrate DateTimePicker to TypeScript #640
Conversation
🦋 Changeset detectedLatest commit: 99eb95a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
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 job! So many lines in the component. 🚀
Added a few blocking improvements.
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
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.
Thank You for the changes! 🚀 Just a few blocking changes again.
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
…doperators/juno into gjaskiewicz/refactor-dtp-ts
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
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.
Requesting changes for above
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.
Let's double check backward compatibility for all props
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
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! However, please make sure to address the issues identified by Guoda.
please make sure to address the issues identified by Guoda.
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.
🙏
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
…doperators/juno into gjaskiewicz/refactor-dtp-ts
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 left few comments please answer them and fix some of them the main issue is with this method updateFlatpickrInstance
you modified which could produce a potential bugs or fix :)
packages/ui-components/src/components/DateTimePicker/DateTimePicker.test.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.test.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Show resolved
Hide resolved
packages/ui-components/src/components/DateTimePicker/DateTimePicker.component.tsx
Outdated
Show resolved
Hide resolved
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.
(Regression? Please double check...)
In the PR Storybook (right), it seems to take two clicks to set or change a date compared to live (left).
Maybe something changed regarding state setting or so?
Could you double check 1. whether you can recreate this 2. why it's happening and fix it. @gjaskiewicz
Screen.Recording.2024-12-03.at.16.33.15.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.
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.
Regression fixed, Thank You.
Types look good. I've added types for this component to future improvements. Can be re-addressed there.
Summary
migrate DateTimePicker to TypeScript
Changes Made
Related Issues
Testing Instructions
npm i
npm run storybook
Checklist