Commit d70acd2
feat: add in-app notifications with Inngest queue integration
- Add notifications table schema (Drizzle migration 0002)
- Add Notification domain model and NotificationType to domain-models.ts
- Add notifications to DatabaseTableName enum and persistence repositories
- Add optional INNGEST_EVENT_KEY/INNGEST_SIGNING_KEY to env.ts
- Create Inngest client + persistNotificationFn in src/lib/inngest.ts
- Add Inngest API route at /api/inngest
- Create notification input schema and actions (list, markRead, markAllRead, unreadCount)
- Update createMyComment to resolve recipient and send notification events
- Update toogleReaction insert path to send notification events
- Replace notifications dashboard stub with full TanStack Query UI
- Add i18n strings to bn.json for notification copy
Agent-Logs-Url: https://github.com/techdiary-dev/techdiary.dev/sessions/a4d2f56f-8ea0-484d-883e-4aa0cce5a9cc
Co-authored-by: shoaibsharif <29075110+shoaibsharif@users.noreply.github.com>1 parent 17bc4a5 commit d70acd2
17 files changed
Lines changed: 1913 additions & 26 deletions
File tree
- migrations
- meta
- src
- app
- api/inngest
- dashboard/notifications
- backend
- models
- persistence
- services
- inputs
- i18n
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments