hyperhive/frontend/packages/shared/src/api-error-panel
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris ca84079a21 frontend: add WarnBanner Preact component, compose ApiErrorPanel from it
mara, on review: "i want each component to import its own css file
itself[;] if you need a bunch of extra css externally, its not a proper
component ... you may need to migrate other components that you would
want to use first".

WarnBanner is the Preact-component successor to the shadow-DOM
<hive-warn> custom element (same three-tier info/warning/error visual
language, colours copied faithfully from hive-warn.css). ApiErrorPanel
now composes it instead of owning a copy of the border/colour/pulse
rules itself — its own CSS is back down to just the layout that's
actually specific to it (heading, copy button, detail text).

Re-verified with a fresh mock-server screenshot: same rendered output as
before, now via composition instead of a duplicated banner shape.
2026-08-17 23:11:11 +02:00
..
api-error-panel.css frontend: add WarnBanner Preact component, compose ApiErrorPanel from it 2026-08-17 23:11:11 +02:00
ApiErrorPanel.tsx frontend: add WarnBanner Preact component, compose ApiErrorPanel from it 2026-08-17 23:11:11 +02:00