@burdenoff/microfe-notification 2026.625.1 → 2026.625.2
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 +2 -1
- package/dist/pages/CreateNotificationPage.js.map +1 -1
- package/dist/pages/NotificationCenterPage.js +81 -77
- package/dist/pages/NotificationCenterPage.js.map +1 -1
- package/dist/pages/NotificationHistoryAdminPage.js +96 -95
- package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
- package/dist/pages/NotificationHistoryPage.js +33 -42
- package/dist/pages/NotificationHistoryPage.js.map +1 -1
- package/dist/pages/NotificationTemplatesPage.js +100 -100
- package/dist/pages/NotificationTemplatesPage.js.map +1 -1
- package/dist/pages/NotificationTopicsPage.js +55 -54
- package/dist/pages/NotificationTopicsPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -9,34 +9,34 @@ import { useState as o } from "react";
|
|
|
9
9
|
import { usePermissions as s } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
10
10
|
import { CalendarClock as c, Download as l, RefreshCw as u, Search as d } from "lucide-react";
|
|
11
11
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
12
|
-
import { Button as h, GlassCard as g,
|
|
12
|
+
import { Button as h, GlassCard as g, IllustratedEmptyState as _, ShowMore as v } from "@burdenoff/fe-libs/ui";
|
|
13
13
|
//#region src/pages/NotificationHistoryAdminPage.tsx
|
|
14
|
-
function
|
|
14
|
+
function y(e) {
|
|
15
15
|
return e ? new Date(e).toLocaleString() : "—";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
return
|
|
17
|
+
function b() {
|
|
18
|
+
let b = n(), { hasPermission: x, isLoading: S } = s(), { topics: C } = t(), { filters: w, setFilters: T, notifications: E, scheduledNotifications: D, selectedNotification: O, events: k, isLoading: A, loadNotification: j, archiveNotification: M, unarchiveNotification: N, cancelScheduledNotification: P, rescheduleNotification: F, clearSelection: I } = e(), [L, R] = o("");
|
|
19
|
+
return S ? /* @__PURE__ */ p("div", {
|
|
20
20
|
className: "flex h-64 items-center justify-center",
|
|
21
21
|
children: /* @__PURE__ */ p("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
|
|
22
|
-
}) :
|
|
22
|
+
}) : x(i.NOTIFICATION_LIST) ? /* @__PURE__ */ m("div", {
|
|
23
23
|
className: "space-y-4 sm:space-y-6",
|
|
24
24
|
children: [
|
|
25
25
|
/* @__PURE__ */ m("div", {
|
|
26
26
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
27
27
|
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
28
28
|
className: "text-xl sm:text-2xl font-bold text-primary",
|
|
29
|
-
children:
|
|
29
|
+
children: b("notifications.adminHistoryTitle", "Notification Operations")
|
|
30
30
|
}), /* @__PURE__ */ p("p", {
|
|
31
31
|
className: "text-sm text-secondary mt-1",
|
|
32
|
-
children:
|
|
32
|
+
children: b("notifications.adminHistorySubtitle", "Review sent and scheduled notifications, delivery outcomes, opens, clicks, and user activity.")
|
|
33
33
|
})] }), /* @__PURE__ */ m(h, {
|
|
34
34
|
type: "button",
|
|
35
35
|
variant: "outline",
|
|
36
|
-
onClick: () => a(
|
|
37
|
-
disabled:
|
|
36
|
+
onClick: () => a(b, E),
|
|
37
|
+
disabled: E.length === 0,
|
|
38
38
|
className: "gap-2",
|
|
39
|
-
children: [/* @__PURE__ */ p(l, { size: 16 }),
|
|
39
|
+
children: [/* @__PURE__ */ p(l, { size: 16 }), b("notifications.export", "Export")]
|
|
40
40
|
})]
|
|
41
41
|
}),
|
|
42
42
|
/* @__PURE__ */ m(g, {
|
|
@@ -50,18 +50,18 @@ function y() {
|
|
|
50
50
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-tertiary"
|
|
51
51
|
}), /* @__PURE__ */ p("input", {
|
|
52
52
|
type: "text",
|
|
53
|
-
value:
|
|
54
|
-
onChange: (e) =>
|
|
53
|
+
value: w.search,
|
|
54
|
+
onChange: (e) => T((t) => ({
|
|
55
55
|
...t,
|
|
56
56
|
search: e.target.value
|
|
57
57
|
})),
|
|
58
|
-
placeholder:
|
|
58
|
+
placeholder: b("notifications.searchByTitleOrContent", "Search by title or content..."),
|
|
59
59
|
className: "w-full rounded-md border border-default bg-bg-canvas py-2 pl-9 pr-3 text-sm text-primary focus:outline-none focus:ring-2 focus:ring-accent"
|
|
60
60
|
})]
|
|
61
61
|
}),
|
|
62
62
|
/* @__PURE__ */ m("select", {
|
|
63
|
-
value:
|
|
64
|
-
onChange: (e) =>
|
|
63
|
+
value: w.status,
|
|
64
|
+
onChange: (e) => T((t) => ({
|
|
65
65
|
...t,
|
|
66
66
|
status: e.target.value
|
|
67
67
|
})),
|
|
@@ -69,7 +69,7 @@ function y() {
|
|
|
69
69
|
children: [
|
|
70
70
|
/* @__PURE__ */ p("option", {
|
|
71
71
|
value: "all",
|
|
72
|
-
children:
|
|
72
|
+
children: b("notifications.allStatuses", "All Statuses")
|
|
73
73
|
}),
|
|
74
74
|
/* @__PURE__ */ p("option", {
|
|
75
75
|
value: "PENDING",
|
|
@@ -94,8 +94,8 @@ function y() {
|
|
|
94
94
|
]
|
|
95
95
|
}),
|
|
96
96
|
/* @__PURE__ */ m("select", {
|
|
97
|
-
value:
|
|
98
|
-
onChange: (e) =>
|
|
97
|
+
value: w.channel,
|
|
98
|
+
onChange: (e) => T((t) => ({
|
|
99
99
|
...t,
|
|
100
100
|
channel: e.target.value
|
|
101
101
|
})),
|
|
@@ -103,7 +103,7 @@ function y() {
|
|
|
103
103
|
children: [
|
|
104
104
|
/* @__PURE__ */ p("option", {
|
|
105
105
|
value: "all",
|
|
106
|
-
children:
|
|
106
|
+
children: b("notifications.allChannels", "All Channels")
|
|
107
107
|
}),
|
|
108
108
|
/* @__PURE__ */ p("option", {
|
|
109
109
|
value: "EMAIL",
|
|
@@ -128,8 +128,8 @@ function y() {
|
|
|
128
128
|
]
|
|
129
129
|
}),
|
|
130
130
|
/* @__PURE__ */ m("select", {
|
|
131
|
-
value:
|
|
132
|
-
onChange: (e) =>
|
|
131
|
+
value: w.deliveryStatus,
|
|
132
|
+
onChange: (e) => T((t) => ({
|
|
133
133
|
...t,
|
|
134
134
|
deliveryStatus: e.target.value
|
|
135
135
|
})),
|
|
@@ -137,7 +137,7 @@ function y() {
|
|
|
137
137
|
children: [
|
|
138
138
|
/* @__PURE__ */ p("option", {
|
|
139
139
|
value: "all",
|
|
140
|
-
children:
|
|
140
|
+
children: b("notifications.allDeliveryStates", "All Delivery")
|
|
141
141
|
}),
|
|
142
142
|
/* @__PURE__ */ p("option", {
|
|
143
143
|
value: "DELIVERED",
|
|
@@ -162,23 +162,23 @@ function y() {
|
|
|
162
162
|
]
|
|
163
163
|
}),
|
|
164
164
|
/* @__PURE__ */ m("select", {
|
|
165
|
-
value:
|
|
166
|
-
onChange: (e) =>
|
|
165
|
+
value: w.topicId,
|
|
166
|
+
onChange: (e) => T((t) => ({
|
|
167
167
|
...t,
|
|
168
168
|
topicId: e.target.value
|
|
169
169
|
})),
|
|
170
170
|
className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary",
|
|
171
171
|
children: [/* @__PURE__ */ p("option", {
|
|
172
172
|
value: "",
|
|
173
|
-
children:
|
|
174
|
-
}),
|
|
173
|
+
children: b("notifications.allTopics", "All Topics")
|
|
174
|
+
}), C.map((e) => /* @__PURE__ */ p("option", {
|
|
175
175
|
value: e.id,
|
|
176
176
|
children: e.name
|
|
177
177
|
}, e.id))]
|
|
178
178
|
}),
|
|
179
179
|
/* @__PURE__ */ m("select", {
|
|
180
|
-
value:
|
|
181
|
-
onChange: (e) =>
|
|
180
|
+
value: w.archived,
|
|
181
|
+
onChange: (e) => T((t) => ({
|
|
182
182
|
...t,
|
|
183
183
|
archived: e.target.value
|
|
184
184
|
})),
|
|
@@ -186,15 +186,15 @@ function y() {
|
|
|
186
186
|
children: [
|
|
187
187
|
/* @__PURE__ */ p("option", {
|
|
188
188
|
value: "all",
|
|
189
|
-
children:
|
|
189
|
+
children: b("notifications.activeAndArchived", "Active + Archived")
|
|
190
190
|
}),
|
|
191
191
|
/* @__PURE__ */ p("option", {
|
|
192
192
|
value: "active",
|
|
193
|
-
children:
|
|
193
|
+
children: b("notifications.activeOnly", "Active Only")
|
|
194
194
|
}),
|
|
195
195
|
/* @__PURE__ */ p("option", {
|
|
196
196
|
value: "archived",
|
|
197
|
-
children:
|
|
197
|
+
children: b("notifications.archivedOnly", "Archived Only")
|
|
198
198
|
})
|
|
199
199
|
]
|
|
200
200
|
})
|
|
@@ -210,26 +210,27 @@ function y() {
|
|
|
210
210
|
className: "mb-4 flex items-center justify-between",
|
|
211
211
|
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
212
212
|
className: "text-base font-semibold text-primary",
|
|
213
|
-
children:
|
|
213
|
+
children: b("notifications.sentNotifications", "Notifications")
|
|
214
214
|
}), /* @__PURE__ */ m("p", {
|
|
215
215
|
className: "text-sm text-secondary",
|
|
216
216
|
children: [
|
|
217
|
-
|
|
217
|
+
E.length,
|
|
218
218
|
" ",
|
|
219
|
-
|
|
219
|
+
b("notifications.resultsFoundShort", "results")
|
|
220
220
|
]
|
|
221
|
-
})] }),
|
|
221
|
+
})] }), A && /* @__PURE__ */ p(u, {
|
|
222
222
|
size: 16,
|
|
223
223
|
className: "animate-spin text-tertiary"
|
|
224
224
|
})]
|
|
225
225
|
}), /* @__PURE__ */ p("div", {
|
|
226
226
|
className: "space-y-3",
|
|
227
|
-
children:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
227
|
+
children: E.length === 0 ? /* @__PURE__ */ p(_, {
|
|
228
|
+
illustration: "empty-search",
|
|
229
|
+
title: b("notifications.noNotificationsFound", "No notifications found"),
|
|
230
|
+
description: b("notifications.adjustSearchOrDateRange", "Try adjusting your filters")
|
|
231
|
+
}) : E.map((e) => /* @__PURE__ */ p("button", {
|
|
231
232
|
type: "button",
|
|
232
|
-
onClick: () =>
|
|
233
|
+
onClick: () => j(e.id),
|
|
233
234
|
className: "block w-full text-left",
|
|
234
235
|
children: /* @__PURE__ */ p(r, {
|
|
235
236
|
notification: e,
|
|
@@ -248,14 +249,14 @@ function y() {
|
|
|
248
249
|
className: "text-accent-primary"
|
|
249
250
|
}), /* @__PURE__ */ p("h2", {
|
|
250
251
|
className: "text-base font-semibold text-primary",
|
|
251
|
-
children:
|
|
252
|
+
children: b("notifications.scheduledNotifications", "Scheduled Notifications")
|
|
252
253
|
})]
|
|
253
254
|
}), /* @__PURE__ */ p("div", {
|
|
254
255
|
className: "space-y-3",
|
|
255
|
-
children:
|
|
256
|
+
children: D.length === 0 ? /* @__PURE__ */ p("div", {
|
|
256
257
|
className: "rounded-md border border-dashed border-default p-6 text-sm text-secondary",
|
|
257
|
-
children:
|
|
258
|
-
}) :
|
|
258
|
+
children: b("notifications.noScheduledNotifications", "No scheduled notifications")
|
|
259
|
+
}) : D.map((e) => /* @__PURE__ */ p("div", {
|
|
259
260
|
className: "rounded-md border border-default bg-bg-canvas p-4",
|
|
260
261
|
children: /* @__PURE__ */ m("div", {
|
|
261
262
|
className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
@@ -270,20 +271,20 @@ function y() {
|
|
|
270
271
|
e.notification.type,
|
|
271
272
|
" •",
|
|
272
273
|
" ",
|
|
273
|
-
|
|
274
|
+
y(e.scheduledFor)
|
|
274
275
|
]
|
|
275
276
|
})] }), /* @__PURE__ */ m("div", {
|
|
276
277
|
className: "flex items-center gap-2",
|
|
277
278
|
children: [/* @__PURE__ */ p("button", {
|
|
278
279
|
type: "button",
|
|
279
|
-
onClick: () =>
|
|
280
|
+
onClick: () => j(e.notification.id),
|
|
280
281
|
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
|
|
281
|
-
children:
|
|
282
|
+
children: b("notifications.view", "View")
|
|
282
283
|
}), e.status === "PENDING" && /* @__PURE__ */ p("button", {
|
|
283
284
|
type: "button",
|
|
284
|
-
onClick: () =>
|
|
285
|
+
onClick: () => P(e.id),
|
|
285
286
|
className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
|
|
286
|
-
children:
|
|
287
|
+
children: b("notifications.cancel", "Cancel")
|
|
287
288
|
})]
|
|
288
289
|
})]
|
|
289
290
|
})
|
|
@@ -292,22 +293,22 @@ function y() {
|
|
|
292
293
|
})]
|
|
293
294
|
}), /* @__PURE__ */ p("aside", {
|
|
294
295
|
className: "rounded-lg border border-border-seam bg-gloss-card p-4 xl:sticky xl:top-4 xl:max-h-[calc(100vh-2rem)] xl:self-start xl:overflow-y-auto",
|
|
295
|
-
children:
|
|
296
|
+
children: O ? /* @__PURE__ */ m("div", {
|
|
296
297
|
className: "space-y-4",
|
|
297
298
|
children: [
|
|
298
299
|
/* @__PURE__ */ m("div", {
|
|
299
300
|
className: "flex items-start justify-between gap-3",
|
|
300
301
|
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
301
302
|
className: "text-lg font-semibold text-primary",
|
|
302
|
-
children:
|
|
303
|
+
children: O.title
|
|
303
304
|
}), /* @__PURE__ */ p("p", {
|
|
304
305
|
className: "text-sm text-secondary",
|
|
305
|
-
children:
|
|
306
|
+
children: O.body
|
|
306
307
|
})] }), /* @__PURE__ */ p("button", {
|
|
307
308
|
type: "button",
|
|
308
|
-
onClick:
|
|
309
|
+
onClick: I,
|
|
309
310
|
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
|
|
310
|
-
children:
|
|
311
|
+
children: b("notifications.close", "Close")
|
|
311
312
|
})]
|
|
312
313
|
}),
|
|
313
314
|
/* @__PURE__ */ m("div", {
|
|
@@ -316,63 +317,63 @@ function y() {
|
|
|
316
317
|
/* @__PURE__ */ m("div", { children: [
|
|
317
318
|
/* @__PURE__ */ p("strong", { children: "Status:" }),
|
|
318
319
|
" ",
|
|
319
|
-
|
|
320
|
+
O.status
|
|
320
321
|
] }),
|
|
321
322
|
/* @__PURE__ */ m("div", { children: [
|
|
322
323
|
/* @__PURE__ */ p("strong", { children: "Delivery:" }),
|
|
323
324
|
" ",
|
|
324
|
-
|
|
325
|
+
O.deliveryStatus || "—"
|
|
325
326
|
] }),
|
|
326
327
|
/* @__PURE__ */ m("div", { children: [
|
|
327
328
|
/* @__PURE__ */ p("strong", { children: "Topic:" }),
|
|
328
329
|
" ",
|
|
329
|
-
|
|
330
|
+
O.topic?.name || "—"
|
|
330
331
|
] }),
|
|
331
332
|
/* @__PURE__ */ m("div", { children: [
|
|
332
333
|
/* @__PURE__ */ p("strong", { children: "Created:" }),
|
|
333
334
|
" ",
|
|
334
|
-
|
|
335
|
+
y(O.createdAt)
|
|
335
336
|
] }),
|
|
336
337
|
/* @__PURE__ */ m("div", { children: [
|
|
337
338
|
/* @__PURE__ */ p("strong", { children: "Sent:" }),
|
|
338
339
|
" ",
|
|
339
|
-
|
|
340
|
+
y(O.sentAt)
|
|
340
341
|
] }),
|
|
341
342
|
/* @__PURE__ */ m("div", { children: [
|
|
342
343
|
/* @__PURE__ */ p("strong", { children: "Delivered:" }),
|
|
343
344
|
" ",
|
|
344
|
-
|
|
345
|
+
y(O.deliveredAt)
|
|
345
346
|
] }),
|
|
346
347
|
/* @__PURE__ */ m("div", { children: [
|
|
347
348
|
/* @__PURE__ */ p("strong", { children: "Opened:" }),
|
|
348
349
|
" ",
|
|
349
|
-
|
|
350
|
+
y(O.openedAt)
|
|
350
351
|
] }),
|
|
351
352
|
/* @__PURE__ */ m("div", { children: [
|
|
352
353
|
/* @__PURE__ */ p("strong", { children: "Clicked:" }),
|
|
353
354
|
" ",
|
|
354
|
-
|
|
355
|
+
y(O.clickedAt)
|
|
355
356
|
] }),
|
|
356
357
|
/* @__PURE__ */ m("div", { children: [
|
|
357
358
|
/* @__PURE__ */ p("strong", { children: "Read:" }),
|
|
358
359
|
" ",
|
|
359
|
-
|
|
360
|
+
y(O.readAt)
|
|
360
361
|
] }),
|
|
361
362
|
/* @__PURE__ */ m("div", { children: [
|
|
362
363
|
/* @__PURE__ */ p("strong", { children: "Recipient:" }),
|
|
363
364
|
" ",
|
|
364
|
-
|
|
365
|
+
O.recipientEmail || O.recipientPhone || O.id
|
|
365
366
|
] })
|
|
366
367
|
]
|
|
367
368
|
}),
|
|
368
|
-
|
|
369
|
+
O.media.length > 0 && /* @__PURE__ */ m("div", {
|
|
369
370
|
className: "space-y-2",
|
|
370
371
|
children: [/* @__PURE__ */ p("h3", {
|
|
371
372
|
className: "text-sm font-semibold text-primary",
|
|
372
|
-
children:
|
|
373
|
+
children: b("notifications.media", "Media")
|
|
373
374
|
}), /* @__PURE__ */ p("div", {
|
|
374
375
|
className: "grid gap-3",
|
|
375
|
-
children:
|
|
376
|
+
children: O.media.map((e) => /* @__PURE__ */ p("a", {
|
|
376
377
|
href: e.url,
|
|
377
378
|
target: "_blank",
|
|
378
379
|
rel: "noreferrer",
|
|
@@ -381,14 +382,14 @@ function y() {
|
|
|
381
382
|
}, e.url))
|
|
382
383
|
})]
|
|
383
384
|
}),
|
|
384
|
-
|
|
385
|
+
O.actions.length > 0 && /* @__PURE__ */ m("div", {
|
|
385
386
|
className: "space-y-2",
|
|
386
387
|
children: [/* @__PURE__ */ p("h3", {
|
|
387
388
|
className: "text-sm font-semibold text-primary",
|
|
388
|
-
children:
|
|
389
|
+
children: b("notifications.actions", "Actions")
|
|
389
390
|
}), /* @__PURE__ */ p("div", {
|
|
390
391
|
className: "grid gap-2",
|
|
391
|
-
children:
|
|
392
|
+
children: O.actions.map((e) => /* @__PURE__ */ m("div", {
|
|
392
393
|
className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary",
|
|
393
394
|
children: [/* @__PURE__ */ p("div", {
|
|
394
395
|
className: "font-medium text-primary",
|
|
@@ -400,72 +401,72 @@ function y() {
|
|
|
400
401
|
}, e.id))
|
|
401
402
|
})]
|
|
402
403
|
}),
|
|
403
|
-
|
|
404
|
+
O.scheduledNotification && /* @__PURE__ */ m("div", {
|
|
404
405
|
className: "space-y-3 rounded-md border border-default bg-bg-canvas p-3",
|
|
405
406
|
children: [
|
|
406
407
|
/* @__PURE__ */ p("div", {
|
|
407
408
|
className: "text-sm font-semibold text-primary",
|
|
408
|
-
children:
|
|
409
|
+
children: b("notifications.scheduling", "Scheduling")
|
|
409
410
|
}),
|
|
410
411
|
/* @__PURE__ */ p("div", {
|
|
411
412
|
className: "text-sm text-secondary",
|
|
412
|
-
children:
|
|
413
|
+
children: y(O.scheduledNotification.scheduledFor)
|
|
413
414
|
}),
|
|
414
|
-
|
|
415
|
+
O.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
|
|
415
416
|
type: "datetime-local",
|
|
416
|
-
value:
|
|
417
|
-
onChange: (e) =>
|
|
417
|
+
value: L,
|
|
418
|
+
onChange: (e) => R(e.target.value),
|
|
418
419
|
className: "w-full rounded-md border border-default bg-surface px-3 py-2 text-sm text-primary"
|
|
419
420
|
}), /* @__PURE__ */ m("div", {
|
|
420
421
|
className: "flex items-center gap-2",
|
|
421
422
|
children: [/* @__PURE__ */ p("button", {
|
|
422
423
|
type: "button",
|
|
423
|
-
onClick: () =>
|
|
424
|
+
onClick: () => L && F(O.scheduledNotification.id, new Date(L).toISOString()),
|
|
424
425
|
className: "rounded-md bg-accent-primary px-3 py-2 text-xs font-medium text-text-inverse hover:opacity-90",
|
|
425
|
-
children:
|
|
426
|
+
children: b("notifications.reschedule", "Reschedule")
|
|
426
427
|
}), /* @__PURE__ */ p("button", {
|
|
427
428
|
type: "button",
|
|
428
|
-
onClick: () =>
|
|
429
|
+
onClick: () => P(O.scheduledNotification.id),
|
|
429
430
|
className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
|
|
430
|
-
children:
|
|
431
|
+
children: b("notifications.cancel", "Cancel")
|
|
431
432
|
})]
|
|
432
433
|
})] })
|
|
433
434
|
]
|
|
434
435
|
}),
|
|
435
436
|
/* @__PURE__ */ p("div", {
|
|
436
437
|
className: "flex items-center gap-2",
|
|
437
|
-
children:
|
|
438
|
+
children: O.archivedAt ? /* @__PURE__ */ p("button", {
|
|
438
439
|
type: "button",
|
|
439
|
-
onClick: () =>
|
|
440
|
+
onClick: () => N(O.id),
|
|
440
441
|
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
|
|
441
|
-
children:
|
|
442
|
+
children: b("notifications.restore", "Restore")
|
|
442
443
|
}) : /* @__PURE__ */ p("button", {
|
|
443
444
|
type: "button",
|
|
444
|
-
onClick: () =>
|
|
445
|
+
onClick: () => M(O.id),
|
|
445
446
|
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-bg-sunken",
|
|
446
|
-
children:
|
|
447
|
+
children: b("notifications.archive", "Archive")
|
|
447
448
|
})
|
|
448
449
|
}),
|
|
449
450
|
/* @__PURE__ */ m("div", {
|
|
450
451
|
className: "space-y-2",
|
|
451
452
|
children: [/* @__PURE__ */ p("h3", {
|
|
452
453
|
className: "text-sm font-semibold text-primary",
|
|
453
|
-
children:
|
|
454
|
-
}),
|
|
454
|
+
children: b("notifications.eventTimeline", "Event Timeline")
|
|
455
|
+
}), k.length === 0 ? /* @__PURE__ */ p("div", {
|
|
455
456
|
className: "rounded-md border border-dashed border-border-seam p-4 text-sm text-secondary",
|
|
456
|
-
children:
|
|
457
|
-
}) : /* @__PURE__ */ p(
|
|
457
|
+
children: b("notifications.noEvents", "No events recorded yet.")
|
|
458
|
+
}) : /* @__PURE__ */ p(v, {
|
|
458
459
|
collapsedHeight: 180,
|
|
459
460
|
children: /* @__PURE__ */ p("div", {
|
|
460
461
|
className: "space-y-2",
|
|
461
|
-
children:
|
|
462
|
+
children: k.map((e) => /* @__PURE__ */ m("div", {
|
|
462
463
|
className: "rounded-md border border-border-seam bg-surface p-3 text-sm text-secondary",
|
|
463
464
|
children: [
|
|
464
465
|
/* @__PURE__ */ p("div", {
|
|
465
466
|
className: "font-medium text-primary",
|
|
466
467
|
children: e.eventType
|
|
467
468
|
}),
|
|
468
|
-
/* @__PURE__ */ p("div", { children:
|
|
469
|
+
/* @__PURE__ */ p("div", { children: y(e.timestamp) }),
|
|
469
470
|
e.deliveryStatus && /* @__PURE__ */ m("div", { children: ["Delivery: ", e.deliveryStatus] })
|
|
470
471
|
]
|
|
471
472
|
}, e.id))
|
|
@@ -475,17 +476,17 @@ function y() {
|
|
|
475
476
|
]
|
|
476
477
|
}) : /* @__PURE__ */ p("div", {
|
|
477
478
|
className: "flex h-full min-h-[360px] items-center justify-center rounded-md border border-dashed border-default p-6 text-center text-sm text-secondary",
|
|
478
|
-
children:
|
|
479
|
+
children: b("notifications.selectNotificationForDetails", "Select a notification to inspect details, delivery receipts, and activity.")
|
|
479
480
|
})
|
|
480
481
|
})]
|
|
481
482
|
})
|
|
482
483
|
]
|
|
483
484
|
}) : /* @__PURE__ */ p("div", {
|
|
484
485
|
className: "p-8 text-center text-text-secondary",
|
|
485
|
-
children:
|
|
486
|
+
children: b("notifications.noPermissionHistory", "You don't have permission to view notification history.")
|
|
486
487
|
});
|
|
487
488
|
}
|
|
488
489
|
//#endregion
|
|
489
|
-
export {
|
|
490
|
+
export { b as NotificationHistoryAdminPage };
|
|
490
491
|
|
|
491
492
|
//# sourceMappingURL=NotificationHistoryAdminPage.js.map
|