@burdenoff/microfe-bigconsole 2026.1012.3 → 2026.1012.5
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/bigconsole/BigConsoleRoutes.js +149 -140
- package/dist/bigconsole/assistant/assistantApi.js +5 -5
- package/dist/bigconsole/assistant/assistantProduct.js +4 -1
- package/dist/bigconsole/assistant/displayCopy.d.ts +32 -0
- package/dist/bigconsole/assistant/pageContext.d.ts +14 -0
- package/dist/bigconsole/assistant/pageContext.js +6 -1
- package/dist/bigconsole/assistant/pageControls.d.ts +81 -0
- package/dist/bigconsole/assistant/pageControls.js +169 -0
- package/dist/bigconsole/assistant/previewControl.d.ts +16 -0
- package/dist/bigconsole/assistant/previewControl.js +10 -0
- package/dist/bigconsole/assistant/recordAdapters.js +27 -26
- package/dist/bigconsole/assistant/usePreviewControl.d.ts +2 -0
- package/dist/bigconsole/assistant/usePreviewControl.js +20 -0
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +33 -18
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/common/SortBySelect.d.ts +11 -0
- package/dist/bigconsole/components/common/SortBySelect.js +29 -0
- package/dist/bigconsole/components/common/index.d.ts +1 -0
- package/dist/bigconsole/components/common/index.js +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +153 -153
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +134 -134
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +154 -150
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +51 -50
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/embed/renderer-manifest.js +12 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +77 -76
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +96 -95
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +122 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +227 -224
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +10 -0
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +113 -0
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +10 -0
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +187 -0
- package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +7 -0
- package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.js +12 -0
- package/dist/bigconsole/components/widgets/advanced/data.d.ts +36 -0
- package/dist/bigconsole/components/widgets/advanced/data.js +113 -0
- package/dist/bigconsole/components/widgets/advanced/mapData.d.ts +10 -0
- package/dist/bigconsole/components/widgets/advanced/mapData.js +22 -0
- package/dist/bigconsole/components/widgets/advanced/waterfallData.d.ts +15 -0
- package/dist/bigconsole/components/widgets/advanced/waterfallData.js +28 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +34 -37
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/index.js +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +2 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +64 -63
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/constants/backendErrors.js +94 -0
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
- package/dist/bigconsole/graphql/widgetCapabilities.d.ts +7 -0
- package/dist/bigconsole/graphql/widgetCapabilities.js +37 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +14 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +32 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +23 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +138 -113
- package/dist/bigconsole/hooks/useDrilldown.js +3 -3
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/hooks/useWidgetCatalog.js +46 -41
- package/dist/bigconsole/hooks/useWidgetOperations.js +113 -88
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
- package/dist/bigconsole/pages/DashboardViewPage.js +244 -221
- package/dist/bigconsole/pages/DashboardsPage.js +269 -221
- package/dist/bigconsole/pages/DataParsersPage.js +180 -157
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +62 -55
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -234
- package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +335 -299
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +279 -265
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +107 -88
- package/dist/bigconsole/pages/SettingsPage.js +179 -173
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +8 -5
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +69 -69
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/store/widgetStore.d.ts +12 -0
- package/dist/bigconsole/store/widgetStore.js +3 -1
- package/dist/bigconsole/types/index.d.ts +1 -1
- package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +14 -0
- package/dist/bigconsole/utils/advancedWidgetCapabilities.js +36 -0
- package/dist/bigconsole/utils/backendError.d.ts +18 -0
- package/dist/bigconsole/utils/backendError.js +42 -0
- package/dist/bigconsole/utils/dashboardList.d.ts +28 -0
- package/dist/bigconsole/utils/dashboardList.js +15 -0
- package/dist/bigconsole/utils/dataSinkList.d.ts +15 -0
- package/dist/bigconsole/utils/dataSinkList.js +15 -0
- package/dist/bigconsole/utils/formDirty.d.ts +82 -0
- package/dist/bigconsole/utils/formDirty.js +21 -0
- package/dist/bigconsole/utils/insightsDraft.d.ts +29 -0
- package/dist/bigconsole/utils/insightsDraft.js +8 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts +130 -0
- package/dist/bigconsole/utils/layoutBaseline.js +96 -0
- package/dist/bigconsole/utils/listSort.d.ts +80 -0
- package/dist/bigconsole/utils/listSort.js +85 -0
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +16 -0
- package/dist/bigconsole/utils/widgetFormDirty.js +13 -0
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts +1 -1
- package/dist/bigconsole/utils/widgetTypeMapping.js +13 -2
- package/dist/bigconsole/workflowOpen.js +15 -14
- package/dist/generated/wspace-operations.d.ts +61 -2
- package/dist/generated/wspace-operations.js +44 -18
- package/dist/generated/wspace-types.d.ts +34 -3
- package/package.json +3 -3
|
@@ -1,167 +1,168 @@
|
|
|
1
1
|
import { useBigConsoleNavigate as e } from "../../context/BigConsoleContext.js";
|
|
2
2
|
import "../../context/index.js";
|
|
3
3
|
import { PREVIEW_STEPS as t, useAssistantRunStore as n } from "../../assistant/assistantRunStore.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useBigConsolePreviewControl as r } from "../../assistant/usePreviewControl.js";
|
|
5
|
+
import { useAssistantRunWorkspace as i } from "../../assistant/useAssistantRunWorkspace.js";
|
|
6
|
+
import { Section as a } from "../common/Section.js";
|
|
6
7
|
import "../common/index.js";
|
|
7
|
-
import { DOCK_CLEARANCE as
|
|
8
|
-
import { DashboardContent as
|
|
9
|
-
import { useEffect as
|
|
10
|
-
import { ArrowUpRight as
|
|
11
|
-
import { Button as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { AssistantEntityPreview as
|
|
8
|
+
import { DOCK_CLEARANCE as o, PreviewMeta as s, STEP_LABEL as c, formatAgo as l, previewLabels as u } from "./previewShared.js";
|
|
9
|
+
import { DashboardContent as d, DataSinkContent as f, ParserContent as p, WidgetsContent as m } from "./AiPreviewContent.js";
|
|
10
|
+
import { useEffect as h, useRef as g, useState as _ } from "react";
|
|
11
|
+
import { ArrowUpRight as v, Loader2 as y, Sparkles as b, X as x } from "lucide-react";
|
|
12
|
+
import { Button as S } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
14
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
15
|
+
import { AssistantEntityPreview as E } from "@burdenoff/fe-libs/shared/assistant";
|
|
15
16
|
//#region src/bigconsole/components/preview/AiPreviewPanel.tsx
|
|
16
|
-
function
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
function D({ children: e }) {
|
|
18
|
+
return /* @__PURE__ */ w("div", {
|
|
18
19
|
className: "min-w-0 overflow-y-auto p-3",
|
|
19
20
|
style: { maxHeight: "min(440px, 60vh)" },
|
|
20
21
|
children: e
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
let { t } =
|
|
25
|
-
return /* @__PURE__ */
|
|
24
|
+
function O({ onOpen: e }) {
|
|
25
|
+
let { t } = C();
|
|
26
|
+
return /* @__PURE__ */ T(S, {
|
|
26
27
|
size: "sm",
|
|
27
28
|
variant: "outline",
|
|
28
29
|
onClick: e,
|
|
29
30
|
"data-testid": "ai-preview-open-entity",
|
|
30
|
-
children: [t("bigconsole.widget.aiPreview.open", "Open"), /* @__PURE__ */
|
|
31
|
+
children: [t("bigconsole.widget.aiPreview.open", "Open"), /* @__PURE__ */ w(v, { className: "ml-1 size-3.5" })]
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
let { t:
|
|
35
|
-
r();
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}), [
|
|
40
|
-
let [
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
}, [
|
|
44
|
-
if (!
|
|
34
|
+
function k() {
|
|
35
|
+
let { t: v } = C();
|
|
36
|
+
i(), r();
|
|
37
|
+
let k = e(), A = n((e) => e.isRunning), j = n((e) => e.previewOpen), M = n((e) => e.hasRun), N = n((e) => e.steps), P = n((e) => e.entityIds), F = n((e) => e.caption), I = n((e) => e.error), L = n((e) => e.updatedAt), R = n((e) => e.openPreview), z = n((e) => e.closePreview), B = n((e) => e.setRichMounted);
|
|
38
|
+
h(() => (B(!0), () => {
|
|
39
|
+
B(!1);
|
|
40
|
+
}), [B]);
|
|
41
|
+
let [V, H] = _(0), U = g(!1);
|
|
42
|
+
if (h(() => {
|
|
43
|
+
A && !U.current && H((e) => e + 1), U.current = A;
|
|
44
|
+
}, [A]), !M) return null;
|
|
45
|
+
if (!j) return /* @__PURE__ */ T("div", {
|
|
45
46
|
className: "flex flex-wrap items-center justify-end gap-control-gap px-4 pt-3 md:px-6",
|
|
46
|
-
style: { marginRight:
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
style: { marginRight: o },
|
|
48
|
+
children: [/* @__PURE__ */ w("span", {
|
|
48
49
|
className: "text-xs text-text-muted",
|
|
49
|
-
children:
|
|
50
|
-
}), /* @__PURE__ */
|
|
50
|
+
children: A ? v("bigconsole.widget.aiPreview.buildRunning", "AI build running") : v("bigconsole.widget.aiPreview.buildFinished", "AI build finished")
|
|
51
|
+
}), /* @__PURE__ */ T(S, {
|
|
51
52
|
size: "sm",
|
|
52
53
|
variant: "outline",
|
|
53
|
-
onClick:
|
|
54
|
+
onClick: R,
|
|
54
55
|
"data-testid": "ai-preview-open",
|
|
55
56
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
/* @__PURE__ */ w(b, { className: "mr-1.5 size-4" }),
|
|
58
|
+
v("bigconsole.widget.aiPreview.previewButton", "Preview"),
|
|
59
|
+
A ? /* @__PURE__ */ w(y, { className: "ml-1.5 size-3.5 animate-spin" }) : null
|
|
59
60
|
]
|
|
60
61
|
})]
|
|
61
62
|
});
|
|
62
|
-
let
|
|
63
|
+
let W = P.dashboard, G = t.map((e) => ({
|
|
63
64
|
id: e,
|
|
64
|
-
label:
|
|
65
|
-
status:
|
|
66
|
-
})),
|
|
65
|
+
label: v(c[e].key, c[e].fallback),
|
|
66
|
+
status: N[e]
|
|
67
|
+
})), K = [
|
|
67
68
|
{
|
|
68
69
|
id: "datasink",
|
|
69
|
-
label:
|
|
70
|
-
render: () => /* @__PURE__ */
|
|
70
|
+
label: v("bigconsole.widget.aiPreview.tab.dataSink", "Data Sink"),
|
|
71
|
+
render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
|
|
71
72
|
emphasis: "standard",
|
|
72
73
|
padding: "compact",
|
|
73
74
|
headingLevel: 3,
|
|
74
|
-
title:
|
|
75
|
-
description:
|
|
76
|
-
actions:
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
id:
|
|
79
|
-
live:
|
|
75
|
+
title: v("bigconsole.widget.aiPreview.dataSinkRows", "Data sink rows"),
|
|
76
|
+
description: v("bigconsole.widget.aiPreview.dataSinkRowsHint", "The rows the assistant just landed, straight from the sink."),
|
|
77
|
+
actions: P.datasink ? /* @__PURE__ */ w(O, { onOpen: () => k(`/datasinks/${P.datasink}`) }) : void 0,
|
|
78
|
+
children: /* @__PURE__ */ w(f, {
|
|
79
|
+
id: P.datasink,
|
|
80
|
+
live: A
|
|
80
81
|
})
|
|
81
82
|
}) })
|
|
82
83
|
},
|
|
83
84
|
{
|
|
84
85
|
id: "dashboard",
|
|
85
|
-
label:
|
|
86
|
-
render: () => /* @__PURE__ */
|
|
86
|
+
label: v("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
|
|
87
|
+
render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
|
|
87
88
|
emphasis: "standard",
|
|
88
89
|
padding: "compact",
|
|
89
90
|
headingLevel: 3,
|
|
90
|
-
title:
|
|
91
|
-
description:
|
|
92
|
-
actions:
|
|
93
|
-
children: /* @__PURE__ */
|
|
94
|
-
dashboardId:
|
|
95
|
-
live:
|
|
91
|
+
title: v("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
|
|
92
|
+
description: v("bigconsole.widget.aiPreview.dashboardHint", "The live board, rendered exactly as the real page renders it."),
|
|
93
|
+
actions: W ? /* @__PURE__ */ w(O, { onOpen: () => k(`/dashboards/${W}`) }) : void 0,
|
|
94
|
+
children: /* @__PURE__ */ w(d, {
|
|
95
|
+
dashboardId: W,
|
|
96
|
+
live: A
|
|
96
97
|
})
|
|
97
98
|
}) })
|
|
98
99
|
},
|
|
99
100
|
{
|
|
100
101
|
id: "parser",
|
|
101
|
-
label:
|
|
102
|
-
render: () => /* @__PURE__ */
|
|
102
|
+
label: v("bigconsole.widget.aiPreview.tab.parser", "Parser"),
|
|
103
|
+
render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
|
|
103
104
|
emphasis: "standard",
|
|
104
105
|
padding: "compact",
|
|
105
106
|
headingLevel: 3,
|
|
106
|
-
title:
|
|
107
|
-
description:
|
|
108
|
-
actions:
|
|
109
|
-
children: /* @__PURE__ */
|
|
110
|
-
parserId:
|
|
111
|
-
live:
|
|
107
|
+
title: v("bigconsole.widget.aiPreview.parserOutput", "Parser output"),
|
|
108
|
+
description: v("bigconsole.widget.aiPreview.parserOutputHint", "The rows after the parser's transform, so you can check the shape."),
|
|
109
|
+
actions: P.parser ? /* @__PURE__ */ w(O, { onOpen: () => k(`/parsers/${P.parser}`) }) : void 0,
|
|
110
|
+
children: /* @__PURE__ */ w(p, {
|
|
111
|
+
parserId: P.parser,
|
|
112
|
+
live: A
|
|
112
113
|
})
|
|
113
114
|
}) })
|
|
114
115
|
},
|
|
115
116
|
{
|
|
116
117
|
id: "widget",
|
|
117
|
-
label:
|
|
118
|
-
render: () => /* @__PURE__ */
|
|
118
|
+
label: v("bigconsole.widget.aiPreview.tab.widget", "Widget"),
|
|
119
|
+
render: () => /* @__PURE__ */ w(D, { children: /* @__PURE__ */ w(a, {
|
|
119
120
|
emphasis: "standard",
|
|
120
121
|
padding: "compact",
|
|
121
122
|
headingLevel: 3,
|
|
122
|
-
title:
|
|
123
|
-
description:
|
|
124
|
-
actions:
|
|
125
|
-
children: /* @__PURE__ */
|
|
126
|
-
dashboardId:
|
|
127
|
-
live:
|
|
123
|
+
title: v("bigconsole.widget.aiPreview.widgets", "Widgets"),
|
|
124
|
+
description: v("bigconsole.widget.aiPreview.widgetsHint", "Every widget on the new dashboard, rendered live."),
|
|
125
|
+
actions: W ? /* @__PURE__ */ w(O, { onOpen: () => k(`/dashboards/${W}`) }) : void 0,
|
|
126
|
+
children: /* @__PURE__ */ w(m, {
|
|
127
|
+
dashboardId: W,
|
|
128
|
+
live: A
|
|
128
129
|
})
|
|
129
130
|
}) })
|
|
130
131
|
}
|
|
131
132
|
];
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
+
return /* @__PURE__ */ T("div", {
|
|
133
134
|
"data-testid": "ai-preview-panel",
|
|
134
|
-
style: { paddingRight:
|
|
135
|
+
style: { paddingRight: o },
|
|
135
136
|
className: "mx-4 mt-3 min-w-0 md:mx-6",
|
|
136
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
137
138
|
className: "sr-only",
|
|
138
|
-
children:
|
|
139
|
-
}), /* @__PURE__ */
|
|
140
|
-
title:
|
|
141
|
-
runKey: String(
|
|
142
|
-
steps:
|
|
143
|
-
tabs:
|
|
139
|
+
children: v("bigconsole.widget.aiPreview.title", "AI Preview")
|
|
140
|
+
}), /* @__PURE__ */ w(E, {
|
|
141
|
+
title: v("bigconsole.widget.aiPreview.title", "AI Preview"),
|
|
142
|
+
runKey: String(V),
|
|
143
|
+
steps: G,
|
|
144
|
+
tabs: K,
|
|
144
145
|
follow: "produced",
|
|
145
|
-
caption:
|
|
146
|
-
error:
|
|
147
|
-
meta: /* @__PURE__ */
|
|
148
|
-
state:
|
|
149
|
-
stateLabel:
|
|
150
|
-
updatedLabel:
|
|
151
|
-
updatedAt:
|
|
152
|
-
ago: (e) =>
|
|
146
|
+
caption: A ? F || v("bigconsole.widget.aiPreview.working", "Working…") : v("bigconsole.widget.aiPreview.done", "Done"),
|
|
147
|
+
error: I,
|
|
148
|
+
meta: /* @__PURE__ */ w(s, {
|
|
149
|
+
state: A ? "running" : I ? "stopped" : "idle",
|
|
150
|
+
stateLabel: A ? v("bigconsole.widget.aiPreview.live", "Live") : I ? v("bigconsole.widget.aiPreview.stopped", "Stopped") : null,
|
|
151
|
+
updatedLabel: v("bigconsole.widget.aiPreview.updated", "updated"),
|
|
152
|
+
updatedAt: L,
|
|
153
|
+
ago: (e) => l(e, v)
|
|
153
154
|
}),
|
|
154
|
-
headerActions: /* @__PURE__ */ S
|
|
155
|
+
headerActions: /* @__PURE__ */ w(S, {
|
|
155
156
|
size: "sm",
|
|
156
157
|
variant: "ghost",
|
|
157
|
-
onClick:
|
|
158
|
-
"aria-label":
|
|
158
|
+
onClick: z,
|
|
159
|
+
"aria-label": v("bigconsole.widget.aiPreview.closeAriaLabel", "Close preview"),
|
|
159
160
|
"data-testid": "ai-preview-close",
|
|
160
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ w(x, { className: "size-4" })
|
|
161
162
|
}),
|
|
162
|
-
labels:
|
|
163
|
+
labels: u(v)
|
|
163
164
|
})]
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
167
|
//#endregion
|
|
167
|
-
export {
|
|
168
|
+
export { k as AiPreviewPanel };
|
|
@@ -6,8 +6,8 @@ import { memo as r, useCallback as i, useEffect as ne, useId as re, useMemo as i
|
|
|
6
6
|
import { PermissionButton as ae } from "@burdenoff/fe-libs/shared/components";
|
|
7
7
|
import { ChevronDown as oe, ChevronRight as se } from "lucide-react";
|
|
8
8
|
import { Button as ce, Checkbox as s, Input as c, ResponsiveDialog as le, ResponsiveDialogContent as ue, ResponsiveDialogDescription as de, ResponsiveDialogFooter as fe, ResponsiveDialogHeader as pe, ResponsiveDialogTitle as me, Select as l, SelectContent as u, SelectItem as he, SelectTrigger as ge, SelectValue as _e, Spinner as ve, Textarea as ye } from "@burdenoff/fe-libs/ui";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { useI18n as be } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
10
|
+
import { Fragment as xe, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
11
|
//#region src/bigconsole/components/widgets/ActionConfigDialog.tsx
|
|
12
12
|
var Se = [
|
|
13
13
|
"POST",
|
|
@@ -83,7 +83,7 @@ var Se = [
|
|
|
83
83
|
boxShadow: "var(--shadow-elevation-3)",
|
|
84
84
|
borderRadius: "var(--radius-button)"
|
|
85
85
|
}, g = r(function({ isOpen: r, action: g, initialWebhook: _, isLoading: v = !1, saveError: Ee, onClose: De, onSave: Oe }) {
|
|
86
|
-
let { t: y } =
|
|
86
|
+
let { t: y } = be(), b = !!g, x = a(null), ke = a(null), Ae = a(null), S = re(), C = a(""), w = a(!1), [T, E] = o(""), [D, O] = o(""), [k, A] = o(!1), [j, M] = o("PRIMARY"), [N, je] = o(""), [P, F] = o("WEBHOOK"), [I, L] = o(""), [R, z] = o("POST"), [B, V] = o(!1), [H, U] = o(!1), [W, G] = o(!1), [K, Me] = o(!1), [Ne, q] = o(() => y("bigconsole.widget.actions.confirm.defaultTitle", "Confirm Action")), [Pe, J] = o(() => y("bigconsole.widget.actions.confirm.defaultMessage", "Are you sure you want to proceed?")), [Y, X] = o(() => y("bigconsole.widget.actions.confirm.defaultConfirmLabel", "Confirm")), [Fe, Z] = o(() => y("bigconsole.widget.actions.confirm.defaultCancelLabel", "Cancel")), [Q, $] = o(null), Ie = ie(() => {
|
|
87
87
|
let e = {
|
|
88
88
|
PRIMARY: y("bigconsole.widget.actions.style.primary", "Primary"),
|
|
89
89
|
SECONDARY: y("bigconsole.widget.actions.style.secondary", "Secondary"),
|
|
@@ -547,7 +547,7 @@ var Se = [
|
|
|
547
547
|
children: /* @__PURE__ */ d(ce, {
|
|
548
548
|
type: "submit",
|
|
549
549
|
disabled: v,
|
|
550
|
-
children: v ? /* @__PURE__ */ f(
|
|
550
|
+
children: v ? /* @__PURE__ */ f(xe, { children: [/* @__PURE__ */ d(ve, { className: "size-4" }), y("bigconsole.widget.actions.footer.saving", "Saving...")] }) : b ? y("bigconsole.widget.actions.footer.updateButton", "Update Button") : y("bigconsole.widget.actions.footer.addButton", "Add Button")
|
|
551
551
|
})
|
|
552
552
|
})]
|
|
553
553
|
})]
|