Extend notification popup lifetime

This commit is contained in:
David Heinemeier Hansson committed 2026-05-27 10:50:31 +02:00
1 parent ee97329aee
commit 88816ab9be
3 files changed
+38 -7

No files matched your search

+4 -1
View File
@@ -53,7 +53,8 @@ const notification = {
body: 'Body',
image: 'file:///tmp/mail.png',
hints: { 'omarchy-glyph': '!' },
urgency: 1
urgency: 1,
expireTimeout: 1.5
}
const snapshot = notifications.snapshotOf(notification, 12345)
assertDeepEqual(
@@ -67,6 +68,7 @@ assertDeepEqual(
image: snapshot.image,
glyph: snapshot.glyph,
urgency: snapshot.urgency,
expireTimeout: snapshot.expireTimeout,
timestamp: snapshot.timestamp
},
{
@@ -79,6 +81,7 @@ assertDeepEqual(
image: 'file:///tmp/mail.png',
glyph: '!',
urgency: 1,
expireTimeout: 1.5,
timestamp: 12345
},
'notifications create stable snapshots'