@burdenoff/microfe-headshotmarketing 2026.1201.1 → 2026.1202.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/headshotmarketing/components/ActionMenu.js +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +33 -33
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
- package/dist/headshotmarketing/components/EmptyState.js +35 -15
- package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
- package/dist/headshotmarketing/components/FilterBar.js +2 -2
- package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
- package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
- package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +38 -37
- package/dist/headshotmarketing/components/Pagination.js.map +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
- package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
- package/dist/headshotmarketing/components/Toast.js +1 -1
- package/dist/headshotmarketing/components/Toast.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +10 -10
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
- package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
- package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
- package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
- package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
- package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
- package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
- package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
- package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
- package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
- package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
- package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
- package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
- package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
- package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
- package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
- package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
- package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
- package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
- package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
- package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
- package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
- package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
- package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
- package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
- package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
- package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
- package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
- package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
- package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
- package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
- package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
- package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
- package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
- package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
- package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,18 +11,18 @@ import { useHeadshotMarketing as l } from "../../context/HeadshotMarketingContex
|
|
|
11
11
|
import { TouchpointLedgerCard as ee } from "./TouchpointLedgerCard.js";
|
|
12
12
|
import { PageLayout as te } from "../../components/PageLayout.js";
|
|
13
13
|
import { StatCard as u } from "../../components/StatCard.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { ChartCard as
|
|
17
|
-
import { QueryStateBoundary as
|
|
18
|
-
import { useHeadshotmarketingAttributionSummaryQuery as
|
|
19
|
-
import { HeadshotmarketingAttributionModel as g, HeadshotmarketingDataDrivenStatus as
|
|
20
|
-
import { useMemo as
|
|
21
|
-
import { DollarSign as
|
|
22
|
-
import { Fragment as
|
|
23
|
-
import { EmphasisPanel as
|
|
14
|
+
import { EmptyState as d } from "../../components/EmptyState.js";
|
|
15
|
+
import { DataTable as f } from "../../components/DataTable.js";
|
|
16
|
+
import { ChartCard as p } from "../../components/ChartCard.js";
|
|
17
|
+
import { QueryStateBoundary as m } from "../../components/QueryStateBoundary.js";
|
|
18
|
+
import { useHeadshotmarketingAttributionSummaryQuery as ne, useHeadshotmarketingLifetimeValueAttributionQuery as h } from "../../../generated/wspace-operations.js";
|
|
19
|
+
import { HeadshotmarketingAttributionModel as g, HeadshotmarketingDataDrivenStatus as _ } from "../../../generated/wspace-types.js";
|
|
20
|
+
import { useMemo as v, useState as y } from "react";
|
|
21
|
+
import { DollarSign as b, Gem as x, GitBranch as S, Target as re, Unlink as ie, Users as ae } from "lucide-react";
|
|
22
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
23
|
+
import { EmphasisPanel as E, PagePurpose as D, ThemedSelect as O } from "@burdenoff/fe-libs/ui";
|
|
24
24
|
// src/headshotmarketing/pages/analytics/AttributionPage.tsx
|
|
25
|
-
var
|
|
25
|
+
var k = [
|
|
26
26
|
{
|
|
27
27
|
value: g.PositionBased,
|
|
28
28
|
label: "Position-based (U-shaped)",
|
|
@@ -53,13 +53,13 @@ var D = [
|
|
|
53
53
|
label: "Data-driven (learned)",
|
|
54
54
|
description: "Channel weights learned from this workspace's converting and non-converting journeys (Markov removal effect)."
|
|
55
55
|
}
|
|
56
|
-
],
|
|
56
|
+
], oe = [
|
|
57
57
|
30,
|
|
58
58
|
90,
|
|
59
59
|
180,
|
|
60
60
|
365
|
|
61
|
-
],
|
|
62
|
-
function
|
|
61
|
+
], se = 864e5, A = "__none__";
|
|
62
|
+
function j(e, t, n, r, i, a) {
|
|
63
63
|
let o = (e) => ({
|
|
64
64
|
lifetimeValue: e?.attributedLifetimeValue ?? 0,
|
|
65
65
|
averageLifetimeValue: e?.averageLifetimeValue ?? 0
|
|
@@ -70,7 +70,7 @@ function k(e, t, n, r, i, a) {
|
|
|
70
70
|
for (let e of s.values()) c.push(a(e, o(e)));
|
|
71
71
|
return c;
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var M = () => [{
|
|
74
74
|
key: "lifetimeValue",
|
|
75
75
|
header: "Customer LTV",
|
|
76
76
|
sortable: !0,
|
|
@@ -80,12 +80,12 @@ var A = () => [{
|
|
|
80
80
|
header: "Avg. LTV",
|
|
81
81
|
sortable: !0,
|
|
82
82
|
render: (e) => s(e.averageLifetimeValue)
|
|
83
|
-
}],
|
|
83
|
+
}], N = (e) => `${(e * 100).toFixed(1)}%`, P = [
|
|
84
84
|
{
|
|
85
85
|
key: "channel",
|
|
86
86
|
header: "Channel",
|
|
87
87
|
sortable: !0,
|
|
88
|
-
render: (e) => /* @__PURE__ */
|
|
88
|
+
render: (e) => /* @__PURE__ */ w("span", {
|
|
89
89
|
className: "font-medium text-text-primary capitalize",
|
|
90
90
|
children: e.channel.replace(/_/g, " ")
|
|
91
91
|
})
|
|
@@ -94,37 +94,37 @@ var A = () => [{
|
|
|
94
94
|
key: "weight",
|
|
95
95
|
header: "Learned weight",
|
|
96
96
|
sortable: !0,
|
|
97
|
-
render: (e) =>
|
|
97
|
+
render: (e) => N(e.weight)
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
key: "removalEffect",
|
|
101
101
|
header: "Removal effect",
|
|
102
102
|
sortable: !0,
|
|
103
|
-
render: (e) =>
|
|
103
|
+
render: (e) => N(e.removalEffect)
|
|
104
104
|
}
|
|
105
|
-
],
|
|
105
|
+
], F = () => ({
|
|
106
106
|
key: "revenueShare",
|
|
107
107
|
header: "Share",
|
|
108
108
|
sortable: !0,
|
|
109
|
-
render: (e) => /* @__PURE__ */
|
|
109
|
+
render: (e) => /* @__PURE__ */ T("div", {
|
|
110
110
|
className: "flex items-center gap-2",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ w("div", {
|
|
112
112
|
className: "w-16 h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
113
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ w("div", {
|
|
114
114
|
className: "h-full rounded-full bg-action-primary-bg",
|
|
115
115
|
style: { width: `${Math.min(e.revenueShare * 100, 100)}%` }
|
|
116
116
|
})
|
|
117
|
-
}), /* @__PURE__ */
|
|
117
|
+
}), /* @__PURE__ */ T("span", {
|
|
118
118
|
className: "text-xs text-text-secondary",
|
|
119
119
|
children: [(e.revenueShare * 100).toFixed(1), "%"]
|
|
120
120
|
})]
|
|
121
121
|
})
|
|
122
|
-
}),
|
|
122
|
+
}), I = [
|
|
123
123
|
{
|
|
124
124
|
key: "channel",
|
|
125
125
|
header: "Channel",
|
|
126
126
|
sortable: !0,
|
|
127
|
-
render: (e) => /* @__PURE__ */
|
|
127
|
+
render: (e) => /* @__PURE__ */ w("span", {
|
|
128
128
|
className: "font-medium text-text-primary capitalize",
|
|
129
129
|
children: e.channel.replace(/_/g, " ")
|
|
130
130
|
})
|
|
@@ -147,34 +147,34 @@ var A = () => [{
|
|
|
147
147
|
sortable: !0,
|
|
148
148
|
render: (e) => c(e.touchpointCount)
|
|
149
149
|
},
|
|
150
|
-
|
|
151
|
-
...
|
|
152
|
-
],
|
|
153
|
-
let { navigate:
|
|
150
|
+
F(),
|
|
151
|
+
...M()
|
|
152
|
+
], L = () => {
|
|
153
|
+
let { navigate: L, basePath: R } = l(), [z, B] = y(g.PositionBased), [V, H] = y(90), { startDate: U, endDate: W } = v(() => {
|
|
154
154
|
let e = /* @__PURE__ */ new Date();
|
|
155
155
|
return e.setHours(23, 59, 59, 999), {
|
|
156
|
-
startDate: (/* @__PURE__ */ new Date(e.getTime() -
|
|
156
|
+
startDate: (/* @__PURE__ */ new Date(e.getTime() - V * se)).toISOString(),
|
|
157
157
|
endDate: e.toISOString()
|
|
158
158
|
};
|
|
159
|
-
}, [
|
|
159
|
+
}, [V]), { data: G, loading: ce, error: le, refetch: ue } = ne({
|
|
160
160
|
variables: {
|
|
161
|
-
model:
|
|
162
|
-
startDate:
|
|
163
|
-
endDate:
|
|
161
|
+
model: z,
|
|
162
|
+
startDate: U,
|
|
163
|
+
endDate: W
|
|
164
164
|
},
|
|
165
165
|
fetchPolicy: "cache-and-network"
|
|
166
166
|
}), { data: de, error: fe } = h({
|
|
167
167
|
variables: {
|
|
168
|
-
model:
|
|
169
|
-
startDate:
|
|
170
|
-
endDate:
|
|
168
|
+
model: z,
|
|
169
|
+
startDate: U,
|
|
170
|
+
endDate: W
|
|
171
171
|
},
|
|
172
172
|
fetchPolicy: "cache-and-network"
|
|
173
|
-
}),
|
|
173
|
+
}), K = G?.headshotmarketingAttributionSummary, q = de?.headshotmarketingLifetimeValueAttribution, J = k.find((e) => e.value === z), Y = K?.dataDriven ?? null, X = Y?.status === _.InsufficientData, pe = (Y?.channelWeights ?? []).map((e) => ({
|
|
174
174
|
channel: e.channel,
|
|
175
175
|
weight: e.weight,
|
|
176
176
|
removalEffect: e.removalEffect
|
|
177
|
-
})), Z =
|
|
177
|
+
})), Z = v(() => j(K?.byChannel ?? [], q?.byChannel ?? [], (e) => e.channel, (e) => e.channel, (e, t) => ({
|
|
178
178
|
channel: e.channel,
|
|
179
179
|
touchpointCount: e.touchpointCount,
|
|
180
180
|
attributedConversions: e.attributedConversions,
|
|
@@ -188,7 +188,7 @@ var A = () => [{
|
|
|
188
188
|
attributedRevenue: 0,
|
|
189
189
|
revenueShare: 0,
|
|
190
190
|
...t
|
|
191
|
-
})), [
|
|
191
|
+
})), [K, q]), me = v(() => j(K?.byCampaign ?? [], q?.byCampaign ?? [], (e) => e.campaignId ?? A, (e) => e.campaignId ?? A, (e, t) => ({
|
|
192
192
|
campaignId: e.campaignId,
|
|
193
193
|
campaignName: e.campaignName,
|
|
194
194
|
touchpointCount: e.touchpointCount,
|
|
@@ -204,18 +204,18 @@ var A = () => [{
|
|
|
204
204
|
attributedRevenue: 0,
|
|
205
205
|
revenueShare: 0,
|
|
206
206
|
...t
|
|
207
|
-
})), [
|
|
207
|
+
})), [K, q]), Q = Z.map((e) => ({
|
|
208
208
|
name: e.channel.replace(/_/g, " "),
|
|
209
209
|
revenue: e.attributedRevenue
|
|
210
|
-
})),
|
|
210
|
+
})), he = [
|
|
211
211
|
{
|
|
212
212
|
key: "campaignName",
|
|
213
213
|
header: "Campaign",
|
|
214
214
|
sortable: !0,
|
|
215
|
-
render: (e) => e.campaignId ? /* @__PURE__ */
|
|
215
|
+
render: (e) => e.campaignId ? /* @__PURE__ */ w("span", {
|
|
216
216
|
className: "font-medium text-text-primary",
|
|
217
217
|
children: e.campaignName ?? "Deleted campaign"
|
|
218
|
-
}) : /* @__PURE__ */
|
|
218
|
+
}) : /* @__PURE__ */ w("span", {
|
|
219
219
|
className: "text-text-secondary italic",
|
|
220
220
|
children: "No campaign"
|
|
221
221
|
})
|
|
@@ -238,31 +238,31 @@ var A = () => [{
|
|
|
238
238
|
sortable: !0,
|
|
239
239
|
render: (e) => c(e.touchpointCount)
|
|
240
240
|
},
|
|
241
|
-
|
|
242
|
-
...
|
|
241
|
+
F(),
|
|
242
|
+
...M()
|
|
243
243
|
], $ = "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary";
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ T(te, {
|
|
245
245
|
title: "Attribution",
|
|
246
246
|
description: "Multi-touch attribution of closed-won revenue",
|
|
247
|
-
actions: /* @__PURE__ */
|
|
247
|
+
actions: /* @__PURE__ */ T("div", {
|
|
248
248
|
className: "flex flex-wrap items-center gap-2",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
249
|
+
children: [/* @__PURE__ */ w(O, {
|
|
250
250
|
"aria-label": "Attribution model",
|
|
251
251
|
"data-testid": "attribution-model",
|
|
252
|
-
value:
|
|
253
|
-
onChange: (e) =>
|
|
252
|
+
value: z,
|
|
253
|
+
onChange: (e) => B(e.target.value),
|
|
254
254
|
className: $,
|
|
255
|
-
children:
|
|
255
|
+
children: k.map((e) => /* @__PURE__ */ w("option", {
|
|
256
256
|
value: e.value,
|
|
257
257
|
children: e.label
|
|
258
258
|
}, e.value))
|
|
259
|
-
}), /* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ w(O, {
|
|
260
260
|
"aria-label": "Date range",
|
|
261
261
|
"data-testid": "attribution-window",
|
|
262
|
-
value:
|
|
263
|
-
onChange: (e) =>
|
|
262
|
+
value: V,
|
|
263
|
+
onChange: (e) => H(Number(e.target.value)),
|
|
264
264
|
className: $,
|
|
265
|
-
children:
|
|
265
|
+
children: oe.map((e) => /* @__PURE__ */ T("option", {
|
|
266
266
|
value: e,
|
|
267
267
|
children: [
|
|
268
268
|
"Last ",
|
|
@@ -273,158 +273,158 @@ var A = () => [{
|
|
|
273
273
|
})]
|
|
274
274
|
}),
|
|
275
275
|
children: [
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
loading:
|
|
276
|
+
/* @__PURE__ */ w(D, { children: "See which channels and campaigns actually earned your closed revenue. Every deal won in the selected window is credited across the marketing touches that preceded it — leads, event registrations, check-ins, tracked-link clicks and tracked email opens are captured automatically, and connectors can send more. Switch models to compare how first-touch, last-touch, multi-touch and data-driven views shift the credit, and use the lifetime-value columns to see which channels bring in the customers worth the most over time." }),
|
|
277
|
+
/* @__PURE__ */ w(m, {
|
|
278
|
+
loading: ce && !K,
|
|
279
279
|
error: le,
|
|
280
280
|
onRetry: () => void ue(),
|
|
281
|
-
hasData: !!
|
|
282
|
-
children:
|
|
283
|
-
/* @__PURE__ */
|
|
281
|
+
hasData: !!K,
|
|
282
|
+
children: K && /* @__PURE__ */ T(C, { children: [
|
|
283
|
+
/* @__PURE__ */ w(E, { children: /* @__PURE__ */ T("div", {
|
|
284
284
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
285
285
|
"data-testid": "attribution-stats",
|
|
286
286
|
children: [
|
|
287
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ w(u, {
|
|
288
288
|
title: "Closed-won revenue",
|
|
289
|
-
value: s(
|
|
290
|
-
icon: /* @__PURE__ */
|
|
289
|
+
value: s(K.totalRevenue),
|
|
290
|
+
icon: /* @__PURE__ */ w(b, { className: "h-4 w-4" }),
|
|
291
291
|
featured: !0
|
|
292
292
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ w(u, {
|
|
294
294
|
title: "Attributed revenue",
|
|
295
|
-
value: s(
|
|
296
|
-
icon: /* @__PURE__ */
|
|
295
|
+
value: s(K.attributedRevenue),
|
|
296
|
+
icon: /* @__PURE__ */ w(S, { className: "h-4 w-4" })
|
|
297
297
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ w(u, {
|
|
299
299
|
title: "Deals with a journey",
|
|
300
|
-
value: `${c(
|
|
301
|
-
icon: /* @__PURE__ */
|
|
300
|
+
value: `${c(K.attributedConversionCount)} / ${c(K.conversionCount)}`,
|
|
301
|
+
icon: /* @__PURE__ */ w(re, { className: "h-4 w-4" })
|
|
302
302
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ w(u, {
|
|
304
304
|
title: "Unattributed revenue",
|
|
305
|
-
value: s(
|
|
306
|
-
icon: /* @__PURE__ */
|
|
305
|
+
value: s(K.unattributedRevenue),
|
|
306
|
+
icon: /* @__PURE__ */ w(ie, { className: "h-4 w-4" })
|
|
307
307
|
})
|
|
308
308
|
]
|
|
309
309
|
}) }),
|
|
310
|
-
|
|
310
|
+
J && /* @__PURE__ */ T("p", {
|
|
311
311
|
className: "text-sm text-text-secondary",
|
|
312
312
|
"data-testid": "attribution-model-description",
|
|
313
313
|
children: [
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ T("span", {
|
|
315
315
|
className: "font-medium text-text-primary",
|
|
316
|
-
children: [
|
|
316
|
+
children: [J.label, ":"]
|
|
317
317
|
}),
|
|
318
318
|
" ",
|
|
319
|
-
|
|
319
|
+
J.description
|
|
320
320
|
]
|
|
321
321
|
}),
|
|
322
|
-
|
|
322
|
+
q && /* @__PURE__ */ T("div", {
|
|
323
323
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
324
324
|
"data-testid": "attribution-clv-stats",
|
|
325
325
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ w(u, {
|
|
327
327
|
title: "Customers acquired",
|
|
328
|
-
value: `${c(
|
|
329
|
-
icon: /* @__PURE__ */
|
|
328
|
+
value: `${c(q.attributedCustomerCount)} / ${c(q.customerCount)} with a journey`,
|
|
329
|
+
icon: /* @__PURE__ */ w(ae, { className: "h-4 w-4" })
|
|
330
330
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ w(u, {
|
|
332
332
|
title: "Avg. customer lifetime value",
|
|
333
|
-
value: s(
|
|
334
|
-
icon: /* @__PURE__ */
|
|
333
|
+
value: s(q.averageLifetimeValue),
|
|
334
|
+
icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" })
|
|
335
335
|
}),
|
|
336
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ w(u, {
|
|
337
337
|
title: "Attributed lifetime value",
|
|
338
|
-
value: s(
|
|
339
|
-
icon: /* @__PURE__ */
|
|
338
|
+
value: s(q.attributedLifetimeValue),
|
|
339
|
+
icon: /* @__PURE__ */ w(b, { className: "h-4 w-4" })
|
|
340
340
|
})
|
|
341
341
|
]
|
|
342
342
|
}),
|
|
343
|
-
fe && !
|
|
343
|
+
fe && !q && /* @__PURE__ */ w("p", {
|
|
344
344
|
className: "text-sm text-status-warning-text",
|
|
345
345
|
children: "Customer lifetime value could not be loaded right now; revenue attribution below is unaffected."
|
|
346
346
|
}),
|
|
347
|
-
|
|
347
|
+
Y && X && /* @__PURE__ */ T("div", {
|
|
348
348
|
className: "rounded-md border border-border-seam bg-gloss-card p-4 text-sm text-text-secondary",
|
|
349
349
|
"data-testid": "attribution-insufficient-data",
|
|
350
350
|
role: "status",
|
|
351
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ w("p", {
|
|
352
352
|
className: "font-medium text-text-primary",
|
|
353
353
|
children: "Not enough data to learn a data-driven model yet"
|
|
354
|
-
}), /* @__PURE__ */
|
|
354
|
+
}), /* @__PURE__ */ T("p", {
|
|
355
355
|
className: "mt-1",
|
|
356
356
|
children: [
|
|
357
357
|
"The model needs at least",
|
|
358
358
|
" ",
|
|
359
|
-
c(
|
|
359
|
+
c(Y.minConvertingJourneys),
|
|
360
360
|
" converting and ",
|
|
361
|
-
c(
|
|
361
|
+
c(Y.minNonConvertingJourneys),
|
|
362
362
|
" ",
|
|
363
363
|
"non-converting journeys. This window has",
|
|
364
364
|
" ",
|
|
365
|
-
c(
|
|
365
|
+
c(Y.convertingJourneys),
|
|
366
366
|
" converting and",
|
|
367
367
|
" ",
|
|
368
|
-
c(
|
|
368
|
+
c(Y.nonConvertingJourneys),
|
|
369
369
|
" ",
|
|
370
370
|
"non-converting. Widen the date range, or pick a rule-based model to see credit now."
|
|
371
371
|
]
|
|
372
372
|
})]
|
|
373
373
|
}),
|
|
374
|
-
|
|
374
|
+
Y && !X && /* @__PURE__ */ w(p, {
|
|
375
375
|
title: "Learned channel weights",
|
|
376
|
-
subtitle: `Learned from ${c(
|
|
377
|
-
children: /* @__PURE__ */
|
|
376
|
+
subtitle: `Learned from ${c(Y.convertingJourneys)} converting and ${c(Y.nonConvertingJourneys)} non-converting journeys${Y.baselineConversionProbability == null ? "" : ` · baseline conversion ${N(Y.baselineConversionProbability)}`}`,
|
|
377
|
+
children: /* @__PURE__ */ w("div", {
|
|
378
378
|
"data-testid": "attribution-learned-weights",
|
|
379
|
-
children: /* @__PURE__ */
|
|
380
|
-
data:
|
|
381
|
-
columns:
|
|
379
|
+
children: /* @__PURE__ */ w(f, {
|
|
380
|
+
data: pe,
|
|
381
|
+
columns: P,
|
|
382
382
|
pageSize: 8,
|
|
383
383
|
emptyMessage: "No channels in this window."
|
|
384
384
|
})
|
|
385
385
|
})
|
|
386
386
|
}),
|
|
387
|
-
|
|
387
|
+
K.truncated && /* @__PURE__ */ w("p", {
|
|
388
388
|
className: "text-sm text-status-warning-text",
|
|
389
389
|
children: "This window holds more than 1,000 won deals; only the most recent 1,000 are attributed. Narrow the date range to see the rest."
|
|
390
390
|
}),
|
|
391
|
-
|
|
392
|
-
icon: /* @__PURE__ */
|
|
391
|
+
X ? null : K.conversionCount === 0 ? /* @__PURE__ */ w(d, {
|
|
392
|
+
icon: /* @__PURE__ */ w(S, { className: "h-6 w-6" }),
|
|
393
393
|
title: "No closed-won deals in this window",
|
|
394
394
|
description: "Attribution credits revenue from deals marked WON. Close a deal in the CRM, or widen the date range.",
|
|
395
|
-
action: /* @__PURE__ */
|
|
395
|
+
action: /* @__PURE__ */ w("button", {
|
|
396
396
|
type: "button",
|
|
397
|
-
onClick: () =>
|
|
397
|
+
onClick: () => L(R + "/crm"),
|
|
398
398
|
className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text",
|
|
399
399
|
children: "Open CRM"
|
|
400
400
|
})
|
|
401
|
-
}) : /* @__PURE__ */
|
|
401
|
+
}) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(p, {
|
|
402
402
|
title: "Attributed revenue by channel",
|
|
403
|
-
subtitle: `${c(
|
|
404
|
-
children: Q.length === 0 ? /* @__PURE__ */
|
|
403
|
+
subtitle: `${c(K.touchpointCount)} touchpoints across ${c(K.attributedConversionCount)} won deals`,
|
|
404
|
+
children: Q.length === 0 ? /* @__PURE__ */ w("p", {
|
|
405
405
|
className: "py-8 text-center text-sm text-text-secondary",
|
|
406
406
|
children: "None of these deals have recorded touchpoints yet."
|
|
407
|
-
}) : /* @__PURE__ */
|
|
407
|
+
}) : /* @__PURE__ */ w(o, {
|
|
408
408
|
width: "100%",
|
|
409
409
|
height: 280,
|
|
410
|
-
children: /* @__PURE__ */
|
|
410
|
+
children: /* @__PURE__ */ T(e, {
|
|
411
411
|
data: Q,
|
|
412
412
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ w(i, {
|
|
414
414
|
strokeDasharray: "3 3",
|
|
415
415
|
className: "stroke-border"
|
|
416
416
|
}),
|
|
417
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ w(n, {
|
|
418
418
|
dataKey: "name",
|
|
419
419
|
tick: { fontSize: 12 },
|
|
420
420
|
className: "text-text-secondary capitalize"
|
|
421
421
|
}),
|
|
422
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ w(r, {
|
|
423
423
|
tick: { fontSize: 12 },
|
|
424
424
|
className: "text-text-secondary"
|
|
425
425
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ w(a, { formatter: (e) => s(e) }),
|
|
427
|
+
/* @__PURE__ */ w(t, {
|
|
428
428
|
dataKey: "revenue",
|
|
429
429
|
name: "Attributed revenue",
|
|
430
430
|
fill: "var(--color-chart-1)",
|
|
@@ -438,26 +438,26 @@ var A = () => [{
|
|
|
438
438
|
]
|
|
439
439
|
})
|
|
440
440
|
})
|
|
441
|
-
}), /* @__PURE__ */
|
|
441
|
+
}), /* @__PURE__ */ T("div", {
|
|
442
442
|
className: "grid grid-cols-1 xl:grid-cols-2 gap-6",
|
|
443
|
-
children: [/* @__PURE__ */
|
|
443
|
+
children: [/* @__PURE__ */ w(p, {
|
|
444
444
|
title: "Channels",
|
|
445
445
|
subtitle: "Credited revenue per channel",
|
|
446
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ w(f, {
|
|
447
447
|
data: Z,
|
|
448
|
-
columns:
|
|
448
|
+
columns: I,
|
|
449
449
|
pageSize: 8,
|
|
450
450
|
emptyMessage: "No touchpoints recorded for these deals."
|
|
451
451
|
})
|
|
452
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ w(p, {
|
|
453
453
|
title: "Campaigns",
|
|
454
454
|
subtitle: "Credited revenue per campaign",
|
|
455
|
-
children: /* @__PURE__ */
|
|
456
|
-
data:
|
|
457
|
-
columns:
|
|
455
|
+
children: /* @__PURE__ */ w(f, {
|
|
456
|
+
data: me,
|
|
457
|
+
columns: he,
|
|
458
458
|
pageSize: 8,
|
|
459
459
|
onRowClick: (e) => {
|
|
460
|
-
e.campaignId &&
|
|
460
|
+
e.campaignId && L(R + "/campaigns/" + e.campaignId);
|
|
461
461
|
},
|
|
462
462
|
emptyMessage: "No touchpoints recorded for these deals."
|
|
463
463
|
})
|
|
@@ -465,10 +465,10 @@ var A = () => [{
|
|
|
465
465
|
})] })
|
|
466
466
|
] })
|
|
467
467
|
}),
|
|
468
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ w(ee, {})
|
|
469
469
|
]
|
|
470
470
|
});
|
|
471
471
|
};
|
|
472
|
-
export {
|
|
472
|
+
export { L as AttributionPage };
|
|
473
473
|
|
|
474
474
|
//# sourceMappingURL=AttributionPage.js.map
|