swarm-ui: the schedules are a folded card on the messages tab
The schedules tab is gone from the nav. Its page, unchanged inside, is a card on /messages under the broadcast card that starts shut and reads nothing until opened; its add button and refresh picker move into the card's body. /schedules redirects to /messages. Docs follow.
This commit is contained in:
parent
d269c06d58
commit
bdef828df3
1 changed files with 65 additions and 42 deletions
|
|
@ -2,7 +2,7 @@
|
|||
// operator, reminders and compaction to an agent, as the swarm's controller
|
||||
// streams them (`GET /api/messages/stream`), across all hives. Above the
|
||||
// list, a folded **broadcast** card holds the composer that sends one message
|
||||
// to several agents.
|
||||
// to several agents, and a folded **schedules** card holds the scheduled prompts.
|
||||
//
|
||||
// The stream sends the chosen window of history first, then the live tail. A
|
||||
// message an agent drained with an in-turn `recv` is missing, because it starts
|
||||
|
|
@ -14,6 +14,7 @@ import { useLayoutEffect, useRef, useState } from "preact/hooks";
|
|||
import { Badge, type BadgeTone } from "@hive/shared/badge.js";
|
||||
import { Row } from "@hive/shared/term-row.js";
|
||||
import { BroadcastComposer } from "../broadcast/BroadcastComposer.js";
|
||||
import { SchedulesCard } from "../schedules/SchedulesPage.js";
|
||||
import { Disclosure } from "../../ui/disclosure/Disclosure.js";
|
||||
import { Panel } from "../../ui/panel/Panel.js";
|
||||
import { SelectField } from "../../ui/select-field/SelectField.js";
|
||||
|
|
@ -96,6 +97,7 @@ export function MessagesPage() {
|
|||
>
|
||||
{composerBuilt ? <BroadcastComposer /> : null}
|
||||
</Disclosure>
|
||||
<SchedulesCard />
|
||||
<Panel
|
||||
title="messages"
|
||||
icon="💬"
|
||||
|
|
|
|||
Loading…
Reference in a new issue