elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

[Dashboard] Add Ability to Hide Query bar #137560

Open Miguel-Frazao opened 2 years ago

Miguel-Frazao commented 2 years ago

Create a way, via role permission, Kibana privileges or space (advanced) settings where we can hide/remove default filtering from dashboard:

Screenshot_2022-05-25_20-00-41

These fields are useless in some cases and some users just mess up their UX without knowing, and removing those would also save some space.

I think this feature would be very useful specially for view only dashboard mode.

elasticmachine commented 2 years ago

Pinging @elastic/kibana-presentation (Team:Presentation)

ThomThomson commented 2 years ago

This is absolutely a required feature, and we've been thinking about it for a while. This and Read only / hidden filter pills on a dashboard will give authors more control of the outer bounds of the search experience they want to give to their users.

@stratoula I added the Feature:Unified search label, but feel free to remove it if it's unnecessary. I was picturing this as part of the Unified Search X Controls initiative.

stratoula commented 2 years ago

I was also thinking of adding the label but I wanted you to check it first! I totally agree Devon :)

chais0n commented 1 year ago

We've asked for this feature as well with support. The idea would be to have an option in the dashboard to hide the time and search bar. 2 radio buttons to click to enable/disable in the options menu of each dashboard.

As the OP mentioned, many dashboards are created without the need for any additional searches. Often times, users will start putting in searches and alter the behavior of the dashboard without realizing it's not meant for additional searches.

In a similar situation, if we make a dashboard of text or links, for example, we have no need for the search bar or time filter. It takes up usable space on the dashboard.

cqliu1 commented 4 months ago

What level of granular control should an admin user have in setting the visibility of the unified search bar? Should this be a per-dashboard setting, a space-level advanced setting, or role-based permission for a subset of users?

ThomThomson commented 4 months ago

I'd assume this would be a per-dashboard setting. Ideally I'd like the author to individually be able to show / hide filters query and time range.

ThomThomson commented 4 months ago

Update: We've decided to de-scope this to allow Dashboard authors to specifically hide the query bar. Not filter pills, as they are tightly coupled to navigation and actions i.e. chart brushing.

For greater author control over the visibility of certain filter pills see this issue.

For the time range, we can create a follow-up issue to hide it potentially in the future if this is a common user ask.