@burdenoff/microfe-bigconsole 2026.1008.11 → 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 +1 -1
|
@@ -5,10 +5,10 @@ import n from "../../hooks/useBigConsoleAnalytics.js";
|
|
|
5
5
|
import r from "../../hooks/useImportDashboard.js";
|
|
6
6
|
import "../../hooks/index.js";
|
|
7
7
|
import { memo as i, useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
8
|
-
import { AlertTriangle as
|
|
8
|
+
import { AlertTriangle as ee, ArrowLeft as l, Check as u, FileJson as te, Info as d, RefreshCw as ne, Upload as f, XCircle as p } from "lucide-react";
|
|
9
9
|
import { Badge as m, Button as h, Card as g, CardContent as _, Checkbox as v, Dialog as y, DialogContent as b, DialogDescription as x, DialogFooter as S, DialogHeader as re, DialogTitle as ie, Input as ae, Label as C, Spinner as w } from "@burdenoff/fe-libs/ui";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
12
12
|
//#region src/bigconsole/components/dashboard/ImportDashboardDialog.tsx
|
|
13
13
|
function k(e) {
|
|
14
14
|
if (!e) return null;
|
|
@@ -20,7 +20,7 @@ function k(e) {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
23
|
-
let { t: M } =
|
|
23
|
+
let { t: M } = T(), [N, P] = c("select"), [, F] = c(null), [I, L] = c(null), [R, z] = c(""), [B, V] = c("PRIVATE"), [H, U] = c(!1), W = s(null), { loading: G, error: K, validationResult: q, importResult: J, validateImport: Y, importDashboard: X, clearState: Z } = r(), Q = n();
|
|
24
24
|
o(() => {
|
|
25
25
|
i && (P("select"), F(null), L(null), z(""), V("PRIVATE"), U(!1), Z());
|
|
26
26
|
}, [i, Z]);
|
|
@@ -81,56 +81,56 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
81
81
|
H,
|
|
82
82
|
B
|
|
83
83
|
]), $ = !G && N !== "importing";
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ D(y, {
|
|
85
85
|
open: i,
|
|
86
86
|
onOpenChange: (e) => !e && $ && A(),
|
|
87
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ O(b, {
|
|
88
88
|
className: "sm:max-w-lg max-h-[85vh] flex flex-col",
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ O(re, { children: [/* @__PURE__ */ O("div", {
|
|
91
91
|
className: "flex items-center gap-3",
|
|
92
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ D("div", {
|
|
93
93
|
className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
|
|
94
|
-
children: /* @__PURE__ */
|
|
95
|
-
}), /* @__PURE__ */
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ D(f, { className: "size-5 text-primary" })
|
|
95
|
+
}), /* @__PURE__ */ D(ie, { children: M("bigconsole.dashboards.import.title", "Import Dashboard") })]
|
|
96
|
+
}), /* @__PURE__ */ D(x, { children: M("bigconsole.dashboards.import.description", "Upload a Dashboard export file to restore it into this workspace.") })] }),
|
|
97
|
+
/* @__PURE__ */ O("div", {
|
|
98
98
|
className: "flex-1 overflow-y-auto py-4 space-y-4",
|
|
99
99
|
children: [
|
|
100
|
-
N === "select" && /* @__PURE__ */
|
|
100
|
+
N === "select" && /* @__PURE__ */ O("div", {
|
|
101
101
|
onDragOver: (e) => e.preventDefault(),
|
|
102
102
|
onDrop: se,
|
|
103
103
|
className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
|
|
104
104
|
children: [
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ D(te, { className: "size-12 mx-auto text-text-secondary mb-4" }),
|
|
106
|
+
/* @__PURE__ */ D("p", {
|
|
107
107
|
className: "text-sm mb-2",
|
|
108
108
|
children: M("bigconsole.dashboards.import.dropzoneTitle", "Drag and drop a dashboard export file here")
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ D("p", {
|
|
111
111
|
className: "text-xs text-text-secondary mb-4",
|
|
112
112
|
children: M("bigconsole.dashboards.import.or", "or")
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ D("input", {
|
|
115
115
|
ref: W,
|
|
116
116
|
type: "file",
|
|
117
117
|
accept: ".json",
|
|
118
118
|
onChange: oe,
|
|
119
119
|
className: "hidden"
|
|
120
120
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ D(h, {
|
|
122
122
|
onClick: () => W.current?.click(),
|
|
123
123
|
disabled: G,
|
|
124
124
|
children: M("bigconsole.dashboards.import.browseFiles", "Browse Files")
|
|
125
125
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ D("p", {
|
|
127
127
|
className: "text-xs text-text-secondary mt-4",
|
|
128
128
|
children: M("bigconsole.dashboards.import.supportedFilesHint", "Only .json files exported from BigConsole are supported")
|
|
129
129
|
})
|
|
130
130
|
]
|
|
131
131
|
}),
|
|
132
|
-
(N === "preview" || N === "importing") && q && /* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
132
|
+
(N === "preview" || N === "importing") && q && /* @__PURE__ */ O(E, { children: [
|
|
133
|
+
/* @__PURE__ */ O(t, {
|
|
134
134
|
headingLevel: 3,
|
|
135
135
|
emphasis: "muted",
|
|
136
136
|
padding: "compact",
|
|
@@ -138,80 +138,80 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
138
138
|
"data-testid": "import-summary",
|
|
139
139
|
bodyClassName: "space-y-2",
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ O("div", {
|
|
142
142
|
className: "flex items-center justify-between",
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ D("span", {
|
|
144
144
|
className: "text-sm text-text-secondary",
|
|
145
145
|
children: M("bigconsole.dashboards.import.fieldDashboard", "Dashboard")
|
|
146
|
-
}), /* @__PURE__ */
|
|
146
|
+
}), /* @__PURE__ */ D("span", {
|
|
147
147
|
className: "text-sm font-medium",
|
|
148
148
|
children: q.dashboardInfo.name
|
|
149
149
|
})]
|
|
150
150
|
}),
|
|
151
|
-
q.dashboardInfo.description && /* @__PURE__ */
|
|
151
|
+
q.dashboardInfo.description && /* @__PURE__ */ O("div", {
|
|
152
152
|
className: "flex items-start justify-between",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ D("span", {
|
|
154
154
|
className: "text-sm text-text-secondary",
|
|
155
155
|
children: M("bigconsole.dashboards.import.fieldDescription", "Description")
|
|
156
|
-
}), /* @__PURE__ */
|
|
156
|
+
}), /* @__PURE__ */ D("span", {
|
|
157
157
|
className: "text-sm text-right max-w-[60%] truncate",
|
|
158
158
|
children: q.dashboardInfo.description
|
|
159
159
|
})]
|
|
160
160
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ O("div", {
|
|
162
162
|
className: "flex items-center justify-between",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ D("span", {
|
|
164
164
|
className: "text-sm text-text-secondary",
|
|
165
165
|
children: M("bigconsole.dashboards.import.fieldPages", "Pages")
|
|
166
|
-
}), /* @__PURE__ */
|
|
166
|
+
}), /* @__PURE__ */ D(m, {
|
|
167
167
|
variant: "secondary",
|
|
168
168
|
children: q.dashboardInfo.pageCount
|
|
169
169
|
})]
|
|
170
170
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ O("div", {
|
|
172
172
|
className: "flex items-center justify-between",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ D("span", {
|
|
174
174
|
className: "text-sm text-text-secondary",
|
|
175
175
|
children: M("bigconsole.dashboards.import.fieldWidgets", "Widgets")
|
|
176
|
-
}), /* @__PURE__ */
|
|
176
|
+
}), /* @__PURE__ */ D(m, {
|
|
177
177
|
variant: "secondary",
|
|
178
178
|
children: q.dashboardInfo.widgetCount
|
|
179
179
|
})]
|
|
180
180
|
}),
|
|
181
|
-
q.dashboardInfo.exportedFrom && /* @__PURE__ */
|
|
181
|
+
q.dashboardInfo.exportedFrom && /* @__PURE__ */ O("div", {
|
|
182
182
|
className: "flex items-center justify-between",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ D("span", {
|
|
184
184
|
className: "text-sm text-text-secondary",
|
|
185
185
|
children: M("bigconsole.dashboards.import.fieldSourceId", "Source ID")
|
|
186
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ D("span", {
|
|
187
187
|
className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
|
|
188
188
|
children: q.dashboardInfo.exportedFrom
|
|
189
189
|
})]
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ O("div", {
|
|
192
192
|
className: "flex flex-wrap items-center justify-between gap-x-4",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
193
|
+
children: [/* @__PURE__ */ D("span", {
|
|
194
194
|
className: "text-sm text-text-secondary",
|
|
195
195
|
children: M("bigconsole.dashboards.import.fieldSchemaVersion", "Schema Version")
|
|
196
|
-
}), /* @__PURE__ */
|
|
196
|
+
}), /* @__PURE__ */ D("span", {
|
|
197
197
|
className: "text-xs text-text-secondary",
|
|
198
198
|
children: q.dashboardInfo.schemaVersion
|
|
199
199
|
})]
|
|
200
200
|
})
|
|
201
201
|
]
|
|
202
202
|
}),
|
|
203
|
-
q.errors.length > 0 && /* @__PURE__ */
|
|
203
|
+
q.errors.length > 0 && /* @__PURE__ */ D(t, {
|
|
204
204
|
headingLevel: 3,
|
|
205
205
|
tone: "danger",
|
|
206
206
|
padding: "compact",
|
|
207
|
-
icon: /* @__PURE__ */
|
|
207
|
+
icon: /* @__PURE__ */ D(p, { className: "size-4" }),
|
|
208
208
|
title: M("bigconsole.dashboards.import.errorsCount", "Errors ({{count}})", { count: q.errors.length }),
|
|
209
209
|
description: "These must be fixed in the export file before it can be imported.",
|
|
210
210
|
"data-testid": "import-errors",
|
|
211
|
-
children: /* @__PURE__ */
|
|
211
|
+
children: /* @__PURE__ */ D("ul", {
|
|
212
212
|
className: "space-y-1 text-xs text-status-error-text",
|
|
213
|
-
children: q.errors.map((e) => /* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
213
|
+
children: q.errors.map((e) => /* @__PURE__ */ O("li", { children: [
|
|
214
|
+
/* @__PURE__ */ O("span", {
|
|
215
215
|
className: "font-mono",
|
|
216
216
|
children: [
|
|
217
217
|
"[",
|
|
@@ -224,18 +224,18 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
224
224
|
] }, `${e.code}-${e.message}`))
|
|
225
225
|
})
|
|
226
226
|
}),
|
|
227
|
-
q.warnings.length > 0 && /* @__PURE__ */
|
|
227
|
+
q.warnings.length > 0 && /* @__PURE__ */ D(t, {
|
|
228
228
|
headingLevel: 3,
|
|
229
229
|
tone: "warning",
|
|
230
230
|
padding: "compact",
|
|
231
|
-
icon: /* @__PURE__ */
|
|
231
|
+
icon: /* @__PURE__ */ D(ee, { className: "size-4" }),
|
|
232
232
|
title: M("bigconsole.dashboards.import.warningsCount", "Warnings ({{count}})", { count: q.warnings.length }),
|
|
233
233
|
description: "Advisory only — acknowledge them below to continue.",
|
|
234
234
|
"data-testid": "import-warnings",
|
|
235
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ D("ul", {
|
|
236
236
|
className: "space-y-1 text-xs text-[var(--color-status-warning-text)]",
|
|
237
|
-
children: q.warnings.map((e) => /* @__PURE__ */
|
|
238
|
-
/* @__PURE__ */
|
|
237
|
+
children: q.warnings.map((e) => /* @__PURE__ */ O("li", { children: [
|
|
238
|
+
/* @__PURE__ */ O("span", {
|
|
239
239
|
className: "font-mono",
|
|
240
240
|
children: [
|
|
241
241
|
"[",
|
|
@@ -248,58 +248,58 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
248
248
|
] }, `${e.code}-${e.message}`))
|
|
249
249
|
})
|
|
250
250
|
}),
|
|
251
|
-
q.isValid && /* @__PURE__ */
|
|
251
|
+
q.isValid && /* @__PURE__ */ O(t, {
|
|
252
252
|
headingLevel: 3,
|
|
253
253
|
title: M("bigconsole.dashboards.import.optionsTitle", "Import Options"),
|
|
254
254
|
description: "How this file lands in the workspace.",
|
|
255
255
|
"data-testid": "import-options",
|
|
256
256
|
bodyClassName: "space-y-4",
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ D(t, {
|
|
259
259
|
headingLevel: 4,
|
|
260
260
|
tone: "info",
|
|
261
261
|
"aria-label": M("bigconsole.dashboards.import.infoRegionLabel", "What this import will do"),
|
|
262
262
|
padding: "compact",
|
|
263
263
|
"data-testid": "import-info",
|
|
264
|
-
children: /* @__PURE__ */
|
|
264
|
+
children: /* @__PURE__ */ O("div", {
|
|
265
265
|
className: "flex items-start gap-2",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ D(d, { className: "size-4 mt-0.5 shrink-0 text-[var(--color-status-info-text)]" }), /* @__PURE__ */ D("div", {
|
|
267
267
|
className: "text-xs text-[var(--color-status-info-text)]",
|
|
268
|
-
children: k(I) ? /* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
268
|
+
children: k(I) ? /* @__PURE__ */ O(E, { children: [
|
|
269
|
+
/* @__PURE__ */ D("p", {
|
|
270
270
|
className: "font-medium mb-1",
|
|
271
271
|
children: M("bigconsole.dashboards.import.checkExistingTitle", "Import will check for existing dashboard")
|
|
272
272
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ O("p", { children: [
|
|
274
274
|
M("bigconsole.dashboards.import.checkExistingIdPrefix", "If the original dashboard (ID:"),
|
|
275
275
|
" ",
|
|
276
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ O("code", {
|
|
277
277
|
className: "rounded bg-bg-surface px-1 font-mono",
|
|
278
278
|
children: [k(I)?.slice(0, 8), "..."]
|
|
279
279
|
}),
|
|
280
280
|
M("bigconsole.dashboards.import.checkExistingIdSuffix", ") exists:")
|
|
281
281
|
] }),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ O("ul", {
|
|
283
283
|
className: "list-disc list-inside mt-1 space-y-0.5",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingWithChanges", "With changes → Update the existing dashboard") }), /* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingNoChanges", "No changes → Show \"already exists\" message") })]
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ D("p", {
|
|
287
287
|
className: "mt-1",
|
|
288
288
|
children: M("bigconsole.dashboards.import.checkExistingNotFound", "If original doesn't exist → Create a new dashboard")
|
|
289
289
|
})
|
|
290
|
-
] }) : /* @__PURE__ */
|
|
290
|
+
] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
|
|
291
291
|
className: "font-medium mb-1",
|
|
292
292
|
children: M("bigconsole.dashboards.import.newDashboardTitle", "A new dashboard will be created")
|
|
293
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ D("p", { children: M("bigconsole.dashboards.import.newDashboardBody", "Import as a new dashboard with the specified configuration.") })] })
|
|
294
294
|
})]
|
|
295
295
|
})
|
|
296
296
|
}),
|
|
297
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ O("div", {
|
|
298
298
|
className: "space-y-2",
|
|
299
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ D(C, {
|
|
300
300
|
htmlFor: "import-name",
|
|
301
301
|
children: M("bigconsole.dashboards.import.dashboardNameLabel", "Dashboard Name")
|
|
302
|
-
}), /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ D(ae, {
|
|
303
303
|
id: "import-name",
|
|
304
304
|
type: "text",
|
|
305
305
|
value: R,
|
|
@@ -308,15 +308,15 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
308
308
|
disabled: N === "importing"
|
|
309
309
|
})]
|
|
310
310
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ O("div", {
|
|
312
312
|
className: "space-y-2",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ D(C, { children: M("bigconsole.dashboards.import.visibilityLabel", "Visibility") }), /* @__PURE__ */ D("div", {
|
|
314
314
|
className: "flex gap-2",
|
|
315
315
|
children: [
|
|
316
316
|
"PRIVATE",
|
|
317
317
|
"TEAM",
|
|
318
318
|
"PUBLIC"
|
|
319
|
-
].map((e) => /* @__PURE__ */
|
|
319
|
+
].map((e) => /* @__PURE__ */ D(h, {
|
|
320
320
|
type: "button",
|
|
321
321
|
variant: B === e ? "default" : "outline",
|
|
322
322
|
size: "sm",
|
|
@@ -326,16 +326,16 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
326
326
|
}, e))
|
|
327
327
|
})]
|
|
328
328
|
}),
|
|
329
|
-
q.warnings.length > 0 && /* @__PURE__ */
|
|
329
|
+
q.warnings.length > 0 && /* @__PURE__ */ O("div", {
|
|
330
330
|
className: "flex items-start space-x-3",
|
|
331
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ D(v, {
|
|
332
332
|
id: "skipWarnings",
|
|
333
333
|
checked: H,
|
|
334
334
|
onCheckedChange: (e) => U(e === !0),
|
|
335
335
|
disabled: N === "importing"
|
|
336
|
-
}), /* @__PURE__ */
|
|
336
|
+
}), /* @__PURE__ */ D("div", {
|
|
337
337
|
className: "grid gap-1.5 leading-none",
|
|
338
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ D(C, {
|
|
339
339
|
htmlFor: "skipWarnings",
|
|
340
340
|
className: "cursor-pointer",
|
|
341
341
|
children: M("bigconsole.dashboards.import.acknowledgeWarnings", "Acknowledge warnings and proceed")
|
|
@@ -345,75 +345,75 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
345
345
|
]
|
|
346
346
|
})
|
|
347
347
|
] }),
|
|
348
|
-
N === "complete" && J?.success && /* @__PURE__ */
|
|
348
|
+
N === "complete" && J?.success && /* @__PURE__ */ O("div", {
|
|
349
349
|
className: "text-center py-6",
|
|
350
350
|
children: [
|
|
351
|
-
J.alreadyExists && /* @__PURE__ */
|
|
352
|
-
/* @__PURE__ */
|
|
351
|
+
J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
352
|
+
/* @__PURE__ */ D("div", {
|
|
353
353
|
className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-info-bgSubtle)]",
|
|
354
|
-
children: /* @__PURE__ */
|
|
354
|
+
children: /* @__PURE__ */ D(d, { className: "size-8 text-[var(--color-status-info-text)]" })
|
|
355
355
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ D("h3", {
|
|
357
357
|
className: "text-lg font-medium mb-2",
|
|
358
358
|
children: M("bigconsole.dashboards.import.alreadyExistsTitle", "Dashboard Already Exists")
|
|
359
359
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ D("p", {
|
|
361
361
|
className: "text-sm text-text-secondary mb-4",
|
|
362
362
|
children: M("bigconsole.dashboards.import.alreadyExistsBody", "Dashboard \"{{name}}\" already exists with the same data. No changes were made.", { name: J.dashboard?.name ?? "" })
|
|
363
363
|
})
|
|
364
364
|
] }),
|
|
365
|
-
J.originalUpdated && !J.alreadyExists && /* @__PURE__ */
|
|
366
|
-
/* @__PURE__ */
|
|
365
|
+
J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
366
|
+
/* @__PURE__ */ D("div", {
|
|
367
367
|
className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-success-bgSubtle)]",
|
|
368
|
-
children: /* @__PURE__ */
|
|
368
|
+
children: /* @__PURE__ */ D(ne, { className: "size-8 text-status-success-text" })
|
|
369
369
|
}),
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ D("h3", {
|
|
371
371
|
className: "text-lg font-medium mb-2",
|
|
372
372
|
children: M("bigconsole.dashboards.import.updatedTitle", "Dashboard Updated!")
|
|
373
373
|
}),
|
|
374
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ D("p", {
|
|
375
375
|
className: "text-sm text-text-secondary mb-4",
|
|
376
376
|
children: M("bigconsole.dashboards.import.updatedBody", "Dashboard \"{{name}}\" has been updated with the imported data.", { name: J.dashboard?.name ?? "" })
|
|
377
377
|
})
|
|
378
378
|
] }),
|
|
379
|
-
!J.originalUpdated && !J.alreadyExists && /* @__PURE__ */
|
|
380
|
-
/* @__PURE__ */
|
|
379
|
+
!J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
380
|
+
/* @__PURE__ */ D("div", {
|
|
381
381
|
className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-success-bgSubtle)]",
|
|
382
|
-
children: /* @__PURE__ */
|
|
382
|
+
children: /* @__PURE__ */ D(u, { className: "size-8 text-status-success-text" })
|
|
383
383
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ D("h3", {
|
|
385
385
|
className: "text-lg font-medium mb-2",
|
|
386
386
|
children: M("bigconsole.dashboards.import.successTitle", "Import Successful!")
|
|
387
387
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ D("p", {
|
|
389
389
|
className: "text-sm text-text-secondary mb-4",
|
|
390
390
|
children: M("bigconsole.dashboards.import.successBody", "Dashboard \"{{name}}\" has been created.", { name: J.dashboard?.name ?? "" })
|
|
391
391
|
}),
|
|
392
|
-
J.stats && /* @__PURE__ */
|
|
392
|
+
J.stats && /* @__PURE__ */ D(g, {
|
|
393
393
|
className: "inline-block text-left",
|
|
394
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ O(_, {
|
|
395
395
|
className: "p-4",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
396
|
+
children: [/* @__PURE__ */ D("p", {
|
|
397
397
|
className: "text-xs font-medium text-text-secondary mb-2",
|
|
398
398
|
children: M("bigconsole.dashboards.import.summaryTitle", "Import Summary")
|
|
399
|
-
}), /* @__PURE__ */
|
|
399
|
+
}), /* @__PURE__ */ O("div", {
|
|
400
400
|
className: "grid grid-cols-2 gap-x-6 gap-y-1 text-xs",
|
|
401
401
|
children: [
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ D("span", {
|
|
403
403
|
className: "text-text-secondary",
|
|
404
404
|
children: M("bigconsole.dashboards.import.summaryPages", "Pages:")
|
|
405
405
|
}),
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ D("span", { children: J.stats.pagesCreated }),
|
|
407
|
+
/* @__PURE__ */ D("span", {
|
|
408
408
|
className: "text-text-secondary",
|
|
409
409
|
children: M("bigconsole.dashboards.import.summaryWidgets", "Widgets:")
|
|
410
410
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ D("span", { children: J.stats.widgetsCreated }),
|
|
412
|
+
/* @__PURE__ */ D("span", {
|
|
413
413
|
className: "text-text-secondary",
|
|
414
414
|
children: M("bigconsole.dashboards.import.summaryActions", "Actions:")
|
|
415
415
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ D("span", { children: J.stats.actionsCreated })
|
|
417
417
|
]
|
|
418
418
|
})]
|
|
419
419
|
})
|
|
@@ -421,14 +421,14 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
421
421
|
] })
|
|
422
422
|
]
|
|
423
423
|
}),
|
|
424
|
-
K && /* @__PURE__ */
|
|
424
|
+
K && /* @__PURE__ */ D(t, {
|
|
425
425
|
headingLevel: 3,
|
|
426
426
|
tone: "danger",
|
|
427
427
|
padding: "compact",
|
|
428
428
|
title: "Import failed",
|
|
429
429
|
description: K.message
|
|
430
430
|
}),
|
|
431
|
-
J && !J.success && J.errorMessage && /* @__PURE__ */
|
|
431
|
+
J && !J.success && J.errorMessage && /* @__PURE__ */ D(t, {
|
|
432
432
|
headingLevel: 3,
|
|
433
433
|
tone: "danger",
|
|
434
434
|
padding: "compact",
|
|
@@ -437,34 +437,34 @@ var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
|
437
437
|
})
|
|
438
438
|
]
|
|
439
439
|
}),
|
|
440
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ O(S, {
|
|
441
441
|
className: "flex-row justify-between sm:justify-between",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ D("div", { children: N === "preview" && /* @__PURE__ */ O(h, {
|
|
443
443
|
variant: "ghost",
|
|
444
444
|
onClick: () => {
|
|
445
445
|
P("select"), F(null), L(null), Z();
|
|
446
446
|
},
|
|
447
447
|
disabled: G,
|
|
448
|
-
children: [/* @__PURE__ */
|
|
449
|
-
}) }), /* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ D(l, { className: "size-4" }), M("bigconsole.dashboards.import.back", "Back")]
|
|
449
|
+
}) }), /* @__PURE__ */ O("div", {
|
|
450
450
|
className: "flex items-center gap-2",
|
|
451
451
|
children: [
|
|
452
|
-
N !== "complete" && /* @__PURE__ */
|
|
452
|
+
N !== "complete" && /* @__PURE__ */ D(h, {
|
|
453
453
|
variant: "outline",
|
|
454
454
|
onClick: A,
|
|
455
455
|
disabled: !$,
|
|
456
456
|
children: M("bigconsole.dashboards.import.cancel", "Cancel")
|
|
457
457
|
}),
|
|
458
|
-
N === "preview" && q?.isValid && /* @__PURE__ */
|
|
458
|
+
N === "preview" && q?.isValid && /* @__PURE__ */ O(h, {
|
|
459
459
|
onClick: ce,
|
|
460
460
|
disabled: G || q.warnings.length > 0 && !H,
|
|
461
|
-
children: [/* @__PURE__ */
|
|
461
|
+
children: [/* @__PURE__ */ D(f, { className: "size-4" }), M("bigconsole.dashboards.import.importButton", "Import Dashboard")]
|
|
462
462
|
}),
|
|
463
|
-
N === "importing" && /* @__PURE__ */
|
|
463
|
+
N === "importing" && /* @__PURE__ */ O("div", {
|
|
464
464
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
465
|
-
children: [/* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ D(w, { className: "size-4" }), M("bigconsole.dashboards.import.importing", "Importing...")]
|
|
466
466
|
}),
|
|
467
|
-
N === "complete" && /* @__PURE__ */
|
|
467
|
+
N === "complete" && /* @__PURE__ */ D(h, {
|
|
468
468
|
onClick: A,
|
|
469
469
|
children: M("bigconsole.dashboards.import.done", "Done")
|
|
470
470
|
})
|