mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
feat: local album events notification (#22817)
* feat: local album events notification * pr feedback * show number of unread notification
This commit is contained in:
parent
4d41fa08ad
commit
d778286777
10 changed files with 148 additions and 14 deletions
14
server/test/fixtures/notification.stub.ts
vendored
Normal file
14
server/test/fixtures/notification.stub.ts
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { NotificationLevel, NotificationType } from 'src/enum';
|
||||
|
||||
export const notificationStub = {
|
||||
albumEvent: {
|
||||
id: 'notification-album-event',
|
||||
type: NotificationType.AlbumInvite,
|
||||
description: 'You have been invited to a shared album',
|
||||
title: 'Album Invitation',
|
||||
createdAt: new Date('2024-01-01'),
|
||||
data: { albumId: 'album-id' },
|
||||
level: NotificationLevel.Success,
|
||||
readAt: null,
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue