@burdenoff/microfe-bigconsole 2026.1008.10 → 2026.1008.12
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.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +136 -127
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.js +3 -1
- package/dist/bigconsole/assistant/assistantProduct.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- 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 +110 -110
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- 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 +91 -91
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- 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 +46 -46
- 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 +29 -29
- 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/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- 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 +27 -27
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +30 -30
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +280 -273
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- 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/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/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- 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/customWidget/CustomWidgetBuilderSheet.js +9 -9
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +15 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +34 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.js +3 -3
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +30 -23
- package/dist/bigconsole/pages/DataSinkAlertsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +272 -263
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +181 -181
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +227 -211
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -88
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +179 -173
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- 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/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/store/widgetStore.d.ts +12 -0
- package/dist/bigconsole/store/widgetStore.d.ts.map +1 -1
- package/dist/bigconsole/store/widgetStore.js +3 -1
- package/dist/bigconsole/store/widgetStore.js.map +1 -1
- package/dist/bigconsole/utils/formDirty.d.ts +83 -0
- package/dist/bigconsole/utils/formDirty.d.ts.map +1 -0
- package/dist/bigconsole/utils/formDirty.js +23 -0
- package/dist/bigconsole/utils/formDirty.js.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts +131 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.js +98 -0
- package/dist/bigconsole/utils/layoutBaseline.js.map +1 -0
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -5,32 +5,32 @@ import "../common/index.js";
|
|
|
5
5
|
import { DOCK_CLEARANCE as i, PreviewMeta as a, STEP_LABEL as o, formatAgo as s, previewLabels as c } from "./previewShared.js";
|
|
6
6
|
import { ArrowUpRight as l, Braces as u, Database as d, LayoutDashboard as f, Loader2 as p, Sparkles as m, X as h } from "lucide-react";
|
|
7
7
|
import { Button as g } from "@burdenoff/fe-libs/ui";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { useI18n as _ } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
10
|
import { AssistantEntityPreview as b } from "@burdenoff/fe-libs/shared/assistant";
|
|
11
11
|
//#region src/bigconsole/components/preview/AiPreviewMiniPanel.tsx
|
|
12
12
|
function x({ onNavigate: x }) {
|
|
13
|
-
let { t: S } =
|
|
13
|
+
let { t: S } = _();
|
|
14
14
|
n();
|
|
15
15
|
let C = t((e) => e.isRunning), w = t((e) => e.previewOpen), T = t((e) => e.hasRun), E = t((e) => e.richMounted), D = t((e) => e.steps), O = t((e) => e.entityIds), k = t((e) => e.caption), A = t((e) => e.error), j = t((e) => e.updatedAt), M = t((e) => e.openPreview), N = t((e) => e.closePreview), P = (e) => {
|
|
16
16
|
x ? x(e) : typeof window < "u" && window.location.assign(e);
|
|
17
17
|
};
|
|
18
18
|
if (!T || E) return null;
|
|
19
|
-
if (!w) return /* @__PURE__ */
|
|
19
|
+
if (!w) return /* @__PURE__ */ y("div", {
|
|
20
20
|
className: "flex flex-wrap items-center justify-end gap-control-gap px-4 pt-3 md:px-6",
|
|
21
21
|
style: { marginRight: i },
|
|
22
|
-
children: [/* @__PURE__ */
|
|
22
|
+
children: [/* @__PURE__ */ v("span", {
|
|
23
23
|
className: "text-xs text-text-muted",
|
|
24
24
|
children: C ? S("bigconsole.widget.aiPreview.buildRunning", "AI build running") : S("bigconsole.widget.aiPreview.buildFinished", "AI build finished")
|
|
25
|
-
}), /* @__PURE__ */
|
|
25
|
+
}), /* @__PURE__ */ y(g, {
|
|
26
26
|
size: "sm",
|
|
27
27
|
variant: "outline",
|
|
28
28
|
onClick: M,
|
|
29
29
|
"data-testid": "ai-preview-open",
|
|
30
30
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ v(m, { className: "mr-1.5 size-4" }),
|
|
32
32
|
S("bigconsole.widget.aiPreviewMini.previewButton", "Preview"),
|
|
33
|
-
C ? /* @__PURE__ */
|
|
33
|
+
C ? /* @__PURE__ */ v(p, { className: "ml-1.5 size-3.5 animate-spin" }) : null
|
|
34
34
|
]
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
@@ -39,7 +39,7 @@ function x({ onNavigate: x }) {
|
|
|
39
39
|
key: "datasink",
|
|
40
40
|
label: S("bigconsole.widget.aiPreviewMini.link.dataSink", "Data Sink"),
|
|
41
41
|
path: `/bigconsole/datasinks/${O.datasink}`,
|
|
42
|
-
icon: /* @__PURE__ */
|
|
42
|
+
icon: /* @__PURE__ */ v(d, {
|
|
43
43
|
className: "size-4 shrink-0 text-text-muted",
|
|
44
44
|
"aria-hidden": "true"
|
|
45
45
|
})
|
|
@@ -47,7 +47,7 @@ function x({ onNavigate: x }) {
|
|
|
47
47
|
key: "dashboard",
|
|
48
48
|
label: S("bigconsole.widget.aiPreviewMini.link.dashboard", "Dashboard"),
|
|
49
49
|
path: `/bigconsole/dashboards/${O.dashboard}`,
|
|
50
|
-
icon: /* @__PURE__ */
|
|
50
|
+
icon: /* @__PURE__ */ v(f, {
|
|
51
51
|
className: "size-4 shrink-0 text-text-muted",
|
|
52
52
|
"aria-hidden": "true"
|
|
53
53
|
})
|
|
@@ -55,7 +55,7 @@ function x({ onNavigate: x }) {
|
|
|
55
55
|
key: "parser",
|
|
56
56
|
label: S("bigconsole.widget.aiPreviewMini.link.parser", "Parser"),
|
|
57
57
|
path: `/bigconsole/parsers/${O.parser}`,
|
|
58
|
-
icon: /* @__PURE__ */
|
|
58
|
+
icon: /* @__PURE__ */ v(u, {
|
|
59
59
|
className: "size-4 shrink-0 text-text-muted",
|
|
60
60
|
"aria-hidden": "true"
|
|
61
61
|
})
|
|
@@ -65,69 +65,69 @@ function x({ onNavigate: x }) {
|
|
|
65
65
|
label: S(o[e].key, o[e].fallback),
|
|
66
66
|
status: D[e]
|
|
67
67
|
}));
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ y("div", {
|
|
69
69
|
"data-testid": "ai-preview-panel",
|
|
70
70
|
"data-variant": "mini",
|
|
71
71
|
style: { paddingRight: i },
|
|
72
72
|
className: "mx-4 mb-3 mt-3 min-w-0 md:mx-6",
|
|
73
|
-
children: [/* @__PURE__ */
|
|
73
|
+
children: [/* @__PURE__ */ v("h2", {
|
|
74
74
|
className: "sr-only",
|
|
75
75
|
children: S("bigconsole.widget.aiPreviewMini.title", "AI Preview")
|
|
76
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ v(b, {
|
|
77
77
|
title: S("bigconsole.widget.aiPreviewMini.title", "AI Preview"),
|
|
78
78
|
steps: I,
|
|
79
79
|
caption: C ? k || S("bigconsole.widget.aiPreviewMini.working", "Working…") : S("bigconsole.widget.aiPreviewMini.done", "Done"),
|
|
80
80
|
error: A,
|
|
81
|
-
meta: /* @__PURE__ */
|
|
81
|
+
meta: /* @__PURE__ */ v(a, {
|
|
82
82
|
state: C ? "running" : A ? "stopped" : "idle",
|
|
83
83
|
stateLabel: C ? S("bigconsole.widget.aiPreviewMini.live", "Live") : A ? S("bigconsole.widget.aiPreviewMini.stopped", "Stopped") : null,
|
|
84
84
|
updatedLabel: S("bigconsole.widget.aiPreviewMini.updated", "updated"),
|
|
85
85
|
updatedAt: j,
|
|
86
86
|
ago: (e) => s(e, S)
|
|
87
87
|
}),
|
|
88
|
-
headerActions: /* @__PURE__ */
|
|
88
|
+
headerActions: /* @__PURE__ */ v(g, {
|
|
89
89
|
size: "sm",
|
|
90
90
|
variant: "ghost",
|
|
91
91
|
onClick: N,
|
|
92
92
|
"aria-label": S("bigconsole.widget.aiPreviewMini.closeAriaLabel", "Close preview"),
|
|
93
93
|
"data-testid": "ai-preview-close",
|
|
94
|
-
children: /* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ v(h, { className: "size-4" })
|
|
95
95
|
}),
|
|
96
96
|
labels: c(S),
|
|
97
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ v("div", {
|
|
98
98
|
className: "p-3",
|
|
99
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ y(r, {
|
|
100
100
|
emphasis: "standard",
|
|
101
101
|
padding: "compact",
|
|
102
102
|
headingLevel: 3,
|
|
103
103
|
title: S("bigconsole.widget.aiPreviewMini.builtSoFar", "Built so far"),
|
|
104
104
|
description: S("bigconsole.widget.aiPreviewMini.builtSoFarHint", "Open any piece to see the real thing."),
|
|
105
105
|
bodyClassName: "flex flex-col gap-list-gap",
|
|
106
|
-
children: [F.length === 0 ? /* @__PURE__ */
|
|
106
|
+
children: [F.length === 0 ? /* @__PURE__ */ v("p", {
|
|
107
107
|
className: "text-sm text-text-muted",
|
|
108
108
|
children: C ? S("bigconsole.widget.aiPreviewMini.building", "Building… links appear here as each piece is created.") : S("bigconsole.widget.aiPreviewMini.nothingBuilt", "Nothing built yet.")
|
|
109
|
-
}) : F.map((e) => /* @__PURE__ */
|
|
109
|
+
}) : F.map((e) => /* @__PURE__ */ y("div", {
|
|
110
110
|
"data-testid": "ai-preview-row",
|
|
111
111
|
className: "flex min-w-0 items-center justify-between gap-control-gap rounded-card border border-[var(--color-border-subtle)] bg-bg-canvas px-3 py-2",
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ y("p", {
|
|
113
113
|
className: "flex min-w-0 items-center gap-icon-gap text-sm font-medium text-text-primary",
|
|
114
|
-
children: [e.icon, /* @__PURE__ */
|
|
114
|
+
children: [e.icon, /* @__PURE__ */ v("span", {
|
|
115
115
|
className: "truncate",
|
|
116
116
|
children: S("bigconsole.widget.aiPreviewMini.linkReady", "{{label}} ready", { label: e.label })
|
|
117
117
|
})]
|
|
118
|
-
}), /* @__PURE__ */
|
|
118
|
+
}), /* @__PURE__ */ y(g, {
|
|
119
119
|
size: "sm",
|
|
120
120
|
variant: "ghost",
|
|
121
121
|
onClick: () => P(e.path),
|
|
122
|
-
children: [S("bigconsole.widget.aiPreviewMini.open", "Open"), /* @__PURE__ */
|
|
122
|
+
children: [S("bigconsole.widget.aiPreviewMini.open", "Open"), /* @__PURE__ */ v(l, { className: "ml-1 size-3.5" })]
|
|
123
123
|
})]
|
|
124
|
-
}, e.key)), O.dashboard ? /* @__PURE__ */
|
|
124
|
+
}, e.key)), O.dashboard ? /* @__PURE__ */ y(g, {
|
|
125
125
|
size: "sm",
|
|
126
126
|
variant: "outline",
|
|
127
127
|
className: "h-auto w-full whitespace-normal py-1.5 text-center",
|
|
128
128
|
"data-testid": "ai-preview-open-in-bigconsole",
|
|
129
129
|
onClick: () => P(`/bigconsole/dashboards/${O.dashboard ?? ""}`),
|
|
130
|
-
children: [S("bigconsole.widget.aiPreviewMini.openInBigConsole", "Open in BigConsole for the live view"), /* @__PURE__ */
|
|
130
|
+
children: [S("bigconsole.widget.aiPreviewMini.openInBigConsole", "Open in BigConsole for the live view"), /* @__PURE__ */ v(l, { className: "ml-1 size-3.5" })]
|
|
131
131
|
}) : null]
|
|
132
132
|
})
|
|
133
133
|
})
|
|
@@ -9,29 +9,29 @@ import { DashboardContent as u, DataSinkContent as d, ParserContent as f, Widget
|
|
|
9
9
|
import { useEffect as m, useRef as h, useState as g } from "react";
|
|
10
10
|
import { ArrowUpRight as _, Loader2 as v, Sparkles as y, X as b } from "lucide-react";
|
|
11
11
|
import { Button as x } from "@burdenoff/fe-libs/ui";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { useI18n as S } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
13
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
14
14
|
import { AssistantEntityPreview as T } from "@burdenoff/fe-libs/shared/assistant";
|
|
15
15
|
//#region src/bigconsole/components/preview/AiPreviewPanel.tsx
|
|
16
16
|
function E({ children: e }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ C("div", {
|
|
18
18
|
className: "min-w-0 overflow-y-auto p-3",
|
|
19
19
|
style: { maxHeight: "min(440px, 60vh)" },
|
|
20
20
|
children: e
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function D({ onOpen: e }) {
|
|
24
|
-
let { t } =
|
|
25
|
-
return /* @__PURE__ */
|
|
24
|
+
let { t } = S();
|
|
25
|
+
return /* @__PURE__ */ w(x, {
|
|
26
26
|
size: "sm",
|
|
27
27
|
variant: "outline",
|
|
28
28
|
onClick: e,
|
|
29
29
|
"data-testid": "ai-preview-open-entity",
|
|
30
|
-
children: [t("bigconsole.widget.aiPreview.open", "Open"), /* @__PURE__ */
|
|
30
|
+
children: [t("bigconsole.widget.aiPreview.open", "Open"), /* @__PURE__ */ C(_, { className: "ml-1 size-3.5" })]
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
function O() {
|
|
34
|
-
let { t: _ } =
|
|
34
|
+
let { t: _ } = S();
|
|
35
35
|
r();
|
|
36
36
|
let O = e(), k = n((e) => e.isRunning), A = n((e) => e.previewOpen), j = n((e) => e.hasRun), M = n((e) => e.steps), N = n((e) => e.entityIds), P = n((e) => e.caption), F = n((e) => e.error), I = n((e) => e.updatedAt), L = n((e) => e.openPreview), R = n((e) => e.closePreview), z = n((e) => e.setRichMounted);
|
|
37
37
|
m(() => (z(!0), () => {
|
|
@@ -41,21 +41,21 @@ function O() {
|
|
|
41
41
|
if (m(() => {
|
|
42
42
|
k && !H.current && V((e) => e + 1), H.current = k;
|
|
43
43
|
}, [k]), !j) return null;
|
|
44
|
-
if (!A) return /* @__PURE__ */
|
|
44
|
+
if (!A) return /* @__PURE__ */ w("div", {
|
|
45
45
|
className: "flex flex-wrap items-center justify-end gap-control-gap px-4 pt-3 md:px-6",
|
|
46
46
|
style: { marginRight: a },
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ C("span", {
|
|
48
48
|
className: "text-xs text-text-muted",
|
|
49
49
|
children: k ? _("bigconsole.widget.aiPreview.buildRunning", "AI build running") : _("bigconsole.widget.aiPreview.buildFinished", "AI build finished")
|
|
50
|
-
}), /* @__PURE__ */
|
|
50
|
+
}), /* @__PURE__ */ w(x, {
|
|
51
51
|
size: "sm",
|
|
52
52
|
variant: "outline",
|
|
53
53
|
onClick: L,
|
|
54
54
|
"data-testid": "ai-preview-open",
|
|
55
55
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ C(y, { className: "mr-1.5 size-4" }),
|
|
57
57
|
_("bigconsole.widget.aiPreview.previewButton", "Preview"),
|
|
58
|
-
k ? /* @__PURE__ */
|
|
58
|
+
k ? /* @__PURE__ */ C(v, { className: "ml-1.5 size-3.5 animate-spin" }) : null
|
|
59
59
|
]
|
|
60
60
|
})]
|
|
61
61
|
});
|
|
@@ -67,14 +67,14 @@ function O() {
|
|
|
67
67
|
{
|
|
68
68
|
id: "datasink",
|
|
69
69
|
label: _("bigconsole.widget.aiPreview.tab.dataSink", "Data Sink"),
|
|
70
|
-
render: () => /* @__PURE__ */
|
|
70
|
+
render: () => /* @__PURE__ */ C(E, { children: /* @__PURE__ */ C(i, {
|
|
71
71
|
emphasis: "standard",
|
|
72
72
|
padding: "compact",
|
|
73
73
|
headingLevel: 3,
|
|
74
74
|
title: _("bigconsole.widget.aiPreview.dataSinkRows", "Data sink rows"),
|
|
75
75
|
description: _("bigconsole.widget.aiPreview.dataSinkRowsHint", "The rows the assistant just landed, straight from the sink."),
|
|
76
|
-
actions: N.datasink ? /* @__PURE__ */
|
|
77
|
-
children: /* @__PURE__ */
|
|
76
|
+
actions: N.datasink ? /* @__PURE__ */ C(D, { onOpen: () => O(`/datasinks/${N.datasink}`) }) : void 0,
|
|
77
|
+
children: /* @__PURE__ */ C(d, {
|
|
78
78
|
id: N.datasink,
|
|
79
79
|
live: k
|
|
80
80
|
})
|
|
@@ -83,14 +83,14 @@ function O() {
|
|
|
83
83
|
{
|
|
84
84
|
id: "dashboard",
|
|
85
85
|
label: _("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
|
|
86
|
-
render: () => /* @__PURE__ */
|
|
86
|
+
render: () => /* @__PURE__ */ C(E, { children: /* @__PURE__ */ C(i, {
|
|
87
87
|
emphasis: "standard",
|
|
88
88
|
padding: "compact",
|
|
89
89
|
headingLevel: 3,
|
|
90
90
|
title: _("bigconsole.widget.aiPreview.tab.dashboard", "Dashboard"),
|
|
91
91
|
description: _("bigconsole.widget.aiPreview.dashboardHint", "The live board, rendered exactly as the real page renders it."),
|
|
92
|
-
actions: U ? /* @__PURE__ */
|
|
93
|
-
children: /* @__PURE__ */
|
|
92
|
+
actions: U ? /* @__PURE__ */ C(D, { onOpen: () => O(`/dashboards/${U}`) }) : void 0,
|
|
93
|
+
children: /* @__PURE__ */ C(u, {
|
|
94
94
|
dashboardId: U,
|
|
95
95
|
live: k
|
|
96
96
|
})
|
|
@@ -99,14 +99,14 @@ function O() {
|
|
|
99
99
|
{
|
|
100
100
|
id: "parser",
|
|
101
101
|
label: _("bigconsole.widget.aiPreview.tab.parser", "Parser"),
|
|
102
|
-
render: () => /* @__PURE__ */
|
|
102
|
+
render: () => /* @__PURE__ */ C(E, { children: /* @__PURE__ */ C(i, {
|
|
103
103
|
emphasis: "standard",
|
|
104
104
|
padding: "compact",
|
|
105
105
|
headingLevel: 3,
|
|
106
106
|
title: _("bigconsole.widget.aiPreview.parserOutput", "Parser output"),
|
|
107
107
|
description: _("bigconsole.widget.aiPreview.parserOutputHint", "The rows after the parser's transform, so you can check the shape."),
|
|
108
|
-
actions: N.parser ? /* @__PURE__ */
|
|
109
|
-
children: /* @__PURE__ */
|
|
108
|
+
actions: N.parser ? /* @__PURE__ */ C(D, { onOpen: () => O(`/parsers/${N.parser}`) }) : void 0,
|
|
109
|
+
children: /* @__PURE__ */ C(f, {
|
|
110
110
|
parserId: N.parser,
|
|
111
111
|
live: k
|
|
112
112
|
})
|
|
@@ -115,28 +115,28 @@ function O() {
|
|
|
115
115
|
{
|
|
116
116
|
id: "widget",
|
|
117
117
|
label: _("bigconsole.widget.aiPreview.tab.widget", "Widget"),
|
|
118
|
-
render: () => /* @__PURE__ */
|
|
118
|
+
render: () => /* @__PURE__ */ C(E, { children: /* @__PURE__ */ C(i, {
|
|
119
119
|
emphasis: "standard",
|
|
120
120
|
padding: "compact",
|
|
121
121
|
headingLevel: 3,
|
|
122
122
|
title: _("bigconsole.widget.aiPreview.widgets", "Widgets"),
|
|
123
123
|
description: _("bigconsole.widget.aiPreview.widgetsHint", "Every widget on the new dashboard, rendered live."),
|
|
124
|
-
actions: U ? /* @__PURE__ */
|
|
125
|
-
children: /* @__PURE__ */
|
|
124
|
+
actions: U ? /* @__PURE__ */ C(D, { onOpen: () => O(`/dashboards/${U}`) }) : void 0,
|
|
125
|
+
children: /* @__PURE__ */ C(p, {
|
|
126
126
|
dashboardId: U,
|
|
127
127
|
live: k
|
|
128
128
|
})
|
|
129
129
|
}) })
|
|
130
130
|
}
|
|
131
131
|
];
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ w("div", {
|
|
133
133
|
"data-testid": "ai-preview-panel",
|
|
134
134
|
style: { paddingRight: a },
|
|
135
135
|
className: "mx-4 mt-3 min-w-0 md:mx-6",
|
|
136
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ C("h2", {
|
|
137
137
|
className: "sr-only",
|
|
138
138
|
children: _("bigconsole.widget.aiPreview.title", "AI Preview")
|
|
139
|
-
}), /* @__PURE__ */
|
|
139
|
+
}), /* @__PURE__ */ C(T, {
|
|
140
140
|
title: _("bigconsole.widget.aiPreview.title", "AI Preview"),
|
|
141
141
|
runKey: String(B),
|
|
142
142
|
steps: W,
|
|
@@ -144,20 +144,20 @@ function O() {
|
|
|
144
144
|
follow: "produced",
|
|
145
145
|
caption: k ? P || _("bigconsole.widget.aiPreview.working", "Working…") : _("bigconsole.widget.aiPreview.done", "Done"),
|
|
146
146
|
error: F,
|
|
147
|
-
meta: /* @__PURE__ */
|
|
147
|
+
meta: /* @__PURE__ */ C(o, {
|
|
148
148
|
state: k ? "running" : F ? "stopped" : "idle",
|
|
149
149
|
stateLabel: k ? _("bigconsole.widget.aiPreview.live", "Live") : F ? _("bigconsole.widget.aiPreview.stopped", "Stopped") : null,
|
|
150
150
|
updatedLabel: _("bigconsole.widget.aiPreview.updated", "updated"),
|
|
151
151
|
updatedAt: I,
|
|
152
152
|
ago: (e) => c(e, _)
|
|
153
153
|
}),
|
|
154
|
-
headerActions: /* @__PURE__ */
|
|
154
|
+
headerActions: /* @__PURE__ */ C(x, {
|
|
155
155
|
size: "sm",
|
|
156
156
|
variant: "ghost",
|
|
157
157
|
onClick: R,
|
|
158
158
|
"aria-label": _("bigconsole.widget.aiPreview.closeAriaLabel", "Close preview"),
|
|
159
159
|
"data-testid": "ai-preview-close",
|
|
160
|
-
children: /* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ C(b, { className: "size-4" })
|
|
161
161
|
}),
|
|
162
162
|
labels: l(_)
|
|
163
163
|
})]
|
|
@@ -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
|
})]
|