frontend: trim narrated-history comment in packages/shared/Badge.tsx

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.
This commit is contained in:
iris 2026-09-02 02:51:27 +02:00 committed by mara
commit f625151556

View file

@ -10,12 +10,11 @@
// "alive"). Same component either way so a page reads as one consistent // "alive"). Same component either way so a page reads as one consistent
// row of badges regardless of which ones happen to be interactive. // row of badges regardless of which ones happen to be interactive.
// //
// Formerly two components: swarm-ui had its own presentational-only // Replaces swarm-ui's own presentational-only `StatusChip`, a strict
// `StatusChip`, a strict subset of this shape (no interactivity, no // subset of this shape (no interactivity, no label/value split, no
// label/value split, no icon). Deleted in favour of this one — a // icon) — a non-interactive `Badge` renders identically, so having two
// non-interactive `Badge` renders identically, and having two components // components for the same visual pill meant a page had to pick between
// for the same visual pill just meant a page had to pick between them // them with no real distinction to justify it. Lives in `shared` because both
// with no real distinction to justify it. Lives in `shared` because both
// swarm-ui *and* the per-agent page need the interactive shape, and // swarm-ui *and* the per-agent page need the interactive shape, and
// `shared` is the one package both already depend on (see // `shared` is the one package both already depend on (see
// `docs/web-ui/design-guide.md`'s component-first + junk-drawer rules). // `docs/web-ui/design-guide.md`'s component-first + junk-drawer rules).