@burdenoff/microfe-notification 2026.424.101
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/README.md +376 -0
- package/dist/AdminNotificationRoot.d.ts +35 -0
- package/dist/AdminNotificationRoot.d.ts.map +1 -0
- package/dist/AdminNotificationRoot.js +81 -0
- package/dist/AdminNotificationRoot.js.map +1 -0
- package/dist/AdminNotificationRoutes.d.ts +2 -0
- package/dist/AdminNotificationRoutes.d.ts.map +1 -0
- package/dist/AdminNotificationRoutes.js +108 -0
- package/dist/AdminNotificationRoutes.js.map +1 -0
- package/dist/NotificationRoot.d.ts +31 -0
- package/dist/NotificationRoot.d.ts.map +1 -0
- package/dist/NotificationRoot.js +81 -0
- package/dist/NotificationRoot.js.map +1 -0
- package/dist/NotificationRoutes.d.ts +17 -0
- package/dist/NotificationRoutes.d.ts.map +1 -0
- package/dist/NotificationRoutes.js +67 -0
- package/dist/NotificationRoutes.js.map +1 -0
- package/dist/UserNotificationRoot.d.ts +34 -0
- package/dist/UserNotificationRoot.d.ts.map +1 -0
- package/dist/UserNotificationRoot.js +64 -0
- package/dist/UserNotificationRoot.js.map +1 -0
- package/dist/UserNotificationRoutes.d.ts +15 -0
- package/dist/UserNotificationRoutes.d.ts.map +1 -0
- package/dist/UserNotificationRoutes.js +52 -0
- package/dist/UserNotificationRoutes.js.map +1 -0
- package/dist/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/components/NotificationBell.d.ts +14 -0
- package/dist/components/NotificationBell.d.ts.map +1 -0
- package/dist/components/NotificationBell.js +47 -0
- package/dist/components/NotificationBell.js.map +1 -0
- package/dist/components/NotificationCard.d.ts +19 -0
- package/dist/components/NotificationCard.d.ts.map +1 -0
- package/dist/components/NotificationCard.js +112 -0
- package/dist/components/NotificationCard.js.map +1 -0
- package/dist/components/NotificationPanel.d.ts +11 -0
- package/dist/components/NotificationPanel.d.ts.map +1 -0
- package/dist/components/NotificationPanel.js +100 -0
- package/dist/components/NotificationPanel.js.map +1 -0
- package/dist/components/RecipientSelector.d.ts +34 -0
- package/dist/components/RecipientSelector.d.ts.map +1 -0
- package/dist/components/RecipientSelector.js +212 -0
- package/dist/components/RecipientSelector.js.map +1 -0
- package/dist/components/TemplatePreview.d.ts +22 -0
- package/dist/components/TemplatePreview.d.ts.map +1 -0
- package/dist/components/TemplatePreview.js +425 -0
- package/dist/components/TemplatePreview.js.map +1 -0
- package/dist/components/VariableInserter.d.ts +12 -0
- package/dist/components/VariableInserter.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +3 -0
- package/dist/constants/permissions.d.ts +24 -0
- package/dist/constants/permissions.d.ts.map +1 -0
- package/dist/constants/permissions.js +17 -0
- package/dist/constants/permissions.js.map +1 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +1408 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +514 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +20773 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +53363 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/graphql/global-client.d.ts +19 -0
- package/dist/graphql/global-client.d.ts.map +1 -0
- package/dist/graphql/global-client.js +57 -0
- package/dist/graphql/global-client.js.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +5 -0
- package/dist/hooks/useNotificationAdmin.d.ts +51 -0
- package/dist/hooks/useNotificationAdmin.d.ts.map +1 -0
- package/dist/hooks/useNotificationAdmin.js +203 -0
- package/dist/hooks/useNotificationAdmin.js.map +1 -0
- package/dist/hooks/useNotificationTemplates.d.ts +136 -0
- package/dist/hooks/useNotificationTemplates.d.ts.map +1 -0
- package/dist/hooks/useNotificationTemplates.js +168 -0
- package/dist/hooks/useNotificationTemplates.js.map +1 -0
- package/dist/hooks/useNotificationTopics.d.ts +36 -0
- package/dist/hooks/useNotificationTopics.d.ts.map +1 -0
- package/dist/hooks/useNotificationTopics.js +127 -0
- package/dist/hooks/useNotificationTopics.js.map +1 -0
- package/dist/hooks/useNotifications.d.ts +36 -0
- package/dist/hooks/useNotifications.d.ts.map +1 -0
- package/dist/hooks/useNotifications.js +289 -0
- package/dist/hooks/useNotifications.js.map +1 -0
- package/dist/hooks/useSendNotification.d.ts +159 -0
- package/dist/hooks/useSendNotification.d.ts.map +1 -0
- package/dist/hooks/useSendNotification.js +123 -0
- package/dist/hooks/useSendNotification.js.map +1 -0
- package/dist/hooks/useUserSearch.d.ts +27 -0
- package/dist/hooks/useUserSearch.d.ts.map +1 -0
- package/dist/hooks/useUserSearch.js +76 -0
- package/dist/hooks/useUserSearch.js.map +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/pages/CreateNotificationPage.d.ts +6 -0
- package/dist/pages/CreateNotificationPage.d.ts.map +1 -0
- package/dist/pages/CreateNotificationPage.js +1366 -0
- package/dist/pages/CreateNotificationPage.js.map +1 -0
- package/dist/pages/NotificationCenterPage.d.ts +7 -0
- package/dist/pages/NotificationCenterPage.d.ts.map +1 -0
- package/dist/pages/NotificationCenterPage.js +203 -0
- package/dist/pages/NotificationCenterPage.js.map +1 -0
- package/dist/pages/NotificationHistoryAdminPage.d.ts +3 -0
- package/dist/pages/NotificationHistoryAdminPage.d.ts.map +1 -0
- package/dist/pages/NotificationHistoryAdminPage.js +484 -0
- package/dist/pages/NotificationHistoryAdminPage.js.map +1 -0
- package/dist/pages/NotificationHistoryPage.d.ts +3 -0
- package/dist/pages/NotificationHistoryPage.d.ts.map +1 -0
- package/dist/pages/NotificationHistoryPage.js +136 -0
- package/dist/pages/NotificationHistoryPage.js.map +1 -0
- package/dist/pages/NotificationLandingPage.d.ts +11 -0
- package/dist/pages/NotificationLandingPage.d.ts.map +1 -0
- package/dist/pages/NotificationLandingPage.js +85 -0
- package/dist/pages/NotificationLandingPage.js.map +1 -0
- package/dist/pages/NotificationPreferencesPage.d.ts +2 -0
- package/dist/pages/NotificationPreferencesPage.d.ts.map +1 -0
- package/dist/pages/NotificationPreferencesPage.js +108 -0
- package/dist/pages/NotificationPreferencesPage.js.map +1 -0
- package/dist/pages/NotificationTemplatesPage.d.ts +8 -0
- package/dist/pages/NotificationTemplatesPage.d.ts.map +1 -0
- package/dist/pages/NotificationTemplatesPage.js +310 -0
- package/dist/pages/NotificationTemplatesPage.js.map +1 -0
- package/dist/pages/NotificationTopicsPage.d.ts +2 -0
- package/dist/pages/NotificationTopicsPage.d.ts.map +1 -0
- package/dist/pages/NotificationTopicsPage.js +254 -0
- package/dist/pages/NotificationTopicsPage.js.map +1 -0
- package/dist/pages/TemplateEditorPage.d.ts +13 -0
- package/dist/pages/TemplateEditorPage.d.ts.map +1 -0
- package/dist/pages/TemplateEditorPage.js +790 -0
- package/dist/pages/TemplateEditorPage.js.map +1 -0
- package/dist/providers/NotificationProvider.d.ts +19 -0
- package/dist/providers/NotificationProvider.d.ts.map +1 -0
- package/dist/providers/NotificationProvider.js +35 -0
- package/dist/providers/NotificationProvider.js.map +1 -0
- package/dist/shared/hooks/useTr.d.ts +14 -0
- package/dist/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/shared/hooks/useTr.js +14 -0
- package/dist/shared/hooks/useTr.js.map +1 -0
- package/dist/store/notificationStore.d.ts +32 -0
- package/dist/store/notificationStore.d.ts.map +1 -0
- package/dist/store/notificationStore.js +124 -0
- package/dist/store/notificationStore.js.map +1 -0
- package/dist/types/index.d.ts +215 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/index.d.ts +68 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +122 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/notificationHistoryExport.d.ts +13 -0
- package/dist/utils/notificationHistoryExport.d.ts.map +1 -0
- package/dist/utils/notificationHistoryExport.js +29 -0
- package/dist/utils/notificationHistoryExport.js.map +1 -0
- package/package.json +115 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
import { useNotificationAdmin as e } from "../hooks/useNotificationAdmin.js";
|
|
2
|
+
import { useNotificationTopics as t } from "../hooks/useNotificationTopics.js";
|
|
3
|
+
import "../hooks/index.js";
|
|
4
|
+
import { useTr as n } from "../shared/hooks/useTr.js";
|
|
5
|
+
import { NotificationCard as r } from "../components/NotificationCard.js";
|
|
6
|
+
import { NOTIFICATION_PERMISSIONS as i } from "../constants/permissions.js";
|
|
7
|
+
import { exportNotificationsAsCsv as a } from "../utils/notificationHistoryExport.js";
|
|
8
|
+
import { useState as o } from "react";
|
|
9
|
+
import { CalendarClock as s, Download as c, RefreshCw as l, Search as u } from "lucide-react";
|
|
10
|
+
import { usePermissions as d } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
11
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
12
|
+
//#region src/pages/NotificationHistoryAdminPage.tsx
|
|
13
|
+
function h(e) {
|
|
14
|
+
return e ? new Date(e).toLocaleString() : "—";
|
|
15
|
+
}
|
|
16
|
+
function g() {
|
|
17
|
+
let g = n(), { hasPermission: _, isLoading: v } = d(), { topics: y } = t(), { filters: b, setFilters: x, notifications: S, scheduledNotifications: C, selectedNotification: w, events: T, isLoading: E, loadNotification: D, archiveNotification: O, unarchiveNotification: k, cancelScheduledNotification: A, rescheduleNotification: j, clearSelection: M } = e(), [N, P] = o("");
|
|
18
|
+
return v ? /* @__PURE__ */ p("div", {
|
|
19
|
+
className: "flex h-64 items-center justify-center",
|
|
20
|
+
children: /* @__PURE__ */ p("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
|
|
21
|
+
}) : _(i.NOTIFICATION_LIST) ? /* @__PURE__ */ m("div", {
|
|
22
|
+
className: "space-y-4 sm:space-y-6",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ m("div", {
|
|
25
|
+
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
26
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
27
|
+
className: "text-xl sm:text-2xl font-bold text-primary",
|
|
28
|
+
children: g("notifications.adminHistoryTitle", "Notification Operations")
|
|
29
|
+
}), /* @__PURE__ */ p("p", {
|
|
30
|
+
className: "text-sm text-secondary mt-1",
|
|
31
|
+
children: g("notifications.adminHistorySubtitle", "Review sent and scheduled notifications, delivery outcomes, opens, clicks, and user activity.")
|
|
32
|
+
})] }), /* @__PURE__ */ m("button", {
|
|
33
|
+
type: "button",
|
|
34
|
+
onClick: () => a(g, S),
|
|
35
|
+
disabled: S.length === 0,
|
|
36
|
+
className: "inline-flex items-center gap-2 rounded-md border border-default px-4 py-2 text-sm text-secondary hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed",
|
|
37
|
+
children: [/* @__PURE__ */ p(c, { size: 16 }), g("notifications.export", "Export")]
|
|
38
|
+
})]
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ m("div", {
|
|
41
|
+
className: "grid gap-3 rounded-lg border border-default bg-surface p-4 lg:grid-cols-6",
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ m("label", {
|
|
44
|
+
className: "relative lg:col-span-2",
|
|
45
|
+
children: [/* @__PURE__ */ p(u, {
|
|
46
|
+
size: 16,
|
|
47
|
+
className: "absolute left-3 top-1/2 -translate-y-1/2 text-tertiary"
|
|
48
|
+
}), /* @__PURE__ */ p("input", {
|
|
49
|
+
type: "text",
|
|
50
|
+
value: b.search,
|
|
51
|
+
onChange: (e) => x((t) => ({
|
|
52
|
+
...t,
|
|
53
|
+
search: e.target.value
|
|
54
|
+
})),
|
|
55
|
+
placeholder: g("notifications.searchByTitleOrContent", "Search by title or content..."),
|
|
56
|
+
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"
|
|
57
|
+
})]
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ m("select", {
|
|
60
|
+
value: b.status,
|
|
61
|
+
onChange: (e) => x((t) => ({
|
|
62
|
+
...t,
|
|
63
|
+
status: e.target.value
|
|
64
|
+
})),
|
|
65
|
+
className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary",
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ p("option", {
|
|
68
|
+
value: "all",
|
|
69
|
+
children: g("notifications.allStatuses", "All Statuses")
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ p("option", {
|
|
72
|
+
value: "PENDING",
|
|
73
|
+
children: "PENDING"
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ p("option", {
|
|
76
|
+
value: "TRIGGERED",
|
|
77
|
+
children: "TRIGGERED"
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ p("option", {
|
|
80
|
+
value: "SENT",
|
|
81
|
+
children: "SENT"
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ p("option", {
|
|
84
|
+
value: "FAILED",
|
|
85
|
+
children: "FAILED"
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ p("option", {
|
|
88
|
+
value: "CANCELLED",
|
|
89
|
+
children: "CANCELLED"
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ m("select", {
|
|
94
|
+
value: b.channel,
|
|
95
|
+
onChange: (e) => x((t) => ({
|
|
96
|
+
...t,
|
|
97
|
+
channel: e.target.value
|
|
98
|
+
})),
|
|
99
|
+
className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary",
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ p("option", {
|
|
102
|
+
value: "all",
|
|
103
|
+
children: g("notifications.allChannels", "All Channels")
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ p("option", {
|
|
106
|
+
value: "EMAIL",
|
|
107
|
+
children: "EMAIL"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ p("option", {
|
|
110
|
+
value: "SMS",
|
|
111
|
+
children: "SMS"
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ p("option", {
|
|
114
|
+
value: "PUSH",
|
|
115
|
+
children: "PUSH"
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ p("option", {
|
|
118
|
+
value: "WHATSAPP",
|
|
119
|
+
children: "WHATSAPP"
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ p("option", {
|
|
122
|
+
value: "IN_APP",
|
|
123
|
+
children: "IN_APP"
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ m("select", {
|
|
128
|
+
value: b.deliveryStatus,
|
|
129
|
+
onChange: (e) => x((t) => ({
|
|
130
|
+
...t,
|
|
131
|
+
deliveryStatus: e.target.value
|
|
132
|
+
})),
|
|
133
|
+
className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary",
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ p("option", {
|
|
136
|
+
value: "all",
|
|
137
|
+
children: g("notifications.allDeliveryStates", "All Delivery")
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ p("option", {
|
|
140
|
+
value: "DELIVERED",
|
|
141
|
+
children: "DELIVERED"
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ p("option", {
|
|
144
|
+
value: "OPENED",
|
|
145
|
+
children: "OPENED"
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ p("option", {
|
|
148
|
+
value: "CLICKED",
|
|
149
|
+
children: "CLICKED"
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ p("option", {
|
|
152
|
+
value: "FAILED",
|
|
153
|
+
children: "FAILED"
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ p("option", {
|
|
156
|
+
value: "UNSUBSCRIBED",
|
|
157
|
+
children: "UNSUBSCRIBED"
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ m("select", {
|
|
162
|
+
value: b.topicId,
|
|
163
|
+
onChange: (e) => x((t) => ({
|
|
164
|
+
...t,
|
|
165
|
+
topicId: e.target.value
|
|
166
|
+
})),
|
|
167
|
+
className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary",
|
|
168
|
+
children: [/* @__PURE__ */ p("option", {
|
|
169
|
+
value: "",
|
|
170
|
+
children: g("notifications.allTopics", "All Topics")
|
|
171
|
+
}), y.map((e) => /* @__PURE__ */ p("option", {
|
|
172
|
+
value: e.id,
|
|
173
|
+
children: e.name
|
|
174
|
+
}, e.id))]
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ m("select", {
|
|
177
|
+
value: b.archived,
|
|
178
|
+
onChange: (e) => x((t) => ({
|
|
179
|
+
...t,
|
|
180
|
+
archived: e.target.value
|
|
181
|
+
})),
|
|
182
|
+
className: "rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary",
|
|
183
|
+
children: [
|
|
184
|
+
/* @__PURE__ */ p("option", {
|
|
185
|
+
value: "all",
|
|
186
|
+
children: g("notifications.activeAndArchived", "Active + Archived")
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ p("option", {
|
|
189
|
+
value: "active",
|
|
190
|
+
children: g("notifications.activeOnly", "Active Only")
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ p("option", {
|
|
193
|
+
value: "archived",
|
|
194
|
+
children: g("notifications.archivedOnly", "Archived Only")
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ m("div", {
|
|
201
|
+
className: "grid gap-6 xl:grid-cols-[minmax(0,1fr),420px]",
|
|
202
|
+
children: [/* @__PURE__ */ m("div", {
|
|
203
|
+
className: "space-y-6",
|
|
204
|
+
children: [/* @__PURE__ */ m("section", {
|
|
205
|
+
className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
|
|
206
|
+
children: [/* @__PURE__ */ m("div", {
|
|
207
|
+
className: "mb-4 flex items-center justify-between",
|
|
208
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
209
|
+
className: "text-base font-semibold text-primary",
|
|
210
|
+
children: g("notifications.sentNotifications", "Notifications")
|
|
211
|
+
}), /* @__PURE__ */ m("p", {
|
|
212
|
+
className: "text-sm text-secondary",
|
|
213
|
+
children: [
|
|
214
|
+
S.length,
|
|
215
|
+
" ",
|
|
216
|
+
g("notifications.resultsFoundShort", "results")
|
|
217
|
+
]
|
|
218
|
+
})] }), E && /* @__PURE__ */ p(l, {
|
|
219
|
+
size: 16,
|
|
220
|
+
className: "animate-spin text-tertiary"
|
|
221
|
+
})]
|
|
222
|
+
}), /* @__PURE__ */ p("div", {
|
|
223
|
+
className: "space-y-3",
|
|
224
|
+
children: S.length === 0 ? /* @__PURE__ */ p("div", {
|
|
225
|
+
className: "rounded-md border border-dashed border-default p-6 text-sm text-secondary",
|
|
226
|
+
children: g("notifications.noNotificationsFound", "No notifications found")
|
|
227
|
+
}) : S.map((e) => /* @__PURE__ */ p("button", {
|
|
228
|
+
type: "button",
|
|
229
|
+
onClick: () => D(e.id),
|
|
230
|
+
className: "block w-full text-left",
|
|
231
|
+
children: /* @__PURE__ */ p(r, {
|
|
232
|
+
notification: e,
|
|
233
|
+
compact: !0,
|
|
234
|
+
showArchivedState: !0
|
|
235
|
+
})
|
|
236
|
+
}, e.id))
|
|
237
|
+
})]
|
|
238
|
+
}), /* @__PURE__ */ m("section", {
|
|
239
|
+
className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
|
|
240
|
+
children: [/* @__PURE__ */ m("div", {
|
|
241
|
+
className: "mb-4 flex items-center gap-2",
|
|
242
|
+
children: [/* @__PURE__ */ p(s, {
|
|
243
|
+
size: 18,
|
|
244
|
+
className: "text-accent-primary"
|
|
245
|
+
}), /* @__PURE__ */ p("h2", {
|
|
246
|
+
className: "text-base font-semibold text-primary",
|
|
247
|
+
children: g("notifications.scheduledNotifications", "Scheduled Notifications")
|
|
248
|
+
})]
|
|
249
|
+
}), /* @__PURE__ */ p("div", {
|
|
250
|
+
className: "space-y-3",
|
|
251
|
+
children: C.length === 0 ? /* @__PURE__ */ p("div", {
|
|
252
|
+
className: "rounded-md border border-dashed border-default p-6 text-sm text-secondary",
|
|
253
|
+
children: g("notifications.noScheduledNotifications", "No scheduled notifications")
|
|
254
|
+
}) : C.map((e) => /* @__PURE__ */ p("div", {
|
|
255
|
+
className: "rounded-md border border-default bg-bg-canvas p-4",
|
|
256
|
+
children: /* @__PURE__ */ m("div", {
|
|
257
|
+
className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
258
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
|
|
259
|
+
className: "text-sm font-semibold text-primary",
|
|
260
|
+
children: e.notification.title
|
|
261
|
+
}), /* @__PURE__ */ m("p", {
|
|
262
|
+
className: "text-xs text-secondary",
|
|
263
|
+
children: [
|
|
264
|
+
e.notification.channel,
|
|
265
|
+
" • ",
|
|
266
|
+
e.notification.type,
|
|
267
|
+
" •",
|
|
268
|
+
" ",
|
|
269
|
+
h(e.scheduledFor)
|
|
270
|
+
]
|
|
271
|
+
})] }), /* @__PURE__ */ m("div", {
|
|
272
|
+
className: "flex items-center gap-2",
|
|
273
|
+
children: [/* @__PURE__ */ p("button", {
|
|
274
|
+
type: "button",
|
|
275
|
+
onClick: () => D(e.notification.id),
|
|
276
|
+
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted",
|
|
277
|
+
children: g("notifications.view", "View")
|
|
278
|
+
}), e.status === "PENDING" && /* @__PURE__ */ p("button", {
|
|
279
|
+
type: "button",
|
|
280
|
+
onClick: () => A(e.id),
|
|
281
|
+
className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
|
|
282
|
+
children: g("notifications.cancel", "Cancel")
|
|
283
|
+
})]
|
|
284
|
+
})]
|
|
285
|
+
})
|
|
286
|
+
}, e.id))
|
|
287
|
+
})]
|
|
288
|
+
})]
|
|
289
|
+
}), /* @__PURE__ */ p("aside", {
|
|
290
|
+
className: "rounded-lg border border-default bg-surface p-4 shadow-sm",
|
|
291
|
+
children: w ? /* @__PURE__ */ m("div", {
|
|
292
|
+
className: "space-y-4",
|
|
293
|
+
children: [
|
|
294
|
+
/* @__PURE__ */ m("div", {
|
|
295
|
+
className: "flex items-start justify-between gap-3",
|
|
296
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h2", {
|
|
297
|
+
className: "text-lg font-semibold text-primary",
|
|
298
|
+
children: w.title
|
|
299
|
+
}), /* @__PURE__ */ p("p", {
|
|
300
|
+
className: "text-sm text-secondary",
|
|
301
|
+
children: w.body
|
|
302
|
+
})] }), /* @__PURE__ */ p("button", {
|
|
303
|
+
type: "button",
|
|
304
|
+
onClick: M,
|
|
305
|
+
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted",
|
|
306
|
+
children: g("notifications.close", "Close")
|
|
307
|
+
})]
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ m("div", {
|
|
310
|
+
className: "grid gap-2 rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary",
|
|
311
|
+
children: [
|
|
312
|
+
/* @__PURE__ */ m("div", { children: [
|
|
313
|
+
/* @__PURE__ */ p("strong", { children: "Status:" }),
|
|
314
|
+
" ",
|
|
315
|
+
w.status
|
|
316
|
+
] }),
|
|
317
|
+
/* @__PURE__ */ m("div", { children: [
|
|
318
|
+
/* @__PURE__ */ p("strong", { children: "Delivery:" }),
|
|
319
|
+
" ",
|
|
320
|
+
w.deliveryStatus || "—"
|
|
321
|
+
] }),
|
|
322
|
+
/* @__PURE__ */ m("div", { children: [
|
|
323
|
+
/* @__PURE__ */ p("strong", { children: "Topic:" }),
|
|
324
|
+
" ",
|
|
325
|
+
w.topic?.name || "—"
|
|
326
|
+
] }),
|
|
327
|
+
/* @__PURE__ */ m("div", { children: [
|
|
328
|
+
/* @__PURE__ */ p("strong", { children: "Created:" }),
|
|
329
|
+
" ",
|
|
330
|
+
h(w.createdAt)
|
|
331
|
+
] }),
|
|
332
|
+
/* @__PURE__ */ m("div", { children: [
|
|
333
|
+
/* @__PURE__ */ p("strong", { children: "Sent:" }),
|
|
334
|
+
" ",
|
|
335
|
+
h(w.sentAt)
|
|
336
|
+
] }),
|
|
337
|
+
/* @__PURE__ */ m("div", { children: [
|
|
338
|
+
/* @__PURE__ */ p("strong", { children: "Delivered:" }),
|
|
339
|
+
" ",
|
|
340
|
+
h(w.deliveredAt)
|
|
341
|
+
] }),
|
|
342
|
+
/* @__PURE__ */ m("div", { children: [
|
|
343
|
+
/* @__PURE__ */ p("strong", { children: "Opened:" }),
|
|
344
|
+
" ",
|
|
345
|
+
h(w.openedAt)
|
|
346
|
+
] }),
|
|
347
|
+
/* @__PURE__ */ m("div", { children: [
|
|
348
|
+
/* @__PURE__ */ p("strong", { children: "Clicked:" }),
|
|
349
|
+
" ",
|
|
350
|
+
h(w.clickedAt)
|
|
351
|
+
] }),
|
|
352
|
+
/* @__PURE__ */ m("div", { children: [
|
|
353
|
+
/* @__PURE__ */ p("strong", { children: "Read:" }),
|
|
354
|
+
" ",
|
|
355
|
+
h(w.readAt)
|
|
356
|
+
] }),
|
|
357
|
+
/* @__PURE__ */ m("div", { children: [
|
|
358
|
+
/* @__PURE__ */ p("strong", { children: "Recipient:" }),
|
|
359
|
+
" ",
|
|
360
|
+
w.recipientEmail || w.recipientPhone || w.id
|
|
361
|
+
] })
|
|
362
|
+
]
|
|
363
|
+
}),
|
|
364
|
+
w.media.length > 0 && /* @__PURE__ */ m("div", {
|
|
365
|
+
className: "space-y-2",
|
|
366
|
+
children: [/* @__PURE__ */ p("h3", {
|
|
367
|
+
className: "text-sm font-semibold text-primary",
|
|
368
|
+
children: g("notifications.media", "Media")
|
|
369
|
+
}), /* @__PURE__ */ p("div", {
|
|
370
|
+
className: "grid gap-3",
|
|
371
|
+
children: w.media.map((e) => /* @__PURE__ */ p("a", {
|
|
372
|
+
href: e.url,
|
|
373
|
+
target: "_blank",
|
|
374
|
+
rel: "noreferrer",
|
|
375
|
+
className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-accent-primary hover:underline",
|
|
376
|
+
children: e.label || e.url
|
|
377
|
+
}, e.url))
|
|
378
|
+
})]
|
|
379
|
+
}),
|
|
380
|
+
w.actions.length > 0 && /* @__PURE__ */ m("div", {
|
|
381
|
+
className: "space-y-2",
|
|
382
|
+
children: [/* @__PURE__ */ p("h3", {
|
|
383
|
+
className: "text-sm font-semibold text-primary",
|
|
384
|
+
children: g("notifications.actions", "Actions")
|
|
385
|
+
}), /* @__PURE__ */ p("div", {
|
|
386
|
+
className: "grid gap-2",
|
|
387
|
+
children: w.actions.map((e) => /* @__PURE__ */ m("div", {
|
|
388
|
+
className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary",
|
|
389
|
+
children: [/* @__PURE__ */ p("div", {
|
|
390
|
+
className: "font-medium text-primary",
|
|
391
|
+
children: e.label
|
|
392
|
+
}), /* @__PURE__ */ p("div", {
|
|
393
|
+
className: "truncate text-xs",
|
|
394
|
+
children: e.url
|
|
395
|
+
})]
|
|
396
|
+
}, e.id))
|
|
397
|
+
})]
|
|
398
|
+
}),
|
|
399
|
+
w.scheduledNotification && /* @__PURE__ */ m("div", {
|
|
400
|
+
className: "space-y-3 rounded-md border border-default bg-bg-canvas p-3",
|
|
401
|
+
children: [
|
|
402
|
+
/* @__PURE__ */ p("div", {
|
|
403
|
+
className: "text-sm font-semibold text-primary",
|
|
404
|
+
children: g("notifications.scheduling", "Scheduling")
|
|
405
|
+
}),
|
|
406
|
+
/* @__PURE__ */ p("div", {
|
|
407
|
+
className: "text-sm text-secondary",
|
|
408
|
+
children: h(w.scheduledNotification.scheduledFor)
|
|
409
|
+
}),
|
|
410
|
+
w.scheduledNotification.status === "PENDING" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
|
|
411
|
+
type: "datetime-local",
|
|
412
|
+
value: N,
|
|
413
|
+
onChange: (e) => P(e.target.value),
|
|
414
|
+
className: "w-full rounded-md border border-default bg-surface px-3 py-2 text-sm text-primary"
|
|
415
|
+
}), /* @__PURE__ */ m("div", {
|
|
416
|
+
className: "flex items-center gap-2",
|
|
417
|
+
children: [/* @__PURE__ */ p("button", {
|
|
418
|
+
type: "button",
|
|
419
|
+
onClick: () => N && j(w.scheduledNotification.id, new Date(N).toISOString()),
|
|
420
|
+
className: "rounded-md bg-accent-primary px-3 py-2 text-xs font-medium text-white hover:opacity-90",
|
|
421
|
+
children: g("notifications.reschedule", "Reschedule")
|
|
422
|
+
}), /* @__PURE__ */ p("button", {
|
|
423
|
+
type: "button",
|
|
424
|
+
onClick: () => A(w.scheduledNotification.id),
|
|
425
|
+
className: "rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle",
|
|
426
|
+
children: g("notifications.cancel", "Cancel")
|
|
427
|
+
})]
|
|
428
|
+
})] })
|
|
429
|
+
]
|
|
430
|
+
}),
|
|
431
|
+
/* @__PURE__ */ p("div", {
|
|
432
|
+
className: "flex items-center gap-2",
|
|
433
|
+
children: w.archivedAt ? /* @__PURE__ */ p("button", {
|
|
434
|
+
type: "button",
|
|
435
|
+
onClick: () => k(w.id),
|
|
436
|
+
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted",
|
|
437
|
+
children: g("notifications.restore", "Restore")
|
|
438
|
+
}) : /* @__PURE__ */ p("button", {
|
|
439
|
+
type: "button",
|
|
440
|
+
onClick: () => O(w.id),
|
|
441
|
+
className: "rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted",
|
|
442
|
+
children: g("notifications.archive", "Archive")
|
|
443
|
+
})
|
|
444
|
+
}),
|
|
445
|
+
/* @__PURE__ */ m("div", {
|
|
446
|
+
className: "space-y-2",
|
|
447
|
+
children: [/* @__PURE__ */ p("h3", {
|
|
448
|
+
className: "text-sm font-semibold text-primary",
|
|
449
|
+
children: g("notifications.eventTimeline", "Event Timeline")
|
|
450
|
+
}), /* @__PURE__ */ p("div", {
|
|
451
|
+
className: "space-y-2",
|
|
452
|
+
children: T.length === 0 ? /* @__PURE__ */ p("div", {
|
|
453
|
+
className: "rounded-md border border-dashed border-default p-4 text-sm text-secondary",
|
|
454
|
+
children: g("notifications.noEvents", "No events recorded yet.")
|
|
455
|
+
}) : T.map((e) => /* @__PURE__ */ m("div", {
|
|
456
|
+
className: "rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary",
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ p("div", {
|
|
459
|
+
className: "font-medium text-primary",
|
|
460
|
+
children: e.eventType
|
|
461
|
+
}),
|
|
462
|
+
/* @__PURE__ */ p("div", { children: h(e.timestamp) }),
|
|
463
|
+
e.deliveryStatus && /* @__PURE__ */ m("div", { children: ["Delivery: ", e.deliveryStatus] })
|
|
464
|
+
]
|
|
465
|
+
}, e.id))
|
|
466
|
+
})]
|
|
467
|
+
})
|
|
468
|
+
]
|
|
469
|
+
}) : /* @__PURE__ */ p("div", {
|
|
470
|
+
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",
|
|
471
|
+
children: g("notifications.selectNotificationForDetails", "Select a notification to inspect details, delivery receipts, and activity.")
|
|
472
|
+
})
|
|
473
|
+
})]
|
|
474
|
+
})
|
|
475
|
+
]
|
|
476
|
+
}) : /* @__PURE__ */ p("div", {
|
|
477
|
+
className: "p-8 text-center text-text-secondary",
|
|
478
|
+
children: g("notifications.noPermissionHistory", "You don't have permission to view notification history.")
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
//#endregion
|
|
482
|
+
export { g as NotificationHistoryAdminPage };
|
|
483
|
+
|
|
484
|
+
//# sourceMappingURL=NotificationHistoryAdminPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationHistoryAdminPage.js","names":[],"sources":["../../src/pages/NotificationHistoryAdminPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { CalendarClock, Download, RefreshCw, Search } from 'lucide-react';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { NotificationCard } from '../components/NotificationCard';\nimport { useNotificationAdmin, useNotificationTopics } from '../hooks';\nimport { NOTIFICATION_PERMISSIONS } from '../constants/permissions';\nimport { useTr } from '../shared/hooks/useTr';\nimport { exportNotificationsAsCsv } from '../utils/notificationHistoryExport';\n\nfunction formatDateTime(value?: string | null) {\n if (!value) return '—';\n return new Date(value).toLocaleString();\n}\n\n/** Admin Notification History — scheduled ops, delivery inspector, event timeline. */\nexport function NotificationHistoryAdminPage() {\n const tr = useTr();\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const { topics } = useNotificationTopics();\n const {\n filters,\n setFilters,\n notifications,\n scheduledNotifications,\n selectedNotification,\n events,\n isLoading,\n loadNotification,\n archiveNotification,\n unarchiveNotification,\n cancelScheduledNotification,\n rescheduleNotification,\n clearSelection,\n } = useNotificationAdmin();\n const [rescheduleAt, setRescheduleAt] = useState('');\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)) {\n return (\n <div className=\"p-8 text-center text-text-secondary\">\n {tr(\n 'notifications.noPermissionHistory',\n \"You don't have permission to view notification history.\"\n )}\n </div>\n );\n }\n\n return (\n <div className=\"space-y-4 sm:space-y-6\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h1 className=\"text-xl sm:text-2xl font-bold text-primary\">\n {tr('notifications.adminHistoryTitle', 'Notification Operations')}\n </h1>\n <p className=\"text-sm text-secondary mt-1\">\n {tr(\n 'notifications.adminHistorySubtitle',\n 'Review sent and scheduled notifications, delivery outcomes, opens, clicks, and user activity.'\n )}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={() => exportNotificationsAsCsv(tr, notifications)}\n disabled={notifications.length === 0}\n className=\"inline-flex items-center gap-2 rounded-md border border-default px-4 py-2 text-sm text-secondary hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n <Download size={16} />\n {tr('notifications.export', 'Export')}\n </button>\n </div>\n\n <div className=\"grid gap-3 rounded-lg border border-default bg-surface p-4 lg:grid-cols-6\">\n <label className=\"relative lg:col-span-2\">\n <Search size={16} className=\"absolute left-3 top-1/2 -translate-y-1/2 text-tertiary\" />\n <input\n type=\"text\"\n value={filters.search}\n onChange={(event) => setFilters((prev) => ({ ...prev, search: event.target.value }))}\n placeholder={tr(\n 'notifications.searchByTitleOrContent',\n 'Search by title or content...'\n )}\n 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\"\n />\n </label>\n\n <select\n value={filters.status}\n onChange={(event) => setFilters((prev) => ({ ...prev, status: event.target.value }))}\n className=\"rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary\"\n >\n <option value=\"all\">{tr('notifications.allStatuses', 'All Statuses')}</option>\n <option value=\"PENDING\">PENDING</option>\n <option value=\"TRIGGERED\">TRIGGERED</option>\n <option value=\"SENT\">SENT</option>\n <option value=\"FAILED\">FAILED</option>\n <option value=\"CANCELLED\">CANCELLED</option>\n </select>\n\n <select\n value={filters.channel}\n onChange={(event) => setFilters((prev) => ({ ...prev, channel: event.target.value }))}\n className=\"rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary\"\n >\n <option value=\"all\">{tr('notifications.allChannels', 'All Channels')}</option>\n <option value=\"EMAIL\">EMAIL</option>\n <option value=\"SMS\">SMS</option>\n <option value=\"PUSH\">PUSH</option>\n <option value=\"WHATSAPP\">WHATSAPP</option>\n <option value=\"IN_APP\">IN_APP</option>\n </select>\n\n <select\n value={filters.deliveryStatus}\n onChange={(event) =>\n setFilters((prev) => ({ ...prev, deliveryStatus: event.target.value }))\n }\n className=\"rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary\"\n >\n <option value=\"all\">{tr('notifications.allDeliveryStates', 'All Delivery')}</option>\n <option value=\"DELIVERED\">DELIVERED</option>\n <option value=\"OPENED\">OPENED</option>\n <option value=\"CLICKED\">CLICKED</option>\n <option value=\"FAILED\">FAILED</option>\n <option value=\"UNSUBSCRIBED\">UNSUBSCRIBED</option>\n </select>\n\n <select\n value={filters.topicId}\n onChange={(event) => setFilters((prev) => ({ ...prev, topicId: event.target.value }))}\n className=\"rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary\"\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 <select\n value={filters.archived}\n onChange={(event) =>\n setFilters((prev) => ({\n ...prev,\n archived: event.target.value as typeof prev.archived,\n }))\n }\n className=\"rounded-md border border-default bg-bg-canvas px-3 py-2 text-sm text-primary\"\n >\n <option value=\"all\">{tr('notifications.activeAndArchived', 'Active + Archived')}</option>\n <option value=\"active\">{tr('notifications.activeOnly', 'Active Only')}</option>\n <option value=\"archived\">{tr('notifications.archivedOnly', 'Archived Only')}</option>\n </select>\n </div>\n\n <div className=\"grid gap-6 xl:grid-cols-[minmax(0,1fr),420px]\">\n <div className=\"space-y-6\">\n <section className=\"rounded-lg border border-default bg-surface p-4 shadow-sm\">\n <div className=\"mb-4 flex items-center justify-between\">\n <div>\n <h2 className=\"text-base font-semibold text-primary\">\n {tr('notifications.sentNotifications', 'Notifications')}\n </h2>\n <p className=\"text-sm text-secondary\">\n {notifications.length} {tr('notifications.resultsFoundShort', 'results')}\n </p>\n </div>\n {isLoading && <RefreshCw size={16} className=\"animate-spin text-tertiary\" />}\n </div>\n\n <div className=\"space-y-3\">\n {notifications.length === 0 ? (\n <div className=\"rounded-md border border-dashed border-default p-6 text-sm text-secondary\">\n {tr('notifications.noNotificationsFound', 'No notifications found')}\n </div>\n ) : (\n notifications.map((notification) => (\n <button\n key={notification.id}\n type=\"button\"\n onClick={() => loadNotification(notification.id)}\n className=\"block w-full text-left\"\n >\n <NotificationCard notification={notification} compact showArchivedState />\n </button>\n ))\n )}\n </div>\n </section>\n\n <section className=\"rounded-lg border border-default bg-surface p-4 shadow-sm\">\n <div className=\"mb-4 flex items-center gap-2\">\n <CalendarClock size={18} className=\"text-accent-primary\" />\n <h2 className=\"text-base font-semibold text-primary\">\n {tr('notifications.scheduledNotifications', 'Scheduled Notifications')}\n </h2>\n </div>\n\n <div className=\"space-y-3\">\n {scheduledNotifications.length === 0 ? (\n <div className=\"rounded-md border border-dashed border-default p-6 text-sm text-secondary\">\n {tr('notifications.noScheduledNotifications', 'No scheduled notifications')}\n </div>\n ) : (\n scheduledNotifications.map((scheduled) => (\n <div\n key={scheduled.id}\n className=\"rounded-md border border-default bg-bg-canvas p-4\"\n >\n <div className=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h3 className=\"text-sm font-semibold text-primary\">\n {scheduled.notification.title}\n </h3>\n <p className=\"text-xs text-secondary\">\n {scheduled.notification.channel} • {scheduled.notification.type} •{' '}\n {formatDateTime(scheduled.scheduledFor)}\n </p>\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() => loadNotification(scheduled.notification.id)}\n className=\"rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted\"\n >\n {tr('notifications.view', 'View')}\n </button>\n {scheduled.status === 'PENDING' && (\n <button\n type=\"button\"\n onClick={() => cancelScheduledNotification(scheduled.id)}\n className=\"rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle\"\n >\n {tr('notifications.cancel', 'Cancel')}\n </button>\n )}\n </div>\n </div>\n </div>\n ))\n )}\n </div>\n </section>\n </div>\n\n <aside className=\"rounded-lg border border-default bg-surface p-4 shadow-sm\">\n {selectedNotification ? (\n <div className=\"space-y-4\">\n <div className=\"flex items-start justify-between gap-3\">\n <div>\n <h2 className=\"text-lg font-semibold text-primary\">\n {selectedNotification.title}\n </h2>\n <p className=\"text-sm text-secondary\">{selectedNotification.body}</p>\n </div>\n <button\n type=\"button\"\n onClick={clearSelection}\n className=\"rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted\"\n >\n {tr('notifications.close', 'Close')}\n </button>\n </div>\n\n <div className=\"grid gap-2 rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary\">\n <div>\n <strong>Status:</strong> {selectedNotification.status}\n </div>\n <div>\n <strong>Delivery:</strong> {selectedNotification.deliveryStatus || '—'}\n </div>\n <div>\n <strong>Topic:</strong> {selectedNotification.topic?.name || '—'}\n </div>\n <div>\n <strong>Created:</strong> {formatDateTime(selectedNotification.createdAt)}\n </div>\n <div>\n <strong>Sent:</strong> {formatDateTime(selectedNotification.sentAt)}\n </div>\n <div>\n <strong>Delivered:</strong> {formatDateTime(selectedNotification.deliveredAt)}\n </div>\n <div>\n <strong>Opened:</strong> {formatDateTime(selectedNotification.openedAt)}\n </div>\n <div>\n <strong>Clicked:</strong> {formatDateTime(selectedNotification.clickedAt)}\n </div>\n <div>\n <strong>Read:</strong> {formatDateTime(selectedNotification.readAt)}\n </div>\n <div>\n <strong>Recipient:</strong>{' '}\n {selectedNotification.recipientEmail ||\n selectedNotification.recipientPhone ||\n selectedNotification.id}\n </div>\n </div>\n\n {selectedNotification.media.length > 0 && (\n <div className=\"space-y-2\">\n <h3 className=\"text-sm font-semibold text-primary\">\n {tr('notifications.media', 'Media')}\n </h3>\n <div className=\"grid gap-3\">\n {selectedNotification.media.map((item) => (\n <a\n key={item.url}\n href={item.url}\n target=\"_blank\"\n rel=\"noreferrer\"\n className=\"rounded-md border border-default bg-bg-canvas p-3 text-sm text-accent-primary hover:underline\"\n >\n {item.label || item.url}\n </a>\n ))}\n </div>\n </div>\n )}\n\n {selectedNotification.actions.length > 0 && (\n <div className=\"space-y-2\">\n <h3 className=\"text-sm font-semibold text-primary\">\n {tr('notifications.actions', 'Actions')}\n </h3>\n <div className=\"grid gap-2\">\n {selectedNotification.actions.map((action) => (\n <div\n key={action.id}\n className=\"rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary\"\n >\n <div className=\"font-medium text-primary\">{action.label}</div>\n <div className=\"truncate text-xs\">{action.url}</div>\n </div>\n ))}\n </div>\n </div>\n )}\n\n {selectedNotification.scheduledNotification && (\n <div className=\"space-y-3 rounded-md border border-default bg-bg-canvas p-3\">\n <div className=\"text-sm font-semibold text-primary\">\n {tr('notifications.scheduling', 'Scheduling')}\n </div>\n <div className=\"text-sm text-secondary\">\n {formatDateTime(selectedNotification.scheduledNotification.scheduledFor)}\n </div>\n {selectedNotification.scheduledNotification.status === 'PENDING' && (\n <>\n <input\n type=\"datetime-local\"\n value={rescheduleAt}\n onChange={(event) => setRescheduleAt(event.target.value)}\n className=\"w-full rounded-md border border-default bg-surface px-3 py-2 text-sm text-primary\"\n />\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() =>\n rescheduleAt &&\n rescheduleNotification(\n selectedNotification.scheduledNotification!.id,\n new Date(rescheduleAt).toISOString()\n )\n }\n className=\"rounded-md bg-accent-primary px-3 py-2 text-xs font-medium text-white hover:opacity-90\"\n >\n {tr('notifications.reschedule', 'Reschedule')}\n </button>\n <button\n type=\"button\"\n onClick={() =>\n cancelScheduledNotification(\n selectedNotification.scheduledNotification!.id\n )\n }\n className=\"rounded-md border border-status-error-border px-3 py-2 text-xs text-status-error-text hover:bg-status-error-bg-subtle\"\n >\n {tr('notifications.cancel', 'Cancel')}\n </button>\n </div>\n </>\n )}\n </div>\n )}\n\n <div className=\"flex items-center gap-2\">\n {selectedNotification.archivedAt ? (\n <button\n type=\"button\"\n onClick={() => unarchiveNotification(selectedNotification.id)}\n className=\"rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted\"\n >\n {tr('notifications.restore', 'Restore')}\n </button>\n ) : (\n <button\n type=\"button\"\n onClick={() => archiveNotification(selectedNotification.id)}\n className=\"rounded-md border border-default px-3 py-2 text-xs text-secondary hover:bg-muted\"\n >\n {tr('notifications.archive', 'Archive')}\n </button>\n )}\n </div>\n\n <div className=\"space-y-2\">\n <h3 className=\"text-sm font-semibold text-primary\">\n {tr('notifications.eventTimeline', 'Event Timeline')}\n </h3>\n <div className=\"space-y-2\">\n {events.length === 0 ? (\n <div className=\"rounded-md border border-dashed border-default p-4 text-sm text-secondary\">\n {tr('notifications.noEvents', 'No events recorded yet.')}\n </div>\n ) : (\n events.map((event) => (\n <div\n key={event.id}\n className=\"rounded-md border border-default bg-bg-canvas p-3 text-sm text-secondary\"\n >\n <div className=\"font-medium text-primary\">{event.eventType}</div>\n <div>{formatDateTime(event.timestamp)}</div>\n {event.deliveryStatus && <div>Delivery: {event.deliveryStatus}</div>}\n </div>\n ))\n )}\n </div>\n </div>\n </div>\n ) : (\n <div 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\">\n {tr(\n 'notifications.selectNotificationForDetails',\n 'Select a notification to inspect details, delivery receipts, and activity.'\n )}\n </div>\n )}\n </aside>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AASA,SAAS,EAAe,GAAuB;AAE7C,QADK,IACE,IAAI,KAAK,EAAM,CAAC,gBAAgB,GADpB;;AAKrB,S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WAAU;sBAA4B,EAAM;YAAgB,CAAA;WACjE,kBAAC,OAAD,EAAA,UAAM,EAAe,EAAM,UAAU,EAAO,CAAA;WAC3C,EAAM,kBAAkB,kBAAC,OAAD,EAAA,UAAA,CAAK,cAAW,EAAM,eAAqB,EAAA,CAAA;WAChE;YANC,EAAM,GAMP,CACN;SAEA,CAAA,CACF;;OACF;UAEN,kBAAC,OAAD;MAAK,WAAU;gBACZ,EACC,8CACA,6EACD;MACG,CAAA;KAEF,CAAA,CACJ;;GACF;MArZJ,kBAAC,OAAD;EAAK,WAAU;YACZ,EACC,qCACA,0DACD;EACG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationHistoryPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationHistoryPage.tsx"],"names":[],"mappings":"AAUA,2FAA2F;AAC3F,wBAAgB,uBAAuB,4CAkKtC"}
|