swarm-ui: a swarm tab after agents holding the hives card and the beta notification router; /notifications redirects to it
This commit is contained in:
parent
3cc4fdb54c
commit
0302582d1c
1 changed files with 94 additions and 49 deletions
40
frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.tsx
Normal file
40
frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.tsx
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
// <SwarmPage> — what belongs to the swarm as a whole rather than to one agent:
|
||||
// the hive roster and the notification router. Each is a card that starts
|
||||
// folded and reads nothing until it is opened.
|
||||
//
|
||||
// The notification router is marked beta: its card says so beside the title and
|
||||
// carries a warning banner inside.
|
||||
import { Badge } from "@hive/shared/badge.js";
|
||||
import { LazyDisclosure } from "../../ui/disclosure/LazyDisclosure.js";
|
||||
import { NotificationRouter } from "../notifications/NotificationsPage.js";
|
||||
import { HivesCard } from "./HivesCard.js";
|
||||
import "./SwarmPage.css";
|
||||
|
||||
export function SwarmPage() {
|
||||
return (
|
||||
<>
|
||||
<div class="ui-swarm-card">
|
||||
<HivesCard />
|
||||
</div>
|
||||
<div class="ui-swarm-card">
|
||||
<LazyDisclosure
|
||||
title="notification router"
|
||||
icon="🔔"
|
||||
hint={
|
||||
<>
|
||||
<Badge tone="warning" value="beta" /> forge events routed to
|
||||
agents, as flows
|
||||
</>
|
||||
}
|
||||
>
|
||||
<p class="ui-swarm-beta" role="note">
|
||||
<strong>beta:</strong> the notification router is still changing.
|
||||
Flows, their wording and what they match may change, and a flow you
|
||||
wrote may need rewriting after an update.
|
||||
</p>
|
||||
<NotificationRouter />
|
||||
</LazyDisclosure>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue