aboutsummaryrefslogtreecommitdiffstats
path: root/sb_builder/results.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-20 12:23:50 +0200
committerDanilo M. <danix@danix.xyz>2026-10-20 12:23:50 +0200
commitecf11290bda5a670ff520f62a96d85645ad95d82 (patch)
tree1e6390a28297e3fb5a9ba8c2fd5c8ee58de37a41 /sb_builder/results.py
parentaa4d36c541e603ed4d60ee1185806c51818eccc9 (diff)
downloadsb-builder-ecf11290bda5a670ff520f62a96d85645ad95d82.tar.gz
sb-builder-ecf11290bda5a670ff520f62a96d85645ad95d82.zip
Filter bars: chips read as buttons, status dots, group labels
Chips get a button background and border, a dot in the color the table uses for that status, and a muted label per group (overlay, status, state, result). Search fields get a search icon and a clear button. Phase 2 spec: why the signing key locks after the GUI quits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'sb_builder/results.py')
-rw-r--r--sb_builder/results.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sb_builder/results.py b/sb_builder/results.py
index 21fdcc3..3c9df82 100644
--- a/sb_builder/results.py
+++ b/sb_builder/results.py
@@ -26,8 +26,7 @@ from PyQt6.QtWidgets import (QDialog, QHBoxLayout, QLabel, QPlainTextEdit, QSpli
from .dashboard import STATUS
from .fmt import NA, fmt_time
-from .packages import chip
-from .ui import SP, action, enable
+from .ui import SP, action, chip, enable, group_label
KINDS = ("ok", "failed", "bad", "aborted", "removed")
ANSI = re.compile(r"\x1b\[[0-9;?]*[A-Za-z]")
@@ -68,8 +67,9 @@ class ResultsTab(QWidget):
self.remote = remote
self.rows = []
self.viewers = []
- self.chips = {k: chip(k) for k in KINDS}
+ self.chips = {k: chip(k, STATUS.get(k)) for k in KINDS}
bar = QHBoxLayout()
+ bar.addWidget(group_label("result"))
for c in self.chips.values():
c.toggled.connect(self.refilter)
bar.addWidget(c)