-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Input panels #6884
Comments
Generic control panel widgets like this would be very handy. |
Input control panels might help some of the folks who want the "lock dashboard" feature, #1610. The url used for an iframe (&embed=true) removes all panel controls, along with the search, filter and top nav bar. If we had input controls, the user would be able to grant access to that functionality by dropping them right on the dashboard, but still restrict editing or removing panels. Also could be useful for a full screen mode. |
Where should the saved information about controls get stored? Should they get stored as their own type like Visualizations? Or should they get stored under dashboard object? I think it makes the most sense to store controls under the existing panelsJSON in the dashboard object. The panel object would contain
Thoughts? |
I like storing the type There are three types of state that I see:
What if we have a new type that maps to a new saved object type. This new saved object type, If we add a new saved object type for For the third type of state, I think this state should be saved in the url, but not with the dashboard, so the user can adjust some settings and share a dashboard, and it'll look the same, but every time they open that dashboard up, the input control settings will be reset back to their default settings specified by the dashboard owner. In the back of my mind, I'm trying to think about how we will support custom visualization plugins as well as custom input controls. Maybe this is getting too into the weeds, but at some point I'd like to spend more time thinking it through. Like right now, plugins can register new vis_types, and we may want to think about whether plugins should be able to register new "input controls". Or are input controls a new visualization type? This is all just food for thought. :) |
After some discussion, the easiest way forward is to create some Visualization plugins that are designed with the main purpose of providing controls to manipulate Dashboard filters. |
@nreese, would this mean that custom plugins would also be able to manipulate Dashboard filters? It would also be nice to manipulate the index pattern (switch the dashboard from one index pattern to another), or edit the root search query completely. |
Custom plugins already exist that manipulate Dashboard filters. Checkout the slider plugin as an example. @trevan What do you mean by switching the dashboard from one index pattern to another? The Dashboard is index pattern agnostic. Each Visualization is tied to an index pattern. @trevan What do you mean by root search query? Are you talking about the lucene query bar? There is another community plugin that offers easy controls for manipulating this. The idea would be to migrate the functionality of plugins like these into Kibana distribution. |
@nreese sorry, I used the wrong terminology (though both those plugins are interesting and I'll take a look at them in more depth). I think the correct term is data sources. It would be nice to edit the actual query sent to ES for each visualization from a plugin. That would allow index-pattern switching from a custom visualization. But after re-reading this issue, that is probably a different request. |
I'm sorry, it is not clear from such many issues linked - is there any functionality that is possible to use right now yet for dropdown filters? |
@nreese : thanks for your work on the range slider. I have noticed a potential issue, or at least for me. When setting a range filter, the query created is: gte: min value The issue is of course that I am unable to include any events where the field value equals the max value of the slider. For example, one of my fields is a percentage between 0 and 100, but using the slider I am unable to retrieve the events where my field equals 100... Could you point me to the right file to fix this? If needed I can open a new issue. |
@jksecurity Please create an issue |
Pinging @elastic/kibana-app |
Closing this because the legacy Input Controls are being replaced with a new Control system where most of this functionality lives. Additionally, a few of the requests here are related to changing chart configurations via Controls, which is not yet available, but is currently being tracked in #134706 |
`[email protected]` ⏩ `83.0.0`⚠️ The biggest change in this PR by far is the `EuiButtonEmpty` Emotion conversion, which changes the DOM structure of the button slightly as well as several CSS classes around it. EUI has attempted to convert any custom EuiButtonEmpty CSS overrides where possible, but would super appreciate it if CODEOWNERS checked their touched files. If anything other than a snapshot or test was touched, please double check the display of your button(s) and confirm everything still looks shipshape. Feel free to ping us for advice if not. --- ## [`83.0.0`](https://github.com/elastic/eui/tree/v83.0.0) **Bug fixes** - Fixed `EuiPaginationButton` styling affected by `EuiButtonEmpty`'s Emotion conversion ([#6893](elastic/eui#6893)) **Breaking changes** - Removed `isPlaceholder` prop from `EuiPaginationButton` ([#6893](elastic/eui#6893)) ## [`82.2.1`](https://github.com/elastic/eui/tree/v82.2.1) - Updated supported Node engine versions to allow Node 16, 18 and >=20 ([#6884](elastic/eui#6884)) ## [`82.2.0`](https://github.com/elastic/eui/tree/v82.2.0) - Updated EUI's SVG icons library to use latest SVGO v3 optimization ([#6843](elastic/eui#6843)) - Added success color `EuiNotificationBadge` ([#6864](elastic/eui#6864)) - Added `badgeColor` prop to `EuiFilterButton` ([#6864](elastic/eui#6864)) - Updated `EuiBadge` to use CSS-in-JS for named colors instead of inline styles. Custom colors will still use inline styles. ([#6864](elastic/eui#6864)) **CSS-in-JS conversions** - Converted `EuiButtonGroup` and `EuiButtonGroupButton` to Emotion ([#6841](elastic/eui#6841)) - Converted `EuiButtonIcon` to Emotion ([#6844](elastic/eui#6844)) - Converted `EuiButtonEmpty` to Emotion ([#6863](elastic/eui#6863)) - Converted `EuiCollapsibleNav` and `EuiCollapsibleNavGroup` to Emotion ([#6865](elastic/eui#6865)) - Removed Sass variables `$euiCollapsibleNavGroupLightBackgroundColor`, `$euiCollapsibleNavGroupDarkBackgroundColor`, and `$euiCollapsibleNavGroupDarkHighContrastColor` ([#6865](elastic/eui#6865)) --------- Co-authored-by: Cee Chen <[email protected]> Co-authored-by: Jeramy Soucy <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Currently the dashboard is basically an output device. Ideally we'd like to add the ability to create panels that have "controls".
Examples
Terms drop down: Would present a select dialog of terms generated by a terms agg on a field. Selecting a field would create a hidden filter that applied to every panel on the dashboard for the have of that term in that field
Range slider: Would run a min/max on a field, and provide a slider that allows you to select a range within that min and max, resulting in a range filter
Geo filter: Gives you a map to select a rounding box (or circle) to create a geo filter from
Geo filter from geo_shape field: User selects target index and geo_shape field. User also selects a field containing the shape label.
Linking Dashboards: Give user a list of related dashboards. When clicked, the new dashboard opens with same context (time, filters, lucene queries) as starting dashboard.
The text was updated successfully, but these errors were encountered: