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

Meta: Custom time ranges per panel #17776

Closed
7 tasks done
stacey-gammon opened this issue Apr 18, 2018 · 8 comments · Fixed by #43153
Closed
7 tasks done

Meta: Custom time ranges per panel #17776

stacey-gammon opened this issue Apr 18, 2018 · 8 comments · Fixed by #43153
Assignees
Labels
enhancement New value added to drive a business result Feature:Dashboard Dashboard related features Feature:Embedding Embedding content via iFrame Meta Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.4.0

Comments

@stacey-gammon
Copy link
Contributor

stacey-gammon commented Apr 18, 2018

In order to complete implementation of #3578, we need to complete the following steps:

Mock:
screen shot 2018-04-18 at 12 44 25 pm

cc @nreese @snide

@stacey-gammon
Copy link
Contributor Author

@snide or @cchaos - can I get some design help for this?

Some initial ideas:
Screen Shot 2019-06-28 at 3 05 12 PM
Screen Shot 2019-06-28 at 3 05 15 PM

  1. I think the date picker should be disabled when the toggle is on. Filed Allow superdatepicker to be disabled eui#2081

  2. The save button is hidden under the pop up box which makes it a bit awkward to close, you have to click somewhere randomly

Screen Shot 2019-06-28 at 2 54 47 PM

  1. Ideas for making it obvious to the user that a time range override is being applied. I was thinking an icon on the header that has details in a tooltip on hover, but what then to do when the panel titles are hidden? Should it only show up on hover, or should something always be present?

Screen Shot 2019-06-28 at 3 09 47 PM

@stacey-gammon
Copy link
Contributor Author

Playground PR: #39937

@cchaos
Copy link
Contributor

cchaos commented Jul 1, 2019

@stacey-gammon I can think in-depth on this next week (7/8)

@streamich streamich added the Feature:Embedding Embedding content via iFrame label Jul 8, 2019
@cchaos
Copy link
Contributor

cchaos commented Jul 8, 2019

@stacey-gammon Here is a quick mock of a proposed design tweak to your solution.

@stacey-gammon
Copy link
Contributor Author

hmm, it looks great, but I want to run through some options to implement those changes, or maybe take a shortcut on some of the functionality to minimize the time needed to implement.

In the ideal architecture, the embeddable panel wouldn't require knowledge about the customize panel time range action. This kind of separation would let us make per panel time range action an x-pack feature, as well as an example to other third party developers wanting to do something similar.

Ideally, we'd keep all the logic about the per panel time range inside the per panel time range plugin (or I actually put it in a big "advanced embeddable actions" plugin). To do that we would have to expose a way for plugins to hook into this badge area. We could actually do this using our current Triggers and actions registry without needing to introduce a new registry, which is great. The problem is in the custom label. The customize panel time range needs to store that label data somewhere so it persists. This is essentially phase 2 of embeddables.

Phase 2 of embeddables is a good amount of work and would push this from a 1 week to multi-week implementation time.

If we can get away without the custom label, I think we can do this much faster. When phase 2 comes around we can always consider the label. What do you think? Coule we use an icon and a tooltip to get around the length?

@cchaos
Copy link
Contributor

cchaos commented Jul 8, 2019

To summarize, you're just saying that in terms of the mocks, you want to hold off only on allowing the time range custom label input? Was there anything else that can't be done in this first phase?

Ideally, you wouldn't want to hide the time-range under a tooltip. This would cause more motion by the user to find the time range and wouldn't work for static images (reports) or kiosk mode.

@stacey-gammon
Copy link
Contributor Author

Yep that's right @cchaos - i just want to avoid the custom label since it adds a lot of complexity. I've already implemented everything else (though you may want to pretty up the "badge" styling). Otherwise just blocked on allowing the superdatepicker to be disabled and pretty printing the date:

Screen Shot 2019-07-12 at 2 27 31 PM

Screen Shot 2019-07-12 at 2 27 36 PM

Screen Shot 2019-07-12 at 2 27 46 PM

Screen Shot 2019-07-12 at 2 28 10 PM

@cchaos
Copy link
Contributor

cchaos commented Jul 12, 2019

Thanks for clarifying.

I still don't think the toggle is necessary, however. All you need is the "Remove" button which should close the popover and reset the panel to use the global time picker.

As for the badge. All you need to use is <EuiBadge iconType="calendar">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Dashboard Dashboard related features Feature:Embedding Embedding content via iFrame Meta Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.4.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants