carlobernardini / orizzonte

React components for a horizontal, filtered search UI
MIT License
4 stars 0 forks source link

Date/Time picker component? #1

Open jhecking opened 4 years ago

jhecking commented 4 years ago

We are considering using Orizzonte for one of our projects. But we would need a date/time picker component to allow users to build queries to a specific date/time range. Do you think this would be easy to add? It looks like the codebase is quite modular. Would you be willing to accept a PR for such a feature?

carlobernardini commented 4 years ago

Hi @jhecking

Sorry for the late reply. I must say that I've not been actively maintaining this repo in a while. Of course I do accept PRs if you're willing to contribute. Orizzonte is meant to be modular, the idea is indeed that you can build any type of filters you like. I've also developed a few myself (including a calendar one, see below) and chose to publish filters that have 3rd party dependencies as separate packages. Perhaps that is no longer the ideal way to go, though. It should be fairly easy to implement additional types of filters as they're largely 'standalone': they communicate back and forth with Orizzonte through some internal props (e.g. onUpdate) that are passed on from the parent component.

Few more filters (those that rely on 3rd party deps): https://github.com/carlobernardini/orizzonte-calendar https://github.com/carlobernardini/orizzonte-slider

Hope this helps to get you going, I've just pushed a commit that should fix the failing build.