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

Improve dashboard filters display to use color as well as text for negated filters #49939

Merged
merged 6 commits into from
Nov 2, 2019

Conversation

snide
Copy link
Contributor

@snide snide commented Nov 1, 2019

Summary

Fixes #49652 (at least the core complaint). There's a lot in that issue, but I think this is enough to close it.

Makes the negative prefixes for the filters stand out a little more, while still retaining not color alone as a signifier. This feels like a decent compromise without the filter bar being over aggressive and stealing thunder from the dashboards themselves.

I'll follow up with an EUI addition as well to provide guidance, just wanted to get the core fix in since we still have some time for 7.5.

image

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@snide snide requested a review from kertal November 1, 2019 04:40
@elasticmachine
Copy link
Contributor

💔 Build Failed

@hag-ST
Copy link

hag-ST commented Nov 1, 2019

Thank you for that improvement.
It is at least a step into the right direction ;-) But I would prefer to have the whole Filter Name highlighted in the matching color (red for inactive, green for active).

I took my original screenshot and modified it according to your changes. With those filters applied, it would look like this:

Kibana-7-Buttons-NOT_rot

For me, there is still a lot of white text and it is less intuitive to understand, especially the "lonely" active pattern on the left in third row, which could be easily overseen.

If the whole field would be coloured, it could look like this:

Kibana-7-Buttons_rot_gruen

For me it would be a lot easier to understand, which filters are active and which aren't. In our daily business we already had to spent a lot of time, wondering why a query did not present any (expected) result. Until we found the one filter being active by accident ;-)

Keeping up with the colors red and green, one could even use some orange for filters that are temporarily disabled. A scheme that would be easy to understand, too. One could discuss the brigthness of those colours, to avoid eye cancer ;-)

@snide
Copy link
Contributor Author

snide commented Nov 1, 2019

One of our principles we try to adhere to is to focus on the content on the page and not the UI around it. That means keeping your eye on the actual dashboards themselves, not the filters. We also have to deal with people that are colorblind, so color alone can't be a signifier. Contrast as well needs to be considered. I understand your feedback and it's a good point, let me see if we can further adjust things without it overtaking the content of the page. I think our disabled state is clear enough without needing to add orange to the mix.

image

cchaos added 3 commits November 1, 2019 16:48
- Red border for excluded
- Match pinned color to border color
@snide snide requested a review from a team as a code owner November 1, 2019 20:48
@cchaos
Copy link
Contributor

cchaos commented Nov 1, 2019

It seemed to me that the main issue is the visibility of the filter's bounds. It's hard to see when one filter ends and the other begins (especially in dark mode). I have pushed changes that increase the visibility of the border as well as change the border color to red to match the "NOT" text.

Screen Shot 2019-11-01 at 16 46 16 PM

Screen Shot 2019-11-01 at 15 57 28 PM

I think this is the best we can do to stick with the current theme, avoid ambiguity of colors for the color blind, while enhancing the visual difference between excluded and included filters.

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM ;)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@snide snide merged commit 807103c into elastic:master Nov 2, 2019
@snide snide deleted the design/filter branch November 2, 2019 06:13
snide added a commit to snide/kibana that referenced this pull request Nov 2, 2019
…gated filters (elastic#49939)

* Better key out negative filters

* fragments not spans

* Alter filter bar colors

- Red border for excluded
- Match pinned color to border color

* Fix title by using `useInnerText`

* Fix alignment of add filter button

* Moving SASS variables to its own file
snide added a commit to snide/kibana that referenced this pull request Nov 2, 2019
…gated filters (elastic#49939)

* Better key out negative filters

* fragments not spans

* Alter filter bar colors

- Red border for excluded
- Match pinned color to border color

* Fix title by using `useInnerText`

* Fix alignment of add filter button

* Moving SASS variables to its own file
@stsm
Copy link

stsm commented Nov 2, 2019

I love the solution by cchaos (y)

snide added a commit that referenced this pull request Nov 2, 2019
…gated filters (#49939) (#49991)

* Better key out negative filters

* fragments not spans

* Alter filter bar colors

- Red border for excluded
- Match pinned color to border color

* Fix title by using `useInnerText`

* Fix alignment of add filter button

* Moving SASS variables to its own file
snide added a commit that referenced this pull request Nov 2, 2019
…gated filters (#49939) (#49992)

* Better key out negative filters

* fragments not spans

* Alter filter bar colors

- Red border for excluded
- Match pinned color to border color

* Fix title by using `useInnerText`

* Fix alignment of add filter button

* Moving SASS variables to its own file
@hag-ST
Copy link

hag-ST commented Nov 3, 2019

Thank you very much, that seems to improve the filtering process. I'm quite eager to see it in production.

In the end, it is still less productive than the look & feel with Kibana 5, like I mentioned in my first request #49652 (that was closed in the meantime).

Another thing that was quite better in Kibana 5 is, that actions on filters (de/activating, deleting, editing, temporarily disabling) required just one click. In Kibana 7 it requires - hm, you never know beforer - 1 or 2 clicks and/or a mouse movement.

The worst thing is, when you want to delete a pattern, press the X at the end at the line.

Sometimes it does what you expect: just delete
Sometimes nothing seems to happen and after waiting seconds you press delete in the pull down menu and delete the next filter as well.

As I mentioned before, we use our dashboards with mixed filters heavily to monitor live email traffic (and try to identify suspicious traffic). That's why we are working a lot with filters like a musician on a keyboard or a cook with spices. I think it is a different usage than just generating a daily or weekly statistics report.

@wylieconlon
Copy link
Contributor

@hag-ST A fix just got merged to allow shift+click to disable filters, which might help your use case: #52751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trouble with Dashboards and filters after migrating from Kibana 5.6 to Kibana 7.2
7 participants