hyperhive/frontend/packages/agent/src/components
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
..
Header.tsx agent: badges join the pills cluster, not the other way around 2026-08-28 22:47:49 +02:00
HeaderPill.tsx agent: HeaderPill wraps Badge instead of a hand-styled pill 2026-08-29 10:12:19 +02:00
InboxPanel.tsx agent: TodosPanel/InboxPanel flyouts + header pills 2026-08-28 22:05:13 +02:00
LiveStream.tsx agent: TermInput — composer + slash commands 2026-08-28 22:05:13 +02:00
LoginFlow.css agent: LoginFlow — one card, matching Dropdown's popup visual language 2026-08-28 22:05:13 +02:00
LoginFlow.tsx agent: LoginFlow — one card, matching Dropdown's popup visual language 2026-08-28 22:05:13 +02:00
MetaNav.css agent: remove rebuild button, move dashboard link into the links menu 2026-08-28 23:40:56 +02:00
MetaNav.tsx agent links: use matching emoji for every built-in icon 2026-08-30 14:42:30 +02:00
Row.tsx agent: LiveStream/Row/DetailsRow — Preact live event pane 2026-08-28 22:05:13 +02:00
SidePanel.css agent: TodosPanel/InboxPanel flyouts + header pills 2026-08-28 22:05:13 +02:00
SidePanel.tsx agent: TodosPanel/InboxPanel flyouts + header pills 2026-08-28 22:05:13 +02:00
StatusChips.css agent: meta-nav popout + header height fix + badge row consistency 2026-08-28 22:05:13 +02:00
StatusChips.tsx shared dropdown: don't reopen when the trigger is clicked while open 2026-08-30 15:29:59 +02:00
TermInput.tsx agent: TermInput — composer + slash commands 2026-08-28 22:05:13 +02:00
TodosPanel.tsx agent: TodosPanel/InboxPanel flyouts + header pills 2026-08-28 22:05:13 +02:00