From ecf11290bda5a670ff520f62a96d85645ad95d82 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 20 Oct 2026 12:23:50 +0200 Subject: 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 --- sb_builder/results.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sb_builder/results.py') 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) -- cgit v1.2.3