Skip to content
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

feature: reimplement #2473 by implementing a TimeWidget in core #3510

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

heath-freenome
Copy link
Member

Reasons for making this change

Added a new TimeWidget that supports entering in times as HH:mm AM/PM

  • In @rjsf/utils, added a time to TimeWidget mapping for string in getWidgets.ts
  • In @rjsf/core, reimplemented the TimeWidget based on Add TimeWidget #2473
    • Updated the tests to verify the new TimeWidget works appropriately
  • In all the themes, updated the tests to verify the rendering of the time widget
  • In @rjsf/material-ui and @rjsf/mui added time to the shrink list in BaseInputTemplate
  • Updated the documentation for the new TimeWidget support
    • Also verified that the latest Firefox browsers support the native components
  • Updated the CHANGELOG.md accordingly

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

Sorry, something went wrong.

Added a new `TimeWidget` that supports entering in times as HH:mm AM/PM
- In `@rjsf/utils`, added a `time` to `TimeWidget` mapping for `string` in `getWidgets.ts`
- In `@rjsf/core`, reimplemented the `TimeWidget` based on rjsf-team#2473
  - Updated the tests to verify the new `TimeWidget` works appropriately
- In all the themes, updated the tests to verify the rendering of the time widget
- In `@rjsf/material-ui` and `@rjsf/mui` added `time` to the shrink list in `BaseInputTemplate`
- Updated the documentation for the new `TimeWidget` support
  - Also verified that the latest Firefox browsers support the native components
- Updated the `CHANGELOG.md` accordingly
@heath-freenome heath-freenome mentioned this pull request Mar 16, 2023
6 tasks
Co-authored-by: Nick Grosenbacher <nickgrosenbacher@gmail.com>
@heath-freenome heath-freenome merged commit bb67ac1 into rjsf-team:main Mar 16, 2023
@heath-freenome heath-freenome deleted the reimplement-2473 branch March 16, 2023 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants