-
Notifications
You must be signed in to change notification settings - Fork 196
feat: Date formats for date range picker #3837
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
Conversation
75787bc
to
83c1fa6
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3837 +/- ##
==========================================
+ Coverage 97.21% 97.22% +0.01%
==========================================
Files 844 844
Lines 24561 24586 +25
Branches 8660 8672 +12
==========================================
+ Hits 23877 23904 +27
+ Misses 677 675 -2
Partials 7 7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
83c1fa6
to
f031e83
Compare
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.
Left a non-blocking comment. Other than that it looks good!
I'm awaiting the current checks to run green before approving.
const dateInputPlaceholder = isMonthPicker ? 'YYYY/MM' : 'YYYY/MM/DD'; | ||
const showTimeInput = !dateOnly && !isMonthPicker; | ||
|
||
const parsedDateInputFormat = dateInputFormat; |
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.
Nitpick (not blocking): You could use the dateInputFormat
directly and remove this line as dateInputFormat
stays as it is..
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.
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.
I see there's one failing Flashbar test which is not related to this changes. May a rebase fixes them?
I'm approving for now, once the Flashbar test is fixed, the PR is ready to go.
Description
Implements date input formats for date range picker calendar date inputs.
Docs: [DvXYAOkww6To]
Same changes in date picker: #3719
Same changes in date input: #3686
Original implementation: #3555
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.