vikunja/pkg/notifications
kolaente f5385c574e feat(websocket): add notification event with XORM AfterInsert dispatch
Add NotificationCreatedEvent that fires automatically when a
DatabaseNotification is inserted, using XORM's AfterInsertProcessor
interface. The AfterInsert hook dispatches the event after the row
is persisted, without callers needing to manage DispatchOnCommit or
DispatchPending.

The WebSocket listener subscribes to this event, reloads the
notification from the database (ensuring accurate timestamps), and
pushes it to connected clients subscribed to the notification.created
event. Dispatch errors are logged rather than propagated since the
DB notification is already committed at that point.
2026-04-02 16:30:23 +00:00
..
database.go feat(websocket): add notification event with XORM AfterInsert dispatch 2026-04-02 16:30:23 +00:00
db.go feat: register Vikunja tables with db package at init 2026-03-04 15:37:54 +01:00
events.go feat(websocket): add notification event with XORM AfterInsert dispatch 2026-04-02 16:30:23 +00:00
logo.png feat: embed the vikunja logo as inline attachment 2022-06-30 14:21:17 +00:00
mail.go feat: add conversational email template and rendering 2026-03-08 16:03:47 +01:00
mail_render.go feat: add conversational email template and rendering 2026-03-08 16:03:47 +01:00
mail_test.go test: add tests for conversational email system 2026-03-08 16:03:47 +01:00
main_test.go feat(websocket): add notification event with XORM AfterInsert dispatch 2026-04-02 16:30:23 +00:00
notification.go feat(websocket): add notification event with XORM AfterInsert dispatch 2026-04-02 16:30:23 +00:00
notification_test.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
notify_disabled_test.go fix: isolate deletion notifications into per-user transactions 2026-02-25 11:03:02 +01:00
testing.go test: add tests for API token expiry notifications and cron 2026-03-30 12:28:15 +00:00