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
Timepicker v2, new types of time ranges #2761
Comments
Chatted with Torkel a bit today and worked on some mockups. My favorite so far consolidates the time selection & quicker picker into a single area, without tabs/sub-menus. The To & From form fields would be able to accept any relative time item (like "Now-25hrs") as well as an absolute time. And when a Quick Relative time is selected, the corresponding relative time shorthand will be populated in the To/From fields. The goal is to teach people how they can enter their own relative time ranges rather than requiring either a pre-set relative or absolute. Continuing the teaching concept, I like the idea of showing the relative time shorthand on-hover, illustrated in this mockup over Day before yesterday. I am also proposing the ability to save time ranges, which would trigger a modal (or display some additional fields) that let you name it. |
great work @mattttt ! Think it makes sense to put the quick ranges to the right, so they are closest to the mouse position when you open the dropdown. |
I took a pass at this and am happy with the results. I was already most of the way there, just a few incremental tweaks to really make it polished. The original is on top and the tweaked version on bottom. Recommendations:
Interested in your thoughts. |
@bulletfactory good feedback!
Not as good on white theme, due to same color for header and panel, maybe something we should change |
Looks good (1) Then perhaps we introduce a different convention for in-form secondary actions, rather than relying on that primary button style. My main grip is that it demands so much attention, despite it not being the most important thing. Let me try a couple different ideas. (2) White theme. Yep, hrm. |
Almost everthing is working: TODO
|
Merged to master and closed. This feature REMOVES the ability to set custom quick ranges. I think it would be good to get some feedback on the NEED for that now that we have a lot more built in quick ranges, and maybe improve the settings ui if that is the case. |
I actually need the opposite. Since i use auto interval for some dahsboard, i need my users to only be able to choose from a predefined list of ranges. is it possible to switch from timepicker v1 and v2 ? |
@rschitz not sure what you mean switch from v1 to v2, that is what this issue does. v1 does not exist anymore |
I mean let the user chose between v1 and v2 but i guess this won't be possible. What are the chances you'll reintroduce custom quick ranges again, i'm working on a project that needs that feature badly :( |
@rschitz can you describe more? Is that the quick ranges that are included by default are not enough? I think I will add custom ranges, but needs a lot of work to do it correctly, and want to see if the need is there before I start. |
It's too much actually, i need to limit to few ranges only : 3h,6h,12h,1d,2d,7d,30d,90d,1y,5y |
Yes @torkelo we require the ability to set quick time ranges for example we graph exchange market data so the larger time ranges are not very interesting to us but looking at things in the last 1 or 2 minutes is sometimes more interesting, also creating custom time ranges like now/d+8h is also very useful to us. Just started testing the new master branch looks like some really nice improvements! |
@torkelo custom quick ranges are really actually for us too |
@torkelo I also need times not listed in the current chooser, e.g. 3h, 14d. Manually setting them is just annoying. With the old custom chooser I had a simple list in one of my graphs: 1h, 2h, 3h, 6h, 12h, 24h, 2d, 7d, 30d, a list of 9 sensible times for my graph with the option to zoom in and out as necessary.
Please at least allow us to choose which time picker we use. |
@torkelo we know you must be very busy but can we have some news about re-introducing custom ranges? Thanks. |
+1 for custom ranges |
For my use, I would just like to know where I could change the code to make timepicker ranges customized by roles (admin can see it all, viewer can see just a limited option, to prevent them from making big searches which could have a performance impact in the database..... I use grafana to view Zabbix information, which has a lot of I/O already in the database) |
In our case, we're specifically interested in full months (so a Jan/Feb/etc quick-pick) or Quartiles (so Q1/Q2/etc). Can these be scripted in somehow? |
Been working on support more time options,
New features:
from=now/d to=now
from=now/d to=now/d
from=now/w to=now
from=now/w to=now/d
from=now-1d/d to=now-1d/d
from=now-2d/d to=now-2d/d
from=now-7d/d to=now-7d/d
etc, etc
Syntax: if it ends with
/(timespan unit)
it will round to startOf for the from range, and endOf for the to range.I want users to be able to add custom ones but I would also like to a have a substantial list as default. Right now all relative and refresh options are stored in the dashboard, I cant add new options and have them appear on the dashboard. And with more options the single row dropdown might not be a good option. Maybe something inspired by kibanas time dropdown?
Like #2612
Already support today (which I have changed a bit how it works in timepicker v2 branch)
#1186
The text was updated successfully, but these errors were encountered: