[Maps] add indicator when layer is filtered by search bar#43283
[Maps] add indicator when layer is filtered by search bar#43283nreese merged 4 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/kibana-gis |
|
I'm confused why this is necessary at all. In no other apps do we indicate that the graph/table/dashboard is being filtered. |
Maps is different from graph/table/dashboard in that certain layers will never be filtered by search bar, like EMS tiles, WMS, and TMS. Then other layers can turn off the global search bar so filters and queries are not applied to those layers. This makes it really confusing for users to know which layers are filtered and which are not. This is especially true for users that did not create the map. How should users know which layers are from elasticsearch or which layers are not from elasticasearch? How should users know if the search bar is impacting a layer or not? |
💚 Build Succeeded |
|
Then I'd say just make sure there is a space between the icon and the layer name and consider adding the icon and some text explaining it to the layer tooltip similar to how the partial results icon is handled. |
|
We can't just change the color of the label (color alone is not accessible) and we can't change the legend icon because there are still points on the map so the user needs to refer to the legend to match layer styles. This is why it needs an icon but the icon can be subdued and there then needs to be corresponding text in the tooltip. |
|
i'm very much 👍 on this one. I like that it is just put next to the layer name instead of putting itin the legend-icon, since it's so context-dependent. Agreed with @cchaos that it can behave identically to the "partial results" info button, with some tooltip explanation. |
💚 Build Succeeded |
|
💚 Build Succeeded |
|
Just played around with this, LGTM 👍 |
thomasneirynck
left a comment
There was a problem hiding this comment.
Awesome little touch.
(not sure why that percy test is failing)
There's still the edge-case where the indicator is showing when the courier:ignoreFilterIfFieldNotInIndex is set to true.
This is does require a larger discussion, and I don't think this needs to be handled here. imho, it's really difficult for me to see a place for courier:ignoreFilterIfFieldNotInIndex flag in the Maps-app (it should always be true. but Maps should also handle the exclusion/inclusion of filters itself, so the UI can act accordingly).
💚 Build Succeeded |
…_update_json_spec * 'master' of github.com:elastic/kibana: (35 commits) fix: 🐛 pass whole action context to isCompatible() method (elastic#43457) Deleted old kbn-top-nav directive (elastic#43168) [ML] Fixing cloning of single metric distinct count job (elastic#43435) Update @elastic/charts version 8.1.6 > 9.1.1 (elastic#43516) [Inspector Views] [Request View] - Migrate inspector_views to new platform (elastic#43191) [ML] Adding loading indicators to all wizard charts (elastic#43382) disable flaky test (elastic#43492) feature(code/frontend): cancel file blob and directory commits request if outdated (elastic#43348) fix(code/frontend): button group url should have previous query string (elastic#43428) [SIEM] Fixes index substring incorrectly matching configured indices and failing to install ML job (elastic#43409) [SIEM] Adds performance enhancements such by removing wasted renderers and adding incremental DOM rendering (elastic#43157) disable flaky test (elastic#37859) Added sass lint to Canvas (elastic#43410) [Maps] add indicator when layer is filtered by search bar (elastic#43283) Properly validate current user password during password change. (elastic#43447) Spaces - allow for hex color codes that include uppercase characters (elastic#43470) [Reporting] Add a bit more logging and a few more logging level promotions (elastic#43415) Partially convert index pattern server to typescript (elastic#43291) [Infra UI] Use sum for aggregating AWS metrics. (elastic#43293) [SIEM] Format bytes columns in timeline (elastic#43147) ...
|
I know this is merged now, but you should have access to the |
Thanks for pointing out the |



fixes #42972
It can be difficult figuring out which layers are effected by the search bar. This PR adds a
filtericon next to the layer name for each layer that is effected by the search bar when searches are applied.Below is an example when the search bar is empty. No layers have the filter icon because there is no active filtering

In this screen shot, a filter has been applied an layers effected by the global query are identified with the filter icon next to the name in the layer TOC
Does this help better identify how the search bar is effecting layers? Or does this just add a bunch of visual clutter?
cc @alexfrancoeur @cchaos