@burdenoff/microfe-notification 2026.1114.1 → 2026.1117.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 (35) hide show
  1. package/dist/NotificationRoot.d.ts +16 -0
  2. package/dist/NotificationRoot.js +33 -26
  3. package/dist/NotificationRoot.js.map +1 -1
  4. package/dist/NotificationRoutes.js +72 -68
  5. package/dist/NotificationRoutes.js.map +1 -1
  6. package/dist/components/FeatureDisabledPage.js +2 -2
  7. package/dist/components/FeatureDisabledPage.js.map +1 -1
  8. package/dist/components/NotificationCard.js +6 -6
  9. package/dist/components/NotificationCard.js.map +1 -1
  10. package/dist/components/NotificationPanel.js +1 -1
  11. package/dist/components/NotificationPanel.js.map +1 -1
  12. package/dist/components/TemplatePreview.js +5 -5
  13. package/dist/components/TemplatePreview.js.map +1 -1
  14. package/dist/navigation-v2/NotificationsV2Landing.d.ts +9 -3
  15. package/dist/navigation-v2/NotificationsV2Landing.js +16 -12
  16. package/dist/navigation-v2/NotificationsV2Landing.js.map +1 -1
  17. package/dist/navigation-v2/paths.js +1 -1
  18. package/dist/navigation-v2/paths.js.map +1 -1
  19. package/dist/pages/CreateNotificationPage.js +6 -4
  20. package/dist/pages/CreateNotificationPage.js.map +1 -1
  21. package/dist/pages/NotificationCenterPage.js +1 -1
  22. package/dist/pages/NotificationCenterPage.js.map +1 -1
  23. package/dist/pages/NotificationHistoryAdminPage.js +13 -13
  24. package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
  25. package/dist/pages/NotificationHistoryPage.js +2 -2
  26. package/dist/pages/NotificationHistoryPage.js.map +1 -1
  27. package/dist/pages/NotificationPreferencesPage.js +6 -6
  28. package/dist/pages/NotificationPreferencesPage.js.map +1 -1
  29. package/dist/pages/NotificationTemplatesPage.js +6 -6
  30. package/dist/pages/NotificationTemplatesPage.js.map +1 -1
  31. package/dist/pages/NotificationTopicsPage.js +12 -12
  32. package/dist/pages/NotificationTopicsPage.js.map +1 -1
  33. package/dist/pages/TemplateEditorPage.js +2 -2
  34. package/dist/pages/TemplateEditorPage.js.map +1 -1
  35. package/package.json +1 -1
@@ -1,4 +1,20 @@
1
+ import { ReactNode } from 'react';
1
2
  import { NotificationRootProps } from './types';
3
+ /**
4
+ * Where the module reads its `notification.*` feature flags.
5
+ *
6
+ * The module's own provider is mounted with no workspace, so it never
7
+ * evaluates a flag and every one reads as unset (off). Under Navigation v2 that
8
+ * hid Notifications › More ▾ and the Delivery log (`?tab=history`) even for
9
+ * people the flags are on for (BOFF-11872), so with the opt-in on, and a host
10
+ * provider above us, the host's flags (evaluated for the person's workspace)
11
+ * answer instead. Without the opt-in, or in a host with no provider, nothing
12
+ * changes.
13
+ */
14
+ export declare function NotificationFlagScope({ navigationV2, children, }: {
15
+ navigationV2: boolean;
16
+ children: ReactNode;
17
+ }): import('react').JSX.Element;
2
18
  /**
3
19
  * Root component for the Notification microfrontend.
4
20
  *
@@ -2,24 +2,33 @@ import { NotificationProvider as e } from "./providers/NotificationProvider.js";
2
2
  import { NotificationRoutes as t } from "./NotificationRoutes.js";
3
3
  import { useEffect as n } from "react";
4
4
  import { ErrorBoundary as r } from "@burdenoff/fe-libs/shared/components";
5
- import { FeatureFlagProvider as i } from "@burdenoff/fe-libs/shared/feature-flags";
6
- import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell";
7
- import { Archive as o, Bell as s, FileText as c, Settings2 as l, Tag as u } from "lucide-react";
8
- import { jsx as d } from "react/jsx-runtime";
5
+ import { FeatureFlagProvider as i, useOptionalFeatureFlags as a } from "@burdenoff/fe-libs/shared/feature-flags";
6
+ import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell";
7
+ import { Archive as s, Bell as c, FileText as l, Settings2 as u, Tag as d } from "lucide-react";
8
+ import { Fragment as f, jsx as p } from "react/jsx-runtime";
9
9
  // src/NotificationRoot.tsx
10
- function f(f) {
11
- let { registerNavItems: p, registerFooterItems: m, basePath: h = "/" } = f, { t: g } = a(), _ = (e, t) => {
10
+ function m({ navigationV2: e, children: t }) {
11
+ let n = a();
12
+ return e && n ? /* @__PURE__ */ p(f, { children: t }) : /* @__PURE__ */ p(i, {
13
+ workspaceId: null,
14
+ gateway: "global",
15
+ defaultEnabled: !0,
16
+ children: t
17
+ });
18
+ }
19
+ function h(i) {
20
+ let { registerNavItems: a, registerFooterItems: f, basePath: h = "/" } = i, { t: g } = o(), _ = (e, t) => {
12
21
  let n = g(e);
13
22
  return n === e ? t : n;
14
23
  }, v = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
15
24
  return n(() => {
16
- if (!p) return;
25
+ if (!a) return;
17
26
  let e = [
18
27
  {
19
28
  id: "notification-center",
20
29
  label: _("notification.nav.center", "Notification Center"),
21
30
  path: v(h, "center"),
22
- icon: /* @__PURE__ */ d(s, { size: 20 }),
31
+ icon: /* @__PURE__ */ p(c, { size: 20 }),
23
32
  order: 10,
24
33
  group: "notifications"
25
34
  },
@@ -27,7 +36,7 @@ function f(f) {
27
36
  id: "notification-history",
28
37
  label: _("notification.nav.history", "History"),
29
38
  path: v(h, "history"),
30
- icon: /* @__PURE__ */ d(o, { size: 20 }),
39
+ icon: /* @__PURE__ */ p(s, { size: 20 }),
31
40
  order: 20,
32
41
  group: "notifications"
33
42
  },
@@ -35,7 +44,7 @@ function f(f) {
35
44
  id: "notification-templates",
36
45
  label: _("notification.nav.templates", "Templates"),
37
46
  path: v(h, "templates"),
38
- icon: /* @__PURE__ */ d(c, { size: 20 }),
47
+ icon: /* @__PURE__ */ p(l, { size: 20 }),
39
48
  order: 30,
40
49
  group: "notifications"
41
50
  },
@@ -43,7 +52,7 @@ function f(f) {
43
52
  id: "notification-topics",
44
53
  label: _("notification.nav.topics", "Topics"),
45
54
  path: v(h, "topics"),
46
- icon: /* @__PURE__ */ d(u, { size: 20 }),
55
+ icon: /* @__PURE__ */ p(d, { size: 20 }),
47
56
  order: 40,
48
57
  group: "notifications"
49
58
  },
@@ -51,18 +60,18 @@ function f(f) {
51
60
  id: "notification-preferences",
52
61
  label: _("notification.nav.preferences", "Preferences"),
53
62
  path: v(h, "preferences"),
54
- icon: /* @__PURE__ */ d(l, { size: 20 }),
63
+ icon: /* @__PURE__ */ p(u, { size: 20 }),
55
64
  order: 50,
56
65
  group: "notifications"
57
66
  }
58
67
  ];
59
- return p(e);
68
+ return a(e);
60
69
  }, [
61
- p,
70
+ a,
62
71
  h,
63
72
  g
64
73
  ]), n(() => {
65
- if (!m) return;
74
+ if (!f) return;
66
75
  let e = [{
67
76
  id: "notification-status",
68
77
  label: _("notification.footer.ready", "Notifications Ready"),
@@ -70,23 +79,21 @@ function f(f) {
70
79
  order: 10,
71
80
  section: "left"
72
81
  }];
73
- return m(e);
74
- }, [m, g]), /* @__PURE__ */ d(r, {
75
- fallback: /* @__PURE__ */ d("div", {
82
+ return f(e);
83
+ }, [f, g]), /* @__PURE__ */ p(r, {
84
+ fallback: /* @__PURE__ */ p("div", {
76
85
  className: "p-6 text-center text-text-secondary",
77
86
  children: _("notification.error.moduleLoad", "Something went wrong loading this module. Please refresh the page.")
78
87
  }),
79
- children: /* @__PURE__ */ d(i, {
80
- workspaceId: null,
81
- gateway: "global",
82
- defaultEnabled: !0,
83
- children: /* @__PURE__ */ d(e, {
84
- ...f,
85
- children: /* @__PURE__ */ d(t, {})
88
+ children: /* @__PURE__ */ p(m, {
89
+ navigationV2: !!i.navigationV2,
90
+ children: /* @__PURE__ */ p(e, {
91
+ ...i,
92
+ children: /* @__PURE__ */ p(t, {})
86
93
  })
87
94
  })
88
95
  });
89
96
  }
90
- export { f as NotificationRoot };
97
+ export { m as NotificationFlagScope, h as NotificationRoot };
91
98
 
92
99
  //# sourceMappingURL=NotificationRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationRoot.js","names":["NotificationRoot","props","useI18n","tr","translated","t","key","fallback","joinPath","base","path","useEffect","registerNavItems","navItems","basePath","Bell","Archive","FileText","Tag","Settings2","registerFooterItems","footerItems","ErrorBoundary","FeatureFlagProvider","NotificationProvider","NotificationRoutes"],"sources":["../src/NotificationRoot.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Bell, Archive, FileText, Settings2, Tag } from 'lucide-react';\nimport { NotificationProvider } from './providers/NotificationProvider';\nimport type { NavItem, FooterItem, NotificationRootProps } from './types';\nimport { NotificationRoutes } from './NotificationRoutes';\n\n/**\n * Root component for the Notification microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { NotificationRoot, type NotificationRootProps } from '@burdenoff/micro-fe/notification';\n *\n * function App() {\n * const props: NotificationRootProps = {\n * basePath: '/notifications',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * registerNavItems: (items) => { return () => {}; },\n * onNotificationClick: (notification) => console.log('Clicked:', notification),\n * };\n *\n * return <NotificationRoot {...props} />;\n * }\n * ```\n */\nexport function NotificationRoot(props: NotificationRootProps) {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n // Helper to join paths correctly, avoiding double slashes\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'notification-center',\n label: tr('notification.nav.center', 'Notification Center'),\n path: joinPath(basePath, 'center'),\n icon: <Bell size={20} />,\n order: 10,\n group: 'notifications',\n },\n {\n id: 'notification-history',\n label: tr('notification.nav.history', 'History'),\n path: joinPath(basePath, 'history'),\n icon: <Archive size={20} />,\n order: 20,\n group: 'notifications',\n },\n {\n id: 'notification-templates',\n label: tr('notification.nav.templates', 'Templates'),\n path: joinPath(basePath, 'templates'),\n icon: <FileText size={20} />,\n order: 30,\n group: 'notifications',\n // Admin only - host should filter based on permissions\n },\n {\n id: 'notification-topics',\n label: tr('notification.nav.topics', 'Topics'),\n path: joinPath(basePath, 'topics'),\n icon: <Tag size={20} />,\n order: 40,\n group: 'notifications',\n },\n {\n id: 'notification-preferences',\n label: tr('notification.nav.preferences', 'Preferences'),\n path: joinPath(basePath, 'preferences'),\n icon: <Settings2 size={20} />,\n order: 50,\n group: 'notifications',\n },\n ];\n\n // Register and get cleanup function\n const cleanup = registerNavItems(navItems);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerNavItems, basePath, t]);\n\n // Register footer items (status indicator in left section)\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems: FooterItem[] = [\n {\n id: 'notification-status',\n label: tr('notification.footer.ready', 'Notifications Ready'),\n type: 'status',\n order: 10,\n section: 'left',\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerFooterItems, t]);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n {tr(\n 'notification.error.moduleLoad',\n 'Something went wrong loading this module. Please refresh the page.'\n )}\n </div>\n }\n >\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <NotificationProvider {...props}>\n <NotificationRoutes />\n </NotificationProvider>\n </FeatureFlagProvider>\n </ErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;AAoCA,SAAgBA,EAAiB,GAA8B;CAC7D,IAA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AUT;CAAC,CAAC,GAGlCM,QAAgB;EACd,IAAI,CAACS,GAAqB;EAE1B,IAAMC,IAA4B,CAChC;GACE,IAAI;GACJ,OAAOlB,EAAG,6BAA6B,qBAAqB;GAC5D,MAAM;GACN,OAAO;GACP,SAAS;EACX,CACF;EAGA,OADgBiB,EAAoBC,CAC7B;CAET,GAAG,CAACD,GAAqBf,CAAC,CAAC,GAGzB,kBAACiB,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAAnB,EACC,iCACA,oEACF;EACG,CAAA;EAGP,UAAA,kBAACoB,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;GACvE,UAAA,kBAACC,GAAD;IAAsB,GAAIvB;IACxB,UAAA,kBAACwB,GAAD,CAAqB,CAAA;GACD,CAAA;EACH,CAAA;CACR,CAAA;AAEnB"}
1
+ {"version":3,"file":"NotificationRoot.js","names":["_Fragment","NotificationFlagScope","hostFlags","useOptionalFeatureFlags","navigationV2","Fragment","FeatureFlagProvider","NotificationRoot","props","useI18n","tr","translated","t","key","fallback","joinPath","base","path","useEffect","registerNavItems","navItems","basePath","Bell","Archive","FileText","Tag","Settings2","registerFooterItems","footerItems","ErrorBoundary","NotificationProvider","NotificationRoutes"],"sources":["../src/NotificationRoot.tsx"],"sourcesContent":["import { useEffect, type ReactNode } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport {\n FeatureFlagProvider,\n useOptionalFeatureFlags,\n} from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Bell, Archive, FileText, Settings2, Tag } from 'lucide-react';\nimport { NotificationProvider } from './providers/NotificationProvider';\nimport type { NavItem, FooterItem, NotificationRootProps } from './types';\nimport { NotificationRoutes } from './NotificationRoutes';\n\n/**\n * Where the module reads its `notification.*` feature flags.\n *\n * The module's own provider is mounted with no workspace, so it never\n * evaluates a flag and every one reads as unset (off). Under Navigation v2 that\n * hid Notifications › More ▾ and the Delivery log (`?tab=history`) even for\n * people the flags are on for (BOFF-11872), so with the opt-in on, and a host\n * provider above us, the host's flags (evaluated for the person's workspace)\n * answer instead. Without the opt-in, or in a host with no provider, nothing\n * changes.\n */\nexport function NotificationFlagScope({\n navigationV2,\n children,\n}: {\n navigationV2: boolean;\n children: ReactNode;\n}) {\n const hostFlags = useOptionalFeatureFlags();\n if (navigationV2 && hostFlags) return <>{children}</>;\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n {children}\n </FeatureFlagProvider>\n );\n}\n\n/**\n * Root component for the Notification microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { NotificationRoot, type NotificationRootProps } from '@burdenoff/micro-fe/notification';\n *\n * function App() {\n * const props: NotificationRootProps = {\n * basePath: '/notifications',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * registerNavItems: (items) => { return () => {}; },\n * onNotificationClick: (notification) => console.log('Clicked:', notification),\n * };\n *\n * return <NotificationRoot {...props} />;\n * }\n * ```\n */\nexport function NotificationRoot(props: NotificationRootProps) {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n // Helper to join paths correctly, avoiding double slashes\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'notification-center',\n label: tr('notification.nav.center', 'Notification Center'),\n path: joinPath(basePath, 'center'),\n icon: <Bell size={20} />,\n order: 10,\n group: 'notifications',\n },\n {\n id: 'notification-history',\n label: tr('notification.nav.history', 'History'),\n path: joinPath(basePath, 'history'),\n icon: <Archive size={20} />,\n order: 20,\n group: 'notifications',\n },\n {\n id: 'notification-templates',\n label: tr('notification.nav.templates', 'Templates'),\n path: joinPath(basePath, 'templates'),\n icon: <FileText size={20} />,\n order: 30,\n group: 'notifications',\n // Admin only - host should filter based on permissions\n },\n {\n id: 'notification-topics',\n label: tr('notification.nav.topics', 'Topics'),\n path: joinPath(basePath, 'topics'),\n icon: <Tag size={20} />,\n order: 40,\n group: 'notifications',\n },\n {\n id: 'notification-preferences',\n label: tr('notification.nav.preferences', 'Preferences'),\n path: joinPath(basePath, 'preferences'),\n icon: <Settings2 size={20} />,\n order: 50,\n group: 'notifications',\n },\n ];\n\n // Register and get cleanup function\n const cleanup = registerNavItems(navItems);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerNavItems, basePath, t]);\n\n // Register footer items (status indicator in left section)\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems: FooterItem[] = [\n {\n id: 'notification-status',\n label: tr('notification.footer.ready', 'Notifications Ready'),\n type: 'status',\n order: 10,\n section: 'left',\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [registerFooterItems, t]);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n {tr(\n 'notification.error.moduleLoad',\n 'Something went wrong loading this module. Please refresh the page.'\n )}\n </div>\n }\n >\n <NotificationFlagScope navigationV2={Boolean(props.navigationV2)}>\n <NotificationProvider {...props}>\n <NotificationRoutes />\n </NotificationProvider>\n </NotificationFlagScope>\n </ErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;AAuBA,SAAgBC,EAAsB,EACpC,iBACA,eAIC;CACD,IAAMC,IAAYC,EAAwB;CA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CAAgC,aAAa;IACvD,MAAMK,EAASM,GAAU,aAAa;IACtC,MAAM,kBAACK,GAAD,EAAW,MAAM,GAAK,CAAA;IAC5B,OAAO;IACP,OAAO;GACT;EACF;EAMA,OAHgBP,EAAiBC,CAG1B;CAET,GAAG;EAACD;EAAkBE;EAAUT;CAAC,CAAC,GAGlCM,QAAgB;EACd,IAAI,CAACS,GAAqB;EAE1B,IAAMC,IAA4B,CAChC;GACE,IAAI;GACJ,OAAOlB,EAAG,6BAA6B,qBAAqB;GAC5D,MAAM;GACN,OAAO;GACP,SAAS;EACX,CACF;EAGA,OADgBiB,EAAoBC,CAC7B;CAET,GAAG,CAACD,GAAqBf,CAAC,CAAC,GAGzB,kBAACiB,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;GACZ,UAAAnB,EACC,iCACA,oEACF;EACG,CAAA;EAGP,UAAA,kBAACT,GAAD;GAAuB,cAAc,EAAQO,EAAM;GACjD,UAAA,kBAACsB,GAAD;IAAsB,GAAItB;IACxB,UAAA,kBAACuB,GAAD,CAAqB,CAAA;GACD,CAAA;EACD,CAAA;CACV,CAAA;AAEnB"}
@@ -2,136 +2,140 @@ import { useNotification as e } from "./providers/NotificationProvider.js";
2
2
  import { NotificationCenterPage as t } from "./pages/NotificationCenterPage.js";
3
3
  import { NotificationLandingPage as n } from "./pages/NotificationLandingPage.js";
4
4
  import { AdminPageV2 as r } from "./navigation-v2/AdminPageV2.js";
5
- import { NotificationsV2Landing as i } from "./navigation-v2/NotificationsV2Landing.js";
6
- import { Suspense as a, lazy as o } from "react";
7
- import { Navigate as s, Route as c, Routes as l } from "react-router";
8
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import { DeliveryLogV2 as i, NotificationsV2Landing as a } from "./navigation-v2/NotificationsV2Landing.js";
6
+ import { Suspense as o, lazy as s } from "react";
7
+ import { Navigate as c, Route as l, Routes as u } from "react-router";
8
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
9
  // src/NotificationRoutes.tsx
10
- var f = o(() => import("./pages/NotificationHistoryPage.js").then((e) => ({ default: e.NotificationHistoryPage }))), p = o(() => import("./pages/NotificationTemplatesPage.js").then((e) => ({ default: e.NotificationTemplatesPage }))), m = o(() => import("./pages/TemplateEditorPage.js").then((e) => ({ default: e.TemplateEditorPage }))), h = o(() => import("./pages/CreateNotificationPage.js").then((e) => ({ default: e.CreateNotificationPage }))), g = o(() => import("./pages/NotificationTopicsPage.js").then((e) => ({ default: e.NotificationTopicsPage }))), _ = o(() => import("./pages/NotificationPreferencesPage.js").then((e) => ({ default: e.NotificationPreferencesPage })));
11
- function v() {
12
- return /* @__PURE__ */ u("div", {
10
+ var p = s(() => import("./pages/NotificationHistoryPage.js").then((e) => ({ default: e.NotificationHistoryPage }))), m = s(() => import("./pages/NotificationTemplatesPage.js").then((e) => ({ default: e.NotificationTemplatesPage }))), h = s(() => import("./pages/TemplateEditorPage.js").then((e) => ({ default: e.TemplateEditorPage }))), g = s(() => import("./pages/CreateNotificationPage.js").then((e) => ({ default: e.CreateNotificationPage }))), _ = s(() => import("./pages/NotificationTopicsPage.js").then((e) => ({ default: e.NotificationTopicsPage }))), v = s(() => import("./pages/NotificationPreferencesPage.js").then((e) => ({ default: e.NotificationPreferencesPage })));
11
+ function y() {
12
+ return /* @__PURE__ */ d("div", {
13
13
  className: "flex h-64 items-center justify-center",
14
- children: /* @__PURE__ */ u("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
14
+ children: /* @__PURE__ */ d("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
15
15
  });
16
16
  }
17
- function y() {
18
- let { basePath: r = "/", navigationV2: i } = e(), o = `${r.endsWith("/") ? r.slice(0, -1) : r}/center`;
19
- return i ? /* @__PURE__ */ u(b, { centerPath: o }) : /* @__PURE__ */ u(a, {
20
- fallback: /* @__PURE__ */ u(v, {}),
21
- children: /* @__PURE__ */ d(l, { children: [
22
- /* @__PURE__ */ u(c, {
17
+ function b() {
18
+ let { basePath: r = "/", navigationV2: i } = e(), a = `${r.endsWith("/") ? r.slice(0, -1) : r}/center`;
19
+ return i ? /* @__PURE__ */ d(x, { centerPath: a }) : /* @__PURE__ */ d(o, {
20
+ fallback: /* @__PURE__ */ d(y, {}),
21
+ children: /* @__PURE__ */ f(u, { children: [
22
+ /* @__PURE__ */ d(l, {
23
23
  index: !0,
24
- element: /* @__PURE__ */ u(n, {})
24
+ element: /* @__PURE__ */ d(n, {})
25
25
  }),
26
- /* @__PURE__ */ u(c, {
26
+ /* @__PURE__ */ d(l, {
27
27
  path: "list",
28
- element: /* @__PURE__ */ u(t, {})
28
+ element: /* @__PURE__ */ d(t, {})
29
29
  }),
30
- /* @__PURE__ */ u(c, {
30
+ /* @__PURE__ */ d(l, {
31
31
  path: "center",
32
- element: /* @__PURE__ */ u(t, {})
32
+ element: /* @__PURE__ */ d(t, {})
33
33
  }),
34
- /* @__PURE__ */ u(c, {
34
+ /* @__PURE__ */ d(l, {
35
35
  path: "history",
36
- element: /* @__PURE__ */ u(f, {})
36
+ element: /* @__PURE__ */ d(p, {})
37
37
  }),
38
- /* @__PURE__ */ u(c, {
38
+ /* @__PURE__ */ d(l, {
39
39
  path: "templates",
40
- element: /* @__PURE__ */ u(p, {})
40
+ element: /* @__PURE__ */ d(m, {})
41
41
  }),
42
- /* @__PURE__ */ u(c, {
42
+ /* @__PURE__ */ d(l, {
43
43
  path: "templates/new",
44
- element: /* @__PURE__ */ u(m, {})
44
+ element: /* @__PURE__ */ d(h, {})
45
45
  }),
46
- /* @__PURE__ */ u(c, {
46
+ /* @__PURE__ */ d(l, {
47
47
  path: "templates/:templateId",
48
- element: /* @__PURE__ */ u(m, {})
48
+ element: /* @__PURE__ */ d(h, {})
49
49
  }),
50
- /* @__PURE__ */ u(c, {
50
+ /* @__PURE__ */ d(l, {
51
51
  path: "create",
52
- element: /* @__PURE__ */ u(h, {})
52
+ element: /* @__PURE__ */ d(g, {})
53
53
  }),
54
- /* @__PURE__ */ u(c, {
54
+ /* @__PURE__ */ d(l, {
55
55
  path: "topics",
56
- element: /* @__PURE__ */ u(g, {})
56
+ element: /* @__PURE__ */ d(_, {})
57
57
  }),
58
- /* @__PURE__ */ u(c, {
58
+ /* @__PURE__ */ d(l, {
59
59
  path: "preferences",
60
- element: /* @__PURE__ */ u(_, {})
60
+ element: /* @__PURE__ */ d(v, {})
61
61
  }),
62
- /* @__PURE__ */ u(c, {
62
+ /* @__PURE__ */ d(l, {
63
63
  path: "*",
64
- element: /* @__PURE__ */ u(s, {
65
- to: o,
64
+ element: /* @__PURE__ */ d(c, {
65
+ to: a,
66
66
  replace: !0
67
67
  })
68
68
  })
69
69
  ] })
70
70
  });
71
71
  }
72
- function b({ centerPath: e }) {
73
- return /* @__PURE__ */ u(a, {
74
- fallback: /* @__PURE__ */ u(v, {}),
75
- children: /* @__PURE__ */ d(l, { children: [
76
- /* @__PURE__ */ u(c, {
72
+ function x({ centerPath: e }) {
73
+ return /* @__PURE__ */ d(o, {
74
+ fallback: /* @__PURE__ */ d(y, {}),
75
+ children: /* @__PURE__ */ f(u, { children: [
76
+ /* @__PURE__ */ d(l, {
77
77
  index: !0,
78
- element: /* @__PURE__ */ u(i, {})
78
+ element: /* @__PURE__ */ d(a, {})
79
79
  }),
80
- /* @__PURE__ */ u(c, {
80
+ /* @__PURE__ */ d(l, {
81
81
  path: "list",
82
- element: /* @__PURE__ */ u(t, {})
82
+ element: /* @__PURE__ */ d(t, {})
83
83
  }),
84
- /* @__PURE__ */ u(c, {
84
+ /* @__PURE__ */ d(l, {
85
85
  path: "center",
86
- element: /* @__PURE__ */ u(t, {})
86
+ element: /* @__PURE__ */ d(t, {})
87
87
  }),
88
- /* @__PURE__ */ u(c, {
88
+ /* @__PURE__ */ d(l, {
89
89
  path: "history",
90
- element: /* @__PURE__ */ u(f, {})
90
+ element: /* @__PURE__ */ d(p, {})
91
91
  }),
92
- /* @__PURE__ */ u(c, {
92
+ /* @__PURE__ */ d(l, {
93
93
  path: "preferences",
94
- element: /* @__PURE__ */ u(_, {})
94
+ element: /* @__PURE__ */ d(v, {})
95
95
  }),
96
- /* @__PURE__ */ u(c, {
96
+ /* @__PURE__ */ d(l, {
97
97
  path: "templates",
98
- element: /* @__PURE__ */ u(r, {
98
+ element: /* @__PURE__ */ d(r, {
99
99
  tool: "templates",
100
- children: /* @__PURE__ */ u(p, {})
100
+ children: /* @__PURE__ */ d(m, {})
101
101
  })
102
102
  }),
103
- /* @__PURE__ */ u(c, {
103
+ /* @__PURE__ */ d(l, {
104
104
  path: "templates/new",
105
- element: /* @__PURE__ */ u(r, {
105
+ element: /* @__PURE__ */ d(r, {
106
106
  tool: "templates",
107
- children: /* @__PURE__ */ u(m, {})
107
+ children: /* @__PURE__ */ d(h, {})
108
108
  })
109
109
  }),
110
- /* @__PURE__ */ u(c, {
110
+ /* @__PURE__ */ d(l, {
111
111
  path: "templates/:templateId",
112
- element: /* @__PURE__ */ u(r, {
112
+ element: /* @__PURE__ */ d(r, {
113
113
  tool: "templates",
114
- children: /* @__PURE__ */ u(m, {})
114
+ children: /* @__PURE__ */ d(h, {})
115
115
  })
116
116
  }),
117
- /* @__PURE__ */ u(c, {
117
+ /* @__PURE__ */ d(l, {
118
118
  path: "create",
119
- element: /* @__PURE__ */ u(r, {
119
+ element: /* @__PURE__ */ d(r, {
120
120
  tool: "send",
121
121
  back: !1,
122
- children: /* @__PURE__ */ u(h, {})
122
+ children: /* @__PURE__ */ d(g, {})
123
123
  })
124
124
  }),
125
- /* @__PURE__ */ u(c, {
125
+ /* @__PURE__ */ d(l, {
126
126
  path: "topics",
127
- element: /* @__PURE__ */ u(r, {
127
+ element: /* @__PURE__ */ d(r, {
128
128
  tool: "topics",
129
- children: /* @__PURE__ */ u(g, {})
129
+ children: /* @__PURE__ */ d(_, {})
130
130
  })
131
131
  }),
132
- /* @__PURE__ */ u(c, {
132
+ /* @__PURE__ */ d(l, {
133
+ path: "delivery-log",
134
+ element: /* @__PURE__ */ d(i, {})
135
+ }),
136
+ /* @__PURE__ */ d(l, {
133
137
  path: "*",
134
- element: /* @__PURE__ */ u(s, {
138
+ element: /* @__PURE__ */ d(c, {
135
139
  to: e,
136
140
  replace: !0
137
141
  })
@@ -139,6 +143,6 @@ function b({ centerPath: e }) {
139
143
  ] })
140
144
  });
141
145
  }
142
- export { y as NotificationRoutes };
146
+ export { b as NotificationRoutes };
143
147
 
144
148
  //# sourceMappingURL=NotificationRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationRoutes.js","names":["NotificationHistoryPage","lazy","m","NotificationTemplatesPage","TemplateEditorPage","CreateNotificationPage","NotificationTopicsPage","NotificationPreferencesPage","PageLoader","NotificationRoutes","useNotification","centerPath","basePath","navigationV2","NavigationV2Routes","Suspense","Routes","Route","NotificationLandingPage","NotificationCenterPage","Navigate","NotificationsV2Landing","AdminPageV2"],"sources":["../src/NotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useNotification } from './providers/NotificationProvider';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\nimport { NotificationLandingPage } from './pages/NotificationLandingPage';\nimport { AdminPageV2 } from './navigation-v2/AdminPageV2';\nimport { NotificationsV2Landing } from './navigation-v2/NotificationsV2Landing';\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationTemplatesPage = lazy(() =>\n import('./pages/NotificationTemplatesPage').then((m) => ({\n default: m.NotificationTemplatesPage,\n }))\n);\nconst TemplateEditorPage = lazy(() =>\n import('./pages/TemplateEditorPage').then((m) => ({ default: m.TemplateEditorPage }))\n);\nconst CreateNotificationPage = lazy(() =>\n import('./pages/CreateNotificationPage').then((m) => ({ default: m.CreateNotificationPage }))\n);\nconst NotificationTopicsPage = lazy(() =>\n import('./pages/NotificationTopicsPage').then((m) => ({ default: m.NotificationTopicsPage }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\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/**\n * Internal router for the Notification microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes:\n * - / → Notification landing page\n * - /list → Notification center (canonical list alias used by shell nav homePath)\n * - /center → Notification center (in-app notifications)\n * - /history → Notification history and archive\n * - /templates → Notification templates list (admin)\n * - /templates/new → Create new template (admin)\n * - /templates/:templateId → Edit template (admin)\n * - /create → Create and send notification (admin)\n * - /topics → Manage topics (admin)\n * - /preferences → User topic preferences\n * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)\n */\nexport function NotificationRoutes() {\n const { basePath = '/', navigationV2 } = useNotification();\n const centerPath = `${basePath.endsWith('/') ? basePath.slice(0, -1) : basePath}/center`;\n\n if (navigationV2) return <NavigationV2Routes centerPath={centerPath} />;\n\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route */}\n <Route index element={<NotificationLandingPage />} />\n\n {/* Canonical list alias used by product-shell nav homePath */}\n <Route path=\"list\" element={<NotificationCenterPage />} />\n\n {/* User-facing routes (all users) */}\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n\n {/* Admin routes - Templates */}\n <Route path=\"templates\" element={<NotificationTemplatesPage />} />\n <Route path=\"templates/new\" element={<TemplateEditorPage />} />\n <Route path=\"templates/:templateId\" element={<TemplateEditorPage />} />\n\n {/* Admin routes - Create/Send Notification */}\n <Route path=\"create\" element={<CreateNotificationPage />} />\n <Route path=\"topics\" element={<NotificationTopicsPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n\n {/* Catch-all route - absolute redirect so an unmatched path like /list\n cannot recursively append /center (e.g. /list/center/center/...) */}\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n\n/**\n * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic\n * routes keeps working: `/` opens straight on the inbox (old `?tab=` values\n * still open their page), and the admin pages get a route-level permission\n * gate and a way back to the inbox.\n */\nfunction NavigationV2Routes({ centerPath }: { centerPath: string }) {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<NotificationsV2Landing />} />\n <Route path=\"list\" element={<NotificationCenterPage />} />\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n <Route\n path=\"templates\"\n element={\n <AdminPageV2 tool=\"templates\">\n <NotificationTemplatesPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/new\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/:templateId\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"create\"\n element={\n <AdminPageV2 tool=\"send\" back={false}>\n <CreateNotificationPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"topics\"\n element={\n <AdminPageV2 tool=\"topics\">\n <NotificationTopicsPage />\n </AdminPageV2>\n }\n />\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;AAWA,IAAMA,IAA0BC,QAC9B,OAAO,qCAAkC,CAAC,MAAM,OAAO,EACrD,SAASC,EAAE,wBACb,EAAE,CACJ,GACMC,IAA4BF,QAChC,OAAO,uCAAoC,CAAC,MAAM,OAAO,EACvD,SAASC,EAAE,0BACb,EAAE,CACJ,GACME,IAAqBH,QACzB,OAAO,gCAA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K,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAClB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACa,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAClB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACa,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAAO,MAAM;KAC7B,UAAA,kBAACjB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACY,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAChB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACW,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACG,GAAD;KAAU,IAAIT;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;EAC1D,EAAA,CAAA;CACA,CAAA;AAEd"}
1
+ {"version":3,"file":"NotificationRoutes.js","names":["NotificationHistoryPage","lazy","m","NotificationTemplatesPage","TemplateEditorPage","CreateNotificationPage","NotificationTopicsPage","NotificationPreferencesPage","PageLoader","NotificationRoutes","useNotification","centerPath","basePath","navigationV2","NavigationV2Routes","Suspense","Routes","Route","NotificationLandingPage","NotificationCenterPage","Navigate","NotificationsV2Landing","AdminPageV2","DeliveryLogV2"],"sources":["../src/NotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useNotification } from './providers/NotificationProvider';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\nimport { NotificationLandingPage } from './pages/NotificationLandingPage';\nimport { AdminPageV2 } from './navigation-v2/AdminPageV2';\nimport { DeliveryLogV2, NotificationsV2Landing } from './navigation-v2/NotificationsV2Landing';\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationTemplatesPage = lazy(() =>\n import('./pages/NotificationTemplatesPage').then((m) => ({\n default: m.NotificationTemplatesPage,\n }))\n);\nconst TemplateEditorPage = lazy(() =>\n import('./pages/TemplateEditorPage').then((m) => ({ default: m.TemplateEditorPage }))\n);\nconst CreateNotificationPage = lazy(() =>\n import('./pages/CreateNotificationPage').then((m) => ({ default: m.CreateNotificationPage }))\n);\nconst NotificationTopicsPage = lazy(() =>\n import('./pages/NotificationTopicsPage').then((m) => ({ default: m.NotificationTopicsPage }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\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/**\n * Internal router for the Notification microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes:\n * - / → Notification landing page\n * - /list → Notification center (canonical list alias used by shell nav homePath)\n * - /center → Notification center (in-app notifications)\n * - /history → Notification history and archive\n * - /templates → Notification templates list (admin)\n * - /templates/new → Create new template (admin)\n * - /templates/:templateId → Edit template (admin)\n * - /create → Create and send notification (admin)\n * - /topics → Manage topics (admin)\n * - /preferences → User topic preferences\n * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)\n */\nexport function NotificationRoutes() {\n const { basePath = '/', navigationV2 } = useNotification();\n const centerPath = `${basePath.endsWith('/') ? basePath.slice(0, -1) : basePath}/center`;\n\n if (navigationV2) return <NavigationV2Routes centerPath={centerPath} />;\n\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route */}\n <Route index element={<NotificationLandingPage />} />\n\n {/* Canonical list alias used by product-shell nav homePath */}\n <Route path=\"list\" element={<NotificationCenterPage />} />\n\n {/* User-facing routes (all users) */}\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n\n {/* Admin routes - Templates */}\n <Route path=\"templates\" element={<NotificationTemplatesPage />} />\n <Route path=\"templates/new\" element={<TemplateEditorPage />} />\n <Route path=\"templates/:templateId\" element={<TemplateEditorPage />} />\n\n {/* Admin routes - Create/Send Notification */}\n <Route path=\"create\" element={<CreateNotificationPage />} />\n <Route path=\"topics\" element={<NotificationTopicsPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n\n {/* Catch-all route - absolute redirect so an unmatched path like /list\n cannot recursively append /center (e.g. /list/center/center/...) */}\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n\n/**\n * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic\n * routes keeps working: `/` opens straight on the inbox (old `?tab=` values\n * still open their page), and the admin pages get a route-level permission\n * gate and a way back to the inbox.\n */\nfunction NavigationV2Routes({ centerPath }: { centerPath: string }) {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<NotificationsV2Landing />} />\n <Route path=\"list\" element={<NotificationCenterPage />} />\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n <Route\n path=\"templates\"\n element={\n <AdminPageV2 tool=\"templates\">\n <NotificationTemplatesPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/new\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/:templateId\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"create\"\n element={\n <AdminPageV2 tool=\"send\" back={false}>\n <CreateNotificationPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"topics\"\n element={\n <AdminPageV2 tool=\"topics\">\n <NotificationTopicsPage />\n </AdminPageV2>\n }\n />\n <Route path=\"delivery-log\" element={<DeliveryLogV2 />} />\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;AAWA,IAAMA,IAA0BC,QAC9B,OAAO,qCAAkC,CAAC,MAAM,OAAO,EACrD,SAASC,EAAE,wBACb,EAAE,CACJ,GACMC,IAA4BF,QAChC,OAAO,uCAAoC,CAAC,MAAM,OAAO,EACvD,SAASC,EAAE,0BACb,EAAE,CACJ,GACME,IAAqBH,QACzB,OAAO,gCAA6B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,mBAAmB,EAAE,CACtF,GACMG,IAAyBJ,QAC7B,OAAO,oCAAiC,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,uBAAuB,EAAE,CAC9F,GACMI,IAAyBL,QAC7B,OAAO,oCAAiC,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,uBAAuB,EAAE,CAC9F,GACMK,IAA8BN,QAClC,OAAO,yCAAsC,CAAC,MAAM,OAAO,EACzD,SAASC,EAAE,4BACb,EAAE,CACJ;AAGA,SAASM,IAAa;CACpB,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,OAAD,EAAK,WAAU,iFAAkF,CAAA;CAC9F,CAAA;AAET;AAmBA,SAAgBC,IAAqB;CACnC,IAAM,EAAE,cAAW,KAAK,oBAAiBC,EAAgB,GACnDC,IAAa,GAAGC,EAAS,SAAS,GAAG,IAAIA,EAAS,MAAM,GAAG,EAAE,IAAIA,EAAS;CAIhF,OAFIC,IAAqB,kBAACC,GAAD,EAAgC,cAAa,CAAA,IAGpE,kBAACC,GAAD;EAAU,UAAU,kBAACP,GAAD,CAAa,CAAA;EAC/B,UAAA,kBAACQ,GAAD,EAAA,UAAA;GAEE,kBAACC,GAAD;IAAO,OAAA;IAAM,SAAS,kBAACC,GAAD,CAA0B,CAAA;GAAI,CAAA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SAAS,kBAACE,GAAD,CAAyB,CAAA;GAAI,CAAA;GAC3D,kBAACF,GAAD;IAAO,MAAK;IAAU,SAAS,kBAACjB,GAAD,CAA0B,CAAA;GAAI,CAAA;GAC7D,kBAACiB,GAAD;IAAO,MAAK;IAAc,SAAS,kBAACV,GAAD,CAA8B,CAAA;GAAI,CAAA;GACrE,kBAACU,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACnB,GAAD,CAA4B,CAAA;IACjB,CAAA;GAEhB,CAAA;GACD,kBAACc,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAClB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACa,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAClB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACa,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAAO,MAAM;KAC7B,UAAA,kBAACjB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACY,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAChB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACW,GAAD;IAAO,MAAK;IAAe,SAAS,kBAACM,GAAD,CAAgB,CAAA;GAAI,CAAA;GACxD,kBAACN,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACG,GAAD;KAAU,IAAIT;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;EAC1D,EAAA,CAAA;CACA,CAAA;AAEd"}
@@ -8,7 +8,7 @@ function r({ title: r, description: i }) {
8
8
  className: "max-w-md rounded-xl border border-border-seam bg-gloss-card p-6 text-center shadow-[var(--shadow-pop)]",
9
9
  children: [
10
10
  /* @__PURE__ */ t("div", {
11
- className: "mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-secondary",
11
+ className: "mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
12
12
  children: /* @__PURE__ */ t(e, {
13
13
  size: 22,
14
14
  "aria-hidden": "true"
@@ -19,7 +19,7 @@ function r({ title: r, description: i }) {
19
19
  children: r
20
20
  }),
21
21
  /* @__PURE__ */ t("p", {
22
- className: "mt-2 text-sm leading-6 text-secondary",
22
+ className: "mt-2 text-sm leading-6 text-text-secondary",
23
23
  children: i
24
24
  })
25
25
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureDisabledPage.js","names":["FeatureDisabledPage","Lock","title","description"],"sources":["../../src/components/FeatureDisabledPage.tsx"],"sourcesContent":["import { Lock } from 'lucide-react';\n\ninterface FeatureDisabledPageProps {\n title: string;\n description: string;\n}\n\nexport function FeatureDisabledPage({ title, description }: FeatureDisabledPageProps) {\n return (\n <div className=\"flex min-h-64 items-center justify-center p-6\">\n <div className=\"max-w-md rounded-xl border border-border-seam bg-gloss-card p-6 text-center shadow-[var(--shadow-pop)]\">\n <div className=\"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-secondary\">\n <Lock size={22} aria-hidden=\"true\" />\n </div>\n <h1 className=\"text-lg font-semibold text-primary\">{title}</h1>\n <p className=\"mt-2 text-sm leading-6 text-secondary\">{description}</p>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAOA,SAAgBA,EAAoB,EAAE,UAAO,kBAAyC;CACpF,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA;IACE,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA,kBAACC,GAAD;MAAM,MAAM;MAAI,eAAY;KAAQ,CAAA;IACjC,CAAA;IACL,kBAAC,MAAD;KAAI,WAAU;KAAsC,UAAAC;IAAU,CAAA;IAC9D,kBAAC,KAAD;KAAG,WAAU;KAAyC,UAAAC;IAAe,CAAA;GAClE;;CACF,CAAA;AAET"}
1
+ {"version":3,"file":"FeatureDisabledPage.js","names":["FeatureDisabledPage","Lock","title","description"],"sources":["../../src/components/FeatureDisabledPage.tsx"],"sourcesContent":["import { Lock } from 'lucide-react';\n\ninterface FeatureDisabledPageProps {\n title: string;\n description: string;\n}\n\nexport function FeatureDisabledPage({ title, description }: FeatureDisabledPageProps) {\n return (\n <div className=\"flex min-h-64 items-center justify-center p-6\">\n <div className=\"max-w-md rounded-xl border border-border-seam bg-gloss-card p-6 text-center shadow-[var(--shadow-pop)]\">\n <div className=\"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-text-secondary\">\n <Lock size={22} aria-hidden=\"true\" />\n </div>\n <h1 className=\"text-lg font-semibold text-primary\">{title}</h1>\n <p className=\"mt-2 text-sm leading-6 text-text-secondary\">{description}</p>\n </div>\n </div>\n );\n}\n"],"mappings":";;;AAOA,SAAgBA,EAAoB,EAAE,UAAO,kBAAyC;CACpF,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA;IACE,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA,kBAACC,GAAD;MAAM,MAAM;MAAI,eAAY;KAAQ,CAAA;IACjC,CAAA;IACL,kBAAC,MAAD;KAAI,WAAU;KAAsC,UAAAC;IAAU,CAAA;IAC9D,kBAAC,KAAD;KAAG,WAAU;KAA8C,UAAAC;IAAe,CAAA;GACvE;;CACF,CAAA;AAET"}
@@ -54,7 +54,7 @@ function b({ notification: b, onMarkAsRead: x, onArchive: S, onAction: C, onClic
54
54
  children: r(b.type)
55
55
  }),
56
56
  /* @__PURE__ */ m("h3", {
57
- className: `text-sm truncate ${M ? "font-bold text-primary" : "font-medium text-secondary"}`,
57
+ className: `text-sm truncate ${M ? "font-bold text-primary" : "font-medium text-text-secondary"}`,
58
58
  children: E ? o(b.title, 60) : b.title
59
59
  }),
60
60
  /* @__PURE__ */ m("span", {
@@ -74,7 +74,7 @@ function b({ notification: b, onMarkAsRead: x, onArchive: S, onAction: C, onClic
74
74
  "aria-label": A("notifCommon.archiveNotification", "Archive notification"),
75
75
  children: /* @__PURE__ */ m(u, {
76
76
  size: 16,
77
- className: "text-tertiary hover:text-secondary",
77
+ className: "text-tertiary hover:text-text-secondary",
78
78
  "aria-hidden": "true"
79
79
  })
80
80
  })
@@ -86,7 +86,7 @@ function b({ notification: b, onMarkAsRead: x, onArchive: S, onAction: C, onClic
86
86
  "aria-label": A("notifCommon.archiveNotification", "Archive notification"),
87
87
  children: /* @__PURE__ */ m(f, {
88
88
  size: 16,
89
- className: "text-tertiary hover:text-secondary"
89
+ className: "text-tertiary hover:text-text-secondary"
90
90
  })
91
91
  })
92
92
  ]
@@ -100,11 +100,11 @@ function b({ notification: b, onMarkAsRead: x, onArchive: S, onAction: C, onClic
100
100
  className: "mb-3 h-40 w-full rounded-md object-cover border border-default"
101
101
  }),
102
102
  /* @__PURE__ */ m("p", {
103
- className: `text-sm text-secondary ${E ? "line-clamp-2" : ""}`,
103
+ className: `text-sm text-text-secondary ${E ? "line-clamp-2" : ""}`,
104
104
  children: E ? o(b.body, 120) : b.body
105
105
  }),
106
106
  b.topic && (!O || k) && /* @__PURE__ */ m("div", {
107
- className: "mt-2 inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-secondary",
107
+ className: "mt-2 inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
108
108
  children: b.topic.name
109
109
  })
110
110
  ]
@@ -113,7 +113,7 @@ function b({ notification: b, onMarkAsRead: x, onArchive: S, onAction: C, onClic
113
113
  className: "ml-3 flex flex-wrap gap-2",
114
114
  children: b.actions.map((e) => /* @__PURE__ */ m("button", {
115
115
  onClick: (t) => z(t, e.id, e.url),
116
- className: `rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${e.style === "secondary" ? "bg-bg-sunken text-secondary hover:bg-bg-sunken/80" : e.style === "danger" ? "bg-status-error-bg-subtle text-status-error-text hover:opacity-80" : "bg-accent-primary text-white hover:opacity-90"}`,
116
+ className: `rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${e.style === "secondary" ? "bg-bg-sunken text-text-secondary hover:bg-bg-sunken/80" : e.style === "danger" ? "bg-status-error-bg-subtle text-status-error-text hover:opacity-80" : "bg-accent-primary text-white hover:opacity-90"}`,
117
117
  children: e.label
118
118
  }, e.id))
119
119
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationCard.js","names":["_Fragment","V2_PRIORITY_LABELS","NotificationCard","tr","useTr","useNotificationAnalytics","isUnread","notification","isArchived","v2Priority","handleClick","trackNotificationOpened","analyticsSource","onClick","onMarkAsRead","handleArchive","onArchive","openNotificationLink","navigateInApp","url","nativeOpenUrl","handleActionUrl","nativeImpact","onAction","handleActionClick","actionId","actionUrl","showArchivedState","getNotificationTypeIcon","compact","truncateText","getPriorityIcon","navigationV2","Tooltip","TooltipTrigger","Archive","TooltipContent","X","showTopic","e","action","Fragment","getPriorityColor","formatRelativeTime","ExternalLink"],"sources":["../../src/components/NotificationCard.tsx"],"sourcesContent":["import { Archive, X, ExternalLink } from 'lucide-react';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@burdenoff/fe-libs/ui';\nimport type { Notification } from '../types';\nimport { useNotificationAnalytics } from '../hooks/useNotificationAnalytics';\nimport { useTr } from '../shared/hooks/useTr';\nimport {\n formatRelativeTime,\n getPriorityColor,\n getPriorityIcon,\n getNotificationTypeIcon,\n truncateText,\n} from '../utils';\nimport { nativeImpact, nativeOpenUrl } from '../utils/nativeBridge';\nimport { navigateInApp } from '../utils/inAppNavigation';\n\ninterface NotificationCardProps {\n notification: Notification;\n onMarkAsRead?: (id: string) => void;\n onArchive?: (id: string) => void;\n onAction?: (notificationId: string, actionId?: string) => void;\n onClick?: (notification: Notification) => void;\n showArchivedState?: boolean;\n compact?: boolean;\n analyticsSource?: 'center' | 'panel' | 'history' | 'admin_history';\n /**\n * FluidGrids' Navigation v2 card (BOFF-11872): an archive icon with an\n * \"Archive\" tooltip instead of \"X\", the priority footer only for Urgent or\n * High (sentence case), \"Open\" for the link, and the topic chip only when\n * `showTopic` is on. Other apps leave it off and keep today's card.\n */\n navigationV2?: boolean;\n /** Navigation v2 only: show the topic chip (a level-2 detail). */\n showTopic?: boolean;\n}\n\n/** Navigation v2's priority footer: only the two that need attention, in sentence case. */\nconst V2_PRIORITY_LABELS: Partial<\n Record<Notification['priority'], { key: string; label: string }>\n> = {\n URGENT: { key: 'notifications.priorityUrgent', label: 'Urgent' },\n HIGH: { key: 'notifications.priorityHigh', label: 'High' },\n};\n\n/**\n * Notification card component\n *\n * Displays notification information with action buttons\n */\nexport function NotificationCard({\n notification,\n onMarkAsRead,\n onArchive,\n onAction,\n onClick,\n showArchivedState = false,\n compact = false,\n analyticsSource = 'center',\n navigationV2 = false,\n showTopic = false,\n}: NotificationCardProps) {\n const tr = useTr();\n const { trackNotificationOpened } = useNotificationAnalytics();\n const isUnread = !notification.readAt;\n const isArchived = Boolean(notification.archivedAt);\n const v2Priority = V2_PRIORITY_LABELS[notification.priority];\n\n const handleClick = () => {\n trackNotificationOpened(notification, analyticsSource, 'card');\n if (onClick) {\n onClick(notification);\n }\n if (isUnread && onMarkAsRead) {\n onMarkAsRead(notification.id);\n }\n };\n\n const handleArchive = (e: React.MouseEvent) => {\n e.stopPropagation();\n if (onArchive) {\n onArchive(notification.id);\n }\n };\n\n // A link into this app (an agent, a run, a vibe) opens in place, like the\n // shell's notification bell; only a link that leaves the app opens a new tab\n // (or the system browser on native).\n const openNotificationLink = (url: string) => {\n if (navigateInApp(url)) return;\n if (url.startsWith('https://')) {\n void nativeOpenUrl(url);\n } else {\n window.open(url, '_blank', 'noopener,noreferrer');\n }\n };\n\n const handleActionUrl = (e: React.MouseEvent) => {\n e.stopPropagation();\n nativeImpact('light');\n if (notification.actionUrl) {\n trackNotificationOpened(notification, analyticsSource, 'primary_action');\n onAction?.(notification.id);\n openNotificationLink(notification.actionUrl);\n }\n };\n\n const handleActionClick = (e: React.MouseEvent, actionId: string, actionUrl: string) => {\n e.stopPropagation();\n nativeImpact('light');\n trackNotificationOpened(notification, analyticsSource, 'custom_action');\n onAction?.(notification.id, actionId);\n openNotificationLink(actionUrl);\n };\n\n return (\n <div\n data-tour=\"notification-card\"\n className={`\n relative flex flex-col gap-2 p-4 rounded-lg border cursor-pointer\n transition-[box-shadow,border-color,opacity] duration-200 ease-in-out\n bg-gloss-card\n ${isUnread ? 'border-accent-primary/30 shadow-sm ring-1 ring-accent-primary/10' : 'border-border-seam opacity-75'}\n ${showArchivedState && isArchived ? 'border-dashed opacity-60' : ''}\n hover:shadow-[var(--shadow-pop)] hover:border-accent-primary/30 hover:opacity-100\n `}\n onClick={handleClick}\n >\n {/* Unread indicator */}\n {isUnread && (\n <div className=\"absolute top-4 left-1.5 w-2.5 h-2.5 bg-accent-primary rounded-full shadow-sm shadow-accent-primary/50 motion-safe:animate-vc-glow-pulse\" />\n )}\n\n {/* Header */}\n <div className=\"flex items-start justify-between gap-2 ml-3\">\n <div className=\"flex items-center gap-2 flex-1 min-w-0\">\n <span className=\"text-base\" aria-hidden=\"true\">\n {getNotificationTypeIcon(notification.type)}\n </span>\n <h3\n className={`text-sm truncate ${isUnread ? 'font-bold text-primary' : 'font-medium text-secondary'}`}\n >\n {compact ? truncateText(notification.title, 60) : notification.title}\n </h3>\n <span className=\"text-xs\" aria-label={`Priority: ${notification.priority}`}>\n {getPriorityIcon(notification.priority)}\n </span>\n </div>\n\n {onArchive && navigationV2 && (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n data-tour=\"notification-archive-action\"\n onClick={handleArchive}\n className=\"flex-shrink-0 rounded p-1 transition-colors duration-150 hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]\"\n aria-label={tr('notifCommon.archiveNotification', 'Archive notification')}\n >\n <Archive\n size={16}\n className=\"text-tertiary hover:text-secondary\"\n aria-hidden=\"true\"\n />\n </button>\n </TooltipTrigger>\n <TooltipContent>{tr('notifications.v2.archive', 'Archive')}</TooltipContent>\n </Tooltip>\n )}\n {onArchive && !navigationV2 && (\n <button\n data-tour=\"notification-archive-action\"\n onClick={handleArchive}\n className=\"flex-shrink-0 p-1 hover:bg-bg-sunken rounded transition-colors duration-150\"\n aria-label={tr('notifCommon.archiveNotification', 'Archive notification')}\n >\n <X size={16} className=\"text-tertiary hover:text-secondary\" />\n </button>\n )}\n </div>\n\n {/* Body */}\n <div className=\"ml-3\">\n {notification.media[0]?.url && (\n <img\n src={notification.media[0].thumbnailUrl || notification.media[0].url}\n alt={notification.media[0].label || notification.title}\n className=\"mb-3 h-40 w-full rounded-md object-cover border border-default\"\n />\n )}\n <p className={`text-sm text-secondary ${compact ? 'line-clamp-2' : ''}`}>\n {compact ? truncateText(notification.body, 120) : notification.body}\n </p>\n {notification.topic && (!navigationV2 || showTopic) && (\n <div className=\"mt-2 inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-secondary\">\n {notification.topic.name}\n </div>\n )}\n </div>\n\n {notification.actions.length > 0 && !compact && (\n <div className=\"ml-3 flex flex-wrap gap-2\">\n {notification.actions.map((action) => (\n <button\n key={action.id}\n onClick={(e) => handleActionClick(e, action.id, action.url)}\n className={`rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${\n action.style === 'secondary'\n ? 'bg-bg-sunken text-secondary hover:bg-bg-sunken/80'\n : action.style === 'danger'\n ? 'bg-status-error-bg-subtle text-status-error-text hover:opacity-80'\n : 'bg-accent-primary text-white hover:opacity-90'\n }`}\n >\n {action.label}\n </button>\n ))}\n </div>\n )}\n\n {/* Footer */}\n <div className=\"flex items-center justify-between gap-2 ml-3\">\n <div className=\"flex items-center gap-2 text-xs text-tertiary\">\n {navigationV2 ? (\n v2Priority && (\n <>\n <span className={getPriorityColor(notification.priority)}>\n {tr(v2Priority.key, v2Priority.label)}\n </span>\n <span>•</span>\n </>\n )\n ) : (\n <>\n <span className={getPriorityColor(notification.priority)}>\n {notification.priority}\n </span>\n <span>•</span>\n </>\n )}\n {showArchivedState && isArchived && (\n <>\n <span>{tr('notifCommon.archived', 'Archived')}</span>\n <span>•</span>\n </>\n )}\n <time dateTime={notification.createdAt}>\n {formatRelativeTime(notification.createdAt, tr)}\n </time>\n </div>\n\n {notification.actionUrl && (\n <button\n onClick={handleActionUrl}\n className=\"flex items-center gap-1 text-xs text-accent-primary hover:text-accent-primary/80 transition-colors duration-150\"\n aria-label={tr('notifCommon.openLink', 'Open link')}\n >\n <span>\n {navigationV2 ? tr('notifications.v2.open', 'Open') : tr('notifCommon.view', 'View')}\n </span>\n <ExternalLink size={12} />\n </button>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAoCA,IAAMC,IAEF;CACF,QAAQ;EAAE,KAAK;EAAgC,OAAO;CAAS;CAC/D,MAAM;EAAE,KAAK;EAA8B,OAAO;CAAO;AAC3D;AAOA,SAAgBC,EAAiB,EAC/B,iBACA,iBACA,cACA,aACA,YACA,uBAAoB,IACpB,aAAU,IACV,qBAAkB,UAClB,kBAAe,IACf,eAAY,MACY;CACxB,IAAMC,IAAKC,EAAM,GACX,EAAE,+BAA4BC,EAAyB,GACvDC,IAAW,CAACC,EAAa,QACzBC,IAAa,EAAQD,EAAa,YAClCE,IAAaR,EAAmBM,EAAa,WAE7CG,UAAoB;EAKxB,AAJAC,EAAwBJ,GAAcK,GAAiB,MAAM,GACzDC,KACFA,EAAQN,CAAY,GAElBD,KAAYQ,KACdA,EAAaP,EAAa,EAAE;CAEhC,GAEMQ,KAAiB,MAAwB;EAE7C,AADA,EAAE,gBAAgB,GACdC,KACFA,EAAUT,EAAa,EAAE;CAE7B,GAKMU,KAAwB,MAAgB;EAC5C,AAAIC,EAAcC,CAAG,MACjBA,EAAI,WAAW,UAAU,IAC3BC,EAAmBD,CAAG,IAEtB,OAAO,KAAK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AT,GAAA,EAAA,UAAA,CACE,kBAAC,QAAD;OAAM,WAAW0C,EAAiBnC,EAAa,QAAQ;OACpD,UAAAJ,EAAGM,EAAW,KAAKA,EAAW,KAAK;MAChC,CAAA,GACN,kBAAC,QAAD,EAAA,UAAM,IAAO,CAAA,CACb,EAAA,CAAA,IAGJ,kBAAAT,GAAA,EAAA,UAAA,CACE,kBAAC,QAAD;OAAM,WAAW0C,EAAiBnC,EAAa,QAAQ;OACpD,UAAAA,EAAa;MACV,CAAA,GACN,kBAAC,QAAD,EAAA,UAAM,IAAO,CAAA,CACb,EAAA,CAAA;MAEHoB,KAAqBnB,KACpB,kBAAAR,GAAA,EAAA,UAAA,CACE,kBAAC,QAAD,EAAA,UAAOG,EAAG,wBAAwB,UAAU,EAAQ,CAAA,GACpD,kBAAC,QAAD,EAAA,UAAM,IAAO,CAAA,CACb,EAAA,CAAA;MAEJ,kBAAC,QAAD;OAAM,UAAUI,EAAa;OAC1B,UAAAoC,EAAmBpC,EAAa,WAAWJ,CAAE;MAC1C,CAAA;KACH;IAEJ,CAAA,GAAAI,EAAa,aACZ,kBAAC,UAAD;KACE,SAASc;KACT,WAAU;KACV,cAAYlB,EAAG,wBAAwB,WAAW;KAHpD,UAAA,CAKE,kBAAC,QAAD,EAAA,UACG6B,IAAe7B,EAAG,yBAAyB,MAAM,IAAIA,EAAG,oBAAoB,MAAM,EAC/E,CAAA,GACN,kBAACyC,GAAD,EAAc,MAAM,GAAK,CAAA,CACnB;IAEP,CAAA,CAAA;;EACF;;AAET"}
1
+ {"version":3,"file":"NotificationCard.js","names":["_Fragment","V2_PRIORITY_LABELS","NotificationCard","tr","useTr","useNotificationAnalytics","isUnread","notification","isArchived","v2Priority","handleClick","trackNotificationOpened","analyticsSource","onClick","onMarkAsRead","handleArchive","onArchive","openNotificationLink","navigateInApp","url","nativeOpenUrl","handleActionUrl","nativeImpact","onAction","handleActionClick","actionId","actionUrl","showArchivedState","getNotificationTypeIcon","compact","truncateText","getPriorityIcon","navigationV2","Tooltip","TooltipTrigger","Archive","TooltipContent","X","showTopic","e","action","Fragment","getPriorityColor","formatRelativeTime","ExternalLink"],"sources":["../../src/components/NotificationCard.tsx"],"sourcesContent":["import { Archive, X, ExternalLink } from 'lucide-react';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@burdenoff/fe-libs/ui';\nimport type { Notification } from '../types';\nimport { useNotificationAnalytics } from '../hooks/useNotificationAnalytics';\nimport { useTr } from '../shared/hooks/useTr';\nimport {\n formatRelativeTime,\n getPriorityColor,\n getPriorityIcon,\n getNotificationTypeIcon,\n truncateText,\n} from '../utils';\nimport { nativeImpact, nativeOpenUrl } from '../utils/nativeBridge';\nimport { navigateInApp } from '../utils/inAppNavigation';\n\ninterface NotificationCardProps {\n notification: Notification;\n onMarkAsRead?: (id: string) => void;\n onArchive?: (id: string) => void;\n onAction?: (notificationId: string, actionId?: string) => void;\n onClick?: (notification: Notification) => void;\n showArchivedState?: boolean;\n compact?: boolean;\n analyticsSource?: 'center' | 'panel' | 'history' | 'admin_history';\n /**\n * FluidGrids' Navigation v2 card (BOFF-11872): an archive icon with an\n * \"Archive\" tooltip instead of \"X\", the priority footer only for Urgent or\n * High (sentence case), \"Open\" for the link, and the topic chip only when\n * `showTopic` is on. Other apps leave it off and keep today's card.\n */\n navigationV2?: boolean;\n /** Navigation v2 only: show the topic chip (a level-2 detail). */\n showTopic?: boolean;\n}\n\n/** Navigation v2's priority footer: only the two that need attention, in sentence case. */\nconst V2_PRIORITY_LABELS: Partial<\n Record<Notification['priority'], { key: string; label: string }>\n> = {\n URGENT: { key: 'notifications.priorityUrgent', label: 'Urgent' },\n HIGH: { key: 'notifications.priorityHigh', label: 'High' },\n};\n\n/**\n * Notification card component\n *\n * Displays notification information with action buttons\n */\nexport function NotificationCard({\n notification,\n onMarkAsRead,\n onArchive,\n onAction,\n onClick,\n showArchivedState = false,\n compact = false,\n analyticsSource = 'center',\n navigationV2 = false,\n showTopic = false,\n}: NotificationCardProps) {\n const tr = useTr();\n const { trackNotificationOpened } = useNotificationAnalytics();\n const isUnread = !notification.readAt;\n const isArchived = Boolean(notification.archivedAt);\n const v2Priority = V2_PRIORITY_LABELS[notification.priority];\n\n const handleClick = () => {\n trackNotificationOpened(notification, analyticsSource, 'card');\n if (onClick) {\n onClick(notification);\n }\n if (isUnread && onMarkAsRead) {\n onMarkAsRead(notification.id);\n }\n };\n\n const handleArchive = (e: React.MouseEvent) => {\n e.stopPropagation();\n if (onArchive) {\n onArchive(notification.id);\n }\n };\n\n // A link into this app (an agent, a run, a vibe) opens in place, like the\n // shell's notification bell; only a link that leaves the app opens a new tab\n // (or the system browser on native).\n const openNotificationLink = (url: string) => {\n if (navigateInApp(url)) return;\n if (url.startsWith('https://')) {\n void nativeOpenUrl(url);\n } else {\n window.open(url, '_blank', 'noopener,noreferrer');\n }\n };\n\n const handleActionUrl = (e: React.MouseEvent) => {\n e.stopPropagation();\n nativeImpact('light');\n if (notification.actionUrl) {\n trackNotificationOpened(notification, analyticsSource, 'primary_action');\n onAction?.(notification.id);\n openNotificationLink(notification.actionUrl);\n }\n };\n\n const handleActionClick = (e: React.MouseEvent, actionId: string, actionUrl: string) => {\n e.stopPropagation();\n nativeImpact('light');\n trackNotificationOpened(notification, analyticsSource, 'custom_action');\n onAction?.(notification.id, actionId);\n openNotificationLink(actionUrl);\n };\n\n return (\n <div\n data-tour=\"notification-card\"\n className={`\n relative flex flex-col gap-2 p-4 rounded-lg border cursor-pointer\n transition-[box-shadow,border-color,opacity] duration-200 ease-in-out\n bg-gloss-card\n ${isUnread ? 'border-accent-primary/30 shadow-sm ring-1 ring-accent-primary/10' : 'border-border-seam opacity-75'}\n ${showArchivedState && isArchived ? 'border-dashed opacity-60' : ''}\n hover:shadow-[var(--shadow-pop)] hover:border-accent-primary/30 hover:opacity-100\n `}\n onClick={handleClick}\n >\n {/* Unread indicator */}\n {isUnread && (\n <div className=\"absolute top-4 left-1.5 w-2.5 h-2.5 bg-accent-primary rounded-full shadow-sm shadow-accent-primary/50 motion-safe:animate-vc-glow-pulse\" />\n )}\n\n {/* Header */}\n <div className=\"flex items-start justify-between gap-2 ml-3\">\n <div className=\"flex items-center gap-2 flex-1 min-w-0\">\n <span className=\"text-base\" aria-hidden=\"true\">\n {getNotificationTypeIcon(notification.type)}\n </span>\n <h3\n className={`text-sm truncate ${isUnread ? 'font-bold text-primary' : 'font-medium text-text-secondary'}`}\n >\n {compact ? truncateText(notification.title, 60) : notification.title}\n </h3>\n <span className=\"text-xs\" aria-label={`Priority: ${notification.priority}`}>\n {getPriorityIcon(notification.priority)}\n </span>\n </div>\n\n {onArchive && navigationV2 && (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n data-tour=\"notification-archive-action\"\n onClick={handleArchive}\n className=\"flex-shrink-0 rounded p-1 transition-colors duration-150 hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]\"\n aria-label={tr('notifCommon.archiveNotification', 'Archive notification')}\n >\n <Archive\n size={16}\n className=\"text-tertiary hover:text-text-secondary\"\n aria-hidden=\"true\"\n />\n </button>\n </TooltipTrigger>\n <TooltipContent>{tr('notifications.v2.archive', 'Archive')}</TooltipContent>\n </Tooltip>\n )}\n {onArchive && !navigationV2 && (\n <button\n data-tour=\"notification-archive-action\"\n onClick={handleArchive}\n className=\"flex-shrink-0 p-1 hover:bg-bg-sunken rounded transition-colors duration-150\"\n aria-label={tr('notifCommon.archiveNotification', 'Archive notification')}\n >\n <X size={16} className=\"text-tertiary hover:text-text-secondary\" />\n </button>\n )}\n </div>\n\n {/* Body */}\n <div className=\"ml-3\">\n {notification.media[0]?.url && (\n <img\n src={notification.media[0].thumbnailUrl || notification.media[0].url}\n alt={notification.media[0].label || notification.title}\n className=\"mb-3 h-40 w-full rounded-md object-cover border border-default\"\n />\n )}\n <p className={`text-sm text-text-secondary ${compact ? 'line-clamp-2' : ''}`}>\n {compact ? truncateText(notification.body, 120) : notification.body}\n </p>\n {notification.topic && (!navigationV2 || showTopic) && (\n <div className=\"mt-2 inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary\">\n {notification.topic.name}\n </div>\n )}\n </div>\n\n {notification.actions.length > 0 && !compact && (\n <div className=\"ml-3 flex flex-wrap gap-2\">\n {notification.actions.map((action) => (\n <button\n key={action.id}\n onClick={(e) => handleActionClick(e, action.id, action.url)}\n className={`rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${\n action.style === 'secondary'\n ? 'bg-bg-sunken text-text-secondary hover:bg-bg-sunken/80'\n : action.style === 'danger'\n ? 'bg-status-error-bg-subtle text-status-error-text hover:opacity-80'\n : 'bg-accent-primary text-white hover:opacity-90'\n }`}\n >\n {action.label}\n </button>\n ))}\n </div>\n )}\n\n {/* Footer */}\n <div className=\"flex items-center justify-between gap-2 ml-3\">\n <div className=\"flex items-center gap-2 text-xs text-tertiary\">\n {navigationV2 ? (\n v2Priority && (\n <>\n <span className={getPriorityColor(notification.priority)}>\n {tr(v2Priority.key, v2Priority.label)}\n </span>\n <span>•</span>\n </>\n )\n ) : (\n <>\n <span className={getPriorityColor(notification.priority)}>\n {notification.priority}\n </span>\n <span>•</span>\n </>\n )}\n {showArchivedState && isArchived && (\n <>\n <span>{tr('notifCommon.archived', 'Archived')}</span>\n <span>•</span>\n </>\n )}\n <time dateTime={notification.createdAt}>\n {formatRelativeTime(notification.createdAt, tr)}\n </time>\n </div>\n\n {notification.actionUrl && (\n <button\n onClick={handleActionUrl}\n className=\"flex items-center gap-1 text-xs text-accent-primary hover:text-accent-primary/80 transition-colors duration-150\"\n aria-label={tr('notifCommon.openLink', 'Open link')}\n >\n <span>\n {navigationV2 ? tr('notifications.v2.open', 'Open') : tr('notifCommon.view', 'View')}\n </span>\n <ExternalLink size={12} />\n </button>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAoCA,IAAMC,IAEF;CACF,QAAQ;EAAE,KAAK;EAAgC,OAAO;CAAS;CAC/D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