From 0dfcfa6a740bea1ca7af5099a9ff3f896a908d6a Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 2 Nov 2026 19:38:29 +0100 Subject: dashboard: add console filter --- src/api/dashboard/dashboard.html | 45 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'src/api') diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html index 1b9a8cb..2a841ae 100644 --- a/src/api/dashboard/dashboard.html +++ b/src/api/dashboard/dashboard.html @@ -74,6 +74,11 @@ section.collapsed { align-self: start; } section.collapsed h2 { margin: 0; } section.collapsed h2 .toggle { display: none; } + /* A choice beside a box's title (the console's filter). */ + section h2 label.choice { font-size: 12px; text-transform: none; letter-spacing: 0; + margin-left: 1em; cursor: pointer; } + section h2 label.choice input { vertical-align: -2px; margin: 0 3px 0 0; } + section.collapsed h2 label.choice { display: none; } /* The right column dragged off to the side: the map takes the width. */ @media (min-width: 901px) { main.right-hidden > section:not(#map) { display: none; } @@ -107,6 +112,8 @@ background: color-mix(in srgb, var(--self) calc(var(--halo-hovered) * 100%), transparent); } .console > div.peer-focused { background: color-mix(in srgb, var(--self) calc(var(--halo-focused) * 100%), transparent); } + /* Filtered (`filter selected`): only the messages with what is in focus. */ + .console.filtering > div:not(.peer-focused) { display: none; } .console > div.related { background: rgba(127, 127, 127, .08); border-left-color: var(--self); } .console > div:hover { background: rgb(127 127 127 / var(--pointed)); } .console > div.focused { background: rgb(127 127 127 / var(--shown)); } @@ -251,8 +258,9 @@
Drag the space left of these boxes to the right to hide the column.
-

Console

-
+

Console

+
+