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:
parent
223ac257e0
commit
f625151556
1 changed files with 5 additions and 6 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue