@burdenoff/microfe-eventfullymanaged 2026.1110.8 → 2026.1110.10

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.
@@ -1,61 +1,98 @@
1
- import { useAnalyticsSnapshotsQuery as e, useAnnouncementsQuery as t, useAutomationRulesQuery as n, useCheckInRecordsQuery as r, useCommunicationCampaignsQuery as i, useDashboardSummaryQuery as a, useEventSessionsQuery as o, useExhibitorsQuery as s, useLeadsQuery as c, useNetworkingProfilesQuery as l, usePromoCodesQuery as u, useRegistrationsQuery as d, useSponsorsQuery as f, useTicketTypesQuery as p, useVenuesQuery as m, useWorkflowTemplatesQuery as h } from "../../api/eventApi.js";
2
- import { useEventfullyManaged as g } from "../../context/EventfullyManagedContext.js";
3
- import { EntityListSection as _ } from "./EntityListSection.js";
4
- import { useMemo as v } from "react";
5
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
6
- import { LayoutDashboard as x, Megaphone as S, Workflow as C } from "lucide-react";
7
- import { EmphasisPanel as w, GlassCard as T, GradientText as E, NextSteps as D, PagePurpose as ee, ShowMore as te } from "@burdenoff/fe-libs/ui";
1
+ import { useAnalyticsSnapshotsQuery as e, useAnnouncementsQuery as t, useAutomationRulesQuery as n, useCheckInRecordsQuery as r, useCommunicationCampaignsQuery as i, useDashboardSummaryQuery as a, useEventSessionsQuery as ee, useExhibitorsQuery as o, useFinanceSummaryQuery as s, useLeadsQuery as c, useNetworkingProfilesQuery as te, usePromoCodesQuery as ne, useRegistrationsQuery as re, useSponsorsQuery as l, useTicketTypesQuery as u, useVenuesQuery as d, useWorkflowTemplatesQuery as ie } from "../../api/eventApi.js";
2
+ import { useEventfullyManaged as ae } from "../../context/EventfullyManagedContext.js";
3
+ import { EntityListSection as f } from "./EntityListSection.js";
4
+ import { useMemo as p } from "react";
5
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
6
+ import { LayoutDashboard as g, Megaphone as _, Workflow as v } from "lucide-react";
7
+ import { EmphasisPanel as y, GlassCard as b, GradientText as x, NextSteps as S, PagePurpose as C, ShowMore as w } from "@burdenoff/fe-libs/ui";
8
8
  // src/eventfullymanaged/pages/modules/OperationsHubPage.tsx
9
- function O({ title: O, description: k, sectionKeys: A }) {
10
- let { navigate: j } = g(), M = a(), N = t({
9
+ function T(e, t) {
10
+ let n = Number(t);
11
+ if (!Number.isFinite(n)) return `${t} ${e}`;
12
+ try {
13
+ return new Intl.NumberFormat(void 0, {
14
+ style: "currency",
15
+ currency: e
16
+ }).format(n);
17
+ } catch {
18
+ return `${new Intl.NumberFormat().format(n)} ${e}`;
19
+ }
20
+ }
21
+ function E({ title: E, description: oe, sectionKeys: D, financial: O }) {
22
+ let { navigate: k } = ae(), A = (e) => D.includes(e), j = a(), M = t({
11
23
  limit: 100,
12
- offset: 0
13
- }), P = i({
24
+ offset: 0,
25
+ skip: !A("announcements")
26
+ }), N = i({
14
27
  limit: 100,
15
- offset: 0
16
- }), F = h({
28
+ offset: 0,
29
+ skip: !A("campaigns")
30
+ }), P = ie({
17
31
  limit: 100,
18
- offset: 0
19
- }), I = n({
32
+ offset: 0,
33
+ skip: !A("templates")
34
+ }), F = n({
20
35
  limit: 100,
21
- offset: 0
22
- }), L = e({
36
+ offset: 0,
37
+ skip: !A("rules")
38
+ }), I = e({
23
39
  limit: 100,
24
- offset: 0
25
- }), R = d({
40
+ offset: 0,
41
+ skip: !A("snapshots")
42
+ }), L = re({
26
43
  limit: 100,
27
- offset: 0
28
- }), z = p({
44
+ offset: 0,
45
+ skip: !A("registrations")
46
+ }), R = u({
29
47
  limit: 100,
30
- offset: 0
31
- }), B = u({
48
+ offset: 0,
49
+ skip: !A("ticketTypes")
50
+ }), z = ne({
32
51
  limit: 100,
33
- offset: 0
34
- }), V = f({
52
+ offset: 0,
53
+ skip: !A("promoCodes")
54
+ }), B = l({
35
55
  limit: 100,
36
- offset: 0
37
- }), H = s({
56
+ offset: 0,
57
+ skip: !A("sponsors")
58
+ }), V = o({
38
59
  limit: 100,
39
- offset: 0
40
- }), U = c({
60
+ offset: 0,
61
+ skip: !A("exhibitors")
62
+ }), H = c({
41
63
  limit: 100,
42
- offset: 0
43
- }), W = m({
64
+ offset: 0,
65
+ skip: !A("leads")
66
+ }), U = d({
44
67
  limit: 100,
45
- offset: 0
46
- }), G = o({
68
+ offset: 0,
69
+ skip: !A("venues")
70
+ }), W = ee({
47
71
  limit: 100,
48
- offset: 0
49
- }), K = r({
72
+ offset: 0,
73
+ skip: !A("sessions")
74
+ }), G = r({
50
75
  limit: 100,
51
- offset: 0
52
- }), q = l({
76
+ offset: 0,
77
+ skip: !A("checkInRecords")
78
+ }), K = te({
53
79
  limit: 100,
54
- offset: 0
55
- }), J = M.data?.dashboardSummary, Y = v(() => R.data?.registrations.items ?? [], [R.data]), X = v(() => Y.reduce((e, t) => {
56
- let n = Number(t.totalAmount ?? 0);
57
- return Number.isFinite(n) ? e + n : e;
58
- }, 0), [Y]), Z = [
80
+ offset: 0,
81
+ skip: !A("networkingProfiles")
82
+ }), q = s({ skip: !O }), J = j.data?.dashboardSummary, Y = q.data?.financeSummary, X = p(() => L.data?.registrations.items ?? [], [L.data]), se = O ? [
83
+ {
84
+ label: "Registrations",
85
+ value: Y?.registrationsTotal ?? 0
86
+ },
87
+ {
88
+ label: "Ticket Types",
89
+ value: Y?.ticketTypesTotal ?? 0
90
+ },
91
+ {
92
+ label: "Promo Codes",
93
+ value: Y?.promoCodesTotal ?? 0
94
+ }
95
+ ] : [
59
96
  {
60
97
  label: "Events",
61
98
  value: J?.totalEvents ?? 0
@@ -79,16 +116,15 @@ function O({ title: O, description: k, sectionKeys: A }) {
79
116
  {
80
117
  label: "Sponsors",
81
118
  value: J?.totalSponsors ?? 0
82
- },
83
- {
84
- label: "Tracked Revenue",
85
- value: X.toFixed(2)
86
119
  }
87
- ], Q = (e) => {
120
+ ], Z = p(() => (Y?.revenueByCurrency ?? []).map((e) => ({
121
+ currency: e.currency,
122
+ formatted: T(e.currency, e.amount)
123
+ })), [Y]), Q = (e) => {
88
124
  if (e === "announcements") {
89
- let e = N.data?.announcements.items ?? [];
90
- return /* @__PURE__ */ y(_, {
91
- heading: N.loading ? "Loading announcements..." : `Announcements (${e.length})`,
125
+ let e = M.data?.announcements.items ?? [];
126
+ return /* @__PURE__ */ m(f, {
127
+ heading: M.loading ? "Loading announcements..." : `Announcements (${M.data?.announcements.total ?? e.length})`,
92
128
  emptyLabel: "No announcements recorded.",
93
129
  rows: e.map((e) => ({
94
130
  id: e.id,
@@ -98,9 +134,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
98
134
  });
99
135
  }
100
136
  if (e === "campaigns") {
101
- let e = P.data?.communicationCampaigns.items ?? [];
102
- return /* @__PURE__ */ y(_, {
103
- heading: P.loading ? "Loading campaigns..." : `Campaigns (${e.length})`,
137
+ let e = N.data?.communicationCampaigns.items ?? [];
138
+ return /* @__PURE__ */ m(f, {
139
+ heading: N.loading ? "Loading campaigns..." : `Campaigns (${N.data?.communicationCampaigns.total ?? e.length})`,
104
140
  emptyLabel: "No communication campaigns available.",
105
141
  rows: e.map((e) => ({
106
142
  id: e.id,
@@ -110,9 +146,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
110
146
  });
111
147
  }
112
148
  if (e === "templates") {
113
- let e = F.data?.workflowTemplates.items ?? [];
114
- return /* @__PURE__ */ y(_, {
115
- heading: F.loading ? "Loading templates..." : `Workflow Templates (${e.length})`,
149
+ let e = P.data?.workflowTemplates.items ?? [];
150
+ return /* @__PURE__ */ m(f, {
151
+ heading: P.loading ? "Loading templates..." : `Workflow Templates (${P.data?.workflowTemplates.total ?? e.length})`,
116
152
  emptyLabel: "No workflow templates configured.",
117
153
  rows: e.map((e) => ({
118
154
  id: e.id,
@@ -122,9 +158,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
122
158
  });
123
159
  }
124
160
  if (e === "rules") {
125
- let e = I.data?.automationRules.items ?? [];
126
- return /* @__PURE__ */ y(_, {
127
- heading: I.loading ? "Loading rules..." : `Automation Rules (${e.length})`,
161
+ let e = F.data?.automationRules.items ?? [];
162
+ return /* @__PURE__ */ m(f, {
163
+ heading: F.loading ? "Loading rules..." : `Automation Rules (${F.data?.automationRules.total ?? e.length})`,
128
164
  emptyLabel: "No automation rules configured.",
129
165
  rows: e.map((e) => ({
130
166
  id: e.id,
@@ -134,9 +170,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
134
170
  });
135
171
  }
136
172
  if (e === "snapshots") {
137
- let e = L.data?.analyticsSnapshots.items ?? [];
138
- return /* @__PURE__ */ y(_, {
139
- heading: L.loading ? "Loading analytics snapshots..." : `Snapshots (${e.length})`,
173
+ let e = I.data?.analyticsSnapshots.items ?? [];
174
+ return /* @__PURE__ */ m(f, {
175
+ heading: I.loading ? "Loading analytics snapshots..." : `Snapshots (${I.data?.analyticsSnapshots.total ?? e.length})`,
140
176
  emptyLabel: "No analytics snapshots generated.",
141
177
  rows: e.map((e) => ({
142
178
  id: e.id,
@@ -145,20 +181,20 @@ function O({ title: O, description: k, sectionKeys: A }) {
145
181
  }))
146
182
  });
147
183
  }
148
- if (e === "registrations") return /* @__PURE__ */ y(_, {
149
- heading: R.loading ? "Loading registrations..." : `Registrations (${Y.length})`,
184
+ if (e === "registrations") return /* @__PURE__ */ m(f, {
185
+ heading: L.loading ? "Loading registrations..." : `Registrations (${L.data?.registrations.total ?? X.length})`,
150
186
  emptyLabel: "No registrations available.",
151
- rows: Y.map((e) => ({
187
+ rows: X.map((e) => ({
152
188
  id: e.id,
153
- title: e.attendeeId ? `Attendee ${e.attendeeId}` : `Registration ${e.id}`,
154
- subtitle: e.totalAmount ? `${e.totalAmount} ${e.currency ?? ""}`.trim() : void 0,
189
+ title: e.attendeeName ?? (e.attendeeId ? `Attendee ${e.attendeeId}` : `Registration ${e.id}`),
190
+ subtitle: e.totalAmount ? T(e.currency ?? "", e.totalAmount) : void 0,
155
191
  status: e.status ?? void 0
156
192
  }))
157
193
  });
158
194
  if (e === "ticketTypes") {
159
- let e = z.data?.ticketTypes.items ?? [];
160
- return /* @__PURE__ */ y(_, {
161
- heading: z.loading ? "Loading ticket types..." : `Ticket Types (${e.length})`,
195
+ let e = R.data?.ticketTypes.items ?? [];
196
+ return /* @__PURE__ */ m(f, {
197
+ heading: R.loading ? "Loading ticket types..." : `Ticket Types (${R.data?.ticketTypes.total ?? e.length})`,
162
198
  emptyLabel: "No ticket types configured.",
163
199
  rows: e.map((e) => ({
164
200
  id: e.id,
@@ -169,9 +205,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
169
205
  });
170
206
  }
171
207
  if (e === "promoCodes") {
172
- let e = B.data?.promoCodes.items ?? [];
173
- return /* @__PURE__ */ y(_, {
174
- heading: B.loading ? "Loading promo codes..." : `Promo Codes (${e.length})`,
208
+ let e = z.data?.promoCodes.items ?? [];
209
+ return /* @__PURE__ */ m(f, {
210
+ heading: z.loading ? "Loading promo codes..." : `Promo Codes (${z.data?.promoCodes.total ?? e.length})`,
175
211
  emptyLabel: "No promo codes configured.",
176
212
  rows: e.map((e) => ({
177
213
  id: e.id,
@@ -182,9 +218,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
182
218
  });
183
219
  }
184
220
  if (e === "sponsors") {
185
- let e = V.data?.sponsors.items ?? [];
186
- return /* @__PURE__ */ y(_, {
187
- heading: V.loading ? "Loading sponsors..." : `Sponsors (${e.length})`,
221
+ let e = B.data?.sponsors.items ?? [];
222
+ return /* @__PURE__ */ m(f, {
223
+ heading: B.loading ? "Loading sponsors..." : `Sponsors (${B.data?.sponsors.total ?? e.length})`,
188
224
  emptyLabel: "No sponsors onboarded.",
189
225
  rows: e.map((e) => ({
190
226
  id: e.id,
@@ -194,9 +230,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
194
230
  });
195
231
  }
196
232
  if (e === "exhibitors") {
197
- let e = H.data?.exhibitors.items ?? [];
198
- return /* @__PURE__ */ y(_, {
199
- heading: H.loading ? "Loading exhibitors..." : `Exhibitors (${e.length})`,
233
+ let e = V.data?.exhibitors.items ?? [];
234
+ return /* @__PURE__ */ m(f, {
235
+ heading: V.loading ? "Loading exhibitors..." : `Exhibitors (${V.data?.exhibitors.total ?? e.length})`,
200
236
  emptyLabel: "No exhibitors onboarded.",
201
237
  rows: e.map((e) => ({
202
238
  id: e.id,
@@ -207,9 +243,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
207
243
  });
208
244
  }
209
245
  if (e === "leads") {
210
- let e = U.data?.leads.items ?? [];
211
- return /* @__PURE__ */ y(_, {
212
- heading: U.loading ? "Loading leads..." : `Leads (${e.length})`,
246
+ let e = H.data?.leads.items ?? [];
247
+ return /* @__PURE__ */ m(f, {
248
+ heading: H.loading ? "Loading leads..." : `Leads (${H.data?.leads.total ?? e.length})`,
213
249
  emptyLabel: "No leads captured.",
214
250
  rows: e.map((e) => ({
215
251
  id: e.id,
@@ -220,9 +256,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
220
256
  });
221
257
  }
222
258
  if (e === "venues") {
223
- let e = W.data?.venues.items ?? [];
224
- return /* @__PURE__ */ y(_, {
225
- heading: W.loading ? "Loading venues..." : `Venues (${e.length})`,
259
+ let e = U.data?.venues.items ?? [];
260
+ return /* @__PURE__ */ m(f, {
261
+ heading: U.loading ? "Loading venues..." : `Venues (${U.data?.venues.total ?? e.length})`,
226
262
  emptyLabel: "No venues configured.",
227
263
  rows: e.map((e) => ({
228
264
  id: e.id,
@@ -233,9 +269,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
233
269
  });
234
270
  }
235
271
  if (e === "checkInRecords") {
236
- let e = K.data?.checkInRecords.items ?? [];
237
- return /* @__PURE__ */ y(_, {
238
- heading: K.loading ? "Loading check-in records..." : `Check-In Records (${e.length})`,
272
+ let e = G.data?.checkInRecords.items ?? [];
273
+ return /* @__PURE__ */ m(f, {
274
+ heading: G.loading ? "Loading check-in records..." : `Check-In Records (${G.data?.checkInRecords.total ?? e.length})`,
239
275
  emptyLabel: "No check-in records found.",
240
276
  rows: e.map((e) => ({
241
277
  id: e.id,
@@ -246,9 +282,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
246
282
  });
247
283
  }
248
284
  if (e === "networkingProfiles") {
249
- let e = q.data?.networkingProfiles.items ?? [];
250
- return /* @__PURE__ */ y(_, {
251
- heading: q.loading ? "Loading networking profiles..." : `Profiles (${e.length})`,
285
+ let e = K.data?.networkingProfiles.items ?? [];
286
+ return /* @__PURE__ */ m(f, {
287
+ heading: K.loading ? "Loading networking profiles..." : `Profiles (${K.data?.networkingProfiles.total ?? e.length})`,
252
288
  emptyLabel: "No networking profiles available.",
253
289
  rows: e.map((e) => ({
254
290
  id: e.id,
@@ -258,9 +294,9 @@ function O({ title: O, description: k, sectionKeys: A }) {
258
294
  }))
259
295
  });
260
296
  }
261
- let t = G.data?.eventSessions.items ?? [];
262
- return /* @__PURE__ */ y(_, {
263
- heading: G.loading ? "Loading sessions..." : `Sessions (${t.length})`,
297
+ let t = W.data?.eventSessions.items ?? [];
298
+ return /* @__PURE__ */ m(f, {
299
+ heading: W.loading ? "Loading sessions..." : `Sessions (${W.data?.eventSessions.total ?? t.length})`,
264
300
  emptyLabel: "No sessions scheduled.",
265
301
  rows: t.map((e) => ({
266
302
  id: e.id,
@@ -269,49 +305,80 @@ function O({ title: O, description: k, sectionKeys: A }) {
269
305
  status: e.status ?? void 0
270
306
  }))
271
307
  });
272
- }, ne = A.slice(0, 3), $ = A.slice(3);
273
- return /* @__PURE__ */ b("div", {
308
+ }, ce = D.slice(0, 3), $ = D.slice(3);
309
+ return /* @__PURE__ */ h("div", {
274
310
  className: "space-y-6 p-6",
275
311
  children: [
276
- /* @__PURE__ */ b(ee, { children: [
312
+ /* @__PURE__ */ h(C, { children: [
277
313
  "A focused operations hub that pulls together the live records most relevant to ",
278
- O,
314
+ E,
279
315
  ". Instead of jumping between modules, you get the key metrics plus the specific lists you need for this area in one place — handy for a quick health check or a stand-up update."
280
316
  ] }),
281
- /* @__PURE__ */ b(w, { children: [/* @__PURE__ */ y("h1", {
317
+ /* @__PURE__ */ h(y, { children: [/* @__PURE__ */ m("h1", {
282
318
  className: "text-2xl font-bold text-text-primary",
283
- children: /* @__PURE__ */ y(E, { children: O })
284
- }), /* @__PURE__ */ y("p", {
319
+ children: /* @__PURE__ */ m(x, { children: E })
320
+ }), /* @__PURE__ */ m("p", {
285
321
  className: "mt-1 text-sm text-text-secondary",
286
- children: k
322
+ children: oe
287
323
  })] }),
288
- /* @__PURE__ */ b("section", { children: [/* @__PURE__ */ y("h2", {
289
- className: "text-lg font-semibold text-text-primary",
290
- children: "Operational Metrics"
291
- }), /* @__PURE__ */ y("div", {
292
- className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
293
- children: Z.map((e) => /* @__PURE__ */ b(T, {
294
- treatment: "metric",
295
- className: "p-3",
296
- children: [/* @__PURE__ */ y("p", {
297
- className: "text-xs uppercase tracking-wide text-text-secondary",
298
- children: e.label
299
- }), /* @__PURE__ */ y("p", {
300
- className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
301
- children: e.value
302
- })]
303
- }, e.label))
304
- })] }),
305
- ne.map((e) => /* @__PURE__ */ y("div", { children: Q(e) }, e)),
306
- $.length > 0 ? /* @__PURE__ */ y(te, {
324
+ /* @__PURE__ */ h("section", { children: [
325
+ /* @__PURE__ */ m("h2", {
326
+ className: "text-lg font-semibold text-text-primary",
327
+ children: O ? "Revenue" : "Operational Metrics"
328
+ }),
329
+ O ? /* @__PURE__ */ m("div", {
330
+ className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
331
+ children: Z.length > 0 ? Z.map((e) => /* @__PURE__ */ h(b, {
332
+ treatment: "metric",
333
+ className: "p-3",
334
+ children: [/* @__PURE__ */ h("p", {
335
+ className: "text-xs uppercase tracking-wide text-text-secondary",
336
+ children: [
337
+ "Revenue (",
338
+ e.currency,
339
+ ")"
340
+ ]
341
+ }), /* @__PURE__ */ m("p", {
342
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
343
+ children: e.formatted
344
+ })]
345
+ }, e.currency)) : /* @__PURE__ */ h(b, {
346
+ treatment: "metric",
347
+ className: "p-3",
348
+ children: [/* @__PURE__ */ m("p", {
349
+ className: "text-xs uppercase tracking-wide text-text-secondary",
350
+ children: "Revenue"
351
+ }), /* @__PURE__ */ m("p", {
352
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
353
+ children: q.loading ? "…" : "No revenue yet"
354
+ })]
355
+ })
356
+ }) : null,
357
+ /* @__PURE__ */ m("div", {
358
+ className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
359
+ children: se.map((e) => /* @__PURE__ */ h(b, {
360
+ treatment: "metric",
361
+ className: "p-3",
362
+ children: [/* @__PURE__ */ m("p", {
363
+ className: "text-xs uppercase tracking-wide text-text-secondary",
364
+ children: e.label
365
+ }), /* @__PURE__ */ m("p", {
366
+ className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
367
+ children: e.value
368
+ })]
369
+ }, e.label))
370
+ })
371
+ ] }),
372
+ ce.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e)),
373
+ $.length > 0 ? /* @__PURE__ */ m(w, {
307
374
  collapsedHeight: 160,
308
375
  label: "Show all sections",
309
- children: /* @__PURE__ */ y("div", {
376
+ children: /* @__PURE__ */ m("div", {
310
377
  className: "space-y-6",
311
- children: $.map((e) => /* @__PURE__ */ y("div", { children: Q(e) }, e))
378
+ children: $.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e))
312
379
  })
313
380
  }) : null,
314
- /* @__PURE__ */ y(D, {
381
+ /* @__PURE__ */ m(S, {
315
382
  storageKey: "eventfullymanaged-operations-hub",
316
383
  title: "Where to go from here",
317
384
  steps: [
@@ -319,28 +386,28 @@ function O({ title: O, description: k, sectionKeys: A }) {
319
386
  id: "overview",
320
387
  label: "Back to the dashboard",
321
388
  description: "See the big picture across every part of your events.",
322
- icon: /* @__PURE__ */ y(x, { className: "h-4 w-4" }),
323
- onClick: () => j("/")
389
+ icon: /* @__PURE__ */ m(g, { className: "h-4 w-4" }),
390
+ onClick: () => k("/")
324
391
  },
325
392
  {
326
393
  id: "automate",
327
394
  label: "Automate routine work",
328
395
  description: "Set up workflow templates and rules to save time.",
329
- icon: /* @__PURE__ */ y(C, { className: "h-4 w-4" }),
330
- onClick: () => j("/workflows")
396
+ icon: /* @__PURE__ */ m(v, { className: "h-4 w-4" }),
397
+ onClick: () => k("/workflows")
331
398
  },
332
399
  {
333
400
  id: "communicate",
334
401
  label: "Reach your audience",
335
402
  description: "Send announcements and run campaigns.",
336
- icon: /* @__PURE__ */ y(S, { className: "h-4 w-4" }),
337
- onClick: () => j("/communication")
403
+ icon: /* @__PURE__ */ m(_, { className: "h-4 w-4" }),
404
+ onClick: () => k("/communication")
338
405
  }
339
406
  ]
340
407
  })
341
408
  ]
342
409
  });
343
410
  }
344
- export { O as default };
411
+ export { E as default };
345
412
 
346
413
  //# sourceMappingURL=OperationsHubPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsHubPage.js","names":["OperationsHubPage","useEventfullyManaged","summaryQuery","useDashboardSummaryQuery","announcementsQuery","useAnnouncementsQuery","campaignsQuery","useCommunicationCampaignsQuery","templatesQuery","useWorkflowTemplatesQuery","rulesQuery","useAutomationRulesQuery","snapshotsQuery","useAnalyticsSnapshotsQuery","registrationsQuery","useRegistrationsQuery","ticketTypesQuery","useTicketTypesQuery","promoCodesQuery","usePromoCodesQuery","sponsorsQuery","useSponsorsQuery","exhibitorsQuery","useExhibitorsQuery","leadsQuery","useLeadsQuery","venuesQuery","useVenuesQuery","sessionsQuery","useEventSessionsQuery","checkInRecordsQuery","useCheckInRecordsQuery","networkingProfilesQuery","useNetworkingProfilesQuery","summary","registrations","useMemo","trackedRevenue","value","registration","total","cards","renderSection","sectionKey","rows","EntityListSection","row","primarySections","sectionKeys","secondarySections","PagePurpose","title","EmphasisPanel","GradientText","description","GlassCard","card","ShowMore","NextSteps","LayoutDashboard","navigate","Workflow","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/OperationsHubPage.tsx"],"sourcesContent":["import { LayoutDashboard, Megaphone, Workflow } from 'lucide-react';\nimport { EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose, ShowMore } from '@burdenoff/fe-libs/ui';\nimport { useMemo } from 'react';\n\nimport {\n useExhibitorsQuery,\n useLeadsQuery,\n useCheckInRecordsQuery,\n useNetworkingProfilesQuery,\n usePromoCodesQuery,\n useTicketTypesQuery,\n useAnalyticsSnapshotsQuery,\n useAnnouncementsQuery,\n useAutomationRulesQuery,\n useCommunicationCampaignsQuery,\n useDashboardSummaryQuery,\n useEventSessionsQuery,\n useRegistrationsQuery,\n useSponsorsQuery,\n useVenuesQuery,\n useWorkflowTemplatesQuery,\n} from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { EntityListSection } from './EntityListSection';\n\ntype SectionKey =\n | 'announcements'\n | 'campaigns'\n | 'templates'\n | 'rules'\n | 'snapshots'\n | 'registrations'\n | 'ticketTypes'\n | 'promoCodes'\n | 'sponsors'\n | 'exhibitors'\n | 'leads'\n | 'venues'\n | 'sessions'\n | 'checkInRecords'\n | 'networkingProfiles';\n\ninterface OperationsHubPageProps {\n title: string;\n description: string;\n sectionKeys: SectionKey[];\n}\n\ntype NamedEntity = {\n id: string;\n name?: string | null;\n title?: string | null;\n status?: string | null;\n};\n\ntype RegistrationEntity = {\n id: string;\n attendeeId?: string | null;\n status?: string | null;\n totalAmount?: string | null;\n currency?: string | null;\n};\n\ntype SponsorEntity = {\n id: string;\n name: string;\n level: string;\n};\n\ntype VenueEntity = {\n id: string;\n name: string;\n city?: string | null;\n status: string;\n};\n\ntype SessionEntity = {\n id: string;\n title?: string | null;\n sessionType?: string | null;\n status?: string | null;\n};\n\ntype ExhibitorEntity = {\n id: string;\n name: string;\n boothCode?: string | null;\n category?: string | null;\n status: string;\n};\n\ntype LeadEntity = {\n id: string;\n attendeeName: string;\n attendeeEmail: string;\n status: string;\n score?: number | null;\n};\n\nexport default function OperationsHubPage({ title, description, sectionKeys }: OperationsHubPageProps) {\n const { navigate } = useEventfullyManaged();\n const summaryQuery = useDashboardSummaryQuery();\n const announcementsQuery = useAnnouncementsQuery({ limit: 100, offset: 0 });\n const campaignsQuery = useCommunicationCampaignsQuery({ limit: 100, offset: 0 });\n const templatesQuery = useWorkflowTemplatesQuery({ limit: 100, offset: 0 });\n const rulesQuery = useAutomationRulesQuery({ limit: 100, offset: 0 });\n const snapshotsQuery = useAnalyticsSnapshotsQuery({ limit: 100, offset: 0 });\n const registrationsQuery = useRegistrationsQuery({ limit: 100, offset: 0 });\n const ticketTypesQuery = useTicketTypesQuery({ limit: 100, offset: 0 });\n const promoCodesQuery = usePromoCodesQuery({ limit: 100, offset: 0 });\n const sponsorsQuery = useSponsorsQuery({ limit: 100, offset: 0 });\n const exhibitorsQuery = useExhibitorsQuery({ limit: 100, offset: 0 });\n const leadsQuery = useLeadsQuery({ limit: 100, offset: 0 });\n const venuesQuery = useVenuesQuery({ limit: 100, offset: 0 });\n const sessionsQuery = useEventSessionsQuery({ limit: 100, offset: 0 });\n const checkInRecordsQuery = useCheckInRecordsQuery({ limit: 100, offset: 0 });\n const networkingProfilesQuery = useNetworkingProfilesQuery({ limit: 100, offset: 0 });\n\n const summary = summaryQuery.data?.dashboardSummary;\n\n const registrations = useMemo(\n () => (registrationsQuery.data?.registrations.items ?? []) as RegistrationEntity[],\n [registrationsQuery.data]\n );\n\n const trackedRevenue = useMemo(\n () =>\n registrations.reduce((total, registration) => {\n const value = Number(registration.totalAmount ?? 0);\n return Number.isFinite(value) ? total + value : total;\n }, 0),\n [registrations]\n );\n\n const cards = [\n { label: 'Events', value: summary?.totalEvents ?? 0 },\n { label: 'Active', value: summary?.activeEvents ?? 0 },\n { label: 'Registrations', value: summary?.totalRegistrations ?? 0 },\n { label: 'Attendees', value: summary?.totalAttendees ?? 0 },\n { label: 'Venues', value: summary?.totalVenues ?? 0 },\n { label: 'Sponsors', value: summary?.totalSponsors ?? 0 },\n { label: 'Tracked Revenue', value: trackedRevenue.toFixed(2) },\n ];\n\n const renderSection = (sectionKey: SectionKey) => {\n if (sectionKey === 'announcements') {\n const rows = (announcementsQuery.data?.announcements.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={announcementsQuery.loading ? 'Loading announcements...' : `Announcements (${rows.length})`}\n emptyLabel=\"No announcements recorded.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Announcement ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'campaigns') {\n const rows = (campaignsQuery.data?.communicationCampaigns.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={campaignsQuery.loading ? 'Loading campaigns...' : `Campaigns (${rows.length})`}\n emptyLabel=\"No communication campaigns available.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Campaign ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'templates') {\n const rows = (templatesQuery.data?.workflowTemplates.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={templatesQuery.loading ? 'Loading templates...' : `Workflow Templates (${rows.length})`}\n emptyLabel=\"No workflow templates configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Template ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'rules') {\n const rows = (rulesQuery.data?.automationRules.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={rulesQuery.loading ? 'Loading rules...' : `Automation Rules (${rows.length})`}\n emptyLabel=\"No automation rules configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Rule ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'snapshots') {\n const rows = (snapshotsQuery.data?.analyticsSnapshots.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={snapshotsQuery.loading ? 'Loading analytics snapshots...' : `Snapshots (${rows.length})`}\n emptyLabel=\"No analytics snapshots generated.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Snapshot ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'registrations') {\n return (\n <EntityListSection\n heading={registrationsQuery.loading ? 'Loading registrations...' : `Registrations (${registrations.length})`}\n emptyLabel=\"No registrations available.\"\n rows={registrations.map((row) => ({\n id: row.id,\n title: row.attendeeId ? `Attendee ${row.attendeeId}` : `Registration ${row.id}`,\n subtitle: row.totalAmount ? `${row.totalAmount} ${row.currency ?? ''}`.trim() : undefined,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'ticketTypes') {\n const rows = ticketTypesQuery.data?.ticketTypes.items ?? [];\n return (\n <EntityListSection\n heading={ticketTypesQuery.loading ? 'Loading ticket types...' : `Ticket Types (${rows.length})`}\n emptyLabel=\"No ticket types configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: `${row.price} ${row.currency} • Sold ${row.soldCount}`,\n status: row.isActive ? 'active' : 'inactive',\n }))}\n />\n );\n }\n\n if (sectionKey === 'promoCodes') {\n const rows = promoCodesQuery.data?.promoCodes.items ?? [];\n return (\n <EntityListSection\n heading={promoCodesQuery.loading ? 'Loading promo codes...' : `Promo Codes (${rows.length})`}\n emptyLabel=\"No promo codes configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.code,\n subtitle: `${row.discountType} ${row.discountValue}`,\n status: row.isActive ? 'active' : 'inactive',\n }))}\n />\n );\n }\n\n if (sectionKey === 'sponsors') {\n const rows = (sponsorsQuery.data?.sponsors.items ?? []) as SponsorEntity[];\n return (\n <EntityListSection\n heading={sponsorsQuery.loading ? 'Loading sponsors...' : `Sponsors (${rows.length})`}\n emptyLabel=\"No sponsors onboarded.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: row.level,\n }))}\n />\n );\n }\n\n if (sectionKey === 'exhibitors') {\n const rows = (exhibitorsQuery.data?.exhibitors.items ?? []) as ExhibitorEntity[];\n return (\n <EntityListSection\n heading={exhibitorsQuery.loading ? 'Loading exhibitors...' : `Exhibitors (${rows.length})`}\n emptyLabel=\"No exhibitors onboarded.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: [row.boothCode, row.category].filter(Boolean).join(' • '),\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'leads') {\n const rows = (leadsQuery.data?.leads.items ?? []) as LeadEntity[];\n return (\n <EntityListSection\n heading={leadsQuery.loading ? 'Loading leads...' : `Leads (${rows.length})`}\n emptyLabel=\"No leads captured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.attendeeName,\n subtitle: [row.attendeeEmail, row.score != null ? `Score ${row.score}` : undefined]\n .filter(Boolean)\n .join(' • '),\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'venues') {\n const rows = (venuesQuery.data?.venues.items ?? []) as VenueEntity[];\n return (\n <EntityListSection\n heading={venuesQuery.loading ? 'Loading venues...' : `Venues (${rows.length})`}\n emptyLabel=\"No venues configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: row.city ?? undefined,\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'checkInRecords') {\n const rows = checkInRecordsQuery.data?.checkInRecords.items ?? [];\n return (\n <EntityListSection\n heading={checkInRecordsQuery.loading ? 'Loading check-in records...' : `Check-In Records (${rows.length})`}\n emptyLabel=\"No check-in records found.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.attendeeId ? `Attendee ${row.attendeeId}` : `Record ${row.id}`,\n subtitle: `${row.method} • ${row.direction}`,\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'networkingProfiles') {\n const rows = networkingProfilesQuery.data?.networkingProfiles.items ?? [];\n return (\n <EntityListSection\n heading={networkingProfilesQuery.loading ? 'Loading networking profiles...' : `Profiles (${rows.length})`}\n emptyLabel=\"No networking profiles available.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.attendeeId ? `Attendee ${row.attendeeId}` : `Profile ${row.id}`,\n subtitle: [row.role, row.industry].filter(Boolean).join(' • '),\n status: row.visibility,\n }))}\n />\n );\n }\n\n const rows = (sessionsQuery.data?.eventSessions.items ?? []) as SessionEntity[];\n return (\n <EntityListSection\n heading={sessionsQuery.loading ? 'Loading sessions...' : `Sessions (${rows.length})`}\n emptyLabel=\"No sessions scheduled.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? `Session ${row.id}`,\n subtitle: row.sessionType ?? undefined,\n status: row.status ?? undefined,\n }))}\n />\n );\n };\n\n const primarySections = sectionKeys.slice(0, 3);\n const secondarySections = sectionKeys.slice(3);\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n A focused operations hub that pulls together the live records most relevant to {title}. Instead of jumping\n between modules, you get the key metrics plus the specific lists you need for this area in one place — handy for\n a quick health check or a stand-up update.\n </PagePurpose>\n\n <EmphasisPanel>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>{title}</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">{description}</p>\n </EmphasisPanel>\n\n <section>\n <h2 className=\"text-lg font-semibold text-text-primary\">Operational Metrics</h2>\n <div className=\"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4\">\n {cards.map((card) => (\n <GlassCard key={card.label} treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">{card.label}</p>\n <p className=\"mt-1 text-xl font-semibold tabular-nums text-text-primary\">{card.value}</p>\n </GlassCard>\n ))}\n </div>\n </section>\n\n {primarySections.map((sectionKey) => (\n <div key={sectionKey}>{renderSection(sectionKey)}</div>\n ))}\n\n {secondarySections.length > 0 ? (\n <ShowMore collapsedHeight={160} label=\"Show all sections\">\n <div className=\"space-y-6\">\n {secondarySections.map((sectionKey) => (\n <div key={sectionKey}>{renderSection(sectionKey)}</div>\n ))}\n </div>\n </ShowMore>\n ) : null}\n\n <NextSteps\n storageKey=\"eventfullymanaged-operations-hub\"\n title=\"Where to go from here\"\n steps={[\n {\n id: 'overview',\n label: 'Back to the dashboard',\n description: 'See the big picture across every part of your events.',\n icon: <LayoutDashboard className=\"h-4 w-4\" />,\n onClick: () => navigate('/'),\n },\n {\n id: 'automate',\n label: 'Automate routine work',\n description: 'Set up workflow templates and rules to save time.',\n icon: <Workflow className=\"h-4 w-4\" />,\n onClick: () => navigate('/workflows'),\n },\n {\n id: 'communicate',\n label: 'Reach your audience',\n description: 'Send announcements and run campaigns.',\n icon: <Megaphone className=\"h-4 w-4\" />,\n onClick: () => navigate('/communication'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAmGA,SAAwBA,EAAkB,EAAE,UAAO,gBAAa,kBAAuC;CACrG,IAAM,EAAE,gBAAaC,EAAqB,GACpCC,IAAeC,EAAyB,GACxCC,IAAqBC,EAAsB;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GACpEC,IAAiBC,EAA+B;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GACzEC,IAAiBC,EAA0B;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GACpEC,IAAaC,EAAwB;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GAC9DC,IAAiBC,EAA2B;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GACrEC,IAAqBC,EAAsB;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GACpEC,IAAmBC,EAAoB;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GAChEC,IAAkBC,EAAmB;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GAC9DC,IAAgBC,EAAiB;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GAC1DC,IAAkBC,EAA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,CAAA;GACG,CAAA,IACR;GAEJ,kBAACe,GAAD;IACE,YAAW;IACX,OAAM;IACN,OAAO;KACL;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACC,GAAD,EAAiB,WAAU,UAAW,CAAA;MAC5C,eAAeC,EAAS,GAAG;KAC7B;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACC,GAAD,EAAU,WAAU,UAAW,CAAA;MACrC,eAAeD,EAAS,YAAY;KACtC;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACE,GAAD,EAAW,WAAU,UAAW,CAAA;MACtC,eAAeF,EAAS,gBAAgB;KAC1C;IACF;GACD,CAAA;EACE;;AAET"}
1
+ {"version":3,"file":"OperationsHubPage.js","names":["formatCurrencyAmount","value","amount","currency","OperationsHubPage","useEventfullyManaged","has","sectionKeys","key","summaryQuery","useDashboardSummaryQuery","announcementsQuery","useAnnouncementsQuery","campaignsQuery","useCommunicationCampaignsQuery","templatesQuery","useWorkflowTemplatesQuery","rulesQuery","useAutomationRulesQuery","snapshotsQuery","useAnalyticsSnapshotsQuery","registrationsQuery","useRegistrationsQuery","ticketTypesQuery","useTicketTypesQuery","promoCodesQuery","usePromoCodesQuery","sponsorsQuery","useSponsorsQuery","exhibitorsQuery","useExhibitorsQuery","leadsQuery","useLeadsQuery","venuesQuery","useVenuesQuery","sessionsQuery","useEventSessionsQuery","checkInRecordsQuery","useCheckInRecordsQuery","networkingProfilesQuery","useNetworkingProfilesQuery","financeSummaryQuery","useFinanceSummaryQuery","financial","summary","finance","registrations","useMemo","cards","revenueTiles","row","renderSection","sectionKey","rows","EntityListSection","primarySections","secondarySections","PagePurpose","title","EmphasisPanel","GradientText","description","GlassCard","tile","card","ShowMore","NextSteps","LayoutDashboard","navigate","Workflow","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/OperationsHubPage.tsx"],"sourcesContent":["import { LayoutDashboard, Megaphone, Workflow } from 'lucide-react';\nimport { EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose, ShowMore } from '@burdenoff/fe-libs/ui';\nimport { useMemo } from 'react';\n\nimport {\n useExhibitorsQuery,\n useLeadsQuery,\n useCheckInRecordsQuery,\n useNetworkingProfilesQuery,\n usePromoCodesQuery,\n useTicketTypesQuery,\n useAnalyticsSnapshotsQuery,\n useAnnouncementsQuery,\n useAutomationRulesQuery,\n useCommunicationCampaignsQuery,\n useDashboardSummaryQuery,\n useEventSessionsQuery,\n useFinanceSummaryQuery,\n useRegistrationsQuery,\n useSponsorsQuery,\n useVenuesQuery,\n useWorkflowTemplatesQuery,\n} from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { EntityListSection } from './EntityListSection';\n\nfunction formatCurrencyAmount(currency: string, amount: string): string {\n const value = Number(amount);\n if (!Number.isFinite(value)) return `${amount} ${currency}`;\n try {\n return new Intl.NumberFormat(undefined, { style: 'currency', currency }).format(value);\n } catch {\n // Intl rejects a currency code it doesn't recognise (e.g. a typo'd code) —\n // fall back to a plain, locale-formatted number with the raw code.\n return `${new Intl.NumberFormat().format(value)} ${currency}`;\n }\n}\n\ntype SectionKey =\n | 'announcements'\n | 'campaigns'\n | 'templates'\n | 'rules'\n | 'snapshots'\n | 'registrations'\n | 'ticketTypes'\n | 'promoCodes'\n | 'sponsors'\n | 'exhibitors'\n | 'leads'\n | 'venues'\n | 'sessions'\n | 'checkInRecords'\n | 'networkingProfiles';\n\ninterface OperationsHubPageProps {\n title: string;\n description: string;\n sectionKeys: SectionKey[];\n /**\n * BOFF-11390/11391/11392 — only the Finance hub gets the revenue-by-currency\n * tiles (computed server-side from `eventfullyManagedFinanceSummary`). Other\n * hubs (Exhibition, HR, ...) share this same component but have no revenue\n * concept, so the tile — and the query behind it — is opt-in, not global.\n */\n financial?: boolean;\n}\n\ntype NamedEntity = {\n id: string;\n name?: string | null;\n title?: string | null;\n status?: string | null;\n};\n\ntype RegistrationEntity = {\n id: string;\n attendeeId?: string | null;\n attendeeName?: string | null;\n status?: string | null;\n totalAmount?: string | null;\n currency?: string | null;\n};\n\ntype SponsorEntity = {\n id: string;\n name: string;\n level: string;\n};\n\ntype VenueEntity = {\n id: string;\n name: string;\n city?: string | null;\n status: string;\n};\n\ntype SessionEntity = {\n id: string;\n title?: string | null;\n sessionType?: string | null;\n status?: string | null;\n};\n\ntype ExhibitorEntity = {\n id: string;\n name: string;\n boothCode?: string | null;\n category?: string | null;\n status: string;\n};\n\ntype LeadEntity = {\n id: string;\n attendeeName: string;\n attendeeEmail: string;\n status: string;\n score?: number | null;\n};\n\nexport default function OperationsHubPage({ title, description, sectionKeys, financial }: OperationsHubPageProps) {\n const { navigate } = useEventfullyManaged();\n const has = (key: SectionKey) => sectionKeys.includes(key);\n const summaryQuery = useDashboardSummaryQuery();\n // BOFF-11392 — a hub only has 3 sections on screen (plus Finance's revenue\n // tiles); fetching all 15 possible entity lists on every hub regardless of\n // which 3 it renders wasted 12 requests per visit. `skip` keeps each hook\n // mounted (so the branch below type-checks) without firing its query.\n const announcementsQuery = useAnnouncementsQuery({ limit: 100, offset: 0, skip: !has('announcements') });\n const campaignsQuery = useCommunicationCampaignsQuery({ limit: 100, offset: 0, skip: !has('campaigns') });\n const templatesQuery = useWorkflowTemplatesQuery({ limit: 100, offset: 0, skip: !has('templates') });\n const rulesQuery = useAutomationRulesQuery({ limit: 100, offset: 0, skip: !has('rules') });\n const snapshotsQuery = useAnalyticsSnapshotsQuery({ limit: 100, offset: 0, skip: !has('snapshots') });\n const registrationsQuery = useRegistrationsQuery({ limit: 100, offset: 0, skip: !has('registrations') });\n const ticketTypesQuery = useTicketTypesQuery({ limit: 100, offset: 0, skip: !has('ticketTypes') });\n const promoCodesQuery = usePromoCodesQuery({ limit: 100, offset: 0, skip: !has('promoCodes') });\n const sponsorsQuery = useSponsorsQuery({ limit: 100, offset: 0, skip: !has('sponsors') });\n const exhibitorsQuery = useExhibitorsQuery({ limit: 100, offset: 0, skip: !has('exhibitors') });\n const leadsQuery = useLeadsQuery({ limit: 100, offset: 0, skip: !has('leads') });\n const venuesQuery = useVenuesQuery({ limit: 100, offset: 0, skip: !has('venues') });\n const sessionsQuery = useEventSessionsQuery({ limit: 100, offset: 0, skip: !has('sessions') });\n const checkInRecordsQuery = useCheckInRecordsQuery({ limit: 100, offset: 0, skip: !has('checkInRecords') });\n const networkingProfilesQuery = useNetworkingProfilesQuery({\n limit: 100,\n offset: 0,\n skip: !has('networkingProfiles'),\n });\n const financeSummaryQuery = useFinanceSummaryQuery({ skip: !financial });\n\n const summary = summaryQuery.data?.dashboardSummary;\n const finance = financeSummaryQuery.data?.financeSummary;\n\n const registrations = useMemo(\n () => (registrationsQuery.data?.registrations.items ?? []) as RegistrationEntity[],\n [registrationsQuery.data]\n );\n\n const cards = financial\n ? [\n { label: 'Registrations', value: finance?.registrationsTotal ?? 0 },\n { label: 'Ticket Types', value: finance?.ticketTypesTotal ?? 0 },\n { label: 'Promo Codes', value: finance?.promoCodesTotal ?? 0 },\n ]\n : [\n { label: 'Events', value: summary?.totalEvents ?? 0 },\n { label: 'Active', value: summary?.activeEvents ?? 0 },\n { label: 'Registrations', value: summary?.totalRegistrations ?? 0 },\n { label: 'Attendees', value: summary?.totalAttendees ?? 0 },\n { label: 'Venues', value: summary?.totalVenues ?? 0 },\n { label: 'Sponsors', value: summary?.totalSponsors ?? 0 },\n ];\n\n // BOFF-11390/11391 — revenue per currency, server-aggregated over every\n // live registration (not a 100-row client sum), never summed across\n // currencies.\n const revenueTiles = useMemo(\n () =>\n (finance?.revenueByCurrency ?? []).map((row) => ({\n currency: row.currency,\n formatted: formatCurrencyAmount(row.currency, row.amount),\n })),\n [finance]\n );\n\n const renderSection = (sectionKey: SectionKey) => {\n if (sectionKey === 'announcements') {\n const rows = (announcementsQuery.data?.announcements.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={\n announcementsQuery.loading\n ? 'Loading announcements...'\n : `Announcements (${announcementsQuery.data?.announcements.total ?? rows.length})`\n }\n emptyLabel=\"No announcements recorded.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Announcement ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'campaigns') {\n const rows = (campaignsQuery.data?.communicationCampaigns.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={\n campaignsQuery.loading\n ? 'Loading campaigns...'\n : `Campaigns (${campaignsQuery.data?.communicationCampaigns.total ?? rows.length})`\n }\n emptyLabel=\"No communication campaigns available.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Campaign ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'templates') {\n const rows = (templatesQuery.data?.workflowTemplates.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={\n templatesQuery.loading\n ? 'Loading templates...'\n : `Workflow Templates (${templatesQuery.data?.workflowTemplates.total ?? rows.length})`\n }\n emptyLabel=\"No workflow templates configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Template ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'rules') {\n const rows = (rulesQuery.data?.automationRules.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={\n rulesQuery.loading\n ? 'Loading rules...'\n : `Automation Rules (${rulesQuery.data?.automationRules.total ?? rows.length})`\n }\n emptyLabel=\"No automation rules configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Rule ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'snapshots') {\n const rows = (snapshotsQuery.data?.analyticsSnapshots.items ?? []) as NamedEntity[];\n return (\n <EntityListSection\n heading={\n snapshotsQuery.loading\n ? 'Loading analytics snapshots...'\n : `Snapshots (${snapshotsQuery.data?.analyticsSnapshots.total ?? rows.length})`\n }\n emptyLabel=\"No analytics snapshots generated.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? row.name ?? `Snapshot ${row.id}`,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'registrations') {\n return (\n <EntityListSection\n heading={\n registrationsQuery.loading\n ? 'Loading registrations...'\n : `Registrations (${registrationsQuery.data?.registrations.total ?? registrations.length})`\n }\n emptyLabel=\"No registrations available.\"\n rows={registrations.map((row) => ({\n id: row.id,\n title: row.attendeeName ?? (row.attendeeId ? `Attendee ${row.attendeeId}` : `Registration ${row.id}`),\n subtitle: row.totalAmount ? formatCurrencyAmount(row.currency ?? '', row.totalAmount) : undefined,\n status: row.status ?? undefined,\n }))}\n />\n );\n }\n\n if (sectionKey === 'ticketTypes') {\n const rows = ticketTypesQuery.data?.ticketTypes.items ?? [];\n return (\n <EntityListSection\n heading={\n ticketTypesQuery.loading\n ? 'Loading ticket types...'\n : `Ticket Types (${ticketTypesQuery.data?.ticketTypes.total ?? rows.length})`\n }\n emptyLabel=\"No ticket types configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: `${row.price} ${row.currency} • Sold ${row.soldCount}`,\n status: row.isActive ? 'active' : 'inactive',\n }))}\n />\n );\n }\n\n if (sectionKey === 'promoCodes') {\n const rows = promoCodesQuery.data?.promoCodes.items ?? [];\n return (\n <EntityListSection\n heading={\n promoCodesQuery.loading\n ? 'Loading promo codes...'\n : `Promo Codes (${promoCodesQuery.data?.promoCodes.total ?? rows.length})`\n }\n emptyLabel=\"No promo codes configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.code,\n subtitle: `${row.discountType} ${row.discountValue}`,\n status: row.isActive ? 'active' : 'inactive',\n }))}\n />\n );\n }\n\n if (sectionKey === 'sponsors') {\n const rows = (sponsorsQuery.data?.sponsors.items ?? []) as SponsorEntity[];\n return (\n <EntityListSection\n heading={\n sponsorsQuery.loading\n ? 'Loading sponsors...'\n : `Sponsors (${sponsorsQuery.data?.sponsors.total ?? rows.length})`\n }\n emptyLabel=\"No sponsors onboarded.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: row.level,\n }))}\n />\n );\n }\n\n if (sectionKey === 'exhibitors') {\n const rows = (exhibitorsQuery.data?.exhibitors.items ?? []) as ExhibitorEntity[];\n return (\n <EntityListSection\n heading={\n exhibitorsQuery.loading\n ? 'Loading exhibitors...'\n : `Exhibitors (${exhibitorsQuery.data?.exhibitors.total ?? rows.length})`\n }\n emptyLabel=\"No exhibitors onboarded.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: [row.boothCode, row.category].filter(Boolean).join(' • '),\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'leads') {\n const rows = (leadsQuery.data?.leads.items ?? []) as LeadEntity[];\n return (\n <EntityListSection\n heading={leadsQuery.loading ? 'Loading leads...' : `Leads (${leadsQuery.data?.leads.total ?? rows.length})`}\n emptyLabel=\"No leads captured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.attendeeName,\n subtitle: [row.attendeeEmail, row.score != null ? `Score ${row.score}` : undefined]\n .filter(Boolean)\n .join(' • '),\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'venues') {\n const rows = (venuesQuery.data?.venues.items ?? []) as VenueEntity[];\n return (\n <EntityListSection\n heading={\n venuesQuery.loading ? 'Loading venues...' : `Venues (${venuesQuery.data?.venues.total ?? rows.length})`\n }\n emptyLabel=\"No venues configured.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.name,\n subtitle: row.city ?? undefined,\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'checkInRecords') {\n const rows = checkInRecordsQuery.data?.checkInRecords.items ?? [];\n return (\n <EntityListSection\n heading={\n checkInRecordsQuery.loading\n ? 'Loading check-in records...'\n : `Check-In Records (${checkInRecordsQuery.data?.checkInRecords.total ?? rows.length})`\n }\n emptyLabel=\"No check-in records found.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.attendeeId ? `Attendee ${row.attendeeId}` : `Record ${row.id}`,\n subtitle: `${row.method} • ${row.direction}`,\n status: row.status,\n }))}\n />\n );\n }\n\n if (sectionKey === 'networkingProfiles') {\n const rows = networkingProfilesQuery.data?.networkingProfiles.items ?? [];\n return (\n <EntityListSection\n heading={\n networkingProfilesQuery.loading\n ? 'Loading networking profiles...'\n : `Profiles (${networkingProfilesQuery.data?.networkingProfiles.total ?? rows.length})`\n }\n emptyLabel=\"No networking profiles available.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.attendeeId ? `Attendee ${row.attendeeId}` : `Profile ${row.id}`,\n subtitle: [row.role, row.industry].filter(Boolean).join(' • '),\n status: row.visibility,\n }))}\n />\n );\n }\n\n const rows = (sessionsQuery.data?.eventSessions.items ?? []) as SessionEntity[];\n return (\n <EntityListSection\n heading={\n sessionsQuery.loading\n ? 'Loading sessions...'\n : `Sessions (${sessionsQuery.data?.eventSessions.total ?? rows.length})`\n }\n emptyLabel=\"No sessions scheduled.\"\n rows={rows.map((row) => ({\n id: row.id,\n title: row.title ?? `Session ${row.id}`,\n subtitle: row.sessionType ?? undefined,\n status: row.status ?? undefined,\n }))}\n />\n );\n };\n\n const primarySections = sectionKeys.slice(0, 3);\n const secondarySections = sectionKeys.slice(3);\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n A focused operations hub that pulls together the live records most relevant to {title}. Instead of jumping\n between modules, you get the key metrics plus the specific lists you need for this area in one place — handy for\n a quick health check or a stand-up update.\n </PagePurpose>\n\n <EmphasisPanel>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>{title}</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">{description}</p>\n </EmphasisPanel>\n\n <section>\n <h2 className=\"text-lg font-semibold text-text-primary\">{financial ? 'Revenue' : 'Operational Metrics'}</h2>\n {financial ? (\n <div className=\"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4\">\n {revenueTiles.length > 0 ? (\n revenueTiles.map((tile) => (\n <GlassCard key={tile.currency} treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Revenue ({tile.currency})</p>\n <p className=\"mt-1 text-xl font-semibold tabular-nums text-text-primary\">{tile.formatted}</p>\n </GlassCard>\n ))\n ) : (\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Revenue</p>\n <p className=\"mt-1 text-xl font-semibold tabular-nums text-text-primary\">\n {financeSummaryQuery.loading ? '…' : 'No revenue yet'}\n </p>\n </GlassCard>\n )}\n </div>\n ) : null}\n <div className=\"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4\">\n {cards.map((card) => (\n <GlassCard key={card.label} treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">{card.label}</p>\n <p className=\"mt-1 text-xl font-semibold tabular-nums text-text-primary\">{card.value}</p>\n </GlassCard>\n ))}\n </div>\n </section>\n\n {primarySections.map((sectionKey) => (\n <div key={sectionKey}>{renderSection(sectionKey)}</div>\n ))}\n\n {secondarySections.length > 0 ? (\n <ShowMore collapsedHeight={160} label=\"Show all sections\">\n <div className=\"space-y-6\">\n {secondarySections.map((sectionKey) => (\n <div key={sectionKey}>{renderSection(sectionKey)}</div>\n ))}\n </div>\n </ShowMore>\n ) : null}\n\n <NextSteps\n storageKey=\"eventfullymanaged-operations-hub\"\n title=\"Where to go from here\"\n steps={[\n {\n id: 'overview',\n label: 'Back to the dashboard',\n description: 'See the big picture across every part of your events.',\n icon: <LayoutDashboard className=\"h-4 w-4\" />,\n onClick: () => navigate('/'),\n },\n {\n id: 'automate',\n label: 'Automate routine work',\n description: 'Set up workflow templates and rules to save time.',\n icon: <Workflow className=\"h-4 w-4\" />,\n onClick: () => navigate('/workflows'),\n },\n {\n id: 'communicate',\n label: 'Reach your audience',\n description: 'Send announcements and run campaigns.',\n icon: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