From 8285eeb9ec95fa63fb72a31d5543f48c385319b0 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 11 Jan 2026 22:53:25 +0100 Subject: [PATCH] notifications big --- components/notification-badge.tsx | 22 ++++++++++--------- .../notifications/leantime-adapter.ts | 9 +++++++- .../notifications/rocketchat-adapter.ts | 3 ++- 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/components/notification-badge.tsx b/components/notification-badge.tsx index 969f1fa..5f8d34e 100644 --- a/components/notification-badge.tsx +++ b/components/notification-badge.tsx @@ -198,33 +198,35 @@ export const NotificationBadge = memo(function NotificationBadge({ className }:
-
- {notification.title} +
+ + {notification.title} + {!notification.isRead && ( - New + New )} {notification.source === 'leantime' && ( - + Agilité )} {notification.source === 'rocketchat' && ( - + Parole )} {notification.source === 'email' && ( - + Courrier )} + + {formatDistanceToNow(new Date(notification.timestamp), { addSuffix: true })} +
-

- {formatDistanceToNow(new Date(notification.timestamp), { addSuffix: true })} -

{!notification.isRead && ( @@ -239,7 +241,7 @@ export const NotificationBadge = memo(function NotificationBadge({ className }: )} {notification.link && ( - +