diff --git a/src/app/AppRoutes.tsx b/src/app/AppRoutes.tsx index f4468e0..1b2515d 100644 --- a/src/app/AppRoutes.tsx +++ b/src/app/AppRoutes.tsx @@ -17,6 +17,7 @@ import { AddVideoPage } from "../pages/content-management/AddVideoPage" import { AddPracticePage } from "../pages/content-management/AddPracticePage" import { NotFoundPage } from "../pages/NotFoundPage" import { NotificationsPage } from "../pages/notifications/NotificationsPage" +import { CreateNotificationPage } from "../pages/notifications/CreateNotificationPage" import { UserDetailPage } from "../pages/user-management/UserDetailPage" import { UserManagementLayout } from "../pages/user-management/UserManagementLayout" import { UsersListPage } from "../pages/user-management/UsersListPage" @@ -93,6 +94,7 @@ export function AppRoutes() { } /> + } /> } /> } /> } /> diff --git a/src/components/topbar/NotificationDropdown.tsx b/src/components/topbar/NotificationDropdown.tsx index 4898a68..64eacbd 100644 --- a/src/components/topbar/NotificationDropdown.tsx +++ b/src/components/topbar/NotificationDropdown.tsx @@ -76,7 +76,6 @@ function NotificationItem({ type="button" className={cn( "group relative flex w-full gap-3 rounded-lg px-3 py-3 text-left transition-colors hover:bg-grayScale-100", - !notification.is_read && "bg-brand-100/30" )} onClick={() => { if (!notification.is_read) onMarkRead(notification.id) @@ -84,13 +83,13 @@ function NotificationItem({ > {/* Unread dot */} {!notification.is_read && ( - + )} {/* Type icon */} @@ -101,16 +100,16 @@ function NotificationItem({

- {getNotificationTitle(notification)} + {getNotificationTitle(notification) || "Notification"}

-

- {getNotificationMessage(notification)} +

+ {getNotificationMessage(notification) || "No preview text available."}

-

+

{formatTimestamp(notification.timestamp)}

@@ -170,14 +169,11 @@ export function NotificationDropdown() { {/* Bell button */} + / + + / + Create + + +
+
+

+ Notifications +

+

+ Create notification + + + Composer + +

+

+ Send a one-off push or SMS notification to your users. +

+
+ +
+ + +
+ {/* Left: message setup */} +
+ + + {/* Channel & audience */} +
+
+

+ Channel +

+
+ + +
+
+ +
+

+ Audience +

+
+ + +
+
+
+ + {/* Title & message */} +
+
+ + setComposeTitle(e.target.value)} + /> +
+
+ +