@burdenoff/microfe-notification 2026.624.2 → 2026.625.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/FeatureDisabledPage.js +1 -1
- package/dist/components/FeatureDisabledPage.js.map +1 -1
- package/dist/components/NotificationCard.js +4 -3
- package/dist/components/NotificationCard.js.map +1 -1
- package/dist/components/NotificationPanel.js +2 -2
- package/dist/components/NotificationPanel.js.map +1 -1
- package/dist/pages/CreateNotificationPage.js +473 -471
- package/dist/pages/CreateNotificationPage.js.map +1 -1
- package/dist/pages/NotificationCenterPage.js +83 -80
- package/dist/pages/NotificationCenterPage.js.map +1 -1
- package/dist/pages/NotificationHistoryAdminPage.js +117 -111
- package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
- package/dist/pages/NotificationHistoryPage.js +41 -38
- package/dist/pages/NotificationHistoryPage.js.map +1 -1
- package/dist/pages/NotificationLandingPage.js +1 -1
- package/dist/pages/NotificationLandingPage.js.map +1 -1
- package/dist/pages/NotificationPreferencesPage.js +74 -74
- package/dist/pages/NotificationPreferencesPage.js.map +1 -1
- package/dist/pages/NotificationTemplatesPage.js +96 -94
- package/dist/pages/NotificationTemplatesPage.js.map +1 -1
- package/dist/pages/NotificationTopicsPage.js +58 -56
- package/dist/pages/NotificationTopicsPage.js.map +1 -1
- package/dist/pages/TemplateEditorPage.js +308 -307
- package/dist/pages/TemplateEditorPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,13 +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 { Bell as u,
|
|
12
|
-
import { jsx as
|
|
11
|
+
import { Bell as u, CheckCheck as d, Search as f } from "lucide-react";
|
|
12
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
13
|
+
import { Button as h, EmphasisPanel as g, GlassCard as _ } from "@burdenoff/fe-libs/ui";
|
|
13
14
|
//#region src/pages/NotificationCenterPage.tsx
|
|
14
|
-
var
|
|
15
|
+
var v = {
|
|
15
16
|
archived: !1,
|
|
16
17
|
channel: "IN_APP"
|
|
17
|
-
},
|
|
18
|
+
}, y = { channel: "IN_APP" }, b = [
|
|
18
19
|
{
|
|
19
20
|
value: "SYSTEM",
|
|
20
21
|
labelKey: "notifications.typeSystem",
|
|
@@ -35,7 +36,7 @@ var m = {
|
|
|
35
36
|
labelKey: "notifications.typeMarketing",
|
|
36
37
|
label: "Marketing"
|
|
37
38
|
}
|
|
38
|
-
],
|
|
39
|
+
], x = [
|
|
39
40
|
{
|
|
40
41
|
value: "URGENT",
|
|
41
42
|
labelKey: "notifications.priorityUrgent",
|
|
@@ -57,148 +58,150 @@ var m = {
|
|
|
57
58
|
label: "Low"
|
|
58
59
|
}
|
|
59
60
|
];
|
|
60
|
-
function
|
|
61
|
-
let
|
|
62
|
-
baseFilter:
|
|
63
|
-
unreadFilter:
|
|
64
|
-
}), { topics:
|
|
65
|
-
return
|
|
61
|
+
function S() {
|
|
62
|
+
let S = r(), { hasPermission: C, isLoading: w } = l(), { currentUser: T } = e(), { notifications: E, unreadCount: D, notificationFilter: O, markAsRead: k, markAllAsRead: A, archiveNotification: j, recordAction: M, updateFilter: N, resetFilter: P } = t({
|
|
63
|
+
baseFilter: v,
|
|
64
|
+
unreadFilter: y
|
|
65
|
+
}), { topics: F } = n({ isActive: !0 }), I = c(() => i(E, O), [E, O]), L = c(() => a(I), [I]);
|
|
66
|
+
return w ? /* @__PURE__ */ p("div", {
|
|
66
67
|
className: "flex h-64 items-center justify-center",
|
|
67
|
-
children: /* @__PURE__ */
|
|
68
|
-
}) : !
|
|
68
|
+
children: /* @__PURE__ */ p("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
|
|
69
|
+
}) : !C(s.NOTIFICATION_LIST) && !T?.id ? /* @__PURE__ */ p("div", {
|
|
69
70
|
className: "p-8 text-center text-text-secondary",
|
|
70
|
-
children:
|
|
71
|
-
}) : /* @__PURE__ */
|
|
71
|
+
children: S("notifications.noPermissionView", "You don't have permission to view notifications.")
|
|
72
|
+
}) : /* @__PURE__ */ m("div", {
|
|
72
73
|
className: "space-y-4 sm:space-y-6 p-3 sm:p-6 animate-in fade-in duration-200",
|
|
73
74
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ m(g, {
|
|
75
76
|
"data-tour": "notification-center-header",
|
|
76
|
-
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
77
|
-
children: [/* @__PURE__ */
|
|
77
|
+
className: "flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6",
|
|
78
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
78
79
|
className: "text-xl sm:text-2xl font-bold text-primary",
|
|
79
|
-
children:
|
|
80
|
-
}), /* @__PURE__ */
|
|
80
|
+
children: S("notifications.centerTitle", "Notification Center")
|
|
81
|
+
}), /* @__PURE__ */ p("p", {
|
|
81
82
|
className: "text-sm text-secondary mt-1",
|
|
82
|
-
children:
|
|
83
|
-
})] }),
|
|
83
|
+
children: D > 0 ? `${S("notifications.youHave", "You have")} ${D} ${S("notifications.unreadNotifications", "unread notification")}${D > 1 ? "s" : ""}` : S("notifications.allCaughtUp", "All caught up!")
|
|
84
|
+
})] }), D > 0 && /* @__PURE__ */ m(h, {
|
|
84
85
|
"data-tour": "notification-center-mark-all-read",
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
variant: "outline",
|
|
87
|
+
onClick: A,
|
|
88
|
+
className: "gap-2",
|
|
89
|
+
children: [/* @__PURE__ */ p(d, { size: 16 }), S("notifications.markAllAsRead", "Mark All as Read")]
|
|
88
90
|
})]
|
|
89
91
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ m(_, {
|
|
93
|
+
treatment: "plain",
|
|
91
94
|
"data-tour": "notification-center-filters",
|
|
92
|
-
className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",
|
|
95
|
+
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",
|
|
93
96
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ m("div", {
|
|
95
98
|
className: "relative flex-1",
|
|
96
|
-
children: [/* @__PURE__ */ f
|
|
99
|
+
children: [/* @__PURE__ */ p(f, {
|
|
97
100
|
size: 16,
|
|
98
101
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-tertiary"
|
|
99
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ p("input", {
|
|
100
103
|
"data-tour": "notification-center-search",
|
|
101
104
|
type: "text",
|
|
102
|
-
placeholder:
|
|
103
|
-
value:
|
|
104
|
-
onChange: (e) =>
|
|
105
|
+
placeholder: S("notifications.searchPlaceholder", "Search notifications..."),
|
|
106
|
+
value: O.search,
|
|
107
|
+
onChange: (e) => N({ search: e.target.value }),
|
|
105
108
|
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"
|
|
106
109
|
})]
|
|
107
110
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
value:
|
|
110
|
-
onChange: (e) =>
|
|
111
|
+
/* @__PURE__ */ m("select", {
|
|
112
|
+
value: O.type,
|
|
113
|
+
onChange: (e) => N({ type: e.target.value }),
|
|
111
114
|
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",
|
|
112
|
-
children: [/* @__PURE__ */
|
|
115
|
+
children: [/* @__PURE__ */ p("option", {
|
|
113
116
|
value: "ALL",
|
|
114
|
-
children:
|
|
115
|
-
}),
|
|
117
|
+
children: S("notifications.allTypes", "All Types")
|
|
118
|
+
}), b.map((e) => /* @__PURE__ */ p("option", {
|
|
116
119
|
value: e.value,
|
|
117
|
-
children:
|
|
120
|
+
children: S(e.labelKey, e.label)
|
|
118
121
|
}, e.value))]
|
|
119
122
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
value:
|
|
122
|
-
onChange: (e) =>
|
|
123
|
+
/* @__PURE__ */ m("select", {
|
|
124
|
+
value: O.priority,
|
|
125
|
+
onChange: (e) => N({ priority: e.target.value }),
|
|
123
126
|
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",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ p("option", {
|
|
125
128
|
value: "ALL",
|
|
126
|
-
children:
|
|
127
|
-
}),
|
|
129
|
+
children: S("notifications.allPriorities", "All Priorities")
|
|
130
|
+
}), x.map((e) => /* @__PURE__ */ p("option", {
|
|
128
131
|
value: e.value,
|
|
129
|
-
children:
|
|
132
|
+
children: S(e.labelKey, e.label)
|
|
130
133
|
}, e.value))]
|
|
131
134
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
value:
|
|
134
|
-
onChange: (e) =>
|
|
135
|
+
/* @__PURE__ */ m("select", {
|
|
136
|
+
value: O.topicId || "",
|
|
137
|
+
onChange: (e) => N({ topicId: e.target.value || void 0 }),
|
|
135
138
|
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",
|
|
136
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ p("option", {
|
|
137
140
|
value: "",
|
|
138
|
-
children:
|
|
139
|
-
}),
|
|
141
|
+
children: S("notifications.allTopics", "All Topics")
|
|
142
|
+
}), F.map((e) => /* @__PURE__ */ p("option", {
|
|
140
143
|
value: e.id,
|
|
141
144
|
children: e.name
|
|
142
145
|
}, e.id))]
|
|
143
146
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
value:
|
|
146
|
-
onChange: (e) =>
|
|
147
|
+
/* @__PURE__ */ m("select", {
|
|
148
|
+
value: O.isRead === null ? "ALL" : O.isRead ? "READ" : "UNREAD",
|
|
149
|
+
onChange: (e) => N({ isRead: e.target.value === "ALL" ? null : e.target.value === "READ" }),
|
|
147
150
|
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",
|
|
148
151
|
children: [
|
|
149
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ p("option", {
|
|
150
153
|
value: "ALL",
|
|
151
|
-
children:
|
|
154
|
+
children: S("notifications.filterAll", "All")
|
|
152
155
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ p("option", {
|
|
154
157
|
value: "UNREAD",
|
|
155
|
-
children:
|
|
158
|
+
children: S("notifications.filterUnread", "Unread")
|
|
156
159
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ p("option", {
|
|
158
161
|
value: "READ",
|
|
159
|
-
children:
|
|
162
|
+
children: S("notifications.filterRead", "Read")
|
|
160
163
|
})
|
|
161
164
|
]
|
|
162
165
|
}),
|
|
163
|
-
(
|
|
164
|
-
onClick:
|
|
166
|
+
(O.search || O.type !== "ALL" || O.priority !== "ALL" || O.isRead !== null || !!O.topicId) && /* @__PURE__ */ p("button", {
|
|
167
|
+
onClick: P,
|
|
165
168
|
className: "px-3 py-2 text-sm text-tertiary hover:text-primary transition-colors duration-150",
|
|
166
|
-
children:
|
|
169
|
+
children: S("notifications.resetFilters", "Reset")
|
|
167
170
|
})
|
|
168
171
|
]
|
|
169
172
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ p("div", {
|
|
171
174
|
"data-tour": "notification-center-list",
|
|
172
175
|
className: "space-y-6",
|
|
173
|
-
children:
|
|
176
|
+
children: I.length > 0 ? Object.entries(L).map(([e, t]) => /* @__PURE__ */ m("div", {
|
|
174
177
|
className: "animate-in fade-in slide-in-from-bottom-2 duration-200",
|
|
175
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
176
179
|
className: "text-sm font-semibold text-tertiary mb-3",
|
|
177
180
|
children: e
|
|
178
|
-
}), /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ p("div", {
|
|
179
182
|
className: "space-y-2",
|
|
180
|
-
children: t.map((e) => /* @__PURE__ */
|
|
183
|
+
children: t.map((e) => /* @__PURE__ */ p(o, {
|
|
181
184
|
notification: e,
|
|
182
|
-
onMarkAsRead:
|
|
183
|
-
onArchive:
|
|
184
|
-
onAction:
|
|
185
|
+
onMarkAsRead: k,
|
|
186
|
+
onArchive: j,
|
|
187
|
+
onAction: M,
|
|
185
188
|
analyticsSource: "center"
|
|
186
189
|
}, e.id))
|
|
187
190
|
})]
|
|
188
|
-
}, e)) : /* @__PURE__ */
|
|
191
|
+
}, e)) : /* @__PURE__ */ m("div", {
|
|
189
192
|
className: "flex flex-col items-center justify-center py-12 text-center animate-in fade-in duration-200",
|
|
190
193
|
children: [
|
|
191
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ p(u, {
|
|
192
195
|
size: 48,
|
|
193
196
|
className: "text-tertiary mb-4"
|
|
194
197
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ p("h3", {
|
|
196
199
|
className: "text-lg font-semibold text-primary mb-2",
|
|
197
|
-
children:
|
|
200
|
+
children: S("notifications.noNotificationsFound", "No notifications found")
|
|
198
201
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ p("p", {
|
|
200
203
|
className: "text-sm text-secondary max-w-md",
|
|
201
|
-
children:
|
|
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.")
|
|
202
205
|
})
|
|
203
206
|
]
|
|
204
207
|
})
|
|
@@ -207,6 +210,6 @@ function v() {
|
|
|
207
210
|
});
|
|
208
211
|
}
|
|
209
212
|
//#endregion
|
|
210
|
-
export {
|
|
213
|
+
export { S as NotificationCenterPage };
|
|
211
214
|
|
|
212
215
|
//# 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 } from 'lucide-react';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\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 */}\n <div\n data-tour=\"notification-center-header\"\n className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\"\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 onClick={markAllAsRead}\n className=\"px-4 py-2 text-sm font-medium text-accent-primary hover:text-accent-primary/80 border border-accent-primary hover:border-accent-primary/80 rounded-lg transition-all duration-150 hover:shadow-sm\"\n >\n {tr('notifications.markAllAsRead', 'Mark All as Read')}\n </button>\n )}\n </div>\n\n {/* Filters */}\n <div\n data-tour=\"notification-center-filters\"\n className=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-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 </div>\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":";;;;;;;;;;;;;AAWA,IAAM,IAAgB;CAAE,UAAU;CAAO,SAAS;CAAmB,EAC/D,IAAuB,EAAE,SAAS,UAAU,EAC5C,IAAoF;CACxF;EAAE,OAAO;EAAU,UAAU;EAA4B,OAAO;EAAU;CAC1E;EAAE,OAAO;EAAS,UAAU;EAA2B,OAAO;EAAS;CACvE;EAAE,OAAO;EAAiB,UAAU;EAAmC,OAAO;EAAiB;CAC/F;EAAE,OAAO;EAAa,UAAU;EAA+B,OAAO;EAAa;CACpF,EACK,IAA4F;CAChG;EAAE,OAAO;EAAU,UAAU;EAAgC,OAAO;EAAU;CAC9E;EAAE,OAAO;EAAQ,UAAU;EAA8B,OAAO;EAAQ;CACxE;EAAE,OAAO;EAAU,UAAU;EAAgC,OAAO;EAAU;CAC9E;EAAE,OAAO;EAAO,UAAU;EAA6B,OAAO;EAAO;CACtE;AAOD,SAAgB,IAAyB;CACvC,IAAM,IAAK,GAAO,EACZ,EAAE,kBAAe,WAAW,MAAuB,GAAgB,EACnE,EAAE,mBAAgB,GAAiB,EACnC,EACJ,kBACA,gBACA,uBACA,eACA,kBACA,wBACA,iBACA,iBACA,mBACE,EAAiB;EAAE,YAAY;EAAe,cAAc;EAAsB,CAAC,EACjF,EAAE,cAA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Q,OAAM;kBAAU,EAAG,8BAA8B,SAAS;QAAU,CAAA;OAC5E,kBAAC,UAAD;QAAQ,OAAM;kBAAQ,EAAG,4BAA4B,OAAO;QAAU,CAAA;OAC/D;;MAGP,EAAmB,UACnB,EAAmB,SAAS,SAC5B,EAAmB,aAAa,SAChC,EAAmB,WAAW,QAC9B,EAAQ,EAAmB,YAC3B,kBAAC,UAAD;MACE,SAAS;MACT,WAAU;gBAET,EAAG,8BAA8B,QAAQ;MACnC,CAAA;KAEP;;GAGN,kBAAC,OAAD;IAAK,aAAU;IAA2B,WAAU;cACjD,EAAsB,SAAS,IAC9B,OAAO,QAAQ,EAAqB,CAAC,KAAK,CAAC,GAAO,OAChD,kBAAC,OAAD;KAAiB,WAAU;eAA3B,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, 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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