Say when there's no notification history to replay

Replaying an empty history did nothing at all on screen, which reads as
a dead keybinding rather than an empty log.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-07-25 09:41:14 -07:00
co-authored by Claude Opus 5
parent 5952c016a6
commit e43ddf0eaa
+17 -1
View File
@@ -331,7 +331,23 @@ Item {
service.historyReplayLimit,
NotificationUrgency.Normal)
if (rows.length === 0) return "none"
// Replaying nothing at all looks like a dead keybinding, so say so.
if (rows.length === 0) {
popupModel.insert(0, {
id: -1,
originalId: -1,
app: "omarchy-action",
appIcon: "",
summary: "No recent notifications",
body: "",
image: "",
glyph: "󰂚",
urgency: NotificationUrgency.Low,
expireTimeout: 0,
timestamp: Date.now()
})
return "none"
}
clearPopups()
for (var i = 0; i < rows.length; i++) {