Scheduled-result notifications: first lines, Open / Run again / Pause; a click opens
ci / ui (push) Waiting to run
ci / check (push) Failing after 3s
ci / start (push) Failing after 3s

A run's own notification (run.notification, server dev) gives the body (the
result's first lines) and the actions with labels in the person's language;
they become the notification's action type. Every notification is
remembered by id (watch::Notes) so a click opens the chat or the task, and
Run again / Pause post /schedules/{id}/run|pause without the window. An
older server's run is said as before. Fixtures re-pinned at server dev
e0c2332, schedule.json added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-10 14:08:04 +00:00
1 parent 2b87fa4c29
commit 9b07527c3a
9 files changed
+420 -16

No files matched your search

+10
View File
@@ -410,6 +410,16 @@ async function boot() {
listen("open-settings", () => {
if (view === "app") showSettings(true)
})
// A notification clicked: the chat it told of, or the scheduled task whose run it was.
listen("open-chat", (e) => {
if (view === "app" && typeof e.payload === "string") showChat(e.payload)
})
listen("open-schedule", (e) => {
const id = e.payload?.schedule
if (view !== "app" || typeof id !== "string") return
showPage("scheduled")
showScheduled(id)
})
status = await invoke("get_status")
applyTheme(status.theme)
renderBar(status)