grafana / explore-logs

Repo for the Loki log exploration app
GNU Affero General Public License v3.0
236 stars 7 forks source link

frontend: patterns UI tweaks #354

Open matryer opened 1 month ago

matryer commented 1 month ago
zizzpudding commented 1 month ago

b. If we shorten the legend, it won't need to scroll. I agree it should not scroll. c. Do we have anything like a split button? We could simplify this a bit.

zizzpudding commented 1 month ago

e. Selecting one hides them all in the table - perhaps we could instead show a checkbox and maybe bring any selected to the top? But NOT hide the rest, maybe fade them out a little or some other subtle way to indicate that they're not 'selected'

I wasn't sure styling like that could be done and this is why it hides everything else. It's pretty consistent with how the graph works today and the legend on histogram works as well (just filters on the page). I'm OK with changing the behavior as long as moving the selected ones to the top mean they always stay toward the top. Because the filter pill is above the histogram, sometimes you don't see it and removing it can be challenging.

zizzpudding commented 1 month ago

c. Just a thought... Would destructive style buttons for the "undo" be to noisy? One small issue is that once you've included or excluded, it's not obvious looking at the table which are part of the filter (especially on a small screen, when you are on the patterns page).

I don't know if there are any rules for using destructive button for "remove" or "undo" or if they are reserved for delete perminently? image

At the least, could we pin the pattern(s) that are part of the filter to the top of the table to make them easier to find?

ivanahuckova commented 1 month ago

Why not just make it blue? I personally wouldn't expect destruct variant on Undo as I associate it with delete and not removing of filters. @zizzpudding

image
matryer commented 1 month ago

question: Do we think the selected/interacted with patterns should move to the top? We do this in other areas.

matryer commented 1 month ago

re e: You may want to select multiple from the table at the bottom to compare them. So I don't think we can hide them. I agree that things we interact with should float to the top.

zizzpudding commented 1 month ago

For a and b, how about a legend like this condensedLeged

zizzpudding commented 1 month ago

For the selection, rather than hiding the rest could we add a transparency to the text and the sparkline in the other rows of the table (not quite like these images, but you'll get the idea)

zizzpudding commented 1 month ago

images didn't upload in last comment, trying again. selection2 selection