ui: extract duplicated Pill component to ui/src/base/ #1448

Closed
opened 2026-10-27 13:40:26 +00:00 by sam · 0 comments
Owner

organisation.md's frontend rule says extract to ui/src/base/ on the second distinct consumer. Pill (a 3-line status-badge component) is already independently duplicated verbatim across 11 files: tasks.jsx, logs.jsx, mapping-editor.jsx, capture-row.jsx, settings.jsx, update-status.jsx, skills.jsx, dashboard.jsx, memory.jsx, channels.jsx, curators.jsx. Pre-existing debt, not introduced by any single feature -- found while building the bindings UI (archie-core-t2db.8), which would have been a 12th copy.

Design

Extract to ui/src/base/pill.jsx, export Pill, update all 11+ call sites to import from there instead of defining locally. Mechanical refactor -- no behavior change, verify with task test:ui.

Acceptance criteria

ui/src/base/pill.jsx exists and exports Pill; all prior local definitions removed, all call sites import the shared one; task test:ui passes unchanged.

Close reason

Verified landed: ui/src/base/pill.jsx exports Pill; all 15 call sites import it (commit 2abccf3). task test:ui surface unchanged.


Imported from beads archie-core-mlro · GitHub #747 · type task · priority P3 · created 2026-09-02 · closed 2026-09-11

organisation.md's frontend rule says extract to ui/src/base/ on the second distinct consumer. Pill (a 3-line status-badge component) is already independently duplicated verbatim across 11 files: tasks.jsx, logs.jsx, mapping-editor.jsx, capture-row.jsx, settings.jsx, update-status.jsx, skills.jsx, dashboard.jsx, memory.jsx, channels.jsx, curators.jsx. Pre-existing debt, not introduced by any single feature -- found while building the bindings UI (archie-core-t2db.8), which would have been a 12th copy. ### Design Extract to ui/src/base/pill.jsx, export Pill, update all 11+ call sites to import from there instead of defining locally. Mechanical refactor -- no behavior change, verify with task test:ui. ### Acceptance criteria ui/src/base/pill.jsx exists and exports Pill; all prior local definitions removed, all call sites import the shared one; task test:ui passes unchanged. ### Close reason Verified landed: ui/src/base/pill.jsx exports Pill; all 15 call sites import it (commit 2abccf3). task test:ui surface unchanged. --- _Imported from beads `archie-core-mlro` · GitHub #747 · type task · priority P3 · created 2026-09-02 · closed 2026-09-11_
sam added the lowtask labels 2026-10-27 13:40:26 +00:00
sam self-assigned this 2026-10-27 13:40:26 +00:00
sam closed this issue 2026-10-27 13:40:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1448