@burdenoff/microfe-headshotmarketing 2026.1201.1 → 2026.1202.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.
- package/dist/headshotmarketing/components/ActionMenu.js +1 -1
- package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
- package/dist/headshotmarketing/components/AssetUploadButton.js +35 -23
- package/dist/headshotmarketing/components/AssetUploadButton.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/components/UploadAudienceSelect.d.ts +7 -0
- package/dist/headshotmarketing/components/UploadAudienceSelect.js +40 -0
- package/dist/headshotmarketing/components/UploadAudienceSelect.js.map +1 -0
- package/dist/headshotmarketing/hooks/useAssetUpload.d.ts +2 -19
- package/dist/headshotmarketing/hooks/useAssetUpload.js +38 -32
- package/dist/headshotmarketing/hooks/useAssetUpload.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 +427 -412
- 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 +199 -187
- 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/EventImageUpload.js +8 -2
- package/dist/headshotmarketing/pages/events/EventImageUpload.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 +3 -3
- 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 +6 -4
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { HeadshotmarketingAiToolExecutionStatus as e, HeadshotmarketingAudienceSuggestionStatus as t } from "../../../generated/wspace-types.js";
|
|
2
2
|
import { useApplyHeadshotmarketingAdBudgetRecommendationMutation as n, useHeadshotmarketingAdBudgetRecommendationsQuery as r, useHeadshotmarketingAgentRunsQuery as i, useHeadshotmarketingApplyAudienceSuggestionMutation as a, useHeadshotmarketingAudienceSuggestionsQuery as ee, useHeadshotmarketingAutonomousLoopStatusQuery as te, useHeadshotmarketingConfigureAutonomousLoopMutation as ne, useHeadshotmarketingDismissAudienceSuggestionMutation as re } from "../../../generated/wspace-operations.js";
|
|
3
|
-
import { useHeadshotMarketing as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { AiDecisionCard as
|
|
6
|
-
import { computeBudgetDelta as
|
|
7
|
-
import { useMemo as
|
|
8
|
-
import { Activity as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import {
|
|
3
|
+
import { useHeadshotMarketing as ie } from "../../context/HeadshotMarketingContext.js";
|
|
4
|
+
import { cn as o, formatCurrency as s, formatDate as ae, formatNumber as c } from "../../utils/helpers.js";
|
|
5
|
+
import { AiDecisionCard as l } from "./AiDecisionCard.js";
|
|
6
|
+
import { computeBudgetDelta as oe, formatAiCost as se, formatAiLatency as ce, formatAiProvenance as le, summarizeAudienceCriteria as ue } from "./aiDecisionHelpers.js";
|
|
7
|
+
import { useMemo as u, useState as d } from "react";
|
|
8
|
+
import { Activity as de, AlertTriangle as f, Bot as p, ChevronRight as m, RefreshCw as h, ShieldCheck as g, Sparkles as fe } from "lucide-react";
|
|
9
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
10
|
+
import { ThemedSelect as y } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { AiPage as pe } from "@burdenoff/fe-libs/shared/pages";
|
|
11
12
|
// src/headshotmarketing/pages/ai/AiOperationsPage.tsx
|
|
12
|
-
var b = 15,
|
|
13
|
+
var b = 15, me = {
|
|
13
14
|
[e.Completed]: e.Completed,
|
|
14
15
|
[e.Failed]: e.Failed,
|
|
15
16
|
[e.Running]: e.Running
|
|
16
17
|
}, x = () => {
|
|
17
|
-
let { navigate: x, basePath: S } =
|
|
18
|
+
let { navigate: x, basePath: S } = ie(), { data: he, loading: ge, error: _e, refetch: C } = te({ fetchPolicy: "network-only" }), [ve, { loading: w }] = ne(), [T, ye] = d(""), [E, D] = d(null), [O, k] = d(null), A = he?.headshotmarketingAutonomousLoopStatus ?? null, j = T === "" ? String(A?.dailyBudget ?? 25) : T, M = async (e) => {
|
|
18
19
|
D(null), k(null);
|
|
19
20
|
let t = Number(j), n = Number.isFinite(t) && t >= 1 && t <= 500 ? Math.round(t) : void 0;
|
|
20
21
|
try {
|
|
21
|
-
await
|
|
22
|
+
await ve({ variables: { input: {
|
|
22
23
|
enabled: e,
|
|
23
24
|
dailyBudget: n
|
|
24
25
|
} } }), await C(), D(e ? "Autonomous loop enabled (propose-only)." : "Autonomous loop paused.");
|
|
@@ -34,19 +35,19 @@ var b = 15, pe = {
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
fetchPolicy: "network-only"
|
|
37
|
-
}), [
|
|
38
|
+
}), [be] = a(), [xe] = re(), [L, R] = d(null), [z, B] = d({}), [V, Se] = d(() => /* @__PURE__ */ new Set()), { data: H, loading: Ce, error: U, refetch: we } = r({
|
|
38
39
|
variables: { pagination: {
|
|
39
40
|
limit: 10,
|
|
40
41
|
offset: 0
|
|
41
42
|
} },
|
|
42
43
|
fetchPolicy: "network-only"
|
|
43
|
-
}), [
|
|
44
|
+
}), [Te] = n(), W = N?.headshotmarketingAudienceSuggestions.items ?? [], G = u(() => (H?.headshotmarketingAdBudgetRecommendations.items ?? []).filter((e) => !e.appliedAt && !V.has(e.id)), [H, V]), Ee = async (e) => {
|
|
44
45
|
R(e), B((t) => {
|
|
45
46
|
let n = { ...t };
|
|
46
47
|
return delete n[e], n;
|
|
47
48
|
});
|
|
48
49
|
try {
|
|
49
|
-
await
|
|
50
|
+
await be({ variables: { input: {
|
|
50
51
|
suggestionId: e,
|
|
51
52
|
confirm: !0
|
|
52
53
|
} } }), await I();
|
|
@@ -58,13 +59,13 @@ var b = 15, pe = {
|
|
|
58
59
|
} finally {
|
|
59
60
|
R(null);
|
|
60
61
|
}
|
|
61
|
-
},
|
|
62
|
+
}, De = async (e) => {
|
|
62
63
|
R(e), B((t) => {
|
|
63
64
|
let n = { ...t };
|
|
64
65
|
return delete n[e], n;
|
|
65
66
|
});
|
|
66
67
|
try {
|
|
67
|
-
await
|
|
68
|
+
await xe({ variables: { id: e } }), await I();
|
|
68
69
|
} catch (t) {
|
|
69
70
|
B((n) => ({
|
|
70
71
|
...n,
|
|
@@ -73,13 +74,13 @@ var b = 15, pe = {
|
|
|
73
74
|
} finally {
|
|
74
75
|
R(null);
|
|
75
76
|
}
|
|
76
|
-
},
|
|
77
|
+
}, Oe = async (e) => {
|
|
77
78
|
R(e), B((t) => {
|
|
78
79
|
let n = { ...t };
|
|
79
80
|
return delete n[e], n;
|
|
80
81
|
});
|
|
81
82
|
try {
|
|
82
|
-
await
|
|
83
|
+
await Te({ variables: { id: e } }), await we();
|
|
83
84
|
} catch (t) {
|
|
84
85
|
B((n) => ({
|
|
85
86
|
...n,
|
|
@@ -88,17 +89,17 @@ var b = 15, pe = {
|
|
|
88
89
|
} finally {
|
|
89
90
|
R(null);
|
|
90
91
|
}
|
|
91
|
-
}, [K,
|
|
92
|
-
let e = {}, t =
|
|
92
|
+
}, [K, ke] = d("all"), [q, Ae] = d("all"), J = u(() => {
|
|
93
|
+
let e = {}, t = me[K];
|
|
93
94
|
return t && (e.status = t), q !== "all" && (e.trigger = q), Object.keys(e).length > 0 ? e : void 0;
|
|
94
|
-
}, [K, q]), { data: Y, loading:
|
|
95
|
+
}, [K, q]), { data: Y, loading: je, error: Me, fetchMore: Ne, refetch: X } = i({
|
|
95
96
|
variables: {
|
|
96
97
|
filter: J,
|
|
97
98
|
page: { first: b }
|
|
98
99
|
},
|
|
99
100
|
fetchPolicy: "network-only"
|
|
100
|
-
}), Z = Y?.headshotmarketingAgentRuns.items ?? [],
|
|
101
|
-
Q?.hasNextPage && Q.endCursor && await
|
|
101
|
+
}), Z = Y?.headshotmarketingAgentRuns.items ?? [], Pe = Y?.headshotmarketingAgentRuns.totalCount ?? 0, Q = Y?.headshotmarketingAgentRuns.pageInfo, Fe = async () => {
|
|
102
|
+
Q?.hasNextPage && Q.endCursor && await Ne({
|
|
102
103
|
variables: {
|
|
103
104
|
filter: J,
|
|
104
105
|
page: {
|
|
@@ -112,88 +113,88 @@ var b = 15, pe = {
|
|
|
112
113
|
} } : e
|
|
113
114
|
});
|
|
114
115
|
}, $ = W.length + G.length;
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ v("div", {
|
|
116
117
|
className: "space-y-8 pb-10",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
118
|
+
children: [/* @__PURE__ */ _(pe, {
|
|
118
119
|
productName: "HeadshotMarketing",
|
|
119
120
|
productId: "headshotmarketing",
|
|
120
121
|
enableModelRoutes: !0
|
|
121
|
-
}), /* @__PURE__ */
|
|
122
|
+
}), /* @__PURE__ */ v("div", {
|
|
122
123
|
className: "mx-auto w-full max-w-6xl space-y-6 px-4 sm:px-6",
|
|
123
124
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ v("section", {
|
|
125
126
|
"aria-labelledby": "hsm-autonomous-loop-heading",
|
|
126
127
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop space-y-4",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ v("div", {
|
|
128
129
|
className: "flex flex-wrap items-start justify-between gap-3",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ v("div", {
|
|
130
131
|
className: "space-y-1",
|
|
131
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ v("div", {
|
|
132
133
|
className: "flex items-center gap-2",
|
|
133
134
|
children: [
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ _(p, {
|
|
135
136
|
className: "h-4 w-4 text-action-primary-bg",
|
|
136
137
|
"aria-hidden": "true"
|
|
137
138
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ _("h2", {
|
|
139
140
|
id: "hsm-autonomous-loop-heading",
|
|
140
141
|
className: "text-base font-semibold text-text-primary",
|
|
141
142
|
children: "Autonomous Marketing Loop"
|
|
142
143
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ v("span", {
|
|
144
145
|
className: "inline-flex items-center gap-1 rounded-full bg-status-info-bg px-2 py-0.5 text-[11px] font-semibold text-status-info-text",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ _(g, {
|
|
146
147
|
className: "h-3 w-3",
|
|
147
148
|
"aria-hidden": "true"
|
|
148
149
|
}), "Propose-only"]
|
|
149
150
|
})
|
|
150
151
|
]
|
|
151
|
-
}), /* @__PURE__ */
|
|
152
|
+
}), /* @__PURE__ */ _("p", {
|
|
152
153
|
className: "text-xs text-text-secondary",
|
|
153
154
|
children: "Scheduled lead scoring, budget optimization, and anomaly detection run via FluidGrids and queue proposals for explicit human review."
|
|
154
155
|
})]
|
|
155
|
-
}), /* @__PURE__ */
|
|
156
|
+
}), /* @__PURE__ */ v("button", {
|
|
156
157
|
type: "button",
|
|
157
158
|
onClick: () => void C(),
|
|
158
159
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-seam bg-gloss-card px-2.5 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
159
|
-
children: [/* @__PURE__ */
|
|
160
|
+
children: [/* @__PURE__ */ _(h, {
|
|
160
161
|
className: "h-3.5 w-3.5",
|
|
161
162
|
"aria-hidden": "true"
|
|
162
163
|
}), "Refresh"]
|
|
163
164
|
})]
|
|
164
|
-
}),
|
|
165
|
+
}), _e && !A ? /* @__PURE__ */ v("div", {
|
|
165
166
|
role: "status",
|
|
166
167
|
className: "flex items-center gap-2 rounded-md border border-border-subtle bg-bg-sunken/50 px-3 py-2.5 text-xs text-text-secondary",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
168
|
-
}) :
|
|
168
|
+
children: [/* @__PURE__ */ _(f, { className: "h-4 w-4 shrink-0 text-status-warning-text" }), /* @__PURE__ */ _("span", { children: "Autonomous loop status is currently unavailable. All manual marketing workflows continue operating normally." })]
|
|
169
|
+
}) : ge && !A ? /* @__PURE__ */ _("div", { className: "h-16 animate-pulse rounded-md bg-bg-sunken/50" }) : A ? /* @__PURE__ */ v("div", {
|
|
169
170
|
className: "space-y-4",
|
|
170
171
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ v("div", {
|
|
172
173
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
173
174
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ v("div", {
|
|
175
176
|
className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3",
|
|
176
177
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ _("p", {
|
|
178
179
|
className: "text-xs text-text-secondary",
|
|
179
180
|
children: "Workspace Status"
|
|
180
181
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ _("p", {
|
|
182
183
|
className: "mt-1 text-sm font-semibold text-text-primary",
|
|
183
184
|
children: A.enabled ? "Enabled (Propose-only)" : "Paused"
|
|
184
185
|
}),
|
|
185
|
-
!A.flagEnabled && /* @__PURE__ */
|
|
186
|
+
!A.flagEnabled && /* @__PURE__ */ _("p", {
|
|
186
187
|
className: "mt-0.5 text-[11px] text-status-warning-text",
|
|
187
188
|
children: "Workspace feature flag is off; scheduled runs will no-op."
|
|
188
189
|
})
|
|
189
190
|
]
|
|
190
191
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ v("div", {
|
|
192
193
|
className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
194
|
+
children: [/* @__PURE__ */ _("p", {
|
|
194
195
|
className: "text-xs text-text-secondary",
|
|
195
196
|
children: "Daily Decision Budget"
|
|
196
|
-
}), /* @__PURE__ */
|
|
197
|
+
}), /* @__PURE__ */ v("p", {
|
|
197
198
|
className: "mt-1 text-sm font-semibold tabular-nums text-text-primary",
|
|
198
199
|
children: [
|
|
199
200
|
A.decisionsUsedToday,
|
|
@@ -204,12 +205,12 @@ var b = 15, pe = {
|
|
|
204
205
|
]
|
|
205
206
|
})]
|
|
206
207
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ v("div", {
|
|
208
209
|
className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ _("p", {
|
|
210
211
|
className: "text-xs text-text-secondary",
|
|
211
212
|
children: "Scheduled Cadences"
|
|
212
|
-
}), /* @__PURE__ */
|
|
213
|
+
}), /* @__PURE__ */ v("p", {
|
|
213
214
|
className: "mt-1 text-sm font-semibold tabular-nums text-text-primary",
|
|
214
215
|
children: [
|
|
215
216
|
A.schedules.filter((e) => e.enabled).length,
|
|
@@ -222,30 +223,30 @@ var b = 15, pe = {
|
|
|
222
223
|
})
|
|
223
224
|
]
|
|
224
225
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ v("div", {
|
|
226
227
|
className: "flex flex-wrap items-end gap-3 border-t border-border-subtle pt-3",
|
|
227
228
|
children: [
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
229
230
|
htmlFor: "hsm-loop-daily-budget",
|
|
230
231
|
className: "block text-xs font-medium text-text-secondary",
|
|
231
232
|
children: "Daily decision cap (1–500)"
|
|
232
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ _("input", {
|
|
233
234
|
id: "hsm-loop-daily-budget",
|
|
234
235
|
type: "number",
|
|
235
236
|
min: 1,
|
|
236
237
|
max: 500,
|
|
237
238
|
value: j,
|
|
238
|
-
onChange: (e) =>
|
|
239
|
+
onChange: (e) => ye(e.target.value),
|
|
239
240
|
className: "mt-1 w-28 rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
240
241
|
})] }),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ _("button", {
|
|
242
243
|
type: "button",
|
|
243
244
|
disabled: w,
|
|
244
245
|
onClick: () => void M(!A.enabled),
|
|
245
|
-
className:
|
|
246
|
+
className: o("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium disabled:opacity-60", A.enabled ? "border border-border-seam bg-gloss-card text-text-primary hover:bg-bg-sunken" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
246
247
|
children: w ? "Saving..." : A.enabled ? "Pause autonomous loop" : "Enable autonomous loop"
|
|
247
248
|
}),
|
|
248
|
-
A.enabled && /* @__PURE__ */
|
|
249
|
+
A.enabled && /* @__PURE__ */ _("button", {
|
|
249
250
|
type: "button",
|
|
250
251
|
disabled: w,
|
|
251
252
|
onClick: () => void M(!0),
|
|
@@ -254,12 +255,12 @@ var b = 15, pe = {
|
|
|
254
255
|
})
|
|
255
256
|
]
|
|
256
257
|
}),
|
|
257
|
-
E && /* @__PURE__ */
|
|
258
|
+
E && /* @__PURE__ */ _("p", {
|
|
258
259
|
role: "status",
|
|
259
260
|
className: "text-xs text-status-success-text",
|
|
260
261
|
children: E
|
|
261
262
|
}),
|
|
262
|
-
O && /* @__PURE__ */
|
|
263
|
+
O && /* @__PURE__ */ _("p", {
|
|
263
264
|
role: "alert",
|
|
264
265
|
className: "text-xs text-status-error-text",
|
|
265
266
|
children: O
|
|
@@ -267,66 +268,66 @@ var b = 15, pe = {
|
|
|
267
268
|
]
|
|
268
269
|
}) : null]
|
|
269
270
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ v("section", {
|
|
271
272
|
"aria-labelledby": "hsm-pending-decisions-heading",
|
|
272
273
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop space-y-4",
|
|
273
274
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ v("div", {
|
|
275
276
|
className: "flex flex-wrap items-start justify-between gap-3",
|
|
276
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ v("div", {
|
|
277
278
|
className: "space-y-1",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ v("div", {
|
|
279
280
|
className: "flex items-center gap-2",
|
|
280
281
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ _(fe, {
|
|
282
283
|
className: "h-4 w-4 text-action-primary-bg",
|
|
283
284
|
"aria-hidden": "true"
|
|
284
285
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ _("h2", {
|
|
286
287
|
id: "hsm-pending-decisions-heading",
|
|
287
288
|
className: "text-base font-semibold text-text-primary",
|
|
288
289
|
children: "Pending AI Decisions"
|
|
289
290
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ _("span", {
|
|
291
292
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium tabular-nums text-text-secondary",
|
|
292
293
|
children: $
|
|
293
294
|
})
|
|
294
295
|
]
|
|
295
|
-
}), /* @__PURE__ */
|
|
296
|
+
}), /* @__PURE__ */ _("p", {
|
|
296
297
|
className: "text-xs text-text-secondary",
|
|
297
298
|
children: "Every proposed audience segment and budget shift stays pending until you explicitly apply or dismiss it."
|
|
298
299
|
})]
|
|
299
|
-
}), /* @__PURE__ */
|
|
300
|
+
}), /* @__PURE__ */ v("div", {
|
|
300
301
|
className: "flex flex-wrap items-center gap-2",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ v("button", {
|
|
302
303
|
type: "button",
|
|
303
304
|
onClick: () => x(S + "/crm/leads"),
|
|
304
305
|
className: "inline-flex items-center gap-1 rounded-md border border-border-subtle px-2.5 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
305
|
-
children: ["Score Leads", /* @__PURE__ */
|
|
306
|
-
}), /* @__PURE__ */
|
|
306
|
+
children: ["Score Leads", /* @__PURE__ */ _(m, { className: "h-3.5 w-3.5" })]
|
|
307
|
+
}), /* @__PURE__ */ v("button", {
|
|
307
308
|
type: "button",
|
|
308
309
|
onClick: () => x(S + "/crm/pipeline"),
|
|
309
310
|
className: "inline-flex items-center gap-1 rounded-md border border-border-subtle px-2.5 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
310
|
-
children: ["Deal Next Actions", /* @__PURE__ */
|
|
311
|
+
children: ["Deal Next Actions", /* @__PURE__ */ _(m, { className: "h-3.5 w-3.5" })]
|
|
311
312
|
})]
|
|
312
313
|
})]
|
|
313
314
|
}),
|
|
314
|
-
(F || U) && $ === 0 && /* @__PURE__ */
|
|
315
|
+
(F || U) && $ === 0 && /* @__PURE__ */ v("div", {
|
|
315
316
|
role: "status",
|
|
316
317
|
className: "flex items-center gap-2 rounded-md border border-border-subtle bg-bg-sunken/50 px-3 py-2.5 text-xs text-text-secondary",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ _(f, { className: "h-4 w-4 shrink-0 text-status-warning-text" }), /* @__PURE__ */ _("span", { children: "Pending AI decisions are temporarily unavailable. Non-AI campaign and CRM controls remain available." })]
|
|
318
319
|
}),
|
|
319
|
-
P &&
|
|
320
|
+
P && Ce && $ === 0 ? /* @__PURE__ */ _("div", { className: "h-24 animate-pulse rounded-md bg-bg-sunken/50" }) : $ === 0 && !F && !U ? /* @__PURE__ */ _("p", {
|
|
320
321
|
className: "rounded-md border border-dashed border-border-subtle py-6 text-center text-xs text-text-secondary",
|
|
321
322
|
children: "No pending AI proposals right now. Generate audience suggestions on a campaign, budget proposals on an ad campaign, or score leads from CRM."
|
|
322
|
-
}) : /* @__PURE__ */
|
|
323
|
+
}) : /* @__PURE__ */ v("div", {
|
|
323
324
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
324
325
|
children: [W.map((e) => {
|
|
325
|
-
let t =
|
|
326
|
-
return /* @__PURE__ */
|
|
326
|
+
let t = ue(e.criteria);
|
|
327
|
+
return /* @__PURE__ */ _(l, {
|
|
327
328
|
testId: `decision-card-audience-${e.id}`,
|
|
328
329
|
title: e.name,
|
|
329
|
-
subtitle: `Audience proposal · ${
|
|
330
|
+
subtitle: `Audience proposal · ${c(e.previewCount)} matching contacts`,
|
|
330
331
|
badge: "Audience segment",
|
|
331
332
|
badgeTone: "info",
|
|
332
333
|
rationale: e.rationale,
|
|
@@ -337,19 +338,19 @@ var b = 15, pe = {
|
|
|
337
338
|
dismissLabel: "Dismiss",
|
|
338
339
|
busy: L === e.id,
|
|
339
340
|
error: z[e.id] ?? null,
|
|
340
|
-
onApply: () => void
|
|
341
|
-
onDismiss: () => void
|
|
342
|
-
children: t.length > 0 && /* @__PURE__ */
|
|
341
|
+
onApply: () => void Ee(e.id),
|
|
342
|
+
onDismiss: () => void De(e.id),
|
|
343
|
+
children: t.length > 0 && /* @__PURE__ */ _("div", {
|
|
343
344
|
className: "flex flex-wrap gap-1.5",
|
|
344
|
-
children: t.map((e) => /* @__PURE__ */
|
|
345
|
+
children: t.map((e) => /* @__PURE__ */ _("span", {
|
|
345
346
|
className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-[11px] text-text-secondary",
|
|
346
347
|
children: e
|
|
347
348
|
}, e))
|
|
348
349
|
})
|
|
349
350
|
}, e.id);
|
|
350
351
|
}), G.map((e) => {
|
|
351
|
-
let { delta: t, deltaPct: n, direction: r } =
|
|
352
|
-
return /* @__PURE__ */
|
|
352
|
+
let { delta: t, deltaPct: n, direction: r } = oe(e.currentBudget, e.recommendedBudget);
|
|
353
|
+
return /* @__PURE__ */ _(l, {
|
|
353
354
|
testId: `decision-card-budget-${e.id}`,
|
|
354
355
|
title: "Ad budget reallocation proposal",
|
|
355
356
|
subtitle: `Ad campaign ${e.adCampaignId}`,
|
|
@@ -358,29 +359,29 @@ var b = 15, pe = {
|
|
|
358
359
|
confidence: e.confidence,
|
|
359
360
|
rationale: e.rationale,
|
|
360
361
|
source: e.source,
|
|
361
|
-
metrics: /* @__PURE__ */
|
|
362
|
+
metrics: /* @__PURE__ */ v("div", {
|
|
362
363
|
className: "grid grid-cols-3 gap-2 rounded-md border border-border-subtle bg-bg-sunken/40 p-2.5 text-xs",
|
|
363
364
|
children: [
|
|
364
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
365
366
|
className: "text-text-secondary",
|
|
366
367
|
children: "Current"
|
|
367
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ _("p", {
|
|
368
369
|
className: "font-semibold tabular-nums text-text-primary",
|
|
369
|
-
children:
|
|
370
|
+
children: s(e.currentBudget)
|
|
370
371
|
})] }),
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
372
373
|
className: "text-text-secondary",
|
|
373
374
|
children: "Proposed"
|
|
374
|
-
}), /* @__PURE__ */
|
|
375
|
+
}), /* @__PURE__ */ _("p", {
|
|
375
376
|
className: "font-semibold tabular-nums text-text-primary",
|
|
376
|
-
children:
|
|
377
|
+
children: s(e.recommendedBudget)
|
|
377
378
|
})] }),
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
379
380
|
className: "text-text-secondary",
|
|
380
381
|
children: "Change"
|
|
381
|
-
}), /* @__PURE__ */
|
|
382
|
+
}), /* @__PURE__ */ v("p", {
|
|
382
383
|
className: "font-semibold tabular-nums text-text-primary",
|
|
383
|
-
children: [t >= 0 ? "+" : "",
|
|
384
|
+
children: [t >= 0 ? "+" : "", s(t)]
|
|
384
385
|
})] })
|
|
385
386
|
]
|
|
386
387
|
}),
|
|
@@ -388,214 +389,214 @@ var b = 15, pe = {
|
|
|
388
389
|
dismissLabel: "Dismiss",
|
|
389
390
|
busy: L === e.id,
|
|
390
391
|
error: z[e.id] ?? null,
|
|
391
|
-
onApply: () => void
|
|
392
|
-
onDismiss: () =>
|
|
392
|
+
onApply: () => void Oe(e.id),
|
|
393
|
+
onDismiss: () => Se((t) => new Set(t).add(e.id))
|
|
393
394
|
}, e.id);
|
|
394
395
|
})]
|
|
395
396
|
})
|
|
396
397
|
]
|
|
397
398
|
}),
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ v("section", {
|
|
399
400
|
"aria-labelledby": "hsm-agent-runs-heading",
|
|
400
401
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop space-y-4",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ v("div", {
|
|
402
403
|
className: "flex flex-wrap items-center justify-between gap-3",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
404
|
+
children: [/* @__PURE__ */ v("div", {
|
|
404
405
|
className: "space-y-0.5",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ v("div", {
|
|
406
407
|
className: "flex items-center gap-2",
|
|
407
408
|
children: [
|
|
408
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ _(de, {
|
|
409
410
|
className: "h-4 w-4 text-action-primary-bg",
|
|
410
411
|
"aria-hidden": "true"
|
|
411
412
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ _("h2", {
|
|
413
414
|
id: "hsm-agent-runs-heading",
|
|
414
415
|
className: "text-base font-semibold text-text-primary",
|
|
415
416
|
children: "HeadshotMarketing AI Run Activity"
|
|
416
417
|
}),
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ _("span", {
|
|
418
419
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium tabular-nums text-text-secondary",
|
|
419
|
-
children:
|
|
420
|
+
children: c(Pe)
|
|
420
421
|
})
|
|
421
422
|
]
|
|
422
|
-
}), /* @__PURE__ */
|
|
423
|
+
}), /* @__PURE__ */ _("p", {
|
|
423
424
|
className: "text-xs text-text-secondary",
|
|
424
425
|
children: "Product-level audit feed of lead scoring, audience segmentation, budget optimization, content tools, and agent runs reconciled to the shared AI ledger."
|
|
425
426
|
})]
|
|
426
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ v("div", {
|
|
427
428
|
className: "flex flex-wrap items-center gap-2",
|
|
428
429
|
children: [
|
|
429
|
-
/* @__PURE__ */ y
|
|
430
|
+
/* @__PURE__ */ v(y, {
|
|
430
431
|
"aria-label": "Filter runs by status",
|
|
431
432
|
value: K,
|
|
432
|
-
onChange: (e) =>
|
|
433
|
+
onChange: (e) => ke(e.target.value),
|
|
433
434
|
className: "rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs text-text-primary",
|
|
434
435
|
children: [
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ _("option", {
|
|
436
437
|
value: "all",
|
|
437
438
|
children: "All statuses"
|
|
438
439
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ _("option", {
|
|
440
441
|
value: e.Completed,
|
|
441
442
|
children: "Completed"
|
|
442
443
|
}),
|
|
443
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ _("option", {
|
|
444
445
|
value: e.Failed,
|
|
445
446
|
children: "Failed"
|
|
446
447
|
}),
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ _("option", {
|
|
448
449
|
value: e.Running,
|
|
449
450
|
children: "Running"
|
|
450
451
|
})
|
|
451
452
|
]
|
|
452
453
|
}),
|
|
453
|
-
/* @__PURE__ */ y
|
|
454
|
+
/* @__PURE__ */ v(y, {
|
|
454
455
|
"aria-label": "Filter runs by trigger",
|
|
455
456
|
value: q,
|
|
456
|
-
onChange: (e) =>
|
|
457
|
+
onChange: (e) => Ae(e.target.value),
|
|
457
458
|
className: "rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs text-text-primary",
|
|
458
459
|
children: [
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ _("option", {
|
|
460
461
|
value: "all",
|
|
461
462
|
children: "All triggers"
|
|
462
463
|
}),
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ _("option", {
|
|
464
465
|
value: "manual",
|
|
465
466
|
children: "Manual"
|
|
466
467
|
}),
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ _("option", {
|
|
468
469
|
value: "scheduled",
|
|
469
470
|
children: "Scheduled"
|
|
470
471
|
}),
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ _("option", {
|
|
472
473
|
value: "event",
|
|
473
474
|
children: "Event"
|
|
474
475
|
})
|
|
475
476
|
]
|
|
476
477
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ v("button", {
|
|
478
479
|
type: "button",
|
|
479
|
-
onClick: () => void
|
|
480
|
+
onClick: () => void X(),
|
|
480
481
|
className: "inline-flex items-center gap-1 rounded-md border border-border-seam bg-gloss-card px-2.5 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
482
|
+
children: [/* @__PURE__ */ _(h, {
|
|
482
483
|
className: "h-3.5 w-3.5",
|
|
483
484
|
"aria-hidden": "true"
|
|
484
485
|
}), "Refresh"]
|
|
485
486
|
})
|
|
486
487
|
]
|
|
487
488
|
})]
|
|
488
|
-
}),
|
|
489
|
+
}), Me && Z.length === 0 ? /* @__PURE__ */ v("div", {
|
|
489
490
|
role: "status",
|
|
490
491
|
className: "flex items-center gap-2 rounded-md border border-border-subtle bg-bg-sunken/50 px-3 py-2.5 text-xs text-text-secondary",
|
|
491
|
-
children: [/* @__PURE__ */
|
|
492
|
-
}) :
|
|
492
|
+
children: [/* @__PURE__ */ _(f, { className: "h-4 w-4 shrink-0 text-status-warning-text" }), /* @__PURE__ */ _("span", { children: "AI run activity is unavailable right now (requires AI ledger read permission or active AI service)." })]
|
|
493
|
+
}) : je && Z.length === 0 ? /* @__PURE__ */ _("div", {
|
|
493
494
|
className: "space-y-2",
|
|
494
495
|
children: [
|
|
495
496
|
0,
|
|
496
497
|
1,
|
|
497
498
|
2
|
|
498
|
-
].map((e) => /* @__PURE__ */
|
|
499
|
-
}) : Z.length === 0 ? /* @__PURE__ */
|
|
499
|
+
].map((e) => /* @__PURE__ */ _("div", { className: "h-10 animate-pulse rounded-md bg-bg-sunken/50" }, e))
|
|
500
|
+
}) : Z.length === 0 ? /* @__PURE__ */ _("p", {
|
|
500
501
|
className: "rounded-md border border-dashed border-border-subtle py-6 text-center text-xs text-text-secondary",
|
|
501
502
|
children: "No AI runs recorded for this workspace yet."
|
|
502
|
-
}) : /* @__PURE__ */
|
|
503
|
+
}) : /* @__PURE__ */ v("div", {
|
|
503
504
|
className: "space-y-3",
|
|
504
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ _("div", {
|
|
505
506
|
className: "overflow-x-auto",
|
|
506
|
-
children: /* @__PURE__ */
|
|
507
|
-
className: "w-full text-
|
|
508
|
-
children: [/* @__PURE__ */
|
|
507
|
+
children: /* @__PURE__ */ v("table", {
|
|
508
|
+
className: "w-full text-start text-xs",
|
|
509
|
+
children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ v("tr", {
|
|
509
510
|
className: "border-b border-border-subtle text-text-secondary",
|
|
510
511
|
children: [
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
className: "py-2
|
|
512
|
+
/* @__PURE__ */ _("th", {
|
|
513
|
+
className: "py-2 pe-3 font-medium",
|
|
513
514
|
children: "Operation"
|
|
514
515
|
}),
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
className: "py-2
|
|
516
|
+
/* @__PURE__ */ _("th", {
|
|
517
|
+
className: "py-2 pe-3 font-medium",
|
|
517
518
|
children: "Model / Source"
|
|
518
519
|
}),
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
-
className: "py-2
|
|
520
|
+
/* @__PURE__ */ _("th", {
|
|
521
|
+
className: "py-2 pe-3 font-medium",
|
|
521
522
|
children: "Trigger"
|
|
522
523
|
}),
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
className: "py-2
|
|
524
|
+
/* @__PURE__ */ _("th", {
|
|
525
|
+
className: "py-2 pe-3 font-medium",
|
|
525
526
|
children: "Decision"
|
|
526
527
|
}),
|
|
527
|
-
/* @__PURE__ */
|
|
528
|
-
className: "py-2
|
|
528
|
+
/* @__PURE__ */ _("th", {
|
|
529
|
+
className: "py-2 pe-3 font-medium",
|
|
529
530
|
children: "Latency"
|
|
530
531
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
className: "py-2
|
|
532
|
+
/* @__PURE__ */ _("th", {
|
|
533
|
+
className: "py-2 pe-3 font-medium",
|
|
533
534
|
children: "Cost"
|
|
534
535
|
}),
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
className: "py-2
|
|
536
|
+
/* @__PURE__ */ _("th", {
|
|
537
|
+
className: "py-2 pe-3 font-medium",
|
|
537
538
|
children: "Status"
|
|
538
539
|
}),
|
|
539
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ _("th", {
|
|
540
541
|
className: "py-2 font-medium",
|
|
541
542
|
children: "When"
|
|
542
543
|
})
|
|
543
544
|
]
|
|
544
|
-
}) }), /* @__PURE__ */
|
|
545
|
+
}) }), /* @__PURE__ */ _("tbody", {
|
|
545
546
|
className: "divide-y divide-border-subtle",
|
|
546
|
-
children: Z.map((t) => /* @__PURE__ */
|
|
547
|
+
children: Z.map((t) => /* @__PURE__ */ v("tr", {
|
|
547
548
|
className: "text-text-primary",
|
|
548
549
|
children: [
|
|
549
|
-
/* @__PURE__ */
|
|
550
|
-
className: "py-2.5
|
|
550
|
+
/* @__PURE__ */ _("td", {
|
|
551
|
+
className: "py-2.5 pe-3 font-medium",
|
|
551
552
|
children: t.operationKey
|
|
552
553
|
}),
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
className: "py-2.5
|
|
555
|
-
children:
|
|
554
|
+
/* @__PURE__ */ _("td", {
|
|
555
|
+
className: "py-2.5 pe-3 text-text-secondary",
|
|
556
|
+
children: le({
|
|
556
557
|
provider: t.provider,
|
|
557
558
|
model: t.model
|
|
558
559
|
})
|
|
559
560
|
}),
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
className: "py-2.5
|
|
561
|
+
/* @__PURE__ */ _("td", {
|
|
562
|
+
className: "py-2.5 pe-3 capitalize text-text-secondary",
|
|
562
563
|
children: t.trigger
|
|
563
564
|
}),
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
className: "py-2.5
|
|
565
|
+
/* @__PURE__ */ _("td", {
|
|
566
|
+
className: "py-2.5 pe-3 text-text-secondary",
|
|
566
567
|
children: t.decision ?? "—"
|
|
567
568
|
}),
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
className: "py-2.5
|
|
570
|
-
children:
|
|
569
|
+
/* @__PURE__ */ _("td", {
|
|
570
|
+
className: "py-2.5 pe-3 tabular-nums text-text-secondary",
|
|
571
|
+
children: ce(t.latencyMs ?? t.durationMs)
|
|
571
572
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
className: "py-2.5
|
|
574
|
-
children:
|
|
573
|
+
/* @__PURE__ */ _("td", {
|
|
574
|
+
className: "py-2.5 pe-3 tabular-nums text-text-secondary",
|
|
575
|
+
children: se({
|
|
575
576
|
costUsd: t.costUsd,
|
|
576
577
|
simulated: t.simulated
|
|
577
578
|
})
|
|
578
579
|
}),
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
className: "py-2.5
|
|
581
|
-
children: /* @__PURE__ */
|
|
582
|
-
className:
|
|
580
|
+
/* @__PURE__ */ _("td", {
|
|
581
|
+
className: "py-2.5 pe-3",
|
|
582
|
+
children: /* @__PURE__ */ _("span", {
|
|
583
|
+
className: o("inline-flex rounded-full px-2 py-0.5 text-[11px] font-medium", t.status === e.Completed ? "bg-status-success-bg text-status-success-text" : t.status === e.Failed ? "bg-status-error-bg text-status-error-text" : "bg-status-warning-bg text-status-warning-text"),
|
|
583
584
|
children: t.status.toLowerCase()
|
|
584
585
|
})
|
|
585
586
|
}),
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ _("td", {
|
|
587
588
|
className: "py-2.5 whitespace-nowrap text-text-secondary",
|
|
588
|
-
children:
|
|
589
|
+
children: ae(t.createdAt, "relative")
|
|
589
590
|
})
|
|
590
591
|
]
|
|
591
592
|
}, t.id))
|
|
592
593
|
})]
|
|
593
594
|
})
|
|
594
|
-
}), Q?.hasNextPage && /* @__PURE__ */
|
|
595
|
+
}), Q?.hasNextPage && /* @__PURE__ */ _("div", {
|
|
595
596
|
className: "flex justify-center pt-1",
|
|
596
|
-
children: /* @__PURE__ */
|
|
597
|
+
children: /* @__PURE__ */ _("button", {
|
|
597
598
|
type: "button",
|
|
598
|
-
onClick: () => void
|
|
599
|
+
onClick: () => void Fe(),
|
|
599
600
|
className: "rounded-md border border-border-seam bg-gloss-card px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
600
601
|
children: "Load more runs"
|
|
601
602
|
})
|