@burdenoff/microfe-eventfullymanaged 2026.1123.6 → 2026.1124.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
  2. package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
  3. package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
  4. package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
  5. package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
  6. package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
  7. package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
  8. package/dist/eventfullymanaged/components/Pagination.js +7 -7
  9. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
  10. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
  11. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
  12. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
  13. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
  14. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
  15. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +264 -0
  16. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
  17. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.d.ts +4 -0
  18. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js +31 -0
  19. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js.map +1 -0
  20. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.d.ts +6 -0
  21. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js +76 -0
  22. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js.map +1 -0
  23. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
  24. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +271 -0
  25. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
  26. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
  27. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
  28. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
  29. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
  30. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
  31. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  32. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
  33. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  34. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
  35. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
  36. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
  37. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
  38. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
  39. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
  40. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
  41. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
  42. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
  43. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
  44. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
  45. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
  46. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
  47. package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
  48. package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
  49. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
  50. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
  51. package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
  52. package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
  53. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
  54. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
  55. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
  56. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
  57. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
  58. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  59. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
  60. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
  61. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
  62. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  63. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
  64. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
  65. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
  66. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
  67. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
  68. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
  69. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
  70. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
  71. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  72. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
  73. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
  74. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  75. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
  76. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  77. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
  78. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  79. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
  80. package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
  81. package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
  82. package/dist/generated/wspace-operations.d.ts +468 -0
  83. package/dist/generated/wspace-operations.js +215 -11
  84. package/dist/generated/wspace-operations.js.map +1 -1
  85. package/dist/generated/wspace-types.d.ts +30060 -1503
  86. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
  87. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
  88. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
  89. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
  90. package/dist/utils/pageContext.js +5 -0
  91. package/dist/utils/pageContext.js.map +1 -1
  92. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkingPage.js","names":["Badge","Badge$1","COLUMN_PAGE_SIZE","LOOKUP_FETCH","statusVariant","value","status","initials","parts","label","readString","metadata","key","formatMeetingTime","startIso","start","startLabel","endIso","end","InterestTags","items","item","Avatar","Column","GlassCard","icon","heading","loading","total","ScrollArea","loadedCount","empty","children","Pagination","pagination","NETWORKING_LOUNGE_CONTEXT","NetworkingLounge","useRegisterPageConversationContext","ContextConversationWidget","NetworkingPage","useEventfullyManaged","profilesPagination","usePagination","matchesPagination","meetingsPagination","profilesQuery","useNetworkingProfilesQuery","matchesQuery","useNetworkingMatchesQuery","meetingsQuery","useMeetingsQuery","attendeesData","useAttendeesQuery","allProfilesData","deleteMeeting","useDeleteMeetingMutation","eventsData","useEventsQuery","events","useMemo","generateEventId","setGenerateEventId","useState","generateNetworkingMatches","generating","useGenerateNetworkingMatchesMutation","onGenerateMatches","response","notify","error","describeError","attendees","attendeeById","map","a","profileNameById","p","attendee","profiles","matches","meetings","onDeleteMeeting","deleted","mutationSucceeded","id","title","PagePurpose","EmphasisPanel","GradientText","Button","navigate","UserPlus","CalendarPlus","Wand2","Select","SelectTrigger","SelectValue","SelectContent","SelectItem","event","Users","IllustratedEmptyState","profile","name","subtitle","ActionMenu","Sparkles","sourceName","match","targetName","Heart","MessagesSquare","CalendarDays","meeting","time","location","Clock","MapPin","NextSteps","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/NetworkingPage.tsx"],"sourcesContent":["import {\n CalendarDays,\n CalendarPlus,\n Clock,\n Heart,\n MapPin,\n Megaphone,\n MessagesSquare,\n Sparkles,\n UserPlus,\n Users,\n Wand2,\n} from 'lucide-react';\nimport { ContextConversationWidget } from '@burdenoff/fe-libs/shared';\nimport { useRegisterPageConversationContext } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Badge,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n NextSteps,\n PagePurpose,\n ScrollArea,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@burdenoff/fe-libs/ui';\nimport { useMemo, useState, type ReactNode } from 'react';\n\nimport {\n useAttendeesQuery,\n useDeleteMeetingMutation,\n useEventsQuery,\n useGenerateNetworkingMatchesMutation,\n useMeetingsQuery,\n useNetworkingMatchesQuery,\n useNetworkingProfilesQuery,\n} from '../../api/eventApi';\nimport { ActionMenu } from '../../components/ActionMenu';\nimport { Pagination, usePagination, type UsePaginationResult } from '../../components/Pagination';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\nconst COLUMN_PAGE_SIZE = 8;\nconst LOOKUP_FETCH = 200;\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\nfunction statusVariant(status: string): 'success' | 'warning' | 'secondary' | 'info' {\n const value = status.toLowerCase();\n if (['active', 'published', 'live', 'confirmed', 'completed', 'approved', 'public'].includes(value)) {\n return 'success';\n }\n if (['inactive', 'cancelled', 'archived', 'closed', 'expired', 'private'].includes(value)) {\n return 'warning';\n }\n if (['draft', 'created', 'pending', 'scheduled'].includes(value)) {\n return 'info';\n }\n return 'secondary';\n}\n\nfunction initials(label: string): string {\n const parts = label.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) {\n return '?';\n }\n if (parts.length === 1) {\n return parts[0].slice(0, 2).toUpperCase();\n }\n return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();\n}\n\nfunction readString(metadata: Record<string, unknown> | null | undefined, key: string): string | null {\n const value = metadata?.[key];\n return typeof value === 'string' && value.trim() ? value : null;\n}\n\nfunction formatMeetingTime(startIso: string | null, endIso: string | null): string | null {\n if (!startIso) {\n return null;\n }\n const start = new Date(startIso);\n if (Number.isNaN(start.getTime())) {\n return null;\n }\n const startLabel = start.toLocaleString([], {\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n });\n if (endIso) {\n const end = new Date(endIso);\n if (!Number.isNaN(end.getTime())) {\n return `${startLabel} – ${end.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit' })}`;\n }\n }\n return startLabel;\n}\n\nfunction InterestTags({ items }: { items: string[] }) {\n if (items.length === 0) {\n return null;\n }\n return (\n <div className=\"flex flex-wrap gap-1.5\">\n {items.slice(0, 4).map((item) => (\n <span key={item} className=\"rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary\">\n {item}\n </span>\n ))}\n </div>\n );\n}\n\nfunction Avatar({ label }: { label: string }) {\n return (\n <span\n className=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-accent-primary/10 text-sm font-semibold text-accent-primary ring-2 ring-bg-surface\"\n aria-hidden=\"true\"\n >\n {initials(label)}\n </span>\n );\n}\n\n// ---------------------------------------------------------------------------\n// Column shell\n// ---------------------------------------------------------------------------\n\ninterface ColumnProps {\n icon: ReactNode;\n heading: string;\n loading: boolean;\n total: number;\n loadedCount: number;\n pagination: UsePaginationResult;\n itemLabel: string;\n empty: ReactNode;\n children: ReactNode;\n}\n\nfunction Column({ icon, heading, loading, total, loadedCount, pagination, itemLabel, empty, children }: ColumnProps) {\n return (\n <GlassCard treatment=\"plain\" className=\"flex flex-col border-border-seam p-4\">\n <div className=\"flex items-center gap-2\">\n <span className=\"text-accent-primary\">{icon}</span>\n <h2 className=\"text-base font-semibold text-text-primary\">{heading}</h2>\n <span className=\"ml-auto rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium tabular-nums text-text-secondary\">\n {loading ? '…' : total.toLocaleString()}\n </span>\n </div>\n <ScrollArea className=\"mt-3 max-h-[30rem] pr-2\">\n <div className=\"space-y-3\">{loadedCount === 0 ? empty : children}</div>\n </ScrollArea>\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={loadedCount}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel={itemLabel}\n loading={loading}\n />\n </GlassCard>\n );\n}\n\n/**\n * Registration payload for the networking lounge conversation context.\n *\n * MUST be a stable (module-level) reference. `useRegisterPageConversationContext`\n * keys its effect on this object's identity; passing a fresh inline object on\n * every render makes the effect re-run each render, which toggles state on the\n * shared PageConversationContextProvider (an ancestor of this MFE's <Routes> in\n * the app shell). That perpetual re-render loop races client-side navigations\n * dispatched from this page, so links like \"Opt in a profile\" / \"Book a meeting\"\n * changed the URL but never re-matched the create route. Keeping the reference\n * constant lets the effect settle after the first run.\n */\nconst NETWORKING_LOUNGE_CONTEXT = {\n entityType: 'EVENTFULLYMANAGED_NETWORKING_LOUNGE',\n entityId: 'general',\n contextTitle: 'Networking Lounge',\n};\n\n/**\n * Shared networking lounge chat, backed by wspace-conversations-svc. Scoped by a\n * stable networking entity so every organizer/attendee on this workspace lands in\n * the same thread.\n */\nfunction NetworkingLounge() {\n useRegisterPageConversationContext(NETWORKING_LOUNGE_CONTEXT);\n return <ContextConversationWidget widgetKey=\"networking-lounge\" />;\n}\n\nexport default function NetworkingPage() {\n const { navigate } = useEventfullyManaged();\n\n const profilesPagination = usePagination({ pageSize: COLUMN_PAGE_SIZE });\n const matchesPagination = usePagination({ pageSize: COLUMN_PAGE_SIZE });\n const meetingsPagination = usePagination({ pageSize: COLUMN_PAGE_SIZE });\n\n const profilesQuery = useNetworkingProfilesQuery({\n limit: profilesPagination.limit,\n offset: profilesPagination.offset,\n });\n const matchesQuery = useNetworkingMatchesQuery({\n limit: matchesPagination.limit,\n offset: matchesPagination.offset,\n });\n const meetingsQuery = useMeetingsQuery({\n limit: meetingsPagination.limit,\n offset: meetingsPagination.offset,\n });\n // Broad lookups so we can resolve attendee names + profile→attendee links for\n // the match cards without paging through every list.\n const { data: attendeesData } = useAttendeesQuery({ limit: LOOKUP_FETCH, offset: 0 });\n const { data: allProfilesData } = useNetworkingProfilesQuery({ limit: LOOKUP_FETCH, offset: 0 });\n\n const [deleteMeeting] = useDeleteMeetingMutation();\n\n // BOFF-4321 — deterministic matchmaking engine. Generation is scoped to\n // one event at a time (organizer picks which event to run it for);\n // profiles/matches themselves are workspace-wide in this page.\n const { data: eventsData } = useEventsQuery({ limit: 100, offset: 0 });\n const events = useMemo(() => eventsData?.events?.items ?? [], [eventsData]);\n const [generateEventId, setGenerateEventId] = useState('');\n const [generateNetworkingMatches, { loading: generating }] = useGenerateNetworkingMatchesMutation();\n\n const onGenerateMatches = async () => {\n if (!generateEventId) {\n notify.error('Pick an event first', 'Choose which event to generate matches for.');\n return;\n }\n try {\n const response = await generateNetworkingMatches({ variables: { eventId: generateEventId } });\n if (response.error) {\n notify.error('Could not generate matches', response.error.message);\n return;\n }\n const total = response.data?.generateNetworkingMatches.total ?? 0;\n if (total === 0) {\n notify.info(\n 'No matches yet',\n 'This event needs at least 5 opted-in networking profiles before matches can be generated.'\n );\n return;\n }\n notify.success('Matches generated', `Found ${total} suggested connection${total === 1 ? '' : 's'}.`);\n await matchesQuery.refetch();\n } catch (error) {\n notify.error('Could not generate matches', describeError(error));\n }\n };\n\n const attendees = useMemo(() => attendeesData?.attendees?.items ?? [], [attendeesData]);\n const attendeeById = useMemo(() => {\n const map = new Map<string, { name: string; role?: string | null; company?: string | null }>();\n for (const a of attendees) {\n map.set(a.id, { name: a.fullName, role: a.role, company: a.company });\n }\n return map;\n }, [attendees]);\n\n // profileId → attendee display name (for resolving match participants).\n const profileNameById = useMemo(() => {\n const map = new Map<string, string>();\n for (const p of allProfilesData?.networkingProfiles?.items ?? []) {\n const attendee = attendeeById.get(p.attendeeId);\n map.set(p.id, attendee?.name ?? p.role ?? `Profile ${p.id.slice(0, 6)}`);\n }\n return map;\n }, [allProfilesData, attendeeById]);\n\n const profiles = useMemo(() => profilesQuery.data?.networkingProfiles.items ?? [], [profilesQuery.data]);\n const matches = useMemo(() => matchesQuery.data?.networkingMatches.items ?? [], [matchesQuery.data]);\n const meetings = useMemo(() => meetingsQuery.data?.meetings.items ?? [], [meetingsQuery.data]);\n\n const onDeleteMeeting = async (id: string, title: string) => {\n try {\n const response = await deleteMeeting({ variables: { id } });\n const deleted = response.data?.deleteMeeting === true;\n if (!mutationSucceeded(response, deleted ? id : undefined, 'Could not delete meeting')) {\n return;\n }\n notify.success('Meeting removed', `${title} was deleted.`);\n await meetingsQuery.refetch();\n } catch (error) {\n notify.error('Could not delete meeting', describeError(error));\n }\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n Networking turns attendees into connections. Profiles describe who each attendee is and what they are looking\n for, matches are the suggestions the engine makes between them, and meetings are the 1:1s they book. Opt an\n attendee in, review strong matches, and book meetings that mirror straight into the calendar.\n </PagePurpose>\n\n <EmphasisPanel className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Networking</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Manage profiles, matches and meeting schedules from live backend data.\n </p>\n </div>\n <div className=\"flex flex-wrap gap-2\">\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('/networking/profiles/create')}>\n <UserPlus className=\"h-4 w-4\" />\n Opt in a profile\n </Button>\n <Button type=\"button\" onClick={() => navigate('/networking/meetings/create')}>\n <CalendarPlus className=\"h-4 w-4\" />\n Book a meeting\n </Button>\n </div>\n </EmphasisPanel>\n\n <GlassCard treatment=\"plain\" className=\"flex flex-col gap-3 border-border-seam p-4 sm:flex-row sm:items-center\">\n <div className=\"min-w-0 flex-1\">\n <p className=\"flex items-center gap-1.5 text-sm font-semibold text-text-primary\">\n <Wand2 className=\"h-4 w-4 text-accent-primary\" />\n Matchmaking engine\n </p>\n <p className=\"mt-0.5 text-xs text-text-secondary\">\n Scores every opted-in profile pair at an event by shared interests and complementary asks. Needs at least 5\n opted-in profiles to run.\n </p>\n </div>\n <div className=\"flex shrink-0 flex-wrap items-center gap-2\">\n <Select value={generateEventId} onValueChange={setGenerateEventId}>\n <SelectTrigger aria-label=\"Event\" className=\"w-56\">\n <SelectValue placeholder=\"Select an event\" />\n </SelectTrigger>\n <SelectContent>\n {events.map((event) => (\n <SelectItem key={event.id} value={event.id}>\n {event.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <Button type=\"button\" onClick={onGenerateMatches} disabled={generating || !generateEventId}>\n <Wand2 className=\"h-4 w-4\" />\n {generating ? 'Generating…' : 'Generate matches'}\n </Button>\n </div>\n </GlassCard>\n\n <div className=\"flex flex-col gap-6 xl:flex-row\">\n {/* Three columns: Profiles / Matches / Meetings */}\n <div className=\"grid min-w-0 flex-1 grid-cols-1 gap-6 md:grid-cols-3\">\n {/* Profiles */}\n <Column\n icon={<Users className=\"h-4 w-4\" />}\n heading=\"Profiles\"\n loading={profilesQuery.loading}\n total={profilesQuery.data?.networkingProfiles.total ?? 0}\n loadedCount={profiles.length}\n pagination={profilesPagination}\n itemLabel=\"profiles\"\n empty={\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"No profiles yet\"\n description=\"Opt an attendee in to start matchmaking.\"\n className=\"py-6\"\n />\n }\n >\n {profiles.map((profile) => {\n const attendee = attendeeById.get(profile.attendeeId);\n const name =\n attendee?.name ?? (profile.attendeeId ? `Attendee ${profile.attendeeId.slice(0, 6)}` : 'Profile');\n const subtitle = [profile.role ?? attendee?.role, profile.industry ?? attendee?.company]\n .filter(Boolean)\n .join(' • ');\n return (\n <div key={profile.id} className=\"rounded-card border border-border-seam bg-bg-surface p-3\">\n <div className=\"flex items-start gap-3\">\n <Avatar label={name} />\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-start justify-between gap-2\">\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{name}</p>\n {subtitle ? <p className=\"truncate text-xs text-text-secondary\">{subtitle}</p> : null}\n </div>\n <div className=\"flex shrink-0 items-center gap-1\">\n {profile.visibility ? (\n <Badge variant={statusVariant(profile.visibility)} className=\"capitalize\">\n {profile.visibility.toLowerCase()}\n </Badge>\n ) : null}\n <ActionMenu\n ariaLabel={`${name} profile actions`}\n onEdit={() => navigate(`/networking/profiles/${profile.id}/edit`)}\n />\n </div>\n </div>\n </div>\n </div>\n {profile.interests.length > 0 ? (\n <div className=\"mt-2.5\">\n <InterestTags items={profile.interests} />\n </div>\n ) : null}\n {profile.lookingFor.length > 0 ? (\n <p className=\"mt-2 text-xs text-text-secondary\">\n <span className=\"font-medium text-text-muted\">Looking for:</span> {profile.lookingFor.join(', ')}\n </p>\n ) : null}\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n className=\"mt-3 w-full\"\n onClick={() => navigate('/networking/meetings/create')}\n >\n <CalendarPlus className=\"h-4 w-4\" />\n Book meeting\n </Button>\n </div>\n );\n })}\n </Column>\n\n {/* Suggested Matches */}\n <Column\n icon={<Sparkles className=\"h-4 w-4\" />}\n heading=\"Suggested Matches\"\n loading={matchesQuery.loading}\n total={matchesQuery.data?.networkingMatches.total ?? 0}\n loadedCount={matches.length}\n pagination={matchesPagination}\n itemLabel=\"matches\"\n empty={\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No matches yet\"\n description=\"Matches appear as the engine suggests connections.\"\n className=\"py-6\"\n />\n }\n >\n {matches.map((match) => {\n // BOFF-4321 — score/reason/sourceProfileId/targetProfileId are\n // now real typed fields (see event.gql EventfullyManagedNetworkingMatch),\n // not metadata the deterministic scorer stores separately.\n const sourceName = profileNameById.get(match.sourceProfileId);\n const targetName = profileNameById.get(match.targetProfileId);\n const label =\n sourceName && targetName ? `${sourceName} & ${targetName}` : `Match ${match.id.slice(0, 6)}`;\n return (\n <div key={match.id} className=\"rounded-card border border-border-seam bg-bg-surface p-3\">\n <div className=\"flex items-center justify-between gap-2\">\n {sourceName && targetName ? (\n <div className=\"flex min-w-0 items-center gap-2\">\n <Avatar label={sourceName} />\n <span className=\"text-xs text-text-muted\">×</span>\n <Avatar label={targetName} />\n </div>\n ) : (\n <div className=\"flex min-w-0 items-center gap-2\">\n <Avatar label={label} />\n <p className=\"truncate text-sm font-medium text-text-primary\">{label}</p>\n </div>\n )}\n <Badge variant=\"success\" className=\"shrink-0 gap-1\">\n <Heart className=\"h-3 w-3\" />\n {match.score}%\n </Badge>\n </div>\n\n {sourceName && targetName ? (\n <p className=\"mt-2 truncate text-xs text-text-secondary\">\n {sourceName} &amp; {targetName}\n </p>\n ) : null}\n\n {match.reason ? (\n <p className=\"mt-2 line-clamp-2 text-xs text-text-secondary\">{match.reason}</p>\n ) : null}\n\n {match.status !== 'suggested' ? (\n <Badge variant={statusVariant(match.status)} className=\"mt-2 uppercase\">\n {match.status}\n </Badge>\n ) : null}\n\n <Button\n type=\"button\"\n size=\"sm\"\n className=\"mt-3 w-full\"\n onClick={() => {\n document.getElementById('networking-lounge')?.scrollIntoView({ behavior: 'smooth' });\n }}\n >\n <MessagesSquare className=\"h-4 w-4\" />\n Connect &amp; Chat\n </Button>\n </div>\n );\n })}\n </Column>\n\n {/* Meetings */}\n <Column\n icon={<CalendarDays className=\"h-4 w-4\" />}\n heading=\"Meetings\"\n loading={meetingsQuery.loading}\n total={meetingsQuery.data?.meetings.total ?? 0}\n loadedCount={meetings.length}\n pagination={meetingsPagination}\n itemLabel=\"meetings\"\n empty={\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No meetings yet\"\n description=\"Booked 1:1s show up here with their time and place.\"\n className=\"py-6\"\n />\n }\n >\n {meetings.map((meeting) => {\n const title = meeting.title ?? meeting.name ?? `Meeting ${meeting.id.slice(0, 6)}`;\n const time = formatMeetingTime(\n readString(meeting.metadata, 'startsAt'),\n readString(meeting.metadata, 'endsAt')\n );\n const location = readString(meeting.metadata, 'location');\n return (\n <div\n key={meeting.id}\n className=\"rounded-card border-l-2 border-l-accent-primary bg-bg-surface p-3 pl-3.5 shadow-elevation-1\"\n >\n <div className=\"flex items-start justify-between gap-2\">\n <div className=\"min-w-0\">\n {time ? (\n <p className=\"flex items-center gap-1.5 text-xs font-medium text-text-secondary\">\n <Clock className=\"h-3.5 w-3.5\" />\n {time}\n </p>\n ) : null}\n <p className=\"mt-1 truncate font-medium text-text-primary\">{title}</p>\n </div>\n <ActionMenu\n ariaLabel={`${title} meeting actions`}\n entityName={title}\n onEdit={() => navigate(`/networking/meetings/${meeting.id}/edit`)}\n onDelete={() => onDeleteMeeting(meeting.id, title)}\n />\n </div>\n <div className=\"mt-2 flex flex-wrap items-center gap-2\">\n {meeting.status ? (\n <Badge variant={statusVariant(meeting.status)} className=\"uppercase\">\n {meeting.status}\n </Badge>\n ) : null}\n {location ? (\n <span className=\"inline-flex items-center gap-1 text-xs text-text-secondary\">\n <MapPin className=\"h-3.5 w-3.5\" />\n {location}\n </span>\n ) : null}\n </div>\n </div>\n );\n })}\n </Column>\n </div>\n\n {/* Docked Networking Lounge */}\n <div id=\"networking-lounge\" className=\"w-full xl:w-[360px] xl:shrink-0\">\n <div className=\"space-y-3\">\n <div>\n <h2 className=\"flex items-center gap-2 text-lg font-semibold text-text-primary\">\n <MessagesSquare className=\"h-5 w-5 text-accent-primary\" />\n Networking Lounge\n </h2>\n <p className=\"mt-1 text-sm text-text-secondary\">\n A shared space for attendees and organizers to connect, backed by the conversations service.\n </p>\n </div>\n <NetworkingLounge />\n </div>\n </div>\n </div>\n\n <NextSteps\n storageKey=\"eventfullymanaged-networking\"\n title=\"Make networking land\"\n steps={[\n {\n id: 'grow-attendees',\n label: 'Bring in more attendees',\n description: 'More registered attendees means richer matches and meetings.',\n icon: <Users className=\"h-4 w-4\" />,\n onClick: () => navigate('/registration'),\n },\n {\n id: 'announce-networking',\n label: 'Announce networking sessions',\n description: 'Let attendees know how and when to connect.',\n icon: <Megaphone className=\"h-4 w-4\" />,\n onClick: () => navigate('/communication'),\n },\n {\n id: 'review-event',\n label: 'Review the event schedule',\n description: 'Make sure networking slots fit around your sessions.',\n icon: <CalendarDays className=\"h-4 w-4\" />,\n onClick: () => navigate('/events'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAgDA,IAAME,IAAmB,GACnBC,IAAe;AAMrB,SAASC,EAAc,GAA8D;CACnF,IAAMC,IAAQC,EAAO,YAAY;CAUjC,OATI;EAAC;EAAU;EAAa;EAAQ;EAAa;EAAa;EAAY;CAAQ,CAAC,CAAC,SAASD,CAAK,IACzF,YAEL;EAAC;EAAY;EAAa;EAAY;EAAU;EAAW;CAAS,CAAC,CAAC,SAASA,CAAK,IAC/E,YAEL;EAAC;EAAS;EAAW;EAAW;CAAW,CAAC,CAAC,SAASA,CAAK,IACtD,SAEF;AACT;AAEA,SAASE,EAAS,GAAuB;CACvC,IAAMC,IAAQC,EAAM,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,OAAO,OAAO;CAOtD,OANID,EAAM,WAAW,IACZ,MAELA,EAAM,WAAW,IAC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AjCE,GAAAF,EAAQ,EAiCV;OAET,CAAC;MACK,CAAA;KACL;IAGL,CAAA,GAAA,kBAAC,OAAD;KAAK,IAAG;KAAoB,WAAU;KACpC,UAAA,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OAAd,UAAA,CACE,kBAACF,GAAD,EAAgB,WAAU,8BAA+B,CAAA,GAAC,mBAExD;MACJ,CAAA,GAAA,kBAAC,KAAD;OAAG,WAAU;OAAmC,UAAA;MAE7C,CAAA,CACA,EAAA,CAAA,GACL,kBAAC3E,IAAD,CAAmB,CAAA,CAChB;;IACF,CAAA,CACF;;GAEL,kBAACkF,IAAD;IACE,YAAW;IACX,OAAM;IACN,OAAO;KACL;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAClB,GAAD,EAAO,WAAU,UAAW,CAAA;MAClC,eAAeV,EAAS,eAAe;KACzC;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAC6B,GAAD,EAAW,WAAU,UAAW,CAAA;MACtC,eAAe7B,EAAS,gBAAgB;KAC1C;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACsB,GAAD,EAAc,WAAU,UAAW,CAAA;MACzC,eAAetB,EAAS,SAAS;KACnC;IACF;GACD,CAAA;EACE;;AAET"}
1
+ {"version":3,"file":"NetworkingPage.js","names":["COLUMN_PAGE_SIZE","LOOKUP_FETCH","statusVariant","value","status","initials","parts","label","readString","metadata","key","formatMeetingTime","startIso","start","startLabel","endIso","end","InterestTags","items","item","Avatar","Column","GlassCard","icon","heading","loading","total","ScrollArea","loadedCount","empty","children","Pagination","pagination","NETWORKING_LOUNGE_CONTEXT","NetworkingLounge","useRegisterPageConversationContext","ContextConversationWidget","NetworkingPage","useEventfullyManaged","profilesPagination","usePagination","matchesPagination","meetingsPagination","profilesQuery","useNetworkingProfilesQuery","matchesQuery","useNetworkingMatchesQuery","meetingsQuery","useMeetingsQuery","attendeesData","useAttendeesQuery","allProfilesData","deleteMeeting","useDeleteMeetingMutation","eventsData","useEventsQuery","events","useMemo","generateEventId","setGenerateEventId","useState","generateNetworkingMatches","generating","useGenerateNetworkingMatchesMutation","onGenerateMatches","response","notify","error","describeError","attendees","attendeeById","map","a","profileNameById","p","attendee","profiles","matches","meetings","onDeleteMeeting","deleted","mutationSucceeded","id","title","PagePurpose","EmphasisPanel","GradientText","Button","navigate","UserPlus","CalendarPlus","Wand2","Select","SelectTrigger","SelectValue","SelectContent","SelectItem","event","Users","IllustratedEmptyState","profile","name","subtitle","Badge","ActionMenu","Sparkles","sourceName","match","targetName","Heart","MessagesSquare","CalendarDays","meeting","time","location","Clock","MapPin","NextSteps","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/NetworkingPage.tsx"],"sourcesContent":["import {\n CalendarDays,\n CalendarPlus,\n Clock,\n Heart,\n MapPin,\n Megaphone,\n MessagesSquare,\n Sparkles,\n UserPlus,\n Users,\n Wand2,\n} from 'lucide-react';\nimport { ContextConversationWidget } from '@burdenoff/fe-libs/shared';\nimport { useRegisterPageConversationContext } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Badge,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n NextSteps,\n PagePurpose,\n ScrollArea,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@burdenoff/fe-libs/ui';\nimport { useMemo, useState, type ReactNode } from 'react';\n\nimport {\n useAttendeesQuery,\n useDeleteMeetingMutation,\n useEventsQuery,\n useGenerateNetworkingMatchesMutation,\n useMeetingsQuery,\n useNetworkingMatchesQuery,\n useNetworkingProfilesQuery,\n} from '../../api/eventApi';\nimport { ActionMenu } from '../../components/ActionMenu';\nimport { Pagination, usePagination, type UsePaginationResult } from '../../components/Pagination';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\nconst COLUMN_PAGE_SIZE = 8;\nconst LOOKUP_FETCH = 200;\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\nfunction statusVariant(status: string): 'success' | 'warning' | 'secondary' | 'info' {\n const value = status.toLowerCase();\n if (['active', 'published', 'live', 'confirmed', 'completed', 'approved', 'public'].includes(value)) {\n return 'success';\n }\n if (['inactive', 'cancelled', 'archived', 'closed', 'expired', 'private'].includes(value)) {\n return 'warning';\n }\n if (['draft', 'created', 'pending', 'scheduled'].includes(value)) {\n return 'info';\n }\n return 'secondary';\n}\n\nfunction initials(label: string): string {\n const parts = label.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) {\n return '?';\n }\n if (parts.length === 1) {\n return parts[0].slice(0, 2).toUpperCase();\n }\n return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();\n}\n\nfunction readString(metadata: Record<string, unknown> | null | undefined, key: string): string | null {\n const value = metadata?.[key];\n return typeof value === 'string' && value.trim() ? value : null;\n}\n\nfunction formatMeetingTime(startIso: string | null, endIso: string | null): string | null {\n if (!startIso) {\n return null;\n }\n const start = new Date(startIso);\n if (Number.isNaN(start.getTime())) {\n return null;\n }\n const startLabel = start.toLocaleString([], {\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n });\n if (endIso) {\n const end = new Date(endIso);\n if (!Number.isNaN(end.getTime())) {\n return `${startLabel} – ${end.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit' })}`;\n }\n }\n return startLabel;\n}\n\nfunction InterestTags({ items }: { items: string[] }) {\n if (items.length === 0) {\n return null;\n }\n return (\n <div className=\"flex flex-wrap gap-1.5\">\n {items.slice(0, 4).map((item) => (\n <span key={item} className=\"rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary\">\n {item}\n </span>\n ))}\n </div>\n );\n}\n\nfunction Avatar({ label }: { label: string }) {\n return (\n <span\n className=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-accent-primary/10 text-sm font-semibold text-accent-primary ring-2 ring-bg-surface\"\n aria-hidden=\"true\"\n >\n {initials(label)}\n </span>\n );\n}\n\n// ---------------------------------------------------------------------------\n// Column shell\n// ---------------------------------------------------------------------------\n\ninterface ColumnProps {\n icon: ReactNode;\n heading: string;\n loading: boolean;\n total: number;\n loadedCount: number;\n pagination: UsePaginationResult;\n itemLabel: string;\n empty: ReactNode;\n children: ReactNode;\n}\n\nfunction Column({ icon, heading, loading, total, loadedCount, pagination, itemLabel, empty, children }: ColumnProps) {\n return (\n <GlassCard treatment=\"plain\" className=\"flex flex-col border-border-seam p-4\">\n <div className=\"flex items-center gap-2\">\n <span className=\"text-accent-primary\">{icon}</span>\n <h2 className=\"text-base font-semibold text-text-primary\">{heading}</h2>\n <span className=\"ml-auto rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium tabular-nums text-text-secondary\">\n {loading ? '…' : total.toLocaleString()}\n </span>\n </div>\n <ScrollArea className=\"mt-3 max-h-[30rem] pr-2\">\n <div className=\"space-y-3\">{loadedCount === 0 ? empty : children}</div>\n </ScrollArea>\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={loadedCount}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel={itemLabel}\n loading={loading}\n />\n </GlassCard>\n );\n}\n\n/**\n * Registration payload for the networking lounge conversation context.\n *\n * MUST be a stable (module-level) reference. `useRegisterPageConversationContext`\n * keys its effect on this object's identity; passing a fresh inline object on\n * every render makes the effect re-run each render, which toggles state on the\n * shared PageConversationContextProvider (an ancestor of this MFE's <Routes> in\n * the app shell). That perpetual re-render loop races client-side navigations\n * dispatched from this page, so links like \"Opt in a profile\" / \"Book a meeting\"\n * changed the URL but never re-matched the create route. Keeping the reference\n * constant lets the effect settle after the first run.\n */\nconst NETWORKING_LOUNGE_CONTEXT = {\n entityType: 'EVENTFULLYMANAGED_NETWORKING_LOUNGE',\n entityId: 'general',\n contextTitle: 'Networking Lounge',\n};\n\n/**\n * Shared networking lounge chat, backed by wspace-conversations-svc. Scoped by a\n * stable networking entity so every organizer/attendee on this workspace lands in\n * the same thread.\n */\nfunction NetworkingLounge() {\n useRegisterPageConversationContext(NETWORKING_LOUNGE_CONTEXT);\n return <ContextConversationWidget widgetKey=\"networking-lounge\" />;\n}\n\nexport default function NetworkingPage() {\n const { navigate } = useEventfullyManaged();\n\n const profilesPagination = usePagination({ pageSize: COLUMN_PAGE_SIZE });\n const matchesPagination = usePagination({ pageSize: COLUMN_PAGE_SIZE });\n const meetingsPagination = usePagination({ pageSize: COLUMN_PAGE_SIZE });\n\n const profilesQuery = useNetworkingProfilesQuery({\n limit: profilesPagination.limit,\n offset: profilesPagination.offset,\n });\n const matchesQuery = useNetworkingMatchesQuery({\n limit: matchesPagination.limit,\n offset: matchesPagination.offset,\n });\n const meetingsQuery = useMeetingsQuery({\n limit: meetingsPagination.limit,\n offset: meetingsPagination.offset,\n });\n // Broad lookups so we can resolve attendee names + profile→attendee links for\n // the match cards without paging through every list.\n const { data: attendeesData } = useAttendeesQuery({ limit: LOOKUP_FETCH, offset: 0 });\n const { data: allProfilesData } = useNetworkingProfilesQuery({ limit: LOOKUP_FETCH, offset: 0 });\n\n const [deleteMeeting] = useDeleteMeetingMutation();\n\n // BOFF-4321 — deterministic matchmaking engine. Generation is scoped to\n // one event at a time (organizer picks which event to run it for);\n // profiles/matches themselves are workspace-wide in this page.\n const { data: eventsData } = useEventsQuery({ limit: 100, offset: 0 });\n const events = useMemo(() => eventsData?.events?.items ?? [], [eventsData]);\n const [generateEventId, setGenerateEventId] = useState('');\n const [generateNetworkingMatches, { loading: generating }] = useGenerateNetworkingMatchesMutation();\n\n const onGenerateMatches = async () => {\n if (!generateEventId) {\n notify.error('Pick an event first', 'Choose which event to generate matches for.');\n return;\n }\n try {\n const response = await generateNetworkingMatches({ variables: { eventId: generateEventId } });\n if (response.error) {\n notify.error('Could not generate matches', response.error.message);\n return;\n }\n const total = response.data?.generateNetworkingMatches.total ?? 0;\n if (total === 0) {\n notify.info(\n 'No matches yet',\n 'This event needs at least 5 opted-in networking profiles before matches can be generated.'\n );\n return;\n }\n notify.success('Matches generated', `Found ${total} suggested connection${total === 1 ? '' : 's'}.`);\n await matchesQuery.refetch();\n } catch (error) {\n notify.error('Could not generate matches', describeError(error));\n }\n };\n\n const attendees = useMemo(() => attendeesData?.attendees?.items ?? [], [attendeesData]);\n const attendeeById = useMemo(() => {\n const map = new Map<string, { name: string; role?: string | null; company?: string | null }>();\n for (const a of attendees) {\n map.set(a.id, { name: a.fullName, role: a.role, company: a.company });\n }\n return map;\n }, [attendees]);\n\n // profileId → attendee display name (for resolving match participants).\n const profileNameById = useMemo(() => {\n const map = new Map<string, string>();\n for (const p of allProfilesData?.networkingProfiles?.items ?? []) {\n const attendee = attendeeById.get(p.attendeeId);\n map.set(p.id, attendee?.name ?? p.role ?? `Profile ${p.id.slice(0, 6)}`);\n }\n return map;\n }, [allProfilesData, attendeeById]);\n\n const profiles = useMemo(() => profilesQuery.data?.networkingProfiles.items ?? [], [profilesQuery.data]);\n const matches = useMemo(() => matchesQuery.data?.networkingMatches.items ?? [], [matchesQuery.data]);\n const meetings = useMemo(() => meetingsQuery.data?.meetings.items ?? [], [meetingsQuery.data]);\n\n const onDeleteMeeting = async (id: string, title: string) => {\n try {\n const response = await deleteMeeting({ variables: { id } });\n const deleted = response.data?.deleteMeeting === true;\n if (!mutationSucceeded(response, deleted ? id : undefined, 'Could not delete meeting')) {\n return;\n }\n notify.success('Meeting removed', `${title} was deleted.`);\n await meetingsQuery.refetch();\n } catch (error) {\n notify.error('Could not delete meeting', describeError(error));\n }\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n Networking turns attendees into connections. Profiles describe who each attendee is and what they are looking\n for, matches are the suggestions the engine makes between them, and meetings are the 1:1s they book. Opt an\n attendee in, review strong matches, and book meetings that mirror straight into the calendar.\n </PagePurpose>\n\n <EmphasisPanel className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Networking</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Manage profiles, matches and meeting schedules from live backend data.\n </p>\n </div>\n <div className=\"flex flex-wrap gap-2\">\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('/networking/profiles/create')}>\n <UserPlus className=\"h-4 w-4\" />\n Opt in a profile\n </Button>\n <Button type=\"button\" onClick={() => navigate('/networking/meetings/create')}>\n <CalendarPlus className=\"h-4 w-4\" />\n Book a meeting\n </Button>\n </div>\n </EmphasisPanel>\n\n <GlassCard treatment=\"plain\" className=\"flex flex-col gap-3 border-border-seam p-4 sm:flex-row sm:items-center\">\n <div className=\"min-w-0 flex-1\">\n <p className=\"flex items-center gap-1.5 text-sm font-semibold text-text-primary\">\n <Wand2 className=\"h-4 w-4 text-accent-primary\" />\n Matchmaking engine\n </p>\n <p className=\"mt-0.5 text-xs text-text-secondary\">\n Scores every opted-in profile pair at an event by shared interests and complementary asks. Needs at least 5\n opted-in profiles to run.\n </p>\n </div>\n <div className=\"flex shrink-0 flex-wrap items-center gap-2\">\n <Select value={generateEventId} onValueChange={setGenerateEventId}>\n <SelectTrigger aria-label=\"Event\" className=\"w-56\">\n <SelectValue placeholder=\"Select an event\" />\n </SelectTrigger>\n <SelectContent>\n {events.map((event) => (\n <SelectItem key={event.id} value={event.id}>\n {event.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <Button type=\"button\" onClick={onGenerateMatches} disabled={generating || !generateEventId}>\n <Wand2 className=\"h-4 w-4\" />\n {generating ? 'Generating…' : 'Generate matches'}\n </Button>\n </div>\n </GlassCard>\n\n <div className=\"flex flex-col gap-6 xl:flex-row\">\n {/* Three columns: Profiles / Matches / Meetings */}\n <div className=\"grid min-w-0 flex-1 grid-cols-1 gap-6 md:grid-cols-3\">\n {/* Profiles */}\n <Column\n icon={<Users className=\"h-4 w-4\" />}\n heading=\"Profiles\"\n loading={profilesQuery.loading}\n total={profilesQuery.data?.networkingProfiles.total ?? 0}\n loadedCount={profiles.length}\n pagination={profilesPagination}\n itemLabel=\"profiles\"\n empty={\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"No profiles yet\"\n description=\"Opt an attendee in to start matchmaking.\"\n className=\"py-6\"\n />\n }\n >\n {profiles.map((profile) => {\n const attendee = attendeeById.get(profile.attendeeId);\n const name =\n attendee?.name ?? (profile.attendeeId ? `Attendee ${profile.attendeeId.slice(0, 6)}` : 'Profile');\n const subtitle = [profile.role ?? attendee?.role, profile.industry ?? attendee?.company]\n .filter(Boolean)\n .join(' • ');\n return (\n <div key={profile.id} className=\"rounded-card border border-border-seam bg-bg-surface p-3\">\n <div className=\"flex items-start gap-3\">\n <Avatar label={name} />\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-start justify-between gap-2\">\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{name}</p>\n {subtitle ? <p className=\"truncate text-xs text-text-secondary\">{subtitle}</p> : null}\n </div>\n <div className=\"flex shrink-0 items-center gap-1\">\n {profile.visibility ? (\n <Badge variant={statusVariant(profile.visibility)} className=\"capitalize\">\n {profile.visibility.toLowerCase()}\n </Badge>\n ) : null}\n <ActionMenu\n ariaLabel={`${name} profile actions`}\n onEdit={() => navigate(`/networking/profiles/${profile.id}/edit`)}\n />\n </div>\n </div>\n </div>\n </div>\n {profile.interests.length > 0 ? (\n <div className=\"mt-2.5\">\n <InterestTags items={profile.interests} />\n </div>\n ) : null}\n {profile.lookingFor.length > 0 ? (\n <p className=\"mt-2 text-xs text-text-secondary\">\n <span className=\"font-medium text-text-muted\">Looking for:</span> {profile.lookingFor.join(', ')}\n </p>\n ) : null}\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n className=\"mt-3 w-full\"\n onClick={() => navigate('/networking/meetings/create')}\n >\n <CalendarPlus className=\"h-4 w-4\" />\n Book meeting\n </Button>\n </div>\n );\n })}\n </Column>\n\n {/* Suggested Matches */}\n <Column\n icon={<Sparkles className=\"h-4 w-4\" />}\n heading=\"Suggested Matches\"\n loading={matchesQuery.loading}\n total={matchesQuery.data?.networkingMatches.total ?? 0}\n loadedCount={matches.length}\n pagination={matchesPagination}\n itemLabel=\"matches\"\n empty={\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No matches yet\"\n description=\"Matches appear as the engine suggests connections.\"\n className=\"py-6\"\n />\n }\n >\n {matches.map((match) => {\n // BOFF-4321 — score/reason/sourceProfileId/targetProfileId are\n // now real typed fields (see event.gql EventfullyManagedNetworkingMatch),\n // not metadata the deterministic scorer stores separately.\n const sourceName = profileNameById.get(match.sourceProfileId);\n const targetName = profileNameById.get(match.targetProfileId);\n const label =\n sourceName && targetName ? `${sourceName} & ${targetName}` : `Match ${match.id.slice(0, 6)}`;\n return (\n <div key={match.id} className=\"rounded-card border border-border-seam bg-bg-surface p-3\">\n <div className=\"flex items-center justify-between gap-2\">\n {sourceName && targetName ? (\n <div className=\"flex min-w-0 items-center gap-2\">\n <Avatar label={sourceName} />\n <span className=\"text-xs text-text-muted\">×</span>\n <Avatar label={targetName} />\n </div>\n ) : (\n <div className=\"flex min-w-0 items-center gap-2\">\n <Avatar label={label} />\n <p className=\"truncate text-sm font-medium text-text-primary\">{label}</p>\n </div>\n )}\n <Badge variant=\"success\" className=\"shrink-0 gap-1\">\n <Heart className=\"h-3 w-3\" />\n {match.score}%\n </Badge>\n </div>\n\n {sourceName && targetName ? (\n <p className=\"mt-2 truncate text-xs text-text-secondary\">\n {sourceName} &amp; {targetName}\n </p>\n ) : null}\n\n {match.reason ? (\n <p className=\"mt-2 line-clamp-2 text-xs text-text-secondary\">{match.reason}</p>\n ) : null}\n\n {match.status !== 'suggested' ? (\n <Badge variant={statusVariant(match.status)} className=\"mt-2 uppercase\">\n {match.status}\n </Badge>\n ) : null}\n\n <Button\n type=\"button\"\n size=\"sm\"\n className=\"mt-3 w-full\"\n onClick={() => {\n document.getElementById('networking-lounge')?.scrollIntoView({ behavior: 'smooth' });\n }}\n >\n <MessagesSquare className=\"h-4 w-4\" />\n Connect &amp; Chat\n </Button>\n </div>\n );\n })}\n </Column>\n\n {/* Meetings */}\n <Column\n icon={<CalendarDays className=\"h-4 w-4\" />}\n heading=\"Meetings\"\n loading={meetingsQuery.loading}\n total={meetingsQuery.data?.meetings.total ?? 0}\n loadedCount={meetings.length}\n pagination={meetingsPagination}\n itemLabel=\"meetings\"\n empty={\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No meetings yet\"\n description=\"Booked 1:1s show up here with their time and place.\"\n className=\"py-6\"\n />\n }\n >\n {meetings.map((meeting) => {\n const title = meeting.title ?? meeting.name ?? `Meeting ${meeting.id.slice(0, 6)}`;\n const time = formatMeetingTime(\n readString(meeting.metadata, 'startsAt'),\n readString(meeting.metadata, 'endsAt')\n );\n const location = readString(meeting.metadata, 'location');\n return (\n <div\n key={meeting.id}\n className=\"rounded-card border-l-2 border-l-accent-primary bg-bg-surface p-3 pl-3.5 shadow-elevation-1\"\n >\n <div className=\"flex items-start justify-between gap-2\">\n <div className=\"min-w-0\">\n {time ? (\n <p className=\"flex items-center gap-1.5 text-xs font-medium text-text-secondary\">\n <Clock className=\"h-3.5 w-3.5\" />\n {time}\n </p>\n ) : null}\n <p className=\"mt-1 truncate font-medium text-text-primary\">{title}</p>\n </div>\n <ActionMenu\n ariaLabel={`${title} meeting actions`}\n entityName={title}\n onEdit={() => navigate(`/networking/meetings/${meeting.id}/edit`)}\n onDelete={() => onDeleteMeeting(meeting.id, title)}\n />\n </div>\n <div className=\"mt-2 flex flex-wrap items-center gap-2\">\n {meeting.status ? (\n <Badge variant={statusVariant(meeting.status)} className=\"uppercase\">\n {meeting.status}\n </Badge>\n ) : null}\n {location ? (\n <span className=\"inline-flex items-center gap-1 text-xs text-text-secondary\">\n <MapPin className=\"h-3.5 w-3.5\" />\n {location}\n </span>\n ) : null}\n </div>\n </div>\n );\n })}\n </Column>\n </div>\n\n {/* Docked Networking Lounge */}\n <div id=\"networking-lounge\" className=\"w-full xl:w-[360px] xl:shrink-0\">\n <div className=\"space-y-3\">\n <div>\n <h2 className=\"flex items-center gap-2 text-lg font-semibold text-text-primary\">\n <MessagesSquare className=\"h-5 w-5 text-accent-primary\" />\n Networking Lounge\n </h2>\n <p className=\"mt-1 text-sm text-text-secondary\">\n A shared space for attendees and organizers to connect, backed by the conversations service.\n </p>\n </div>\n <NetworkingLounge />\n </div>\n </div>\n </div>\n\n <NextSteps\n storageKey=\"eventfullymanaged-networking\"\n title=\"Make networking land\"\n steps={[\n {\n id: 'grow-attendees',\n label: 'Bring in more attendees',\n description: 'More registered attendees means richer matches and meetings.',\n icon: <Users className=\"h-4 w-4\" />,\n onClick: () => navigate('/registration'),\n },\n {\n id: 'announce-networking',\n label: 'Announce networking sessions',\n description: 'Let attendees know how and when to connect.',\n icon: <Megaphone className=\"h-4 w-4\" />,\n onClick: () => navigate('/communication'),\n },\n {\n id: 'review-event',\n label: 'Review the event schedule',\n description: 'Make sure networking slots fit around your sessions.',\n icon: <CalendarDays className=\"h-4 w-4\" />,\n onClick: () => navigate('/events'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAgDA,IAAMA,IAAmB,GACnBC,IAAe;AAMrB,SAASC,EAAc,GAA8D;CACnF,IAAMC,IAAQC,EAAO,YAAY;CAUjC,OATI;EAAC;EAAU;EAAa;EAAQ;EAAa;EAAa;EAAY;CAAQ,CAAC,CAAC,SAASD,CAAK,IACzF,YAEL;EAAC;EAAY;EAAa;EAAY;EAAU;EAAW;CAAS,CAAC,CAAC,SAASA,CAAK,IAC/E,YAEL;EAAC;EAAS;EAAW;EAAW;CAAW,CAAC,CAAC,SAASA,CAAK,IACtD,SAEF;AACT;AAEA,SAASE,EAAS,GAAuB;CACvC,IAAMC,IAAQC,EAAM,KAAK,CAAC,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kBAACE,IAAD,EAAQ,WAAU,cAAe,CAAA,GAChCF,CACG;UACJ,CAAA,IAAA,IACD;SACF,CAAA,CAAA;QAjCE,GAAAF,EAAQ,EAiCV;OAET,CAAC;MACK,CAAA;KACL;IAGL,CAAA,GAAA,kBAAC,OAAD;KAAK,IAAG;KAAoB,WAAU;KACpC,UAAA,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OAAd,UAAA,CACE,kBAACF,GAAD,EAAgB,WAAU,8BAA+B,CAAA,GAAC,mBAExD;MACJ,CAAA,GAAA,kBAAC,KAAD;OAAG,WAAU;OAAmC,UAAA;MAE7C,CAAA,CACA,EAAA,CAAA,GACL,kBAAC5E,IAAD,CAAmB,CAAA,CAChB;;IACF,CAAA,CACF;;GAEL,kBAACmF,GAAD;IACE,YAAW;IACX,OAAM;IACN,OAAO;KACL;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACnB,GAAD,EAAO,WAAU,UAAW,CAAA;MAClC,eAAeV,EAAS,eAAe;KACzC;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAC8B,IAAD,EAAW,WAAU,UAAW,CAAA;MACtC,eAAe9B,EAAS,gBAAgB;KAC1C;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACuB,GAAD,EAAc,WAAU,UAAW,CAAA;MACzC,eAAevB,EAAS,SAAS;KACnC;IACF;GACD,CAAA;EACE;;AAET"}
@@ -3,8 +3,8 @@ import { useEventfullyManaged as d } from "../../context/EventfullyManagedContex
3
3
  import { EntityListSection as f } from "./EntityListSection.js";
4
4
  import { useMemo as p } from "react";
5
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 se, NextSteps as ce, PagePurpose as le, ShowMore as ue } from "@burdenoff/fe-libs/ui";
6
+ import { EmphasisPanel as g, GlassCard as _, GradientText as v, NextSteps as y, PagePurpose as b, ShowMore as se } from "@burdenoff/fe-libs/ui";
7
+ import { LayoutDashboard as ce, Megaphone as le, Workflow as ue } from "lucide-react";
8
8
  // src/eventfullymanaged/pages/modules/OperationsHubPage.tsx
9
9
  function x(e, t) {
10
10
  let n = Number(t);
@@ -323,14 +323,14 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
323
323
  return /* @__PURE__ */ h("div", {
324
324
  className: "space-y-6 p-6",
325
325
  children: [
326
- /* @__PURE__ */ h(le, { children: [
326
+ /* @__PURE__ */ h(b, { children: [
327
327
  "A focused operations hub that pulls together the live records most relevant to ",
328
328
  S,
329
329
  ". 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."
330
330
  ] }),
331
- /* @__PURE__ */ h(y, { children: [/* @__PURE__ */ m("h1", {
331
+ /* @__PURE__ */ h(g, { children: [/* @__PURE__ */ m("h1", {
332
332
  className: "text-2xl font-bold text-text-primary",
333
- children: /* @__PURE__ */ m(se, { children: S })
333
+ children: /* @__PURE__ */ m(v, { children: S })
334
334
  }), /* @__PURE__ */ m("p", {
335
335
  className: "mt-1 text-sm text-text-secondary",
336
336
  children: de
@@ -343,7 +343,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
343
343
  w ? /* @__PURE__ */ h("div", {
344
344
  className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
345
345
  children: [
346
- q.length > 0 ? q.map((e) => /* @__PURE__ */ h(b, {
346
+ q.length > 0 ? q.map((e) => /* @__PURE__ */ h(_, {
347
347
  treatment: "metric",
348
348
  className: "p-3",
349
349
  children: [/* @__PURE__ */ h("p", {
@@ -357,7 +357,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
357
357
  className: "mt-1 text-xl font-semibold tabular-nums text-text-primary",
358
358
  children: e.formatted
359
359
  })]
360
- }, e.currency)) : /* @__PURE__ */ h(b, {
360
+ }, e.currency)) : /* @__PURE__ */ h(_, {
361
361
  treatment: "metric",
362
362
  className: "p-3",
363
363
  children: [/* @__PURE__ */ m("p", {
@@ -368,7 +368,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
368
368
  children: H.loading ? "…" : "No revenue yet"
369
369
  })]
370
370
  }),
371
- J.map((e) => /* @__PURE__ */ h(b, {
371
+ J.map((e) => /* @__PURE__ */ h(_, {
372
372
  treatment: "metric",
373
373
  className: "p-3",
374
374
  children: [/* @__PURE__ */ h("p", {
@@ -383,7 +383,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
383
383
  children: e.formatted
384
384
  })]
385
385
  }, `refund-${e.currency}`)),
386
- me.map((e) => /* @__PURE__ */ h(b, {
386
+ me.map((e) => /* @__PURE__ */ h(_, {
387
387
  treatment: "metric",
388
388
  className: "p-3",
389
389
  children: [/* @__PURE__ */ h("p", {
@@ -402,7 +402,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
402
402
  }) : null,
403
403
  /* @__PURE__ */ m("div", {
404
404
  className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",
405
- children: pe.map((e) => /* @__PURE__ */ h(b, {
405
+ children: pe.map((e) => /* @__PURE__ */ h(_, {
406
406
  treatment: "metric",
407
407
  className: "p-3",
408
408
  children: [/* @__PURE__ */ m("p", {
@@ -416,7 +416,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
416
416
  }),
417
417
  w ? /* @__PURE__ */ h("div", {
418
418
  className: "mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2",
419
- children: [/* @__PURE__ */ h(b, {
419
+ children: [/* @__PURE__ */ h(_, {
420
420
  className: "p-4",
421
421
  children: [/* @__PURE__ */ m("h3", {
422
422
  className: "text-sm font-semibold text-text-primary",
@@ -480,7 +480,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
480
480
  ]
481
481
  }, e.id)) })]
482
482
  })]
483
- }), /* @__PURE__ */ h(b, {
483
+ }), /* @__PURE__ */ h(_, {
484
484
  className: "p-4",
485
485
  children: [/* @__PURE__ */ m("h3", {
486
486
  className: "text-sm font-semibold text-text-primary",
@@ -547,7 +547,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
547
547
  }) : null
548
548
  ] }),
549
549
  he.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e)),
550
- $.length > 0 ? /* @__PURE__ */ m(ue, {
550
+ $.length > 0 ? /* @__PURE__ */ m(se, {
551
551
  collapsedHeight: 160,
552
552
  label: "Show all sections",
553
553
  children: /* @__PURE__ */ m("div", {
@@ -555,7 +555,7 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
555
555
  children: $.map((e) => /* @__PURE__ */ m("div", { children: Q(e) }, e))
556
556
  })
557
557
  }) : null,
558
- /* @__PURE__ */ m(ce, {
558
+ /* @__PURE__ */ m(y, {
559
559
  storageKey: "eventfullymanaged-operations-hub",
560
560
  title: "Where to go from here",
561
561
  steps: [
@@ -563,21 +563,21 @@ function S({ title: S, description: de, sectionKeys: C, financial: w }) {
563
563
  id: "overview",
564
564
  label: "Back to the dashboard",
565
565
  description: "See the big picture across every part of your events.",
566
- icon: /* @__PURE__ */ m(g, { className: "h-4 w-4" }),
566
+ icon: /* @__PURE__ */ m(ce, { className: "h-4 w-4" }),
567
567
  onClick: () => T("/")
568
568
  },
569
569
  {
570
570
  id: "automate",
571
571
  label: "Automate routine work",
572
572
  description: "Set up workflow templates and rules to save time.",
573
- icon: /* @__PURE__ */ m(v, { className: "h-4 w-4" }),
573
+ icon: /* @__PURE__ */ m(ue, { className: "h-4 w-4" }),
574
574
  onClick: () => T("/workflows")
575
575
  },
576
576
  {
577
577
  id: "communicate",
578
578
  label: "Reach your audience",
579
579
  description: "Send announcements and run campaigns.",
580
- icon: /* @__PURE__ */ m(_, { className: "h-4 w-4" }),
580
+ icon: /* @__PURE__ */ m(le, { className: "h-4 w-4" }),
581
581
  onClick: () => T("/communication")
582
582
  }
583
583
  ]
@@ -1 +1 @@
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","sponsorRoiQuery","useSponsorRoiReportQuery","summary","finance","registrations","useMemo","cards","revenueTiles","row","netRevenueTiles","refundTiles","formatAmounts","rows","eventFinanceRows","breakdown","sponsorRoiRows","renderSection","sectionKey","EntityListSection","primarySections","secondarySections","PagePurpose","title","EmphasisPanel","GradientText","description","GlassCard","tile","card","sponsor","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 useSponsorRoiReportQuery,\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 const sponsorRoiQuery = useSponsorRoiReportQuery({ 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. BOFF-5891 — the same treatment for refunds and net revenue.\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 netRevenueTiles = useMemo(\n () =>\n (finance?.netRevenueByCurrency ?? []).map((row) => ({\n currency: row.currency,\n formatted: formatCurrencyAmount(row.currency, row.amount),\n })),\n [finance]\n );\n\n // BOFF-5891 — only rendered when there is something to show; refunds hide\n // entirely for workspaces that have never cancelled a paid registration.\n const refundTiles = useMemo(\n () =>\n (finance?.refundsByCurrency ?? [])\n .filter((row) => Number(row.amount) > 0)\n .map((row) => ({\n currency: row.currency,\n formatted: formatCurrencyAmount(row.currency, row.amount),\n })),\n [finance]\n );\n\n const formatAmounts = (rows: Array<{ currency: string; amount: string }>) =>\n rows.length > 0 ? rows.map((row) => formatCurrencyAmount(row.currency, row.amount)).join(' · ') : '—';\n\n const eventFinanceRows = useMemo(\n () =>\n (finance?.byEvent ?? [])\n .filter(\n (breakdown) =>\n breakdown.revenueByCurrency.length > 0 ||\n breakdown.refundsByCurrency.length > 0 ||\n breakdown.paidRegistrations > 0 ||\n breakdown.refundedRegistrations > 0\n )\n .map((breakdown) => ({\n id: breakdown.event.id,\n name: breakdown.event.name,\n revenue: formatAmounts(breakdown.revenueByCurrency),\n refunds: formatAmounts(breakdown.refundsByCurrency),\n net: formatAmounts(breakdown.netRevenueByCurrency),\n paid: breakdown.paidRegistrations,\n refunded: breakdown.refundedRegistrations,\n })),\n [finance]\n );\n\n const sponsorRoiRows = useMemo(() => sponsorRoiQuery.data?.sponsorRoiReport.items ?? [], [sponsorRoiQuery.data]);\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 {refundTiles.map((tile) => (\n <GlassCard key={`refund-${tile.currency}`} treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Refunds ({tile.currency})</p>\n <p className=\"mt-1 text-xl font-semibold tabular-nums text-text-primary\">{tile.formatted}</p>\n </GlassCard>\n ))}\n {netRevenueTiles.map((tile) => (\n <GlassCard key={`net-${tile.currency}`} treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Net 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 </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\n {financial ? (\n <div className=\"mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2\">\n <GlassCard className=\"p-4\">\n <h3 className=\"text-sm font-semibold text-text-primary\">Revenue by event</h3>\n {eventFinanceRows.length === 0 ? (\n <p className=\"mt-3 text-sm text-text-secondary\">\n {financeSummaryQuery.loading ? 'Loading…' : 'No ticket revenue recorded yet.'}\n </p>\n ) : (\n <table className=\"mt-3 w-full text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam text-xs uppercase tracking-wide text-text-secondary\">\n <th className=\"py-2 pr-4 font-medium\">Event</th>\n <th className=\"py-2 pr-4 font-medium\">Revenue</th>\n <th className=\"py-2 pr-4 font-medium\">Refunds</th>\n <th className=\"py-2 pr-4 font-medium\">Net</th>\n <th className=\"py-2 font-medium\">Paid / Refunded</th>\n </tr>\n </thead>\n <tbody>\n {eventFinanceRows.map((row) => (\n <tr key={row.id} className=\"border-b border-border-seam last:border-b-0\">\n <td className=\"py-2 pr-4 text-text-primary\">{row.name}</td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">{row.revenue}</td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">{row.refunds}</td>\n <td className=\"py-2 pr-4 tabular-nums text-text-primary\">{row.net}</td>\n <td className=\"py-2 tabular-nums text-text-secondary\">\n {row.paid} / {row.refunded}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n )}\n </GlassCard>\n\n <GlassCard className=\"p-4\">\n <h3 className=\"text-sm font-semibold text-text-primary\">Sponsor ROI</h3>\n {sponsorRoiRows.length === 0 ? (\n <p className=\"mt-3 text-sm text-text-secondary\">\n {sponsorRoiQuery.loading ? 'Loading…' : 'No sponsors with contract value yet.'}\n </p>\n ) : (\n <table className=\"mt-3 w-full text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam text-xs uppercase tracking-wide text-text-secondary\">\n <th className=\"py-2 pr-4 font-medium\">Sponsor</th>\n <th className=\"py-2 pr-4 font-medium\">Contract value</th>\n <th className=\"py-2 pr-4 font-medium\">Leads</th>\n <th className=\"py-2 font-medium\">Cost per lead</th>\n </tr>\n </thead>\n <tbody>\n {sponsorRoiRows.map((sponsor) => (\n <tr key={sponsor.sponsorId} className=\"border-b border-border-seam last:border-b-0\">\n <td className=\"py-2 pr-4 text-text-primary\">\n {sponsor.name} <span className=\"text-text-secondary\">({sponsor.level})</span>\n </td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">\n {sponsor.contractValue > 0\n ? formatCurrencyAmount(sponsor.currency ?? 'USD', String(sponsor.contractValue))\n : '—'}\n </td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">\n {sponsor.leadsCaptured}\n {sponsor.leadsTarget > 0 ? ` / ${sponsor.leadsTarget}` : ''}\n </td>\n <td className=\"py-2 tabular-nums text-text-primary\">\n {sponsor.costPerLead !== null\n ? formatCurrencyAmount(sponsor.currency ?? 'USD', sponsor.costPerLead.toFixed(2))\n : '—'}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n )}\n </GlassCard>\n </div>\n ) : null}\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":";;;;;;;;AA2BA,SAASA,EAAqB,GAAkB,GAAwB;CACtE,IAAMC,IAAQ,OAAOC,CAAM;CAC3B,IAAI,CAAC,OAAO,SAASD,CAAK,GAAG,OAAO,GAAGC,EAAO,GAAGC;CACjD,IAAI;EACF,OAAO,IAAI,KAAK,aAAa,KAAA,GAAW;GAAE,OAAO;GAAY;EAAS,CAAC,CAAC,CAAC,OAAOF,CAAK;CACvF,QAAQ;EAGN,OAAO,GAAG,IAAI,KAAK,aAAa,CAAC,CAAC,OAAOA,CAAK,EAAE,GAAGE;CACrD;AACF;AAoFA,SAAwBC,EAAkB,EAAE,UAAO,iBAAa,gBAAa,gBAAqC;CAChH,IAAM,EAAE,gBAAaC,EAAqB,GACpCC,KAAO,MAAoBC,EAAY,SAASC,CAAG,GACnDC,KAAeC,EAAyB,GAKxCC,IAAqBC,EAAsB;EAAE,OAAO;EAAK,QAAQ;EAAG,MAAM,CAACN,EAAI,eAAe;CAAE,CAAC,GACjGO,IAAiBC,EAA+B;EAAE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O,GAA5CA,CAA4C,CACvD;IACE,CAAA;GACG,CAAA,IACR;GAEJ,kBAACc,IAAD;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","sponsorRoiQuery","useSponsorRoiReportQuery","summary","finance","registrations","useMemo","cards","revenueTiles","row","netRevenueTiles","refundTiles","formatAmounts","rows","eventFinanceRows","breakdown","sponsorRoiRows","renderSection","sectionKey","EntityListSection","primarySections","secondarySections","PagePurpose","title","EmphasisPanel","GradientText","description","GlassCard","tile","card","sponsor","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 useSponsorRoiReportQuery,\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 const sponsorRoiQuery = useSponsorRoiReportQuery({ 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. BOFF-5891 — the same treatment for refunds and net revenue.\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 netRevenueTiles = useMemo(\n () =>\n (finance?.netRevenueByCurrency ?? []).map((row) => ({\n currency: row.currency,\n formatted: formatCurrencyAmount(row.currency, row.amount),\n })),\n [finance]\n );\n\n // BOFF-5891 — only rendered when there is something to show; refunds hide\n // entirely for workspaces that have never cancelled a paid registration.\n const refundTiles = useMemo(\n () =>\n (finance?.refundsByCurrency ?? [])\n .filter((row) => Number(row.amount) > 0)\n .map((row) => ({\n currency: row.currency,\n formatted: formatCurrencyAmount(row.currency, row.amount),\n })),\n [finance]\n );\n\n const formatAmounts = (rows: Array<{ currency: string; amount: string }>) =>\n rows.length > 0 ? rows.map((row) => formatCurrencyAmount(row.currency, row.amount)).join(' · ') : '—';\n\n const eventFinanceRows = useMemo(\n () =>\n (finance?.byEvent ?? [])\n .filter(\n (breakdown) =>\n breakdown.revenueByCurrency.length > 0 ||\n breakdown.refundsByCurrency.length > 0 ||\n breakdown.paidRegistrations > 0 ||\n breakdown.refundedRegistrations > 0\n )\n .map((breakdown) => ({\n id: breakdown.event.id,\n name: breakdown.event.name,\n revenue: formatAmounts(breakdown.revenueByCurrency),\n refunds: formatAmounts(breakdown.refundsByCurrency),\n net: formatAmounts(breakdown.netRevenueByCurrency),\n paid: breakdown.paidRegistrations,\n refunded: breakdown.refundedRegistrations,\n })),\n [finance]\n );\n\n const sponsorRoiRows = useMemo(() => sponsorRoiQuery.data?.sponsorRoiReport.items ?? [], [sponsorRoiQuery.data]);\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 {refundTiles.map((tile) => (\n <GlassCard key={`refund-${tile.currency}`} treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Refunds ({tile.currency})</p>\n <p className=\"mt-1 text-xl font-semibold tabular-nums text-text-primary\">{tile.formatted}</p>\n </GlassCard>\n ))}\n {netRevenueTiles.map((tile) => (\n <GlassCard key={`net-${tile.currency}`} treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Net 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 </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\n {financial ? (\n <div className=\"mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2\">\n <GlassCard className=\"p-4\">\n <h3 className=\"text-sm font-semibold text-text-primary\">Revenue by event</h3>\n {eventFinanceRows.length === 0 ? (\n <p className=\"mt-3 text-sm text-text-secondary\">\n {financeSummaryQuery.loading ? 'Loading…' : 'No ticket revenue recorded yet.'}\n </p>\n ) : (\n <table className=\"mt-3 w-full text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam text-xs uppercase tracking-wide text-text-secondary\">\n <th className=\"py-2 pr-4 font-medium\">Event</th>\n <th className=\"py-2 pr-4 font-medium\">Revenue</th>\n <th className=\"py-2 pr-4 font-medium\">Refunds</th>\n <th className=\"py-2 pr-4 font-medium\">Net</th>\n <th className=\"py-2 font-medium\">Paid / Refunded</th>\n </tr>\n </thead>\n <tbody>\n {eventFinanceRows.map((row) => (\n <tr key={row.id} className=\"border-b border-border-seam last:border-b-0\">\n <td className=\"py-2 pr-4 text-text-primary\">{row.name}</td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">{row.revenue}</td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">{row.refunds}</td>\n <td className=\"py-2 pr-4 tabular-nums text-text-primary\">{row.net}</td>\n <td className=\"py-2 tabular-nums text-text-secondary\">\n {row.paid} / {row.refunded}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n )}\n </GlassCard>\n\n <GlassCard className=\"p-4\">\n <h3 className=\"text-sm font-semibold text-text-primary\">Sponsor ROI</h3>\n {sponsorRoiRows.length === 0 ? (\n <p className=\"mt-3 text-sm text-text-secondary\">\n {sponsorRoiQuery.loading ? 'Loading…' : 'No sponsors with contract value yet.'}\n </p>\n ) : (\n <table className=\"mt-3 w-full text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam text-xs uppercase tracking-wide text-text-secondary\">\n <th className=\"py-2 pr-4 font-medium\">Sponsor</th>\n <th className=\"py-2 pr-4 font-medium\">Contract value</th>\n <th className=\"py-2 pr-4 font-medium\">Leads</th>\n <th className=\"py-2 font-medium\">Cost per lead</th>\n </tr>\n </thead>\n <tbody>\n {sponsorRoiRows.map((sponsor) => (\n <tr key={sponsor.sponsorId} className=\"border-b border-border-seam last:border-b-0\">\n <td className=\"py-2 pr-4 text-text-primary\">\n {sponsor.name} <span className=\"text-text-secondary\">({sponsor.level})</span>\n </td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">\n {sponsor.contractValue > 0\n ? formatCurrencyAmount(sponsor.currency ?? 'USD', String(sponsor.contractValue))\n : '—'}\n </td>\n <td className=\"py-2 pr-4 tabular-nums text-text-secondary\">\n {sponsor.leadsCaptured}\n {sponsor.leadsTarget > 0 ? ` / ${sponsor.leadsTarget}` : ''}\n </td>\n <td className=\"py-2 tabular-nums text-text-primary\">\n {sponsor.costPerLead !== null\n ? formatCurrencyAmount(sponsor.currency ?? 'USD', sponsor.costPerLead.toFixed(2))\n : '—'}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n )}\n </GlassCard>\n </div>\n ) : null}\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":";;;;;;;;AA2BA,SAASA,EAAqB,GAAkB,GAAwB;CACtE,IAAMC,IAAQ,OAAOC,CAAM;CAC3B,IAAI,CAAC,OAAO,SAASD,CAAK,GAAG,OAAO,GAAGC,EAAO,GAAGC;CACjD,IAAI;EACF,OAAO,IAAI,KAAK,aAAa,KAAA,GAAW;GAAE,OAAO;GAA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