Route the interactive Panama date menu

This commit is contained in:
Gabriel Brown
2026-08-17 11:32:57 -04:00
parent fb27c5b309
commit 6a1bec849d
6 changed files with 112 additions and 32 deletions
+5 -2
View File
@@ -253,7 +253,8 @@ ShellRoot {
IpcHandler {
target: "notifications"
function toggle(): void { ShellState.toggle("notifications"); }
function toggle(): void { ShellState.toggleDateMenu("notifications"); }
function open(): void { ShellState.openDateMenu("notifications"); }
function clear(): void { Notifs.dismissAll(); }
function dnd(): bool {
Notifs.doNotDisturb = !Notifs.doNotDisturb;
@@ -266,13 +267,15 @@ ShellRoot {
function fixture(name: string): void { CalendarAgenda.applyFixture(name); }
function reset(): void { CalendarAgenda.clearFixture(); }
function refresh(): void { CalendarAgenda.refresh(); }
function open(): void { ShellState.open("notifications"); }
function open(): void { ShellState.openDateMenu("agenda"); }
function close(): void { ShellState.close(); }
function select(date: string): void { CalendarAgenda.selectIsoDate(date); }
function status(): string {
return JSON.stringify({
phase: CalendarAgenda.phase,
fixture: CalendarAgenda.fixtureMode,
open: ShellState.notificationsOpen,
page: ShellState.dateMenuPage,
sourceCount: CalendarAgenda.sources.length,
eventCount: CalendarAgenda.events.length,
selectedDate: CalendarAgenda.selectedDateKey,