@burdenoff/microfe-notification 2026.1124.1 → 2026.1127.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.
Files changed (132) hide show
  1. package/dist/AdminNotificationRoutes.js +59 -51
  2. package/dist/AdminNotificationRoutes.js.map +1 -1
  3. package/dist/NotificationRoutes.js +76 -68
  4. package/dist/NotificationRoutes.js.map +1 -1
  5. package/dist/UserNotificationRoutes.js +39 -31
  6. package/dist/UserNotificationRoutes.js.map +1 -1
  7. package/dist/components/NotificationListFooter.js +1 -1
  8. package/dist/components/NotificationListFooter.js.map +1 -1
  9. package/dist/components/NotificationPanel.js +0 -1
  10. package/dist/components/NotificationPanel.js.map +1 -1
  11. package/dist/components/loadingSystem.d.ts +64 -0
  12. package/dist/components/loadingSystem.js +34 -0
  13. package/dist/components/loadingSystem.js.map +1 -0
  14. package/dist/graphql/global-client.js +34 -34
  15. package/dist/index.js +9 -11
  16. package/dist/navigation-v2/AdminPageV2.js +23 -16
  17. package/dist/navigation-v2/AdminPageV2.js.map +1 -1
  18. package/dist/navigation-v2/NotificationArchivedV2.js +104 -98
  19. package/dist/navigation-v2/NotificationArchivedV2.js.map +1 -1
  20. package/dist/navigation-v2/NotificationInboxV2.js +133 -127
  21. package/dist/navigation-v2/NotificationInboxV2.js.map +1 -1
  22. package/dist/navigation-v2/NotificationSettingsV2.js +91 -85
  23. package/dist/navigation-v2/NotificationSettingsV2.js.map +1 -1
  24. package/dist/navigation-v2/NotificationsV2Landing.js +31 -23
  25. package/dist/navigation-v2/NotificationsV2Landing.js.map +1 -1
  26. package/dist/pages/CreateNotificationPage.js +442 -432
  27. package/dist/pages/CreateNotificationPage.js.map +1 -1
  28. package/dist/pages/NotificationCenterPage.js +93 -87
  29. package/dist/pages/NotificationCenterPage.js.map +1 -1
  30. package/dist/pages/NotificationHistoryAdminPage.js +231 -225
  31. package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
  32. package/dist/pages/NotificationHistoryPage.js +72 -66
  33. package/dist/pages/NotificationHistoryPage.js.map +1 -1
  34. package/dist/pages/NotificationLandingPage.js +42 -34
  35. package/dist/pages/NotificationLandingPage.js.map +1 -1
  36. package/dist/pages/NotificationPreferencesPage.js +80 -71
  37. package/dist/pages/NotificationPreferencesPage.js.map +1 -1
  38. package/dist/pages/NotificationTemplatesPage.js +192 -181
  39. package/dist/pages/NotificationTemplatesPage.js.map +1 -1
  40. package/dist/pages/NotificationTopicsPage.js +124 -118
  41. package/dist/pages/NotificationTopicsPage.js.map +1 -1
  42. package/dist/pages/TemplateEditorPage.js +248 -233
  43. package/dist/pages/TemplateEditorPage.js.map +1 -1
  44. package/package.json +5 -2
  45. package/dist/components/index.js +0 -4
  46. package/dist/hooks/index.js +0 -8
  47. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +0 -23
  48. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
  49. package/dist/node_modules/@apollo/client/errors/utils.js +0 -15
  50. package/dist/node_modules/@apollo/client/errors/utils.js.map +0 -1
  51. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +0 -51
  52. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
  53. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +0 -40
  54. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
  55. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +0 -33
  56. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
  57. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -5
  58. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
  59. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +0 -15
  60. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
  61. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +0 -18
  62. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
  63. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +0 -20
  64. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
  65. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +0 -16
  66. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
  67. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -8
  68. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
  69. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +0 -8
  70. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
  71. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -7
  72. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
  73. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +0 -8
  74. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
  75. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -9
  76. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
  77. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -7
  78. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
  79. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +0 -9
  80. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
  81. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +0 -22
  82. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
  83. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +0 -9
  84. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
  85. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +0 -56
  86. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
  87. package/dist/node_modules/@apollo/client/version.js +0 -5
  88. package/dist/node_modules/@apollo/client/version.js.map +0 -1
  89. package/dist/node_modules/@wry/caches/lib/weak.js +0 -66
  90. package/dist/node_modules/@wry/caches/lib/weak.js.map +0 -1
  91. package/dist/node_modules/@wry/trie/lib/index.js +0 -52
  92. package/dist/node_modules/@wry/trie/lib/index.js.map +0 -1
  93. package/dist/node_modules/graphql-ws/dist/client.js +0 -279
  94. package/dist/node_modules/graphql-ws/dist/client.js.map +0 -1
  95. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +0 -61
  96. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
  97. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +0 -20
  98. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
  99. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -77
  100. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
  101. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -116
  102. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
  103. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -96
  104. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
  105. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +0 -11
  106. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
  107. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +0 -8
  108. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
  109. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -15
  110. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
  111. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -7
  112. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
  113. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -12
  114. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
  115. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -10
  116. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
  117. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -10
  118. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
  119. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -21
  120. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
  121. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -7
  122. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
  123. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -7
  124. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
  125. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -5
  126. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
  127. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -12
  128. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
  129. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -13
  130. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
  131. package/dist/node_modules/tslib/tslib.es6.js +0 -51
  132. package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1,24 +1,24 @@
1
- import "../hooks/index.js";
2
1
  import { useNotifications as e } from "../hooks/useNotifications.js";
3
- import { NotificationCard as t } from "../components/NotificationCard.js";
4
- import { useNotificationTopics as n } from "../hooks/useNotificationTopics.js";
2
+ import { useNotificationTopics as t } from "../hooks/useNotificationTopics.js";
3
+ import { NotificationCard as n } from "../components/NotificationCard.js";
5
4
  import { NotificationListFooter as r } from "../components/NotificationListFooter.js";
6
5
  import { filterNotifications as i, groupNotificationsByDate as a } from "../utils/index.js";
7
6
  import { NOTIFICATION_PERMISSIONS as o } from "../constants/permissions.js";
8
7
  import { useNotification as s } from "../providers/NotificationProvider.js";
9
8
  import { useTr as c } from "../shared/hooks/useTr.js";
10
9
  import { NotificationInboxV2 as l } from "../navigation-v2/NotificationInboxV2.js";
11
- import { useMemo as u } from "react";
12
- import { usePermissions as d } from "@burdenoff/fe-libs/shared/providers/shell";
13
- import { BellRing as f, CheckCheck as p, Search as m } from "lucide-react";
14
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
15
- import { PushOptInToggle as v } from "@burdenoff/fe-libs/chrome";
16
- import { AuroraBackground as y, Button as b, EmphasisPanel as x, GlassCard as S, GradientText as C, IllustratedEmptyState as w, PagePurpose as T, ThemedSelect as E } from "@burdenoff/fe-libs/ui";
10
+ import { CompactMarkOr as u, SectionLoaderOr as d } from "../components/loadingSystem.js";
11
+ import { useMemo as f } from "react";
12
+ import { usePermissions as p } from "@burdenoff/fe-libs/shared/providers/shell";
13
+ import { BellRing as m, CheckCheck as h, Search as g } from "lucide-react";
14
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
15
+ import { PushOptInToggle as b } from "@burdenoff/fe-libs/chrome";
16
+ import { AuroraBackground as x, Button as S, EmphasisPanel as C, GlassCard as w, GradientText as T, IllustratedEmptyState as E, PagePurpose as D, ThemedSelect as O } from "@burdenoff/fe-libs/ui";
17
17
  // src/pages/NotificationCenterPage.tsx
18
- var D = {
18
+ var k = {
19
19
  archived: !1,
20
20
  channel: "IN_APP"
21
- }, O = { channel: "IN_APP" }, k = [
21
+ }, A = { channel: "IN_APP" }, j = [
22
22
  {
23
23
  value: "SYSTEM",
24
24
  labelKey: "notifications.typeSystem",
@@ -39,7 +39,7 @@ var D = {
39
39
  labelKey: "notifications.typeMarketing",
40
40
  label: "Marketing"
41
41
  }
42
- ], A = [
42
+ ], M = [
43
43
  {
44
44
  value: "URGENT",
45
45
  labelKey: "notifications.priorityUrgent",
@@ -61,177 +61,183 @@ var D = {
61
61
  label: "Low"
62
62
  }
63
63
  ];
64
- function j() {
64
+ function N() {
65
65
  let { navigationV2: e } = s();
66
- return g(e ? l : M, {});
66
+ return v(e ? l : P, {});
67
67
  }
68
- function M() {
69
- let l = c(), { hasPermission: j, isLoading: M } = d(), { currentUser: N } = s(), { notifications: P, hasMore: F, isLoadingMore: I, loadMore: L, unreadCount: R, notificationFilter: z, markAsRead: B, markAllAsRead: V, archiveNotification: H, recordAction: U, updateFilter: W, resetFilter: G } = e({
70
- baseFilter: D,
71
- unreadFilter: O
72
- }), { topics: K } = n({ isActive: !0 }), q = u(() => i(P, z), [P, z]), J = u(() => a(q, l), [q, l]);
73
- return M ? /* @__PURE__ */ g("div", {
74
- className: "flex h-64 items-center justify-center",
75
- children: /* @__PURE__ */ g("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
76
- }) : !j(o.NOTIFICATION_LIST) && !N?.id ? /* @__PURE__ */ g("div", {
68
+ function P() {
69
+ let l = c(), { hasPermission: N, isLoading: P } = p(), { currentUser: F } = s(), { notifications: I, hasMore: L, isLoadingMore: R, loadMore: z, unreadCount: B, notificationFilter: V, markAsRead: H, markAllAsRead: U, archiveNotification: W, recordAction: G, updateFilter: K, resetFilter: q } = e({
70
+ baseFilter: k,
71
+ unreadFilter: A
72
+ }), { topics: J } = t({ isActive: !0 }), Y = f(() => i(I, V), [I, V]), X = f(() => a(Y, l), [Y, l]);
73
+ return P ? /* @__PURE__ */ v(d, {
74
+ minHeight: "16rem",
75
+ today: /* @__PURE__ */ v("div", {
76
+ className: "flex h-64 items-center justify-center",
77
+ children: /* @__PURE__ */ v(u, {
78
+ className: "h-8 w-8",
79
+ today: /* @__PURE__ */ v("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
80
+ })
81
+ })
82
+ }) : !N(o.NOTIFICATION_LIST) && !F?.id ? /* @__PURE__ */ v("div", {
77
83
  className: "p-8 text-center text-text-secondary",
78
84
  children: l("notifications.noPermissionView", "You don't have permission to view notifications.")
79
- }) : /* @__PURE__ */ _("div", {
85
+ }) : /* @__PURE__ */ y("div", {
80
86
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6 animate-in fade-in duration-200",
81
87
  children: [
82
- /* @__PURE__ */ g(T, {
83
- icon: /* @__PURE__ */ g(f, { size: 16 }),
88
+ /* @__PURE__ */ v(D, {
89
+ icon: /* @__PURE__ */ v(m, { size: 16 }),
84
90
  children: l("notifications.centerPurpose", "Your in-app inbox. Everything the platform needs you to see — task assignments, mentions, alerts and system updates — lands here. Filter by type, priority or topic, mark items as read, and archive what you no longer need.")
85
91
  }),
86
- /* @__PURE__ */ _("div", {
92
+ /* @__PURE__ */ y("div", {
87
93
  className: "relative overflow-hidden rounded-2xl",
88
- children: [/* @__PURE__ */ g(y, { intensity: "subtle" }), /* @__PURE__ */ _(x, {
94
+ children: [/* @__PURE__ */ v(x, { intensity: "subtle" }), /* @__PURE__ */ y(C, {
89
95
  "data-tour": "notification-center-header",
90
96
  className: "flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6",
91
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h1", {
97
+ children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h1", {
92
98
  className: "text-xl sm:text-2xl font-bold text-primary",
93
- children: /* @__PURE__ */ g(C, { children: l("notifications.centerTitle", "Notification Center") })
94
- }), /* @__PURE__ */ g("p", {
99
+ children: /* @__PURE__ */ v(T, { children: l("notifications.centerTitle", "Notification Center") })
100
+ }), /* @__PURE__ */ v("p", {
95
101
  className: "text-sm text-text-secondary mt-1",
96
- children: R > 0 ? /* @__PURE__ */ _(h, { children: [
102
+ children: B > 0 ? /* @__PURE__ */ y(_, { children: [
97
103
  l("notifications.youHave", "You have"),
98
104
  " ",
99
- /* @__PURE__ */ _("span", {
105
+ /* @__PURE__ */ y("span", {
100
106
  className: "inline-flex items-center gap-1.5 font-semibold text-primary",
101
107
  "data-tour": "notification-center-unread-count",
102
- children: [/* @__PURE__ */ g("span", { className: "inline-block h-2 w-2 rounded-full bg-accent-primary motion-safe:animate-vc-glow-pulse" }), R]
108
+ children: [/* @__PURE__ */ v("span", { className: "inline-block h-2 w-2 rounded-full bg-accent-primary motion-safe:animate-vc-glow-pulse" }), B]
103
109
  }),
104
110
  " ",
105
- l(R === 1 ? "notifications.unreadNotification" : "notifications.unreadNotifications", R === 1 ? "unread notification" : "unread notifications")
111
+ l(B === 1 ? "notifications.unreadNotification" : "notifications.unreadNotifications", B === 1 ? "unread notification" : "unread notifications")
106
112
  ] }) : l("notifications.allCaughtUp", "All caught up!")
107
- })] }), R > 0 && /* @__PURE__ */ _(b, {
113
+ })] }), B > 0 && /* @__PURE__ */ y(S, {
108
114
  "data-tour": "notification-center-mark-all-read",
109
115
  variant: "outline",
110
- onClick: V,
116
+ onClick: U,
111
117
  className: "gap-2",
112
- children: [/* @__PURE__ */ g(p, { size: 16 }), l("notifications.markAllAsRead", "Mark All as Read")]
118
+ children: [/* @__PURE__ */ v(h, { size: 16 }), l("notifications.markAllAsRead", "Mark All as Read")]
113
119
  })]
114
120
  })]
115
121
  }),
116
- /* @__PURE__ */ g(v, {}),
117
- /* @__PURE__ */ _(S, {
122
+ /* @__PURE__ */ v(b, {}),
123
+ /* @__PURE__ */ y(w, {
118
124
  treatment: "plain",
119
125
  "data-tour": "notification-center-filters",
120
126
  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",
121
127
  children: [
122
- /* @__PURE__ */ _("div", {
128
+ /* @__PURE__ */ y("div", {
123
129
  className: "relative flex-1",
124
- children: [/* @__PURE__ */ g(m, {
130
+ children: [/* @__PURE__ */ v(g, {
125
131
  size: 16,
126
132
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-tertiary"
127
- }), /* @__PURE__ */ g("input", {
133
+ }), /* @__PURE__ */ v("input", {
128
134
  "data-tour": "notification-center-search",
129
135
  type: "text",
130
136
  placeholder: l("notifications.searchPlaceholder", "Search notifications..."),
131
- value: z.search,
132
- onChange: (e) => W({ search: e.target.value }),
137
+ value: V.search,
138
+ onChange: (e) => K({ search: e.target.value }),
133
139
  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"
134
140
  })]
135
141
  }),
136
- /* @__PURE__ */ _(E, {
137
- value: z.type,
138
- onChange: (e) => W({ type: e.target.value }),
142
+ /* @__PURE__ */ y(O, {
143
+ value: V.type,
144
+ onChange: (e) => K({ type: e.target.value }),
139
145
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
140
- children: [/* @__PURE__ */ g("option", {
146
+ children: [/* @__PURE__ */ v("option", {
141
147
  value: "ALL",
142
148
  children: l("notifications.allTypes", "All Types")
143
- }), k.map((e) => /* @__PURE__ */ g("option", {
149
+ }), j.map((e) => /* @__PURE__ */ v("option", {
144
150
  value: e.value,
145
151
  children: l(e.labelKey, e.label)
146
152
  }, e.value))]
147
153
  }),
148
- /* @__PURE__ */ _(E, {
149
- value: z.priority,
150
- onChange: (e) => W({ priority: e.target.value }),
154
+ /* @__PURE__ */ y(O, {
155
+ value: V.priority,
156
+ onChange: (e) => K({ priority: e.target.value }),
151
157
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
152
- children: [/* @__PURE__ */ g("option", {
158
+ children: [/* @__PURE__ */ v("option", {
153
159
  value: "ALL",
154
160
  children: l("notifications.allPriorities", "All Priorities")
155
- }), A.map((e) => /* @__PURE__ */ g("option", {
161
+ }), M.map((e) => /* @__PURE__ */ v("option", {
156
162
  value: e.value,
157
163
  children: l(e.labelKey, e.label)
158
164
  }, e.value))]
159
165
  }),
160
- /* @__PURE__ */ _(E, {
161
- value: z.topicId || "",
162
- onChange: (e) => W({ topicId: e.target.value || void 0 }),
166
+ /* @__PURE__ */ y(O, {
167
+ value: V.topicId || "",
168
+ onChange: (e) => K({ topicId: e.target.value || void 0 }),
163
169
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
164
- children: [/* @__PURE__ */ g("option", {
170
+ children: [/* @__PURE__ */ v("option", {
165
171
  value: "",
166
172
  children: l("notifications.allTopics", "All Topics")
167
- }), K.map((e) => /* @__PURE__ */ g("option", {
173
+ }), J.map((e) => /* @__PURE__ */ v("option", {
168
174
  value: e.id,
169
175
  children: e.name
170
176
  }, e.id))]
171
177
  }),
172
- /* @__PURE__ */ _(E, {
173
- value: z.isRead === null ? "ALL" : z.isRead ? "READ" : "UNREAD",
174
- onChange: (e) => W({ isRead: e.target.value === "ALL" ? null : e.target.value === "READ" }),
178
+ /* @__PURE__ */ y(O, {
179
+ value: V.isRead === null ? "ALL" : V.isRead ? "READ" : "UNREAD",
180
+ onChange: (e) => K({ isRead: e.target.value === "ALL" ? null : e.target.value === "READ" }),
175
181
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
176
182
  children: [
177
- /* @__PURE__ */ g("option", {
183
+ /* @__PURE__ */ v("option", {
178
184
  value: "ALL",
179
185
  children: l("notifications.filterAll", "All")
180
186
  }),
181
- /* @__PURE__ */ g("option", {
187
+ /* @__PURE__ */ v("option", {
182
188
  value: "UNREAD",
183
189
  children: l("notifications.filterUnread", "Unread")
184
190
  }),
185
- /* @__PURE__ */ g("option", {
191
+ /* @__PURE__ */ v("option", {
186
192
  value: "READ",
187
193
  children: l("notifications.filterRead", "Read")
188
194
  })
189
195
  ]
190
196
  }),
191
- (z.search || z.type !== "ALL" || z.priority !== "ALL" || z.isRead !== null || !!z.topicId) && /* @__PURE__ */ g("button", {
192
- onClick: G,
197
+ (V.search || V.type !== "ALL" || V.priority !== "ALL" || V.isRead !== null || !!V.topicId) && /* @__PURE__ */ v("button", {
198
+ onClick: q,
193
199
  className: "px-3 py-2 text-sm text-tertiary hover:text-primary transition-colors duration-150",
194
200
  children: l("notifications.resetFilters", "Reset")
195
201
  })
196
202
  ]
197
203
  }),
198
- /* @__PURE__ */ g("div", {
204
+ /* @__PURE__ */ v("div", {
199
205
  "data-tour": "notification-center-list",
200
206
  className: "space-y-6",
201
- children: q.length > 0 ? Object.entries(J).map(([e, n]) => /* @__PURE__ */ _("div", {
207
+ children: Y.length > 0 ? Object.entries(X).map(([e, t]) => /* @__PURE__ */ y("div", {
202
208
  className: "animate-in fade-in slide-in-from-bottom-2 duration-200",
203
- children: [/* @__PURE__ */ g("h2", {
209
+ children: [/* @__PURE__ */ v("h2", {
204
210
  className: "text-sm font-semibold text-tertiary mb-3",
205
211
  children: e
206
- }), /* @__PURE__ */ g("div", {
212
+ }), /* @__PURE__ */ v("div", {
207
213
  className: "space-y-2",
208
- children: n.map((e) => /* @__PURE__ */ g(t, {
214
+ children: t.map((e) => /* @__PURE__ */ v(n, {
209
215
  notification: e,
210
- onMarkAsRead: B,
211
- onArchive: H,
212
- onAction: U,
216
+ onMarkAsRead: H,
217
+ onArchive: W,
218
+ onAction: G,
213
219
  analyticsSource: "center"
214
220
  }, e.id))
215
221
  })]
216
- }, e)) : /* @__PURE__ */ g("div", {
222
+ }, e)) : /* @__PURE__ */ v("div", {
217
223
  className: "animate-in fade-in duration-200",
218
- children: /* @__PURE__ */ g(w, {
219
- illustration: P.length === 0 ? "empty-notifications" : "empty-search",
224
+ children: /* @__PURE__ */ v(E, {
225
+ illustration: I.length === 0 ? "empty-notifications" : "empty-search",
220
226
  title: l("notifications.noNotificationsFound", "No notifications found"),
221
- description: P.length === 0 ? l("notifications.noNotificationsYet", "You don't have any notifications yet. We'll notify you when something important happens.") : l("notifications.adjustFilters", "Try adjusting your filters to see more notifications."),
222
- kind: z.search ? "no-results" : z.type !== "ALL" || z.priority !== "ALL" || z.isRead !== null || z.topicId ? "filtered" : "first-use"
227
+ description: I.length === 0 ? l("notifications.noNotificationsYet", "You don't have any notifications yet. We'll notify you when something important happens.") : l("notifications.adjustFilters", "Try adjusting your filters to see more notifications."),
228
+ kind: V.search ? "no-results" : V.type !== "ALL" || V.priority !== "ALL" || V.isRead !== null || V.topicId ? "filtered" : "first-use"
223
229
  })
224
230
  })
225
231
  }),
226
- /* @__PURE__ */ g(r, {
227
- hasMore: F,
228
- isLoadingMore: I,
229
- onLoadMore: L,
230
- shownCount: q.length
232
+ /* @__PURE__ */ v(r, {
233
+ hasMore: L,
234
+ isLoadingMore: R,
235
+ onLoadMore: z,
236
+ shownCount: Y.length
231
237
  })
232
238
  ]
233
239
  });
234
240
  }
235
- export { j as NotificationCenterPage };
241
+ export { N as NotificationCenterPage };
236
242
 
237
243
  //# sourceMappingURL=NotificationCenterPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationCenterPage.js","names":["_Fragment","CENTER_FILTER","CENTER_UNREAD_FILTER","TYPE_OPTIONS","PRIORITY_OPTIONS","NotificationCenterPage","useNotification","jsx","navigationV2","NotificationInboxV2","ClassicNotificationCenterPage","tr","useTr","permissionsLoading","usePermissions","useNotifications","useNotificationTopics","filteredNotifications","useMemo","filterNotifications","notifications","notificationFilter","groupedNotifications","groupNotificationsByDate","hasPermission","NOTIFICATION_PERMISSIONS","currentUser","PagePurpose","BellRing","AuroraBackground","EmphasisPanel","GradientText","unreadCount","Fragment","Button","markAllAsRead","CheckCheck","PushOptInToggle","GlassCard","Search","updateFilter","ThemedSelect","option","topics","topic","resetFilter","group","groupNotifications","NotificationCard","markAsRead","archiveNotification","recordAction","notification","IllustratedEmptyState","NotificationListFooter","loadMore"],"sources":["../../src/pages/NotificationCenterPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { Search, CheckCheck, BellRing } from 'lucide-react';\nimport { PushOptInToggle } from '@burdenoff/fe-libs/chrome';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n AuroraBackground,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n PagePurpose,\n ThemedSelect,\n} from '@burdenoff/fe-libs/ui';\nimport { useNotifications, useNotificationTopics } from '../hooks';\nimport { NotificationCard } from '../components/NotificationCard';\nimport { NotificationListFooter } from '../components/NotificationListFooter';\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';\nimport { NotificationInboxV2 } from '../navigation-v2/NotificationInboxV2';\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. Under FluidGrids'\n * Navigation v2 (BOFF-11872) it is the inbox layout instead; every other app\n * keeps the classic page.\n */\nexport function NotificationCenterPage() {\n const { navigationV2 } = useNotification();\n return navigationV2 ? <NotificationInboxV2 /> : <ClassicNotificationCenterPage />;\n}\n\nfunction ClassicNotificationCenterPage() {\n const tr = useTr();\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const { currentUser } = useNotification();\n const {\n notifications,\n hasMore,\n isLoadingMore,\n loadMore,\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, tr),\n [filteredNotifications, tr]\n );\n\n if (permissionsLoading) {\n return (\n <div className=\"flex h-64 items-center justify-center\">\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n </div>\n );\n }\n\n if (!hasPermission(NOTIFICATION_PERMISSIONS.NOTIFICATION_LIST) && !currentUser?.id) {\n return (\n <div className=\"p-8 text-center text-text-secondary\">\n {tr('notifications.noPermissionView', \"You don't have permission to view notifications.\")}\n </div>\n );\n }\n\n return (\n <div className=\"space-y-4 sm:space-y-6 p-3 sm:p-6 animate-in fade-in duration-200\">\n <PagePurpose icon={<BellRing size={16} />}>\n {tr(\n 'notifications.centerPurpose',\n 'Your in-app inbox. Everything the platform needs you to see — task assignments, mentions, alerts and system updates — lands here. Filter by type, priority or topic, mark items as read, and archive what you no longer need.'\n )}\n </PagePurpose>\n\n {/* Header — the page's single emphasis zone (unread summary + the one CTA).\n Wrapped in a relative overflow-hidden container so the AuroraBackground\n can sit behind it (at -z-10) without ever moving content. This is the\n MFE's single aurora hero. */}\n <div className=\"relative overflow-hidden rounded-2xl\">\n <AuroraBackground intensity=\"subtle\" />\n <EmphasisPanel\n data-tour=\"notification-center-header\"\n className=\"flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6\"\n >\n <div>\n <h1 className=\"text-xl sm:text-2xl font-bold text-primary\">\n <GradientText>{tr('notifications.centerTitle', 'Notification Center')}</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary mt-1\">\n {unreadCount > 0 ? (\n <>\n {tr('notifications.youHave', 'You have')}{' '}\n <span\n className=\"inline-flex items-center gap-1.5 font-semibold text-primary\"\n data-tour=\"notification-center-unread-count\"\n >\n <span className=\"inline-block h-2 w-2 rounded-full bg-accent-primary motion-safe:animate-vc-glow-pulse\" />\n {unreadCount}\n </span>{' '}\n {tr(\n unreadCount === 1\n ? 'notifications.unreadNotification'\n : 'notifications.unreadNotifications',\n unreadCount === 1 ? 'unread notification' : 'unread notifications'\n )}\n </>\n ) : (\n tr('notifications.allCaughtUp', 'All caught up!')\n )}\n </p>\n </div>\n\n {unreadCount > 0 && (\n <Button\n data-tour=\"notification-center-mark-all-read\"\n variant=\"outline\"\n onClick={markAllAsRead}\n className=\"gap-2\"\n >\n <CheckCheck size={16} />\n {tr('notifications.markAllAsRead', 'Mark All as Read')}\n </Button>\n )}\n </EmphasisPanel>\n </div>\n\n {/* Push opt-in — renders nothing when the surface has no push support\n (web without a service worker, or a shell that never registered a\n controller), so no wrapper card here to avoid an empty box in that\n case. Placed here too since this page, not just the bell dropdown,\n can be the first notification surface a user reaches. */}\n <PushOptInToggle />\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 <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\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 </ThemedSelect>\n\n {/* Priority filter */}\n <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\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 </ThemedSelect>\n\n <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-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 </ThemedSelect>\n\n {/* Read/Unread filter */}\n <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\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 </ThemedSelect>\n\n {/* Reset filters */}\n {(notificationFilter.search ||\n notificationFilter.type !== 'ALL' ||\n notificationFilter.priority !== 'ALL' ||\n notificationFilter.isRead !== null ||\n Boolean(notificationFilter.topicId)) && (\n <button\n onClick={resetFilter}\n className=\"px-3 py-2 text-sm text-tertiary hover:text-primary transition-colors duration-150\"\n >\n {tr('notifications.resetFilters', 'Reset')}\n </button>\n )}\n </GlassCard>\n\n {/* Notifications list */}\n <div data-tour=\"notification-center-list\" className=\"space-y-6\">\n {filteredNotifications.length > 0 ? (\n Object.entries(groupedNotifications).map(([group, groupNotifications]) => (\n <div key={group} className=\"animate-in fade-in slide-in-from-bottom-2 duration-200\">\n <h2 className=\"text-sm font-semibold text-tertiary mb-3\">{group}</h2>\n <div className=\"space-y-2\">\n {groupNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n analyticsSource=\"center\"\n />\n ))}\n </div>\n </div>\n ))\n ) : (\n <div className=\"animate-in fade-in duration-200\">\n <IllustratedEmptyState\n illustration={notifications.length === 0 ? 'empty-notifications' : 'empty-search'}\n title={tr('notifications.noNotificationsFound', 'No notifications found')}\n description={\n notifications.length === 0\n ? tr(\n 'notifications.noNotificationsYet',\n \"You don't have any notifications yet. We'll notify you when something important happens.\"\n )\n : tr(\n 'notifications.adjustFilters',\n 'Try adjusting your filters to see more notifications.'\n )\n }\n // The server applies the search and the filters, so the kind follows them, not the\n // length of what came back.\n kind={\n notificationFilter.search\n ? 'no-results'\n : notificationFilter.type !== 'ALL' ||\n notificationFilter.priority !== 'ALL' ||\n notificationFilter.isRead !== null ||\n notificationFilter.topicId\n ? 'filtered'\n : 'first-use'\n }\n />\n </div>\n )}\n </div>\n\n <NotificationListFooter\n hasMore={hasMore}\n isLoadingMore={isLoadingMore}\n onLoadMore={loadMore}\n shownCount={filteredNotifications.length}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAwBA,IAAMC,IAAgB;CAAE,UAAU;CAAO,SAAS;AAAkB,GAC9DC,IAAuB,EAAE,SAAS,SAAS,GAC3CC,IAAoF;CACxF;EAAE,OAAO;EAAU,UAAU;EAA4B,OAAO;CAAS;CACzE;EAAE,OAAO;EAAS,UAAU;EAA2B,OAAO;CAAQ;CACtE;EAAE,OAAO;EAAiB,UAAU;EAAmC,OAAO;CAAgB;CAC9F;EAAE,OAAO;EAAa,UAAU;EAA+B,OAAO;CAAY;AACpF,GACMC,IAA4F;CAChG;EAAE,OAAO;EAAU,UAAU;EAAgC,OAAO;CAAS;CAC7E;EAAE,OAAO;EAAQ,UAAU;EAA8B,OAAO;CAAO;CACvE;EAAE,OAAO;EAAU,UAAU;EAAgC,OAAO;CAAS;CAC7E;EAAE,OAAO;EAAO,UAAU;EAA6B,OAAO;CAAM;AACtE;AASA,SAAgBC,IAAyB;CACvC,IAAM,EAAE,oBAAiBC,EAAgB;CACzC,OAAsBC,EAAfC,IAAgBC,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SAC5BA,EAAmB,aAAa,SAChCA,EAAmB,WAAW,QAC9B,EAAQA,EAAmB,YAC3B,kBAAC,UAAD;MACE,SAASwB;MACT,WAAU;MAET,UAAAlC,EAAG,8BAA8B,OAAO;KACnC,CAAA;IAED;;GAGX,kBAAC,OAAD;IAAK,aAAU;IAA2B,WAAU;IACjD,UAAAM,EAAsB,SAAS,IAC9B,OAAO,QAAQK,CAAoB,CAAC,CAAC,KAAK,CAACwB,GAAOC,OAChD,kBAAC,OAAD;KAAiB,WAAU;KAA3B,UAAA,CACE,kBAAC,MAAD;MAAI,WAAU;MAA4C,UAAAD;KAAU,CAAA,GACpE,kBAAC,OAAD;MAAK,WAAU;MACZ,UAAAC,EAAmB,KAAK,MACvB,kBAACC,GAAD;OAEgB;OACd,cAAcC;OACd,WAAWC;OACX,UAAUC;OACV,iBAAgB;MACjB,GANMC,EAAa,EAMnB,CACF;KACE,CAAA,CACF;IAdK,GAAAN,CAcL,CACN,IAED,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA,kBAACO,GAAD;MACE,cAAcjC,EAAc,WAAW,IAAI,wBAAwB;MACnE,OAAOT,EAAG,sCAAsC,wBAAwB;MACxE,aACES,EAAc,WAAW,IACrBT,EACE,oCACA,0FACF,IACAA,EACE,+BACA,uDACF;MAIN,MACEU,EAAmB,SACf,eACAA,EAAmB,SAAS,SAC1BA,EAAmB,aAAa,SAChCA,EAAmB,WAAW,QAC9BA,EAAmB,UACnB,aACA;KAET,CAAA;IACE,CAAA;GAEJ,CAAA;GAEL,kBAACiC,GAAD;IACW;IACM;IACf,YAAYC;IACZ,YAAYtC,EAAsB;GACnC,CAAA;EACE;;AAET"}
1
+ {"version":3,"file":"NotificationCenterPage.js","names":["_Fragment","CENTER_FILTER","CENTER_UNREAD_FILTER","TYPE_OPTIONS","PRIORITY_OPTIONS","NotificationCenterPage","useNotification","jsx","navigationV2","NotificationInboxV2","ClassicNotificationCenterPage","tr","useTr","permissionsLoading","usePermissions","useNotifications","useNotificationTopics","filteredNotifications","useMemo","filterNotifications","notifications","notificationFilter","groupedNotifications","groupNotificationsByDate","SectionLoaderOr","CompactMarkOr","hasPermission","NOTIFICATION_PERMISSIONS","currentUser","PagePurpose","BellRing","AuroraBackground","EmphasisPanel","GradientText","unreadCount","Fragment","Button","markAllAsRead","CheckCheck","PushOptInToggle","GlassCard","Search","updateFilter","ThemedSelect","option","topics","topic","resetFilter","group","groupNotifications","NotificationCard","markAsRead","archiveNotification","recordAction","notification","IllustratedEmptyState","NotificationListFooter","loadMore"],"sources":["../../src/pages/NotificationCenterPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { Search, CheckCheck, BellRing } from 'lucide-react';\nimport { PushOptInToggle } from '@burdenoff/fe-libs/chrome';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n AuroraBackground,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n PagePurpose,\n ThemedSelect,\n} from '@burdenoff/fe-libs/ui';\nimport { useNotifications, useNotificationTopics } from '../hooks';\nimport { NotificationCard } from '../components/NotificationCard';\nimport { NotificationListFooter } from '../components/NotificationListFooter';\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';\nimport { NotificationInboxV2 } from '../navigation-v2/NotificationInboxV2';\nimport { CompactMarkOr, SectionLoaderOr } from '../components/loadingSystem';\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. Under FluidGrids'\n * Navigation v2 (BOFF-11872) it is the inbox layout instead; every other app\n * keeps the classic page.\n */\nexport function NotificationCenterPage() {\n const { navigationV2 } = useNotification();\n return navigationV2 ? <NotificationInboxV2 /> : <ClassicNotificationCenterPage />;\n}\n\nfunction ClassicNotificationCenterPage() {\n const tr = useTr();\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const { currentUser } = useNotification();\n const {\n notifications,\n hasMore,\n isLoadingMore,\n loadMore,\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, tr),\n [filteredNotifications, tr]\n );\n\n if (permissionsLoading) {\n return (\n <SectionLoaderOr\n minHeight=\"16rem\"\n today={\n <div className=\"flex h-64 items-center justify-center\">\n <CompactMarkOr\n className=\"h-8 w-8\"\n today={\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n }\n />\n </div>\n }\n />\n );\n }\n\n if (!hasPermission(NOTIFICATION_PERMISSIONS.NOTIFICATION_LIST) && !currentUser?.id) {\n return (\n <div className=\"p-8 text-center text-text-secondary\">\n {tr('notifications.noPermissionView', \"You don't have permission to view notifications.\")}\n </div>\n );\n }\n\n return (\n <div className=\"space-y-4 sm:space-y-6 p-3 sm:p-6 animate-in fade-in duration-200\">\n <PagePurpose icon={<BellRing size={16} />}>\n {tr(\n 'notifications.centerPurpose',\n 'Your in-app inbox. Everything the platform needs you to see — task assignments, mentions, alerts and system updates — lands here. Filter by type, priority or topic, mark items as read, and archive what you no longer need.'\n )}\n </PagePurpose>\n\n {/* Header — the page's single emphasis zone (unread summary + the one CTA).\n Wrapped in a relative overflow-hidden container so the AuroraBackground\n can sit behind it (at -z-10) without ever moving content. This is the\n MFE's single aurora hero. */}\n <div className=\"relative overflow-hidden rounded-2xl\">\n <AuroraBackground intensity=\"subtle\" />\n <EmphasisPanel\n data-tour=\"notification-center-header\"\n className=\"flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6\"\n >\n <div>\n <h1 className=\"text-xl sm:text-2xl font-bold text-primary\">\n <GradientText>{tr('notifications.centerTitle', 'Notification Center')}</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary mt-1\">\n {unreadCount > 0 ? (\n <>\n {tr('notifications.youHave', 'You have')}{' '}\n <span\n className=\"inline-flex items-center gap-1.5 font-semibold text-primary\"\n data-tour=\"notification-center-unread-count\"\n >\n <span className=\"inline-block h-2 w-2 rounded-full bg-accent-primary motion-safe:animate-vc-glow-pulse\" />\n {unreadCount}\n </span>{' '}\n {tr(\n unreadCount === 1\n ? 'notifications.unreadNotification'\n : 'notifications.unreadNotifications',\n unreadCount === 1 ? 'unread notification' : 'unread notifications'\n )}\n </>\n ) : (\n tr('notifications.allCaughtUp', 'All caught up!')\n )}\n </p>\n </div>\n\n {unreadCount > 0 && (\n <Button\n data-tour=\"notification-center-mark-all-read\"\n variant=\"outline\"\n onClick={markAllAsRead}\n className=\"gap-2\"\n >\n <CheckCheck size={16} />\n {tr('notifications.markAllAsRead', 'Mark All as Read')}\n </Button>\n )}\n </EmphasisPanel>\n </div>\n\n {/* Push opt-in — renders nothing when the surface has no push support\n (web without a service worker, or a shell that never registered a\n controller), so no wrapper card here to avoid an empty box in that\n case. Placed here too since this page, not just the bell dropdown,\n can be the first notification surface a user reaches. */}\n <PushOptInToggle />\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 <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\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 </ThemedSelect>\n\n {/* Priority filter */}\n <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\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 </ThemedSelect>\n\n <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-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 </ThemedSelect>\n\n {/* Read/Unread filter */}\n <ThemedSelect\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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\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 </ThemedSelect>\n\n {/* Reset filters */}\n {(notificationFilter.search ||\n notificationFilter.type !== 'ALL' ||\n notificationFilter.priority !== 'ALL' ||\n notificationFilter.isRead !== null ||\n Boolean(notificationFilter.topicId)) && (\n <button\n onClick={resetFilter}\n className=\"px-3 py-2 text-sm text-tertiary hover:text-primary transition-colors duration-150\"\n >\n {tr('notifications.resetFilters', 'Reset')}\n </button>\n )}\n </GlassCard>\n\n {/* Notifications list */}\n <div data-tour=\"notification-center-list\" className=\"space-y-6\">\n {filteredNotifications.length > 0 ? (\n Object.entries(groupedNotifications).map(([group, groupNotifications]) => (\n <div key={group} className=\"animate-in fade-in slide-in-from-bottom-2 duration-200\">\n <h2 className=\"text-sm font-semibold text-tertiary mb-3\">{group}</h2>\n <div className=\"space-y-2\">\n {groupNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n analyticsSource=\"center\"\n />\n ))}\n </div>\n </div>\n ))\n ) : (\n <div className=\"animate-in fade-in duration-200\">\n <IllustratedEmptyState\n illustration={notifications.length === 0 ? 'empty-notifications' : 'empty-search'}\n title={tr('notifications.noNotificationsFound', 'No notifications found')}\n description={\n notifications.length === 0\n ? tr(\n 'notifications.noNotificationsYet',\n \"You don't have any notifications yet. We'll notify you when something important happens.\"\n )\n : tr(\n 'notifications.adjustFilters',\n 'Try adjusting your filters to see more notifications.'\n )\n }\n // The server applies the search and the filters, so the kind follows them, not the\n // length of what came back.\n kind={\n notificationFilter.search\n ? 'no-results'\n : notificationFilter.type !== 'ALL' ||\n notificationFilter.priority !== 'ALL' ||\n notificationFilter.isRead !== null ||\n notificationFilter.topicId\n ? 'filtered'\n : 'first-use'\n }\n />\n </div>\n )}\n </div>\n\n <NotificationListFooter\n hasMore={hasMore}\n isLoadingMore={isLoadingMore}\n onLoadMore={loadMore}\n shownCount={filteredNotifications.length}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAyBA,IAAMC,IAAgB;CAAE,UAAU;CAAO,SAAS;AAAkB,GAC9DC,IAAuB,EAAE,SAAS,SAAS,GAC3CC,IAAoF;CACxF;EAAE,OAAO;EAAU,UAAU;EAA4B,OAAO;CAAS;CACzE;EAAE,OAAO;EAAS,UAAU;EAA2B,OAAO;CAAQ;CACtE;EAAE,OAAO;EAAiB,UAAU;EAAmC,OAAO;CAAgB;CAC9F;EAAE,OAA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