You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiSuperDatePicker] Auto-refresh button's pretty interval is too pretty #5752
Might be worth discussing the parameters of this issue a bit more here. Do we basically just want to change the branching logic of prettyInterval to show seconds if under 2 minutes of time? Personally I think showing 180 s instead of 3 m (or even 200 s instead of 3 m) to be cognitively harder to grasp.
Activity
cee-chen commentedon Mar 31, 2022
Might be worth discussing the parameters of this issue a bit more here. Do we basically just want to change the branching logic of prettyInterval to show
secondsif under 2 minutes of time? Personally I think showing180 sinstead of3 m(or even200 sinstead of3 m) to be cognitively harder to grasp.cee-chen commentedon Mar 31, 2022
My suggestion:
1 mm(until it reaches an hour, of course)Thoughts?
cee-chen commentedon Mar 31, 2022
Hm, the above still gets a little silly if people try to put in odd intervals.
Maybe we should simply limit this logic to
show seconds if 90 seconds or under, with an extra case for(if it's exactly 60 seconds show 1 m.Also worth noting that our actual refresh dropdown still attempts to transmute 90 seconds into 1.5 minutes.
So maybe instead the issue is we should be not rounding to the nearest whole number but instead to the nearest single decimal point?
JasonStoltz commentedon Jan 17, 2023
We've decided not to address this issue for now. This appears to be related to #5571.