metro-ontime / frontend

Front end code for performance monitor app
GNU General Public License v3.0
4 stars 12 forks source link

Date picker #14

Open ctsexton opened 5 years ago

ctsexton commented 5 years ago

Implement a simple date picker to allow access to historical records.

ctsexton commented 5 years ago

We should redesign the current dropdown menu to be a calendar widget that shows dates we have data available for.

ctsexton commented 5 years ago

This widget will be in the filter panel. It needs to take a list of available dates as a prop (these dates will be fetched from the Node API) and make those available to the user to select from. Currently on the index page this data is fetched in "getInitialProps".

eightyknots commented 5 years ago

@ctsexton Can you assign this to me for visibility?

MVP will be to just use the native date input field with min/max set and simple date validation. This should mean minimal refactoring for the component if style changes are made in the future.