Open vikisekarNI opened 2 years ago
Fast date picker PR: https://github.com/microsoft/fast/pull/5539
Per Leslie: "Here's a spec for a date/time control I made for LabVIEW in, wait for it... 2017. But my feeling is that some of the interactions would be similar, although we might want to do the whole Material/whoever clock picker and not just dropdowns."
We received some feedback from Christina about displaying dates/times in WebVIs. Good reminder that there is likely work to do even for read-only display of dates/times.
I severely under-estimated the value of time formatting for WebVIs back in the day. Iโve gotten numerous people complaining to me that โsystemโ time doesnโt cut it for engineering applications, especially with a global audience.
Please keep this in mind when Nimble tackles date/time. It would be great if there was a simple way to do a per-app locale setting, too. (Maybe we could somehow mimic what Angular does?)
Interesting time picker from google for Firebase.
Couple nice things:
Florina from the team that owns the SLE Executions and Routines apps reached out with another use case for the date picker. For Q4 featre F1881164 (Time-triggered routines frontend) they need to be able to pick a date and time that a job will run.
That screenshot comes from Leslie's wireframe so hopefully she can provide more detailed requirements for this use case.
Update on the UI in the comment above: as a workaround while they wait for the Nimble date/time picker they ended up using a single component (from Angular Material) that allows selecting both date and time. They'd likely prefer separate components in order to match the wire frame above. More conversation in this HLD PR.
Here's an interesting thread going deep on the pros and cons of native date pickers and calendar controls for picking dates. The author ended up deciding to use three separate inputs to enter a date on their site (select for month, numeric text for day and year). Looks like the UK.gov design system linked in the comments made a similar choice. I'm not saying this conclusion applies to us, just reminding us that there are ways to enter a date that don't involve a calendar and we should consider what types of dates we'll be requesting from our users.
just reminding us that there are ways to enter a date that don't involve a calendar and we should consider what types of dates we'll be requesting from our users.
100%. I try to create a separation between absolute dates (e.g. birth date, expiration date, etc.) and relative dates (e.g. whatever date next Thursday is, a Sunday in mid-March, etc.). "Absolute" and "Relative" may not be the best terms here but I don't have a better set right now.
For the first, the separate pickers/inputs is a good solution. For the latter, a calendar view is very helpful, if not required.
I imagine both are relevant for our clients depending on their context/app and we'll have to see what component (or set of components) will support it well.
This came up again in a request from an NI partner developing SystemLink plugins using Nimble. Their current workaround is to use a Nimble text field with textField.elementRef.nativeElement.control.type = 'date';
which actually gets the job done but doesn't have styling for the calendar.
See this demo on MDN to play with this in different browsers.
I would also like this component for my use case. Currently I am also using the hack mentioned above, however it still gives its output in type "string" which the user has to manually change to type "Date".
I came across this date picker today: https://fymmot.github.io/inclusive-dates/ It's a web component that supports inputs via localized natural language inputs like "next Monday" (and also via a normal calendar picker).
Not necessarily saying we should use it or even be inspired by it, but it's fun!
Removing the 'blocked' label because we don't plan to wait on FAST to implement this. No change in its priority for now, but we are not blocked from proceeding.
Another possible option is Cally, which is a pretty lightweight option, but allows fairly easy styling and slotting for certain things like using Nimble buttons for the 'Next' and 'Previous' buttons to move between months. It could be missing features that we ultimately want, like a dropdown to move between years, etc..., but it's worth considering.
Here is an early prototype branch (link to working Angular example).
๐ฏ Problem to Solve
To conveniently pick a date through a date-picker input. This comes from one of HLD requirement's in Argon here
Adobe XD View - Password: Soliton@123 โ Reach out to Roshan(roshan.raju@ni.com) / John Nakano (john.nakano@ni.com) for getting Adobe XD Design files
๐ Proposed Solution
Design
842
Create a nimble date picker component. Inspired from Material's Date Picker
๐ Tasks