aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/store.go
AgeCommit message (Collapse)AuthorFilesLines
9 daysfeat(notify): make the queue and history caps settableDanilo M.1-8/+17
A lowered cap applies at the next add rather than at once, so reloading the config never drops a notification the user has not seen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-15feat(notify): add the image field and its cleanupDanilo M.1-12/+36
Popup gains image, and the store calls an injected removeImage when an entry is dismissed, evicted, replaced or expired, so a daemon-written PNG does not outlive its balloon. The service decides what is daemon-owned; the store only names the path. NewStore now takes the callback as a third parameter, so the service wires its removeImage in (unlinking only under ImagesDir) and the existing call sites pass nil.
2026-09-15feat: add the notification storeDanilo M.1-0/+226
The store holds the live queue and the history ring as pure state. Expiry tells the client and keeps the entry inert; dismissal and eviction file it in history. Replacing reuses the id and emits nothing.