Skip to content

Adding time picker component#654

Merged
iisakkirotko merged 7 commits intowidgetti:masterfrom
mikegiann01:feature_branch
Dec 18, 2024
Merged

Adding time picker component#654
iisakkirotko merged 7 commits intowidgetti:masterfrom
mikegiann01:feature_branch

Conversation

@mikegiann01
Copy link
Copy Markdown
Contributor

Hello!Created a time picker component, working also on input_timerange component

Copy link
Copy Markdown
Collaborator

@iisakkirotko iisakkirotko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mikegiann01!

Great to see another PR from you. I had a couple of comments:

  • Could you include some tests for the component? You can take a look at https://github.com/widgetti/solara/blob/master/tests/unit/input_date_test.py for some guidance
  • I wonder if we should add an argument for using seconds in the picker? Do you think without it we already cover 99% of use cases, or that it would see some use? @maartenbreddels and @mariobuikhuizen feel free to weigh in as well.
  • I think we should also expose some of the restrictions on allowed inputs from Vuetify. At least allowed_minutes I could see people using, when they only want to allow picking in 15/30 minute intervals.

Comment thread solara/lab/components/input_time.py Outdated
Comment thread solara/lab/components/input_time.py Outdated
Comment thread solara/lab/components/input_time.py Outdated
@mikegiann01
Copy link
Copy Markdown
Contributor Author

should i create a new PR the tests?

@iisakkirotko
Copy link
Copy Markdown
Collaborator

No need, preferably add the tests to this PR.

Copy link
Copy Markdown
Collaborator

@iisakkirotko iisakkirotko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one comment on the tests. I also noticed that some of the previous comments I had were marked resolved but no changes were made to the code. Did you maybe forget to push some changes to the component itself?

Comment thread tests/unit/input_time_test.py
@maartenbreddels maartenbreddels force-pushed the master branch 2 times, most recently from 86646f5 to df2fd66 Compare July 11, 2024 15:41
@iisakkirotko iisakkirotko merged commit 4bd57cd into widgetti:master Dec 18, 2024
@iisakkirotko
Copy link
Copy Markdown
Collaborator

Thanks a lot for the contribution @mikegiann01!

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.

3 participants