feat: add global toast system with installation event notifications

- Add SSE event types for installation updates
- Implement global toast system using Sonner
- Add restart functionality directly in toast actions
- Update .gitignore to exclude temp directory
This commit is contained in:
Chris Scott committed 2025-11-29 09:48:40 -05:00
1 parent ae929a7c96
commit 37b00e27ea
5 files changed
+148

No files matched your search

+16
View File
@@ -102,6 +102,20 @@ export interface SSEPermissionRepliedEvent {
}
}
export interface SSEInstallationUpdatedEvent {
type: 'installation.updated'
properties: {
version: string
}
}
export interface SSEInstallationUpdateAvailableEvent {
type: 'installation.update-available'
properties: {
version: string
}
}
export type SSEEvent =
| SSEMessagePartUpdatedEvent
| SSEMessageUpdatedEvent
@@ -113,6 +127,8 @@ export type SSEEvent =
| SSETodoUpdatedEvent
| SSEPermissionUpdatedEvent
| SSEPermissionRepliedEvent
| SSEInstallationUpdatedEvent
| SSEInstallationUpdateAvailableEvent
export type ContentPart =
| { type: 'text', content: string }