@burdenoff/microfe-notification 2026.625.1 → 2026.626.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/NotificationBell.js +1 -1
- package/dist/components/NotificationBell.js.map +1 -1
- package/dist/components/NotificationCard.js +1 -1
- package/dist/components/NotificationCard.js.map +1 -1
- package/dist/pages/CreateNotificationPage.js +475 -453
- package/dist/pages/CreateNotificationPage.js.map +1 -1
- package/dist/pages/NotificationCenterPage.js +102 -94
- package/dist/pages/NotificationCenterPage.js.map +1 -1
- package/dist/pages/NotificationHistoryAdminPage.js +140 -100
- package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
- package/dist/pages/NotificationHistoryPage.js +48 -53
- package/dist/pages/NotificationHistoryPage.js.map +1 -1
- package/dist/pages/NotificationPreferencesPage.js +77 -72
- package/dist/pages/NotificationPreferencesPage.js.map +1 -1
- package/dist/pages/NotificationTemplatesPage.js +129 -102
- package/dist/pages/NotificationTemplatesPage.js.map +1 -1
- package/dist/pages/NotificationTopicsPage.js +258 -209
- package/dist/pages/NotificationTopicsPage.js.map +1 -1
- package/dist/pages/TemplateEditorPage.js +350 -319
- package/dist/pages/TemplateEditorPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,14 +8,14 @@ import { NotificationCard as o } from "../components/NotificationCard.js";
|
|
|
8
8
|
import { NOTIFICATION_PERMISSIONS as s } from "../constants/permissions.js";
|
|
9
9
|
import { useMemo as c } from "react";
|
|
10
10
|
import { usePermissions as l } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { Button as
|
|
11
|
+
import { BellRing as u, CheckCheck as d, Search as f } from "lucide-react";
|
|
12
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
|
+
import { AuroraBackground as g, Button as _, EmphasisPanel as v, GlassCard as y, GradientText as b, IllustratedEmptyState as x, PagePurpose as S } from "@burdenoff/fe-libs/ui";
|
|
14
14
|
//#region src/pages/NotificationCenterPage.tsx
|
|
15
|
-
var
|
|
15
|
+
var C = {
|
|
16
16
|
archived: !1,
|
|
17
17
|
channel: "IN_APP"
|
|
18
|
-
},
|
|
18
|
+
}, w = { channel: "IN_APP" }, T = [
|
|
19
19
|
{
|
|
20
20
|
value: "SYSTEM",
|
|
21
21
|
labelKey: "notifications.typeSystem",
|
|
@@ -36,7 +36,7 @@ var v = {
|
|
|
36
36
|
labelKey: "notifications.typeMarketing",
|
|
37
37
|
label: "Marketing"
|
|
38
38
|
}
|
|
39
|
-
],
|
|
39
|
+
], E = [
|
|
40
40
|
{
|
|
41
41
|
value: "URGENT",
|
|
42
42
|
labelKey: "notifications.priorityUrgent",
|
|
@@ -58,158 +58,166 @@ var v = {
|
|
|
58
58
|
label: "Low"
|
|
59
59
|
}
|
|
60
60
|
];
|
|
61
|
-
function
|
|
62
|
-
let
|
|
63
|
-
baseFilter:
|
|
64
|
-
unreadFilter:
|
|
65
|
-
}), { topics:
|
|
66
|
-
return
|
|
61
|
+
function D() {
|
|
62
|
+
let D = r(), { hasPermission: O, isLoading: k } = l(), { currentUser: A } = e(), { notifications: j, unreadCount: M, notificationFilter: N, markAsRead: P, markAllAsRead: F, archiveNotification: I, recordAction: L, updateFilter: R, resetFilter: z } = t({
|
|
63
|
+
baseFilter: C,
|
|
64
|
+
unreadFilter: w
|
|
65
|
+
}), { topics: B } = n({ isActive: !0 }), V = c(() => i(j, N), [j, N]), H = c(() => a(V), [V]);
|
|
66
|
+
return k ? /* @__PURE__ */ m("div", {
|
|
67
67
|
className: "flex h-64 items-center justify-center",
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
}) : !
|
|
68
|
+
children: /* @__PURE__ */ m("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
|
|
69
|
+
}) : !O(s.NOTIFICATION_LIST) && !A?.id ? /* @__PURE__ */ m("div", {
|
|
70
70
|
className: "p-8 text-center text-text-secondary",
|
|
71
|
-
children:
|
|
72
|
-
}) : /* @__PURE__ */
|
|
71
|
+
children: D("notifications.noPermissionView", "You don't have permission to view notifications.")
|
|
72
|
+
}) : /* @__PURE__ */ h("div", {
|
|
73
73
|
className: "space-y-4 sm:space-y-6 p-3 sm:p-6 animate-in fade-in duration-200",
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */ m(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}), /* @__PURE__ */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
75
|
+
/* @__PURE__ */ m(S, {
|
|
76
|
+
icon: /* @__PURE__ */ m(u, { size: 16 }),
|
|
77
|
+
children: D("notifications.centerPurpose", "Your in-app inbox. Everything the platform needs you to see — task assignments, mentions, alerts and system updates — lands here. Filter by type, priority or topic, mark items as read, and archive what you no longer need.")
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ h("div", {
|
|
80
|
+
className: "relative overflow-hidden rounded-2xl",
|
|
81
|
+
children: [/* @__PURE__ */ m(g, { intensity: "subtle" }), /* @__PURE__ */ h(v, {
|
|
82
|
+
"data-tour": "notification-center-header",
|
|
83
|
+
className: "flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6",
|
|
84
|
+
children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
|
|
85
|
+
className: "text-xl sm:text-2xl font-bold text-primary",
|
|
86
|
+
children: /* @__PURE__ */ m(b, { children: D("notifications.centerTitle", "Notification Center") })
|
|
87
|
+
}), /* @__PURE__ */ m("p", {
|
|
88
|
+
className: "text-sm text-secondary mt-1",
|
|
89
|
+
children: M > 0 ? /* @__PURE__ */ h(p, { children: [
|
|
90
|
+
D("notifications.youHave", "You have"),
|
|
91
|
+
" ",
|
|
92
|
+
/* @__PURE__ */ h("span", {
|
|
93
|
+
className: "inline-flex items-center gap-1.5 font-semibold text-primary",
|
|
94
|
+
"data-tour": "notification-center-unread-count",
|
|
95
|
+
children: [/* @__PURE__ */ m("span", { className: "inline-block h-2 w-2 rounded-full bg-accent-primary motion-safe:animate-vc-glow-pulse" }), M]
|
|
96
|
+
}),
|
|
97
|
+
" ",
|
|
98
|
+
`${D("notifications.unreadNotifications", "unread notification")}${M > 1 ? "s" : ""}`
|
|
99
|
+
] }) : D("notifications.allCaughtUp", "All caught up!")
|
|
100
|
+
})] }), M > 0 && /* @__PURE__ */ h(_, {
|
|
101
|
+
"data-tour": "notification-center-mark-all-read",
|
|
102
|
+
variant: "outline",
|
|
103
|
+
onClick: F,
|
|
104
|
+
className: "gap-2",
|
|
105
|
+
children: [/* @__PURE__ */ m(d, { size: 16 }), D("notifications.markAllAsRead", "Mark All as Read")]
|
|
106
|
+
})]
|
|
90
107
|
})]
|
|
91
108
|
}),
|
|
92
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ h(y, {
|
|
93
110
|
treatment: "plain",
|
|
94
111
|
"data-tour": "notification-center-filters",
|
|
95
112
|
className: "flex flex-col gap-3 border-border-seam p-3 sm:flex-row sm:flex-wrap sm:items-center sm:gap-4 sm:p-4",
|
|
96
113
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ h("div", {
|
|
98
115
|
className: "relative flex-1",
|
|
99
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ m(f, {
|
|
100
117
|
size: 16,
|
|
101
118
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-tertiary"
|
|
102
|
-
}), /* @__PURE__ */
|
|
119
|
+
}), /* @__PURE__ */ m("input", {
|
|
103
120
|
"data-tour": "notification-center-search",
|
|
104
121
|
type: "text",
|
|
105
|
-
placeholder:
|
|
106
|
-
value:
|
|
107
|
-
onChange: (e) =>
|
|
122
|
+
placeholder: D("notifications.searchPlaceholder", "Search notifications..."),
|
|
123
|
+
value: N.search,
|
|
124
|
+
onChange: (e) => R({ search: e.target.value }),
|
|
108
125
|
className: "w-full pl-9 pr-4 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150"
|
|
109
126
|
})]
|
|
110
127
|
}),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
value:
|
|
113
|
-
onChange: (e) =>
|
|
128
|
+
/* @__PURE__ */ h("select", {
|
|
129
|
+
value: N.type,
|
|
130
|
+
onChange: (e) => R({ type: e.target.value }),
|
|
114
131
|
className: "px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150",
|
|
115
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ m("option", {
|
|
116
133
|
value: "ALL",
|
|
117
|
-
children:
|
|
118
|
-
}),
|
|
134
|
+
children: D("notifications.allTypes", "All Types")
|
|
135
|
+
}), T.map((e) => /* @__PURE__ */ m("option", {
|
|
119
136
|
value: e.value,
|
|
120
|
-
children:
|
|
137
|
+
children: D(e.labelKey, e.label)
|
|
121
138
|
}, e.value))]
|
|
122
139
|
}),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
value:
|
|
125
|
-
onChange: (e) =>
|
|
140
|
+
/* @__PURE__ */ h("select", {
|
|
141
|
+
value: N.priority,
|
|
142
|
+
onChange: (e) => R({ priority: e.target.value }),
|
|
126
143
|
className: "px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ m("option", {
|
|
128
145
|
value: "ALL",
|
|
129
|
-
children:
|
|
130
|
-
}),
|
|
146
|
+
children: D("notifications.allPriorities", "All Priorities")
|
|
147
|
+
}), E.map((e) => /* @__PURE__ */ m("option", {
|
|
131
148
|
value: e.value,
|
|
132
|
-
children:
|
|
149
|
+
children: D(e.labelKey, e.label)
|
|
133
150
|
}, e.value))]
|
|
134
151
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
value:
|
|
137
|
-
onChange: (e) =>
|
|
152
|
+
/* @__PURE__ */ h("select", {
|
|
153
|
+
value: N.topicId || "",
|
|
154
|
+
onChange: (e) => R({ topicId: e.target.value || void 0 }),
|
|
138
155
|
className: "px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ m("option", {
|
|
140
157
|
value: "",
|
|
141
|
-
children:
|
|
142
|
-
}),
|
|
158
|
+
children: D("notifications.allTopics", "All Topics")
|
|
159
|
+
}), B.map((e) => /* @__PURE__ */ m("option", {
|
|
143
160
|
value: e.id,
|
|
144
161
|
children: e.name
|
|
145
162
|
}, e.id))]
|
|
146
163
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
value:
|
|
149
|
-
onChange: (e) =>
|
|
164
|
+
/* @__PURE__ */ h("select", {
|
|
165
|
+
value: N.isRead === null ? "ALL" : N.isRead ? "READ" : "UNREAD",
|
|
166
|
+
onChange: (e) => R({ isRead: e.target.value === "ALL" ? null : e.target.value === "READ" }),
|
|
150
167
|
className: "px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150",
|
|
151
168
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ m("option", {
|
|
153
170
|
value: "ALL",
|
|
154
|
-
children:
|
|
171
|
+
children: D("notifications.filterAll", "All")
|
|
155
172
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ m("option", {
|
|
157
174
|
value: "UNREAD",
|
|
158
|
-
children:
|
|
175
|
+
children: D("notifications.filterUnread", "Unread")
|
|
159
176
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ m("option", {
|
|
161
178
|
value: "READ",
|
|
162
|
-
children:
|
|
179
|
+
children: D("notifications.filterRead", "Read")
|
|
163
180
|
})
|
|
164
181
|
]
|
|
165
182
|
}),
|
|
166
|
-
(
|
|
167
|
-
onClick:
|
|
183
|
+
(N.search || N.type !== "ALL" || N.priority !== "ALL" || N.isRead !== null || !!N.topicId) && /* @__PURE__ */ m("button", {
|
|
184
|
+
onClick: z,
|
|
168
185
|
className: "px-3 py-2 text-sm text-tertiary hover:text-primary transition-colors duration-150",
|
|
169
|
-
children:
|
|
186
|
+
children: D("notifications.resetFilters", "Reset")
|
|
170
187
|
})
|
|
171
188
|
]
|
|
172
189
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ m("div", {
|
|
174
191
|
"data-tour": "notification-center-list",
|
|
175
192
|
className: "space-y-6",
|
|
176
|
-
children:
|
|
193
|
+
children: V.length > 0 ? Object.entries(H).map(([e, t]) => /* @__PURE__ */ h("div", {
|
|
177
194
|
className: "animate-in fade-in slide-in-from-bottom-2 duration-200",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ m("h2", {
|
|
179
196
|
className: "text-sm font-semibold text-tertiary mb-3",
|
|
180
197
|
children: e
|
|
181
|
-
}), /* @__PURE__ */
|
|
198
|
+
}), /* @__PURE__ */ m("div", {
|
|
182
199
|
className: "space-y-2",
|
|
183
|
-
children: t.map((e) => /* @__PURE__ */
|
|
200
|
+
children: t.map((e) => /* @__PURE__ */ m(o, {
|
|
184
201
|
notification: e,
|
|
185
|
-
onMarkAsRead:
|
|
186
|
-
onArchive:
|
|
187
|
-
onAction:
|
|
202
|
+
onMarkAsRead: P,
|
|
203
|
+
onArchive: I,
|
|
204
|
+
onAction: L,
|
|
188
205
|
analyticsSource: "center"
|
|
189
206
|
}, e.id))
|
|
190
207
|
})]
|
|
191
208
|
}, e)) : /* @__PURE__ */ m("div", {
|
|
192
|
-
className: "
|
|
193
|
-
children:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
/* @__PURE__ */ p("h3", {
|
|
199
|
-
className: "text-lg font-semibold text-primary mb-2",
|
|
200
|
-
children: S("notifications.noNotificationsFound", "No notifications found")
|
|
201
|
-
}),
|
|
202
|
-
/* @__PURE__ */ p("p", {
|
|
203
|
-
className: "text-sm text-secondary max-w-md",
|
|
204
|
-
children: E.length === 0 ? S("notifications.noNotificationsYet", "You don't have any notifications yet. We'll notify you when something important happens.") : S("notifications.adjustFilters", "Try adjusting your filters to see more notifications.")
|
|
205
|
-
})
|
|
206
|
-
]
|
|
209
|
+
className: "animate-in fade-in duration-200",
|
|
210
|
+
children: /* @__PURE__ */ m(x, {
|
|
211
|
+
illustration: j.length === 0 ? "empty-notifications" : "empty-search",
|
|
212
|
+
title: D("notifications.noNotificationsFound", "No notifications found"),
|
|
213
|
+
description: j.length === 0 ? D("notifications.noNotificationsYet", "You don't have any notifications yet. We'll notify you when something important happens.") : D("notifications.adjustFilters", "Try adjusting your filters to see more notifications.")
|
|
214
|
+
})
|
|
207
215
|
})
|
|
208
216
|
})
|
|
209
217
|
]
|
|
210
218
|
});
|
|
211
219
|
}
|
|
212
220
|
//#endregion
|
|
213
|
-
export {
|
|
221
|
+
export { D as NotificationCenterPage };
|
|
214
222
|
|
|
215
223
|
//# sourceMappingURL=NotificationCenterPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCenterPage.js","names":[],"sources":["../../src/pages/NotificationCenterPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { Search, Bell, CheckCheck } from 'lucide-react';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Button, EmphasisPanel, GlassCard } from '@burdenoff/fe-libs/ui';\nimport { useNotifications, useNotificationTopics } from '../hooks';\nimport { NotificationCard } from '../components/NotificationCard';\nimport { filterNotifications, groupNotificationsByDate } from '../utils';\nimport { NOTIFICATION_PERMISSIONS } from '../constants/permissions';\nimport { useNotification } from '../providers/NotificationProvider';\nimport { useTr } from '../shared/hooks/useTr';\nimport type { NotificationPriority, NotificationType } from '../types';\n\nconst CENTER_FILTER = { archived: false, channel: 'IN_APP' as const };\nconst CENTER_UNREAD_FILTER = { channel: 'IN_APP' };\nconst TYPE_OPTIONS: Array<{ value: NotificationType; labelKey: string; label: string }> = [\n { value: 'SYSTEM', labelKey: 'notifications.typeSystem', label: 'System' },\n { value: 'ALERT', labelKey: 'notifications.typeAlert', label: 'Alert' },\n { value: 'TRANSACTIONAL', labelKey: 'notifications.typeTransactional', label: 'Transactional' },\n { value: 'MARKETING', labelKey: 'notifications.typeMarketing', label: 'Marketing' },\n];\nconst PRIORITY_OPTIONS: Array<{ value: NotificationPriority; labelKey: string; label: string }> = [\n { value: 'URGENT', labelKey: 'notifications.priorityUrgent', label: 'Urgent' },\n { value: 'HIGH', labelKey: 'notifications.priorityHigh', label: 'High' },\n { value: 'NORMAL', labelKey: 'notifications.priorityNormal', label: 'Normal' },\n { value: 'LOW', labelKey: 'notifications.priorityLow', label: 'Low' },\n];\n\n/**\n * Notification Center Page\n *\n * Main page for viewing and managing in-app notifications\n */\nexport function NotificationCenterPage() {\n const tr = useTr();\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const { currentUser } = useNotification();\n const {\n notifications,\n unreadCount,\n notificationFilter,\n markAsRead,\n markAllAsRead,\n archiveNotification,\n recordAction,\n updateFilter,\n resetFilter,\n } = useNotifications({ baseFilter: CENTER_FILTER, unreadFilter: CENTER_UNREAD_FILTER });\n const { topics } = useNotificationTopics({ isActive: true });\n\n // Filter and group notifications\n const filteredNotifications = useMemo(\n () => filterNotifications(notifications, notificationFilter),\n [notifications, notificationFilter]\n );\n const groupedNotifications = useMemo(\n () => groupNotificationsByDate(filteredNotifications),\n [filteredNotifications]\n );\n\n if (permissionsLoading) {\n return (\n <div className=\"flex h-64 items-center justify-center\">\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n </div>\n );\n }\n\n if (!hasPermission(NOTIFICATION_PERMISSIONS.NOTIFICATION_LIST) && !currentUser?.id) {\n return (\n <div className=\"p-8 text-center text-text-secondary\">\n {tr('notifications.noPermissionView', \"You don't have permission to view notifications.\")}\n </div>\n );\n }\n\n return (\n <div className=\"space-y-4 sm:space-y-6 p-3 sm:p-6 animate-in fade-in duration-200\">\n {/* Header — the page's single emphasis zone (unread summary + the one CTA) */}\n <EmphasisPanel\n data-tour=\"notification-center-header\"\n className=\"flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6\"\n >\n <div>\n <h1 className=\"text-xl sm:text-2xl font-bold text-primary\">\n {tr('notifications.centerTitle', 'Notification Center')}\n </h1>\n <p className=\"text-sm text-secondary mt-1\">\n {unreadCount > 0\n ? `${tr('notifications.youHave', 'You have')} ${unreadCount} ${tr('notifications.unreadNotifications', 'unread notification')}${unreadCount > 1 ? 's' : ''}`\n : tr('notifications.allCaughtUp', 'All caught up!')}\n </p>\n </div>\n\n {unreadCount > 0 && (\n <Button\n data-tour=\"notification-center-mark-all-read\"\n variant=\"outline\"\n onClick={markAllAsRead}\n className=\"gap-2\"\n >\n <CheckCheck size={16} />\n {tr('notifications.markAllAsRead', 'Mark All as Read')}\n </Button>\n )}\n </EmphasisPanel>\n\n {/* Filters */}\n <GlassCard\n treatment=\"plain\"\n data-tour=\"notification-center-filters\"\n className=\"flex flex-col gap-3 border-border-seam p-3 sm:flex-row sm:flex-wrap sm:items-center sm:gap-4 sm:p-4\"\n >\n {/* Search */}\n <div className=\"relative flex-1\">\n <Search size={16} className=\"absolute left-3 top-1/2 -translate-y-1/2 text-tertiary\" />\n <input\n data-tour=\"notification-center-search\"\n type=\"text\"\n placeholder={tr('notifications.searchPlaceholder', 'Search notifications...')}\n value={notificationFilter.search}\n onChange={(e) => updateFilter({ search: e.target.value })}\n className=\"w-full pl-9 pr-4 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n />\n </div>\n\n {/* Type filter */}\n <select\n value={notificationFilter.type}\n onChange={(e) => updateFilter({ type: e.target.value as NotificationType | 'ALL' })}\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"ALL\">{tr('notifications.allTypes', 'All Types')}</option>\n {TYPE_OPTIONS.map((option) => (\n <option key={option.value} value={option.value}>\n {tr(option.labelKey, option.label)}\n </option>\n ))}\n </select>\n\n {/* Priority filter */}\n <select\n value={notificationFilter.priority}\n onChange={(e) =>\n updateFilter({ priority: e.target.value as NotificationPriority | 'ALL' })\n }\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"ALL\">{tr('notifications.allPriorities', 'All Priorities')}</option>\n {PRIORITY_OPTIONS.map((option) => (\n <option key={option.value} value={option.value}>\n {tr(option.labelKey, option.label)}\n </option>\n ))}\n </select>\n\n <select\n value={notificationFilter.topicId || ''}\n onChange={(e) => updateFilter({ topicId: e.target.value || undefined })}\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"\">{tr('notifications.allTopics', 'All Topics')}</option>\n {topics.map((topic) => (\n <option key={topic.id} value={topic.id}>\n {topic.name}\n </option>\n ))}\n </select>\n\n {/* Read/Unread filter */}\n <select\n value={\n notificationFilter.isRead === null\n ? 'ALL'\n : notificationFilter.isRead\n ? 'READ'\n : 'UNREAD'\n }\n onChange={(e) =>\n updateFilter({\n isRead: e.target.value === 'ALL' ? null : e.target.value === 'READ',\n })\n }\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"ALL\">{tr('notifications.filterAll', 'All')}</option>\n <option value=\"UNREAD\">{tr('notifications.filterUnread', 'Unread')}</option>\n <option value=\"READ\">{tr('notifications.filterRead', 'Read')}</option>\n </select>\n\n {/* Reset filters */}\n {(notificationFilter.search ||\n notificationFilter.type !== 'ALL' ||\n notificationFilter.priority !== 'ALL' ||\n notificationFilter.isRead !== null ||\n Boolean(notificationFilter.topicId)) && (\n <button\n onClick={resetFilter}\n className=\"px-3 py-2 text-sm text-tertiary hover:text-primary transition-colors duration-150\"\n >\n {tr('notifications.resetFilters', 'Reset')}\n </button>\n )}\n </GlassCard>\n\n {/* Notifications list */}\n <div data-tour=\"notification-center-list\" className=\"space-y-6\">\n {filteredNotifications.length > 0 ? (\n Object.entries(groupedNotifications).map(([group, groupNotifications]) => (\n <div key={group} className=\"animate-in fade-in slide-in-from-bottom-2 duration-200\">\n <h2 className=\"text-sm font-semibold text-tertiary mb-3\">{group}</h2>\n <div className=\"space-y-2\">\n {groupNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n analyticsSource=\"center\"\n />\n ))}\n </div>\n </div>\n ))\n ) : (\n <div className=\"flex flex-col items-center justify-center py-12 text-center animate-in fade-in duration-200\">\n <Bell size={48} className=\"text-tertiary mb-4\" />\n <h3 className=\"text-lg font-semibold text-primary mb-2\">\n {tr('notifications.noNotificationsFound', 'No notifications found')}\n </h3>\n <p className=\"text-sm text-secondary max-w-md\">\n {notifications.length === 0\n ? tr(\n 'notifications.noNotificationsYet',\n \"You don't have any notifications yet. We'll notify you when something important happens.\"\n )\n : tr(\n 'notifications.adjustFilters',\n 'Try adjusting your filters to see more notifications.'\n )}\n </p>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAYA,IAAM,IAAgB;CAAE,UAAU;CAAO,SAAS;CAAmB,EAC/D,IAAuB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A3B,CACE,kBAAC,MAAD;MAAI,WAAU;gBAA4C;MAAW,CAAA,EACrE,kBAAC,OAAD;MAAK,WAAU;gBACZ,EAAmB,KAAK,MACvB,kBAAC,GAAD;OAEgB;OACd,cAAc;OACd,WAAW;OACX,UAAU;OACV,iBAAgB;OAChB,EANK,EAAa,GAMlB,CACF;MACE,CAAA,CACF;OAdI,EAcJ,CACN,GAEF,kBAAC,OAAD;KAAK,WAAU;eAAf;MACE,kBAAC,GAAD;OAAM,MAAM;OAAI,WAAU;OAAuB,CAAA;MACjD,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAG,sCAAsC,yBAAyB;OAChE,CAAA;MACL,kBAAC,KAAD;OAAG,WAAU;iBACV,EAAc,WAAW,IACtB,EACE,oCACA,2FACD,GACD,EACE,+BACA,wDACD;OACH,CAAA;MACA;;IAEJ,CAAA;GACF"}
|
|
1
|
+
{"version":3,"file":"NotificationCenterPage.js","names":[],"sources":["../../src/pages/NotificationCenterPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { Search, CheckCheck, BellRing } from 'lucide-react';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n AuroraBackground,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { useNotifications, useNotificationTopics } from '../hooks';\nimport { NotificationCard } from '../components/NotificationCard';\nimport { filterNotifications, groupNotificationsByDate } from '../utils';\nimport { NOTIFICATION_PERMISSIONS } from '../constants/permissions';\nimport { useNotification } from '../providers/NotificationProvider';\nimport { useTr } from '../shared/hooks/useTr';\nimport type { NotificationPriority, NotificationType } from '../types';\n\nconst CENTER_FILTER = { archived: false, channel: 'IN_APP' as const };\nconst CENTER_UNREAD_FILTER = { channel: 'IN_APP' };\nconst TYPE_OPTIONS: Array<{ value: NotificationType; labelKey: string; label: string }> = [\n { value: 'SYSTEM', labelKey: 'notifications.typeSystem', label: 'System' },\n { value: 'ALERT', labelKey: 'notifications.typeAlert', label: 'Alert' },\n { value: 'TRANSACTIONAL', labelKey: 'notifications.typeTransactional', label: 'Transactional' },\n { value: 'MARKETING', labelKey: 'notifications.typeMarketing', label: 'Marketing' },\n];\nconst PRIORITY_OPTIONS: Array<{ value: NotificationPriority; labelKey: string; label: string }> = [\n { value: 'URGENT', labelKey: 'notifications.priorityUrgent', label: 'Urgent' },\n { value: 'HIGH', labelKey: 'notifications.priorityHigh', label: 'High' },\n { value: 'NORMAL', labelKey: 'notifications.priorityNormal', label: 'Normal' },\n { value: 'LOW', labelKey: 'notifications.priorityLow', label: 'Low' },\n];\n\n/**\n * Notification Center Page\n *\n * Main page for viewing and managing in-app notifications\n */\nexport function NotificationCenterPage() {\n const tr = useTr();\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const { currentUser } = useNotification();\n const {\n notifications,\n unreadCount,\n notificationFilter,\n markAsRead,\n markAllAsRead,\n archiveNotification,\n recordAction,\n updateFilter,\n resetFilter,\n } = useNotifications({ baseFilter: CENTER_FILTER, unreadFilter: CENTER_UNREAD_FILTER });\n const { topics } = useNotificationTopics({ isActive: true });\n\n // Filter and group notifications\n const filteredNotifications = useMemo(\n () => filterNotifications(notifications, notificationFilter),\n [notifications, notificationFilter]\n );\n const groupedNotifications = useMemo(\n () => groupNotificationsByDate(filteredNotifications),\n [filteredNotifications]\n );\n\n if (permissionsLoading) {\n return (\n <div className=\"flex h-64 items-center justify-center\">\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n </div>\n );\n }\n\n if (!hasPermission(NOTIFICATION_PERMISSIONS.NOTIFICATION_LIST) && !currentUser?.id) {\n return (\n <div className=\"p-8 text-center text-text-secondary\">\n {tr('notifications.noPermissionView', \"You don't have permission to view notifications.\")}\n </div>\n );\n }\n\n return (\n <div className=\"space-y-4 sm:space-y-6 p-3 sm:p-6 animate-in fade-in duration-200\">\n <PagePurpose icon={<BellRing size={16} />}>\n {tr(\n 'notifications.centerPurpose',\n 'Your in-app inbox. Everything the platform needs you to see — task assignments, mentions, alerts and system updates — lands here. Filter by type, priority or topic, mark items as read, and archive what you no longer need.'\n )}\n </PagePurpose>\n\n {/* Header — the page's single emphasis zone (unread summary + the one CTA).\n Wrapped in a relative overflow-hidden container so the AuroraBackground\n can sit behind it (at -z-10) without ever moving content. This is the\n MFE's single aurora hero. */}\n <div className=\"relative overflow-hidden rounded-2xl\">\n <AuroraBackground intensity=\"subtle\" />\n <EmphasisPanel\n data-tour=\"notification-center-header\"\n className=\"flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6\"\n >\n <div>\n <h1 className=\"text-xl sm:text-2xl font-bold text-primary\">\n <GradientText>{tr('notifications.centerTitle', 'Notification Center')}</GradientText>\n </h1>\n <p className=\"text-sm text-secondary mt-1\">\n {unreadCount > 0 ? (\n <>\n {tr('notifications.youHave', 'You have')}{' '}\n <span\n className=\"inline-flex items-center gap-1.5 font-semibold text-primary\"\n data-tour=\"notification-center-unread-count\"\n >\n <span className=\"inline-block h-2 w-2 rounded-full bg-accent-primary motion-safe:animate-vc-glow-pulse\" />\n {unreadCount}\n </span>{' '}\n {`${tr('notifications.unreadNotifications', 'unread notification')}${unreadCount > 1 ? 's' : ''}`}\n </>\n ) : (\n tr('notifications.allCaughtUp', 'All caught up!')\n )}\n </p>\n </div>\n\n {unreadCount > 0 && (\n <Button\n data-tour=\"notification-center-mark-all-read\"\n variant=\"outline\"\n onClick={markAllAsRead}\n className=\"gap-2\"\n >\n <CheckCheck size={16} />\n {tr('notifications.markAllAsRead', 'Mark All as Read')}\n </Button>\n )}\n </EmphasisPanel>\n </div>\n\n {/* Filters */}\n <GlassCard\n treatment=\"plain\"\n data-tour=\"notification-center-filters\"\n className=\"flex flex-col gap-3 border-border-seam p-3 sm:flex-row sm:flex-wrap sm:items-center sm:gap-4 sm:p-4\"\n >\n {/* Search */}\n <div className=\"relative flex-1\">\n <Search size={16} className=\"absolute left-3 top-1/2 -translate-y-1/2 text-tertiary\" />\n <input\n data-tour=\"notification-center-search\"\n type=\"text\"\n placeholder={tr('notifications.searchPlaceholder', 'Search notifications...')}\n value={notificationFilter.search}\n onChange={(e) => updateFilter({ search: e.target.value })}\n className=\"w-full pl-9 pr-4 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n />\n </div>\n\n {/* Type filter */}\n <select\n value={notificationFilter.type}\n onChange={(e) => updateFilter({ type: e.target.value as NotificationType | 'ALL' })}\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"ALL\">{tr('notifications.allTypes', 'All Types')}</option>\n {TYPE_OPTIONS.map((option) => (\n <option key={option.value} value={option.value}>\n {tr(option.labelKey, option.label)}\n </option>\n ))}\n </select>\n\n {/* Priority filter */}\n <select\n value={notificationFilter.priority}\n onChange={(e) =>\n updateFilter({ priority: e.target.value as NotificationPriority | 'ALL' })\n }\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"ALL\">{tr('notifications.allPriorities', 'All Priorities')}</option>\n {PRIORITY_OPTIONS.map((option) => (\n <option key={option.value} value={option.value}>\n {tr(option.labelKey, option.label)}\n </option>\n ))}\n </select>\n\n <select\n value={notificationFilter.topicId || ''}\n onChange={(e) => updateFilter({ topicId: e.target.value || undefined })}\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"\">{tr('notifications.allTopics', 'All Topics')}</option>\n {topics.map((topic) => (\n <option key={topic.id} value={topic.id}>\n {topic.name}\n </option>\n ))}\n </select>\n\n {/* Read/Unread filter */}\n <select\n value={\n notificationFilter.isRead === null\n ? 'ALL'\n : notificationFilter.isRead\n ? 'READ'\n : 'UNREAD'\n }\n onChange={(e) =>\n updateFilter({\n isRead: e.target.value === 'ALL' ? null : e.target.value === 'READ',\n })\n }\n className=\"px-3 py-2 text-sm text-primary bg-surface border border-default rounded-lg focus:outline-none focus:ring-2 focus:ring-accent transition-shadow duration-150\"\n >\n <option value=\"ALL\">{tr('notifications.filterAll', 'All')}</option>\n <option value=\"UNREAD\">{tr('notifications.filterUnread', 'Unread')}</option>\n <option value=\"READ\">{tr('notifications.filterRead', 'Read')}</option>\n </select>\n\n {/* Reset filters */}\n {(notificationFilter.search ||\n notificationFilter.type !== 'ALL' ||\n notificationFilter.priority !== 'ALL' ||\n notificationFilter.isRead !== null ||\n Boolean(notificationFilter.topicId)) && (\n <button\n onClick={resetFilter}\n className=\"px-3 py-2 text-sm text-tertiary hover:text-primary transition-colors duration-150\"\n >\n {tr('notifications.resetFilters', 'Reset')}\n </button>\n )}\n </GlassCard>\n\n {/* Notifications list */}\n <div data-tour=\"notification-center-list\" className=\"space-y-6\">\n {filteredNotifications.length > 0 ? (\n Object.entries(groupedNotifications).map(([group, groupNotifications]) => (\n <div key={group} className=\"animate-in fade-in slide-in-from-bottom-2 duration-200\">\n <h2 className=\"text-sm font-semibold text-tertiary mb-3\">{group}</h2>\n <div className=\"space-y-2\">\n {groupNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n analyticsSource=\"center\"\n />\n ))}\n </div>\n </div>\n ))\n ) : (\n <div className=\"animate-in fade-in duration-200\">\n <IllustratedEmptyState\n illustration={notifications.length === 0 ? 'empty-notifications' : 'empty-search'}\n title={tr('notifications.noNotificationsFound', 'No notifications found')}\n description={\n notifications.length === 0\n ? tr(\n 'notifications.noNotificationsYet',\n \"You don't have any notifications yet. We'll notify you when something important happens.\"\n )\n : tr(\n 'notifications.adjustFilters',\n 'Try adjusting your filters to see more notifications.'\n )\n }\n />\n </div>\n )}\n </div>\n </div>\n );\n}\n"],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