hyperhive/frontend/packages/shared/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 3ff61e49b8 shared Badge: disabled without onClick now renders a real disabled button
argus caught this reviewing PR #4110: Badge only applied the disabled
prop inside its onClick-present branch (a real <button disabled>).
When onClick is undefined -- exactly the case every current caller
hits when its gating condition is false, since onClick and disabled
are computed off the same condition -- it fell through to a plain
<span> that never reads disabled and never gets the
.ui-badge-interactive class the dimming CSS depends on. WantedMenu
and the matrix-account trigger both silently lost the disabled
affordance to this.

Fixed at the root: both the button-vs-span branch and the
interactive-styling class now key off disabled || onClick (extracted
to one interactive flag) instead of onClick alone.

Verified: tsc --noEmit clean on both swarm-ui and agent (Badge's two
consumer packages), nix fmt clean. Screenshot against a throwaway
mock roster (deleted before this commit, never tracked) showing a
hiveless row and a destroyed row both visibly dimmed now, next to an
enabled row at full opacity -- previously all three looked identical.
2026-09-08 14:00:07 +02:00
..
api-error-panel treefmt: apply prettier 2026-09-02 15:25:07 +02:00
badge shared Badge: disabled without onClick now renders a real disabled button 2026-09-08 14:00:07 +02:00
dropdown swarm-ui: one badge+dropdown for wanted state, not multiple buttons 2026-09-07 22:31:44 +02:00
hive-btn treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-dialog treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-menu treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-toast treefmt: apply prettier 2026-09-02 15:25:07 +02:00
hive-warn treefmt: apply prettier 2026-09-02 15:25:07 +02:00
jobq-graph treefmt: apply prettier 2026-09-02 15:25:07 +02:00
jobq-rollup treefmt: apply prettier 2026-09-02 15:25:07 +02:00
settings treefmt: apply prettier 2026-09-02 15:25:07 +02:00
side-panel docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
tabs treefmt: apply prettier 2026-09-02 15:25:07 +02:00
terminal docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
warn-banner treefmt: apply prettier 2026-09-02 15:25:07 +02:00
api-error.ts treefmt: apply prettier 2026-09-02 15:25:07 +02:00
base.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
chrome.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
colors.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
dom.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
forms.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
icons.tsx swarm-ui: table filters move to a per-header icon + popover 2026-09-08 12:14:56 +02:00
index.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
modal.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
pill.css frontend: unify pill/chip/badge shape into shared CSS 2026-08-12 19:25:45 +02:00
prefs.ts agent term: add a setting to hide debug-level output 2026-09-02 20:40:22 +02:00
shadow-css.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
theme.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00