Watch
0
0
Fork
You've already forked hyperhive
0

frontend: the per-agent UI typechecks under preact 11

preact 11's types reject the side panel's role=dialog on an aside, which the
nix agent-typecheck check runs. The drawer is a div, whose CSS is
class-based, so nothing else changes.
This commit is contained in:
iris 2026-11-07 08:19:24 +01:00
commit be383ab276

View file

@ -39,7 +39,7 @@ export function SidePanel({ open, title, onClose, children }: SidePanelProps) {
onClick={onClose} onClick={onClose}
aria-hidden="true" aria-hidden="true"
/> />
<aside <div
class={`agent-side-panel-drawer${open ? " open" : ""}`} class={`agent-side-panel-drawer${open ? " open" : ""}`}
role="dialog" role="dialog"
aria-modal="true" aria-modal="true"
@ -58,7 +58,7 @@ export function SidePanel({ open, title, onClose, children }: SidePanelProps) {
</button> </button>
</div> </div>
<div class="agent-side-panel-body">{children}</div> <div class="agent-side-panel-body">{children}</div>
</aside> </div>
</> </>
); );
} }