@burdenoff/microfe-bigconsole 2026.924.2 → 2026.925.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoot.js +94 -84
- package/dist/bigconsole/BigConsoleRoot.js.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +137 -138
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/previewController.js +7 -7
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +17 -17
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +32 -32
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +52 -52
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +7 -7
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +53 -0
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +60 -60
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +21 -21
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +36 -36
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +38 -38
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +121 -121
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +22 -22
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +53 -53
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +47 -47
- package/dist/bigconsole/components/dashboard/index.js +1 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -29
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +48 -48
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +126 -114
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/overview/DashboardGuide.js +214 -0
- package/dist/bigconsole/components/overview/DashboardGuide.js.map +1 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js +97 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js +32 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js +57 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js.map +1 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +107 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js.map +1 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js +119 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js.map +1 -0
- package/dist/bigconsole/components/overview/index.js +8 -0
- package/dist/bigconsole/components/overview/overviewModel.js +119 -0
- package/dist/bigconsole/components/overview/overviewModel.js.map +1 -0
- package/dist/bigconsole/components/overview/useOverviewData.js +48 -0
- package/dist/bigconsole/components/overview/useOverviewData.js.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +127 -127
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/preview/AiPreviewContent.js +5 -5
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +32 -32
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +37 -37
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +13 -13
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +70 -70
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +28 -28
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +25 -25
- 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 +21 -21
- 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/customWidget/CustomWidgetBuilderSheet.js +10 -10
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +68 -68
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDataSinkOperations.js +92 -89
- package/dist/bigconsole/hooks/useDataSinkOperations.js.map +1 -1
- package/dist/bigconsole/hooks/useImportDataSink.js +96 -91
- package/dist/bigconsole/hooks/useImportDataSink.js.map +1 -1
- package/dist/bigconsole/pages/AdminPage.js +136 -136
- package/dist/bigconsole/pages/DashboardBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DashboardViewPage.js +61 -61
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +327 -348
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +5 -5
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +82 -80
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +83 -83
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +11 -11
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +315 -315
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +244 -0
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
- package/dist/bigconsole/pages/ParserViewPage.js +98 -98
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +8 -8
- package/dist/bigconsole/pages/PipelineViewPage.js +46 -46
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +80 -80
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +70 -70
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +200 -200
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +78 -78
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +36 -35
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js.map +1 -1
- 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/utils/createDialogParam.js +14 -0
- package/dist/bigconsole/utils/createDialogParam.js.map +1 -0
- package/dist/bigconsole/utils/quota.js +51 -23
- package/dist/bigconsole/utils/quota.js.map +1 -1
- package/dist/generated/global-operations.js +1 -1
- package/dist/generated/wspace-operations.js +285 -222
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/shared/hooks/useTr.js +10 -7
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
- package/dist/bigconsole/pages/HomePage.js +0 -318
- package/dist/bigconsole/pages/HomePage.js.map +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { reportBigConsoleQuotaError as e } from "../../utils/quota.js";
|
|
2
|
+
import { Section as t, SectionStack as n } from "../common/Section.js";
|
|
2
3
|
import "../common/index.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
4
|
+
import r from "../../hooks/useBigConsoleAnalytics.js";
|
|
5
|
+
import i from "../../hooks/useImportDataSink.js";
|
|
5
6
|
import "../../hooks/index.js";
|
|
6
|
-
import { memo as
|
|
7
|
-
import { ArrowLeft as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { memo as a, useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
8
|
+
import { ArrowLeft as u, Check as d, FileJson as ee, Info as f, RefreshCw as te, Upload as p, XCircle as m } from "lucide-react";
|
|
9
|
+
import { Badge as h, Button as g, Dialog as _, DialogContent as ne, DialogDescription as re, DialogFooter as v, DialogHeader as y, DialogTitle as b, Input as x, Label as S, Spinner as ie } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
|
+
import { useI18n as E } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
12
|
//#region src/bigconsole/components/datasink/ImportDataSinkDialog.tsx
|
|
12
13
|
var D = [
|
|
13
14
|
{
|
|
@@ -26,12 +27,12 @@ var D = [
|
|
|
26
27
|
function O(e) {
|
|
27
28
|
return e === "select" ? 0 : e === "complete" ? 2 : 1;
|
|
28
29
|
}
|
|
29
|
-
var k =
|
|
30
|
-
let { t: j } =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, [
|
|
34
|
-
let
|
|
30
|
+
var k = a(function({ isOpen: a, onClose: k, onSuccess: A }) {
|
|
31
|
+
let { t: j } = E(), [M, N] = l("select"), [, P] = l(null), [F, I] = l(null), [L, R] = l(""), [z, B] = l(""), V = c(null), { loading: H, error: U, validationResult: W, importResult: G, validateImport: K, importDataSink: q, extractDataSinkId: J, clearState: Y } = i(), X = r();
|
|
32
|
+
s(() => {
|
|
33
|
+
a && (N("select"), P(null), I(null), R(""), B(""), Y());
|
|
34
|
+
}, [a, Y]);
|
|
35
|
+
let ae = o(async (e) => {
|
|
35
36
|
let t = e.target.files?.[0];
|
|
36
37
|
if (!t) return;
|
|
37
38
|
if (!t.name.endsWith(".json")) {
|
|
@@ -48,61 +49,72 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
48
49
|
}, n.onerror = () => {
|
|
49
50
|
alert(j("bigconsole.dataSinks.import.readFileError", "Failed to read file"));
|
|
50
51
|
}, n.readAsText(t);
|
|
51
|
-
}, [K, j]),
|
|
52
|
+
}, [K, j]), oe = o((e) => {
|
|
52
53
|
e.preventDefault();
|
|
53
54
|
let t = e.dataTransfer.files?.[0];
|
|
54
55
|
if (t) {
|
|
55
56
|
let e = new DataTransfer();
|
|
56
57
|
e.items.add(t), V.current && (V.current.files = e.files, V.current.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
57
58
|
}
|
|
58
|
-
}, []),
|
|
59
|
+
}, []), se = o(async () => {
|
|
59
60
|
if (!F) return;
|
|
60
61
|
N("importing");
|
|
61
|
-
let
|
|
62
|
+
let t = {
|
|
62
63
|
name: L.trim() || void 0,
|
|
63
64
|
key: z.trim() || void 0
|
|
64
65
|
};
|
|
65
66
|
X("bigconsole.data_sink.import_clicked", { source: "import" });
|
|
66
|
-
let
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
let n;
|
|
68
|
+
try {
|
|
69
|
+
n = await q(F, t);
|
|
70
|
+
} catch (t) {
|
|
71
|
+
if (e(t)) {
|
|
72
|
+
k();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
N("preview");
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
n?.success && n.dataSink ? (N("complete"), X("bigconsole.data_sink.imported", {
|
|
79
|
+
dataSinkId: n.dataSink.id,
|
|
69
80
|
source: "import",
|
|
70
|
-
originalUpdated:
|
|
71
|
-
}), A?.(
|
|
81
|
+
originalUpdated: n.originalUpdated ?? !1
|
|
82
|
+
}), A?.(n.dataSink.id, n.dataSink.name, n.originalUpdated ?? !1)) : N("preview");
|
|
72
83
|
}, [
|
|
73
84
|
X,
|
|
74
85
|
F,
|
|
75
86
|
q,
|
|
76
87
|
z,
|
|
77
88
|
L,
|
|
89
|
+
k,
|
|
78
90
|
A
|
|
79
91
|
]), Z = !H && M !== "importing", Q = F ? J(F) : null, $ = O(M);
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
open:
|
|
92
|
+
return /* @__PURE__ */ w(_, {
|
|
93
|
+
open: a,
|
|
82
94
|
onOpenChange: (e) => !e && Z && k(),
|
|
83
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ T(ne, {
|
|
84
96
|
className: "flex max-h-[85vh] flex-col sm:max-w-lg",
|
|
85
97
|
children: [
|
|
86
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ T(y, { children: [/* @__PURE__ */ T("div", {
|
|
87
99
|
className: "flex items-center gap-3",
|
|
88
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ w("div", {
|
|
89
101
|
className: "flex size-10 items-center justify-center rounded-card bg-bg-accentSubtle",
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
-
}), /* @__PURE__ */
|
|
92
|
-
}), /* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
102
|
+
children: /* @__PURE__ */ w(p, { className: "size-5 text-text-link" })
|
|
103
|
+
}), /* @__PURE__ */ w(b, { children: j("bigconsole.dataSinks.import.title", "Import DataSink") })]
|
|
104
|
+
}), /* @__PURE__ */ w(re, { children: j("bigconsole.dataSinks.import.description", "Upload a DataSink export file to restore it into this workspace.") })] }),
|
|
105
|
+
/* @__PURE__ */ w("ol", {
|
|
94
106
|
className: "flex flex-wrap items-center gap-x-icon-gap gap-y-1 text-xs",
|
|
95
107
|
"aria-label": "Import progress",
|
|
96
|
-
children: D.map((e, t) => /* @__PURE__ */
|
|
108
|
+
children: D.map((e, t) => /* @__PURE__ */ T("li", {
|
|
97
109
|
"aria-current": t === $ ? "step" : void 0,
|
|
98
110
|
className: `flex items-center gap-icon-gap ${t === $ ? "font-semibold text-text-primary" : "text-text-muted"}`,
|
|
99
111
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ w("span", {
|
|
101
113
|
className: `inline-flex size-5 items-center justify-center rounded-pill text-[10px] ${t <= $ ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken"}`,
|
|
102
114
|
children: t + 1
|
|
103
115
|
}),
|
|
104
116
|
e.label,
|
|
105
|
-
t < D.length - 1 && /* @__PURE__ */
|
|
117
|
+
t < D.length - 1 && /* @__PURE__ */ w("span", {
|
|
106
118
|
"aria-hidden": "true",
|
|
107
119
|
className: "text-text-muted",
|
|
108
120
|
children: "›"
|
|
@@ -110,36 +122,36 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
110
122
|
]
|
|
111
123
|
}, e.id))
|
|
112
124
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ w("div", {
|
|
114
126
|
className: "min-w-0 flex-1 overflow-y-auto py-4",
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
M === "select" && /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ T(n, { children: [
|
|
128
|
+
M === "select" && /* @__PURE__ */ w(t, {
|
|
117
129
|
title: "Choose an export file",
|
|
118
130
|
description: j("bigconsole.dataSinks.import.supportedFilesHint", "Only .json files exported from BigConsole are supported"),
|
|
119
131
|
headingLevel: 3,
|
|
120
132
|
bodyClassName: "mt-form-gap",
|
|
121
|
-
children: /* @__PURE__ */
|
|
133
|
+
children: /* @__PURE__ */ T("div", {
|
|
122
134
|
onDragOver: (e) => e.preventDefault(),
|
|
123
|
-
onDrop:
|
|
135
|
+
onDrop: oe,
|
|
124
136
|
className: "rounded-card border-2 border-dashed border-[var(--color-border-default)] p-8 text-center hover:border-[var(--color-action-primary-bg)] motion-safe:transition-colors",
|
|
125
137
|
children: [
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ w(ee, { className: "mx-auto mb-4 size-12 text-text-secondary" }),
|
|
139
|
+
/* @__PURE__ */ w("p", {
|
|
128
140
|
className: "mb-2 text-sm",
|
|
129
141
|
children: j("bigconsole.dataSinks.import.dropzoneText", "Drag and drop a DataSink export file here")
|
|
130
142
|
}),
|
|
131
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ w("p", {
|
|
132
144
|
className: "mb-4 text-xs text-text-secondary",
|
|
133
145
|
children: j("bigconsole.dataSinks.import.or", "or")
|
|
134
146
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ w("input", {
|
|
136
148
|
ref: V,
|
|
137
149
|
type: "file",
|
|
138
150
|
accept: ".json",
|
|
139
|
-
onChange:
|
|
151
|
+
onChange: ae,
|
|
140
152
|
className: "hidden"
|
|
141
153
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ w(g, {
|
|
143
155
|
onClick: () => V.current?.click(),
|
|
144
156
|
disabled: H,
|
|
145
157
|
children: j("bigconsole.dataSinks.import.browseFiles", "Browse Files")
|
|
@@ -147,8 +159,8 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
147
159
|
]
|
|
148
160
|
})
|
|
149
161
|
}),
|
|
150
|
-
(M === "preview" || M === "importing") && W && /* @__PURE__ */
|
|
151
|
-
W.dataSinkInfo && /* @__PURE__ */
|
|
162
|
+
(M === "preview" || M === "importing") && W && /* @__PURE__ */ T(C, { children: [
|
|
163
|
+
W.dataSinkInfo && /* @__PURE__ */ T(t, {
|
|
152
164
|
emphasis: "muted",
|
|
153
165
|
padding: "compact",
|
|
154
166
|
headingLevel: 3,
|
|
@@ -156,78 +168,78 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
156
168
|
description: "What this export file describes.",
|
|
157
169
|
bodyClassName: "space-y-2",
|
|
158
170
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ T("div", {
|
|
160
172
|
className: "flex items-center justify-between gap-icon-gap",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ w("span", {
|
|
162
174
|
className: "text-sm text-text-secondary",
|
|
163
175
|
children: j("bigconsole.dataSinks.import.nameLabel", "Name")
|
|
164
|
-
}), /* @__PURE__ */
|
|
176
|
+
}), /* @__PURE__ */ w("span", {
|
|
165
177
|
className: "min-w-0 truncate text-sm font-medium",
|
|
166
178
|
children: W.dataSinkInfo.name || j("bigconsole.dataSinks.import.unnamed", "Unnamed")
|
|
167
179
|
})]
|
|
168
180
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ T("div", {
|
|
170
182
|
className: "flex items-center justify-between gap-icon-gap",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ w("span", {
|
|
172
184
|
className: "text-sm text-text-secondary",
|
|
173
185
|
children: j("bigconsole.dataSinks.import.keyLabel", "Key")
|
|
174
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ w("span", {
|
|
175
187
|
className: "min-w-0 truncate font-mono text-xs",
|
|
176
188
|
children: W.dataSinkInfo.key
|
|
177
189
|
})]
|
|
178
190
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ T("div", {
|
|
180
192
|
className: "flex items-center justify-between gap-icon-gap",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
193
|
+
children: [/* @__PURE__ */ w("span", {
|
|
182
194
|
className: "text-sm text-text-secondary",
|
|
183
195
|
children: j("bigconsole.dataSinks.import.statusLabel", "Status")
|
|
184
|
-
}), /* @__PURE__ */
|
|
196
|
+
}), /* @__PURE__ */ w(h, {
|
|
185
197
|
variant: "secondary",
|
|
186
198
|
children: W.dataSinkInfo.status
|
|
187
199
|
})]
|
|
188
200
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ T("div", {
|
|
190
202
|
className: "flex items-center justify-between gap-icon-gap",
|
|
191
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ w("span", {
|
|
192
204
|
className: "text-sm text-text-secondary",
|
|
193
205
|
children: j("bigconsole.dataSinks.import.setupStateLabel", "Setup State")
|
|
194
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ w(h, {
|
|
195
207
|
variant: "outline",
|
|
196
208
|
children: W.dataSinkInfo.setupState
|
|
197
209
|
})]
|
|
198
210
|
}),
|
|
199
|
-
W.dataSinkInfo.exportedFrom && /* @__PURE__ */
|
|
211
|
+
W.dataSinkInfo.exportedFrom && /* @__PURE__ */ T("div", {
|
|
200
212
|
className: "flex items-center justify-between gap-icon-gap",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ w("span", {
|
|
202
214
|
className: "text-sm text-text-secondary",
|
|
203
215
|
children: j("bigconsole.dataSinks.import.sourceIdLabel", "Source ID")
|
|
204
|
-
}), /* @__PURE__ */
|
|
216
|
+
}), /* @__PURE__ */ w("span", {
|
|
205
217
|
className: "min-w-0 max-w-[180px] truncate font-mono text-xs text-text-secondary",
|
|
206
218
|
children: W.dataSinkInfo.exportedFrom
|
|
207
219
|
})]
|
|
208
220
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ T("div", {
|
|
210
222
|
className: "flex items-center justify-between gap-icon-gap",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ w("span", {
|
|
212
224
|
className: "text-sm text-text-secondary",
|
|
213
225
|
children: j("bigconsole.dataSinks.import.schemaVersionLabel", "Schema Version")
|
|
214
|
-
}), /* @__PURE__ */
|
|
226
|
+
}), /* @__PURE__ */ w("span", {
|
|
215
227
|
className: "text-xs text-text-secondary",
|
|
216
228
|
children: W.dataSinkInfo.schemaVersion
|
|
217
229
|
})]
|
|
218
230
|
})
|
|
219
231
|
]
|
|
220
232
|
}),
|
|
221
|
-
W.errors.length > 0 && /* @__PURE__ */
|
|
233
|
+
W.errors.length > 0 && /* @__PURE__ */ w(t, {
|
|
222
234
|
tone: "danger",
|
|
223
235
|
padding: "compact",
|
|
224
236
|
headingLevel: 3,
|
|
225
237
|
title: j("bigconsole.dataSinks.import.errorsHeading", "Errors ({{count}})", { count: W.errors.length }),
|
|
226
|
-
icon: /* @__PURE__ */
|
|
227
|
-
children: /* @__PURE__ */
|
|
238
|
+
icon: /* @__PURE__ */ w(m, { className: "size-4" }),
|
|
239
|
+
children: /* @__PURE__ */ w("ul", {
|
|
228
240
|
className: "space-y-1 text-xs text-status-error-text",
|
|
229
|
-
children: W.errors.map((e, t) => /* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
241
|
+
children: W.errors.map((e, t) => /* @__PURE__ */ T("li", { children: [
|
|
242
|
+
/* @__PURE__ */ T("span", {
|
|
231
243
|
className: "font-mono",
|
|
232
244
|
children: [
|
|
233
245
|
"[",
|
|
@@ -240,48 +252,48 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
240
252
|
] }, t))
|
|
241
253
|
})
|
|
242
254
|
}),
|
|
243
|
-
W.isValid && /* @__PURE__ */
|
|
255
|
+
W.isValid && /* @__PURE__ */ T(t, {
|
|
244
256
|
title: j("bigconsole.dataSinks.import.optionsHeading", "Import Options"),
|
|
245
257
|
description: "Rename the sink or give it a different key before importing.",
|
|
246
258
|
headingLevel: 3,
|
|
247
259
|
bodyClassName: "space-y-form-gap",
|
|
248
260
|
children: [
|
|
249
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ w(t, {
|
|
250
262
|
tone: "info",
|
|
251
263
|
emphasis: "muted",
|
|
252
264
|
padding: "compact",
|
|
253
265
|
headingLevel: 4,
|
|
254
|
-
icon: /* @__PURE__ */
|
|
266
|
+
icon: /* @__PURE__ */ w(f, { className: "size-4" }),
|
|
255
267
|
title: Q ? j("bigconsole.dataSinks.import.checkExistingHeading", "Import will check for existing DataSink") : j("bigconsole.dataSinks.import.newWillBeCreatedHeading", "A new DataSink will be created"),
|
|
256
|
-
children: /* @__PURE__ */
|
|
268
|
+
children: /* @__PURE__ */ w("div", {
|
|
257
269
|
className: "text-xs text-[var(--color-status-info-text)]",
|
|
258
|
-
children: Q ? /* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
270
|
+
children: Q ? /* @__PURE__ */ T(C, { children: [
|
|
271
|
+
/* @__PURE__ */ T("p", { children: [
|
|
260
272
|
j("bigconsole.dataSinks.import.ifOriginalExistsPrefix", "If the original DataSink (ID:"),
|
|
261
273
|
" ",
|
|
262
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ T("code", {
|
|
263
275
|
className: "rounded-input bg-bg-surface px-1 font-mono",
|
|
264
276
|
children: [Q.slice(0, 8), "..."]
|
|
265
277
|
}),
|
|
266
278
|
j("bigconsole.dataSinks.import.ifOriginalExistsSuffix", ") exists:")
|
|
267
279
|
] }),
|
|
268
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ T("ul", {
|
|
269
281
|
className: "mt-1 list-inside list-disc space-y-0.5",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ w("li", { children: j("bigconsole.dataSinks.import.withChangesUpdate", "With changes → Update the existing DataSink") }), /* @__PURE__ */ w("li", { children: j("bigconsole.dataSinks.import.noChangesMessage", "No changes → Show \"already exists\" message") })]
|
|
271
283
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ w("p", {
|
|
273
285
|
className: "mt-1",
|
|
274
286
|
children: j("bigconsole.dataSinks.import.ifNotExistsCreate", "If original doesn't exist → Create a new DataSink")
|
|
275
287
|
})
|
|
276
|
-
] }) : /* @__PURE__ */
|
|
288
|
+
] }) : /* @__PURE__ */ w("p", { children: j("bigconsole.dataSinks.import.newWillBeCreatedBody", "Import as a new DataSink with the specified configuration.") })
|
|
277
289
|
})
|
|
278
290
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ T("div", {
|
|
280
292
|
className: "space-y-2",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ w(S, {
|
|
282
294
|
htmlFor: "import-name",
|
|
283
295
|
children: j("bigconsole.dataSinks.import.nameFieldLabel", "DataSink Name")
|
|
284
|
-
}), /* @__PURE__ */
|
|
296
|
+
}), /* @__PURE__ */ w(x, {
|
|
285
297
|
id: "import-name",
|
|
286
298
|
type: "text",
|
|
287
299
|
value: L,
|
|
@@ -290,14 +302,14 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
290
302
|
disabled: M === "importing"
|
|
291
303
|
})]
|
|
292
304
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ T("div", {
|
|
294
306
|
className: "space-y-2",
|
|
295
307
|
children: [
|
|
296
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ w(S, {
|
|
297
309
|
htmlFor: "import-key",
|
|
298
310
|
children: j("bigconsole.dataSinks.import.keyFieldLabel", "DataSink Key")
|
|
299
311
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ w(x, {
|
|
301
313
|
id: "import-key",
|
|
302
314
|
type: "text",
|
|
303
315
|
value: z,
|
|
@@ -305,7 +317,7 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
305
317
|
placeholder: W.dataSinkInfo?.key || j("bigconsole.dataSinks.import.keyPlaceholder", "datasink-key"),
|
|
306
318
|
disabled: M === "importing"
|
|
307
319
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ w("p", {
|
|
309
321
|
className: "text-xs text-text-secondary",
|
|
310
322
|
children: j("bigconsole.dataSinks.import.keyHelp", "Use a unique key to avoid conflicts with existing DataSinks.")
|
|
311
323
|
})
|
|
@@ -314,91 +326,91 @@ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
|
|
|
314
326
|
]
|
|
315
327
|
})
|
|
316
328
|
] }),
|
|
317
|
-
M === "complete" && G?.success && /* @__PURE__ */
|
|
318
|
-
G.alreadyExists && /* @__PURE__ */
|
|
329
|
+
M === "complete" && G?.success && /* @__PURE__ */ T(C, { children: [
|
|
330
|
+
G.alreadyExists && /* @__PURE__ */ w(t, {
|
|
319
331
|
tone: "info",
|
|
320
332
|
headingLevel: 3,
|
|
321
333
|
title: j("bigconsole.dataSinks.import.alreadyExistsTitle", "DataSink Already Exists"),
|
|
322
|
-
icon: /* @__PURE__ */
|
|
323
|
-
children: /* @__PURE__ */
|
|
334
|
+
icon: /* @__PURE__ */ w(f, { className: "h-icon-sm w-icon-sm" }),
|
|
335
|
+
children: /* @__PURE__ */ w("p", {
|
|
324
336
|
className: "text-sm text-text-secondary",
|
|
325
337
|
children: j("bigconsole.dataSinks.import.alreadyExistsBody", "DataSink \"{{name}}\" already exists with the same data. No changes were made.", { name: G.dataSink?.name || G.dataSink?.key || "" })
|
|
326
338
|
})
|
|
327
339
|
}),
|
|
328
|
-
G.originalUpdated && !G.alreadyExists && /* @__PURE__ */
|
|
340
|
+
G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ w(t, {
|
|
329
341
|
tone: "success",
|
|
330
342
|
headingLevel: 3,
|
|
331
343
|
title: j("bigconsole.dataSinks.import.updatedTitle", "DataSink Updated!"),
|
|
332
|
-
icon: /* @__PURE__ */
|
|
333
|
-
children: /* @__PURE__ */
|
|
344
|
+
icon: /* @__PURE__ */ w(te, { className: "h-icon-sm w-icon-sm" }),
|
|
345
|
+
children: /* @__PURE__ */ w("p", {
|
|
334
346
|
className: "text-sm text-text-secondary",
|
|
335
347
|
children: j("bigconsole.dataSinks.import.updatedBody", "DataSink \"{{name}}\" has been updated with the imported data.", { name: G.dataSink?.name || G.dataSink?.key || "" })
|
|
336
348
|
})
|
|
337
349
|
}),
|
|
338
|
-
!G.originalUpdated && !G.alreadyExists && /* @__PURE__ */
|
|
350
|
+
!G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ w(t, {
|
|
339
351
|
tone: "success",
|
|
340
352
|
headingLevel: 3,
|
|
341
353
|
title: j("bigconsole.dataSinks.import.successTitle", "Import Successful!"),
|
|
342
|
-
icon: /* @__PURE__ */
|
|
343
|
-
children: /* @__PURE__ */
|
|
354
|
+
icon: /* @__PURE__ */ w(d, { className: "h-icon-sm w-icon-sm" }),
|
|
355
|
+
children: /* @__PURE__ */ w("p", {
|
|
344
356
|
className: "text-sm text-text-secondary",
|
|
345
357
|
children: j("bigconsole.dataSinks.import.successBody", "DataSink \"{{name}}\" has been created.", { name: G.dataSink?.name || G.dataSink?.key || "" })
|
|
346
358
|
})
|
|
347
359
|
})
|
|
348
360
|
] }),
|
|
349
|
-
U && /* @__PURE__ */
|
|
361
|
+
U && /* @__PURE__ */ w(t, {
|
|
350
362
|
tone: "danger",
|
|
351
363
|
padding: "compact",
|
|
352
364
|
headingLevel: 3,
|
|
353
365
|
title: "Import failed",
|
|
354
|
-
children: /* @__PURE__ */
|
|
366
|
+
children: /* @__PURE__ */ w("p", {
|
|
355
367
|
className: "text-sm text-status-error-text",
|
|
356
368
|
children: U.message
|
|
357
369
|
})
|
|
358
370
|
}),
|
|
359
|
-
G && !G.success && G.errorMessage && /* @__PURE__ */
|
|
371
|
+
G && !G.success && G.errorMessage && /* @__PURE__ */ w(t, {
|
|
360
372
|
tone: "danger",
|
|
361
373
|
padding: "compact",
|
|
362
374
|
headingLevel: 3,
|
|
363
375
|
title: "Import failed",
|
|
364
|
-
children: /* @__PURE__ */
|
|
376
|
+
children: /* @__PURE__ */ w("p", {
|
|
365
377
|
className: "text-sm text-status-error-text",
|
|
366
378
|
children: G.errorMessage
|
|
367
379
|
})
|
|
368
380
|
})
|
|
369
381
|
] })
|
|
370
382
|
}),
|
|
371
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ T(v, {
|
|
372
384
|
className: "flex flex-col-reverse gap-control-gap sm:flex-row sm:justify-between",
|
|
373
|
-
children: [M === "preview" ? /* @__PURE__ */
|
|
385
|
+
children: [M === "preview" ? /* @__PURE__ */ T(g, {
|
|
374
386
|
variant: "ghost",
|
|
375
387
|
onClick: () => {
|
|
376
388
|
N("select"), P(null), I(null), Y();
|
|
377
389
|
},
|
|
378
390
|
disabled: H,
|
|
379
|
-
children: [/* @__PURE__ */
|
|
380
|
-
}) : /* @__PURE__ */
|
|
391
|
+
children: [/* @__PURE__ */ w(u, { className: "size-4" }), j("bigconsole.dataSinks.import.back", "Back")]
|
|
392
|
+
}) : /* @__PURE__ */ w("span", {
|
|
381
393
|
"aria-hidden": "true",
|
|
382
394
|
className: "hidden sm:block"
|
|
383
|
-
}), /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ T("div", {
|
|
384
396
|
className: "flex flex-wrap items-center gap-2",
|
|
385
397
|
children: [
|
|
386
|
-
M !== "complete" && /* @__PURE__ */
|
|
398
|
+
M !== "complete" && /* @__PURE__ */ w(g, {
|
|
387
399
|
variant: "outline",
|
|
388
400
|
onClick: k,
|
|
389
401
|
disabled: !Z,
|
|
390
402
|
children: j("bigconsole.dataSinks.import.cancel", "Cancel")
|
|
391
403
|
}),
|
|
392
|
-
M === "preview" && W?.isValid && /* @__PURE__ */
|
|
393
|
-
onClick:
|
|
404
|
+
M === "preview" && W?.isValid && /* @__PURE__ */ T(g, {
|
|
405
|
+
onClick: se,
|
|
394
406
|
disabled: H,
|
|
395
|
-
children: [/* @__PURE__ */
|
|
407
|
+
children: [/* @__PURE__ */ w(p, { className: "size-4" }), j("bigconsole.dataSinks.import.importButton", "Import DataSink")]
|
|
396
408
|
}),
|
|
397
|
-
M === "importing" && /* @__PURE__ */
|
|
409
|
+
M === "importing" && /* @__PURE__ */ T("div", {
|
|
398
410
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
399
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ w(ie, { className: "size-4" }), j("bigconsole.dataSinks.import.importing", "Importing...")]
|
|
400
412
|
}),
|
|
401
|
-
M === "complete" && /* @__PURE__ */
|
|
413
|
+
M === "complete" && /* @__PURE__ */ w(g, {
|
|
402
414
|
onClick: k,
|
|
403
415
|
children: j("bigconsole.dataSinks.import.done", "Done")
|
|
404
416
|
})
|