Replace Web Push and its service worker with page notifications over SSE

This commit is contained in:
Ian Gulliver
2026-10-15 18:34:53 -07:00
parent c7f19f2537
commit a1615693ef
32 changed files with 429 additions and 1175 deletions
+4
View File
@@ -1,4 +1,5 @@
import { get, put, subscribe, type AgentSession, type ByreEvent, type Focus, type InboxItem, type Project, type Snapshot, type Task, type TaskTab, type User } from "./api.js";
import { notifyInbox } from "./notifications.js";
export type Topic =
| "me"
@@ -316,6 +317,9 @@ export function handleEvent(ev: ByreEvent): void {
}
break;
case "inbox.created":
notifyInbox(ev.payload as unknown as InboxItem);
void loadInbox();
break;
case "inbox.updated":
void loadInbox();
break;