From f625151556649ff53e6c71da1bf9363b5f61fa9e Mon Sep 17 00:00:00 2001 From: iris Date: Wed, 2 Sep 2026 02:51:27 +0200 Subject: [PATCH] frontend: trim narrated-history comment in packages/shared/Badge.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Continues #3901 (dashboard/#3906, agent+swarm-ui/#3917, this closes out the packages/shared slice — jobq-graph was already done separately). Scanned the rest of shared/src for the same 'used to be X, now Y' pattern: one real hit. The other two matches (hive-btn.js's is= attribute history, hive-side-panel.js's one-word /* legacy */ comment) are load-bearing or too trivial to touch. --- frontend/packages/shared/src/badge/Badge.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/packages/shared/src/badge/Badge.tsx b/frontend/packages/shared/src/badge/Badge.tsx index e0c64461..f5d7d902 100644 --- a/frontend/packages/shared/src/badge/Badge.tsx +++ b/frontend/packages/shared/src/badge/Badge.tsx @@ -10,12 +10,11 @@ // "alive"). Same component either way so a page reads as one consistent // row of badges regardless of which ones happen to be interactive. // -// Formerly two components: swarm-ui had its own presentational-only -// `StatusChip`, a strict subset of this shape (no interactivity, no -// label/value split, no icon). Deleted in favour of this one — a -// non-interactive `Badge` renders identically, and having two components -// for the same visual pill just meant a page had to pick between them -// with no real distinction to justify it. Lives in `shared` because both +// Replaces swarm-ui's own presentational-only `StatusChip`, a strict +// subset of this shape (no interactivity, no label/value split, no +// icon) — a non-interactive `Badge` renders identically, so having two +// components for the same visual pill meant a page had to pick between +// them with no real distinction to justify it. Lives in `shared` because both // swarm-ui *and* the per-agent page need the interactive shape, and // `shared` is the one package both already depend on (see // `docs/web-ui/design-guide.md`'s component-first + junk-drawer rules).