Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/agent/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris b1254f89cd shared dropdown: don't reopen when the trigger is clicked while open
mara, #3775: clicking a badge with its own dropdown open reopens it
instead of closing it. Root cause: the outside-click listener only
excludes the dropdown's own ref, not the sibling trigger that opened
it — a click on the trigger closes via that listener (pointerdown
fires first), then the trigger's own onClick toggle fires straight
after and reopens it, since its closure reads the pre-close state.

Dropdown now takes an optional anchorRef (the trigger's wrapper,
which callers already have for CSS positioning) and excludes it from
the outside-click check too — the same shape MetaNav's own hand-rolled
popover already uses correctly. Wired into StatusChips's Picker +
StatusMenu and swarm-ui's ComponentsPage demo (the only three Dropdown
consumers).

Verified two ways: reverted the fix, rebuilt, confirmed the bug
reproduces via a raw-CDP interaction test (two real clicks dispatched
through headless chromium, not just a static screenshot); restored
the fix, rebuilt, confirmed it passes.
2026-08-30 15:29:59 +02:00
..
components shared dropdown: don't reopen when the trigger is clicked while open 2026-08-30 15:29:59 +02:00
hooks agent: TermInput — composer + slash commands 2026-08-28 22:05:13 +02:00
lib agent ui: stop pause/resume from navigating to hive-c0re's raw response 2026-08-30 03:57:11 +02:00
agent.css agent page: consolidate alive/thinking/paused into one status badge 2026-08-30 15:12:03 +02:00
colors.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
css.d.ts agent: scaffold Preact rewrite, Header + StatusChips first slice 2026-08-28 22:05:13 +02:00
index.html agent: remove rebuild button, move dashboard link into the links menu 2026-08-28 23:40:56 +02:00
main.tsx agent: cutover — index.html now serves the Preact rewrite, app.js deleted 2026-08-28 23:14:52 +02:00
Root.tsx agent page: consolidate alive/thinking/paused into one status badge 2026-08-30 15:12:03 +02:00
screen.html docs(web-ui/agent): add back-link nav + fix stale doc pointer in screen.html 2026-06-29 00:31:06 +02:00
stats.html feat(#2659): serve hive-bash-mcp over persistent streamable-http, drop stdio bridge 2026-07-23 18:01:20 +02:00
stats.js feat(#2659): serve hive-bash-mcp over persistent streamable-http, drop stdio bridge 2026-07-23 18:01:20 +02:00
theme.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
types.ts agent page: show resolved model as the model badge's tooltip 2026-08-30 14:43:07 +02:00