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

Time-picker should both improve usability and appearance #7467

Open
enver-haase opened this issue Jun 3, 2024 · 7 comments
Open

Time-picker should both improve usability and appearance #7467

enver-haase opened this issue Jun 3, 2024 · 7 comments
Labels
enhancement New feature or request needs design Design is needed vaadin-time-picker

Comments

@enver-haase
Copy link
Contributor

enver-haase commented Jun 3, 2024

Description

The native Android time-picker is a circular clock, while the native iOS time-picker is a slot-machine-like widget that allows manipulating hours and minutes on wheels.

The Vaadin implementation is a drop-down box that at some point (well-documented) even stops offering such an overlay when too many choices would have to be presented in the one-dimensional drop-down format. Thus it then reverts to a simple TextField with a formatted string.

Expected outcome

For better utilization, we should allow the three dimensions of hour, minute, second to be separately manipulated, and not just in a TestField.

Minimal reproducible example

https://vaadin.com/docs/latest/components/time-picker

Look at the demos, especially on a mobile device.
It does do its job, certainly, but can be improved upon in regards to both usability and appearance.
The biggest concern is the use of a one-dimensional linear string of values where there are hours, minutes, seconds and maybe milliseconds to be taken care of. This calls for using as many components visibly as there are components in the mathematical vector comprising the time.

Steps to reproduce

Use the time-picker, try to set it to 04:49:48 (my 2023 net Berlin Marathon time).
Do the same on Android's native time picker to get a feel of how that could be better.

Environment

Vaadin version(s): 24.4
OS: n/a

Browsers

n/a

@enver-haase
Copy link
Contributor Author

Even Synology break up the one-dimensional time chooser dropdown-box into three for hours, minutes, seconds. Not nice to look at, but not that bad.

@yuriy-fix
Copy link
Contributor

Dear @enver-haase,

Thank you for your feedback! We understand the need for an intuitive, user-friendly design, especially for mobile.

I'll mark this as an enhancement request, but it would be great if you could provide more specific details on the enhancements you have in mind. Specifically, how would you like users to interact with the time-picker, and are there any particular design features you suggest?

@yuriy-fix yuriy-fix added enhancement New feature or request waiting for author Further information is requested needs design Design is needed labels Jun 3, 2024
@enver-haase
Copy link
Contributor Author

Hi, thanks for picking this up.

First of all, for usability, the 2-4 components (hours, minutes, seconds, millis) need to be split out from an only one-dimensional list of drop-down values. Like, having three drop-down boxes not one.

About a modern design, I am drawing a blank. I personally dislike the Apple slot-machine approach on iOS and do like the Android wall-clock.
A Google image search for "time-pickers" may shed some light on the state-of-the-art. I am sure we can at least copy that or even better improve upon that.

@yuriy-fix yuriy-fix removed the waiting for author Further information is requested label Jun 3, 2024
@enver-haase
Copy link
Contributor Author

Screenshot 2024-06-03 at 14 21 53
This is not bad, if stepping can be provided

@tomivirkki
Copy link
Member

Related to #1073 and #1045

@enver-haase enver-haase changed the title Time-picker breaks promise that "Business apps shouldn't suck". Time-picker should both improve usability and appearance Jun 4, 2024
@enver-haase
Copy link
Contributor Author

Changed my wording now that I failed to have it marked as a bug for BFP (which was what I was aiming at).

@web-padawan
Copy link
Member

web-padawan commented Jun 4, 2024

Please note that proper fix for this would require either implementing separate selector controls or by adding option to use <input type="time"> on mobile as suggested in #599. Both options are new features and in general I think this issue can't be considered a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs design Design is needed vaadin-time-picker
Projects
None yet
Development

No branches or pull requests

4 participants