macOS client overlays, menus and notifications

This commit is contained in:
Ian Gulliver
2026-10-17 08:24:22 -07:00
parent b43cffab6d
commit 38d56139c3
17 changed files with 1297 additions and 101 deletions
+10
View File
@@ -100,6 +100,7 @@ final class Connection {
}
phase = .running(store)
store.startGlobalStream(after: status.lastEventSeq)
Notifier.shared.deliver()
} catch {
await store.stop()
if gen == generation {
@@ -186,6 +187,7 @@ struct FatalView: View {
struct RootView: View {
@Environment(Connection.self) private var connection
@Environment(\.openWindow) private var openWindow
var body: some View {
Group {
@@ -204,5 +206,13 @@ struct RootView: View {
.foregroundStyle(Palette.text)
.tint(Palette.accent)
.background(Palette.bg)
.onAppear {
let openWindow = openWindow
Notifier.shared.connection = connection
Notifier.shared.showWindow = {
openWindow(id: "main")
}
Notifier.shared.deliver()
}
}
}