-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add date form field #9021
Merged
Merged
Add date form field #9021
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a0b56dc
feat: make a first implementation for the date field
Devessier 4f10a97
feat: remove mask and use input's value as the new date whe pressing …
Devessier 5ae1b2a
refactor: remove useDateTimeInput hook and extract parseDateToString …
Devessier 6a3e9c2
fix: reset input date time when selecting a variable and default to a…
Devessier 40813d3
refactor: move handlers to dedicated functions
Devessier 2492029
refactor: move where React states are declared and remove useMemo
Devessier e0dc88b
feat: ensure the input's date doesn't go beyond date limits
Devessier 3bbf078
fix: get user timezone from UserContext
Devessier 4972aa7
fix: ensure we set the input date time in reaction for every date pic…
Devessier 92684b7
refactor: rename variable
Devessier d8b3e79
refactor: prefer a local override
Devessier 26b591a
refactor: extract parser formats in constants
Devessier fd2a5e4
refactor: simplify code
Devessier 83743c0
test: write tests for form date field input
Devessier e2c575f
test: try to make date related tests pass on CI
Devessier 0bed965
refactor: simplify condition
Devessier 70640f4
refactor: use a smaller zIndex and delete comment
Devessier e8a9856
refactor: change editingMode to mode
Devessier 9e9cd55
refactor: default parameter + simplify jsx condition
Devessier a8e8ef1
fix: keep the input state when clicking outside of the picker or pres…
Devessier f35ff7e
fix: use renamed components
Devessier 00d6ccc
revert: revert updates on the DateInput component
Devessier 246a4fb
refactor: directly use the InternalDatePicker instead of trying to ma…
Devessier 2d707ea
revert: go back to previous version with untouched DateInput component
Devessier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
logic: defaultValue should be typed as Date | string | undefined since dates can be passed as Date objects