@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.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/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
- package/dist/bigconsole/pages/DashboardsPage.js +638 -855
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- package/package.json +4 -4
|
@@ -4,10 +4,10 @@ import { BigConsoleDataSinkAnomalyDirection as n, BigConsoleDataSinkAnomalyMetho
|
|
|
4
4
|
import "../common/index.js";
|
|
5
5
|
import { Fragment as i, memo as a, useCallback as o, useMemo as ee, useState as s } from "react";
|
|
6
6
|
import { ChevronDown as c, ChevronRight as l } from "lucide-react";
|
|
7
|
-
import { Button as
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { Table as
|
|
7
|
+
import { Button as te, Dialog as ne, DialogContent as re, DialogDescription as u, DialogHeader as d, DialogTitle as ie, ThemedSelect as ae } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { useI18n as oe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { Fragment as se, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
import { Table as ce, TableBody as le, TableCell as m, TableHead as h, TableHeader as g, TableRow as _ } from "@burdenoff/fe-libs/ui/table";
|
|
11
11
|
// src/bigconsole/components/datasink/AnomalyDetectorPanel.tsx
|
|
12
12
|
var v = `h-control-md w-full rounded-input border border-[var(--color-border-default)] bg-bg-canvas px-2 text-text-primary ${e}`;
|
|
13
13
|
function y(e) {
|
|
@@ -16,7 +16,7 @@ function y(e) {
|
|
|
16
16
|
let n = Number(t);
|
|
17
17
|
return Number.isFinite(n) ? n : null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function ue(e, t, n) {
|
|
20
20
|
switch (n) {
|
|
21
21
|
case "index": return e.index - t.index;
|
|
22
22
|
case "value": return e.value - t.value;
|
|
@@ -25,18 +25,18 @@ function b(e, t, n) {
|
|
|
25
25
|
case "direction": return e.direction.localeCompare(t.direction);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
let { t: w } =
|
|
30
|
-
let e = y(I), t = y(R), n = y(B), i = y(
|
|
28
|
+
var b = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), x = a(function({ isOpen: e, dataSinkId: a, dataSinkName: x, columnSuggestions: S = [], onClose: C }) {
|
|
29
|
+
let { t: w } = oe(), { result: T, loading: E, error: D, detect: O, reset: k } = t(a), [A, de] = s(r.Zscore), [j, fe] = s(""), [M, N] = s(""), [P, F] = s(""), [I, L] = s("3"), [R, z] = s("1.5"), [B, pe] = s(""), [V, me] = s(""), [H, U] = s(null), [W, he] = s("score"), [G, K] = s("desc"), [ge, q] = s(/* @__PURE__ */ new Set()), J = o(async () => {
|
|
30
|
+
let e = y(I), t = y(R), n = y(B), i = y(V);
|
|
31
31
|
if (e === null || t === null || n === null || i === null) {
|
|
32
|
-
|
|
32
|
+
U(w("bigconsole.anomalies.errors.invalidNumber", "Enter valid numbers for the parameters."));
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
if (A === r.Threshold && n === void 0 && i === void 0) {
|
|
36
|
-
|
|
36
|
+
U(w("bigconsole.anomalies.errors.boundRequired", "Enter an upper and/or lower threshold."));
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
U(null), q(/* @__PURE__ */ new Set());
|
|
40
40
|
let a = {
|
|
41
41
|
method: A,
|
|
42
42
|
valueField: j.trim() || void 0,
|
|
@@ -58,25 +58,25 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
58
58
|
I,
|
|
59
59
|
R,
|
|
60
60
|
B,
|
|
61
|
-
|
|
61
|
+
V,
|
|
62
62
|
O,
|
|
63
63
|
w
|
|
64
|
-
]),
|
|
65
|
-
e ===
|
|
66
|
-
}, [
|
|
67
|
-
|
|
64
|
+
]), _e = o((e) => {
|
|
65
|
+
e === W ? K((e) => e === "asc" ? "desc" : "asc") : (he(e), K(e === "score" ? "desc" : "asc"));
|
|
66
|
+
}, [W]), ve = o((e) => {
|
|
67
|
+
q((t) => {
|
|
68
68
|
let n = new Set(t);
|
|
69
69
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
70
70
|
});
|
|
71
71
|
}, []), Y = ee(() => {
|
|
72
72
|
let e = [...T?.points ?? []];
|
|
73
|
-
return e.sort((e, t) => (
|
|
73
|
+
return e.sort((e, t) => (G === "asc" ? 1 : -1) * ue(e, t, W)), e;
|
|
74
74
|
}, [
|
|
75
75
|
T,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]),
|
|
79
|
-
e || (k(),
|
|
76
|
+
W,
|
|
77
|
+
G
|
|
78
|
+
]), ye = o((e) => {
|
|
79
|
+
e || (k(), U(null), q(/* @__PURE__ */ new Set()), C());
|
|
80
80
|
}, [C, k]), X = [
|
|
81
81
|
{
|
|
82
82
|
key: "index",
|
|
@@ -112,13 +112,13 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
112
112
|
label: w("bigconsole.anomalies.method.threshold", "Fixed threshold")
|
|
113
113
|
}
|
|
114
114
|
], Q = T?.summary, $ = "mb-1 block text-xs font-medium text-text-secondary";
|
|
115
|
-
return /* @__PURE__ */ f(
|
|
115
|
+
return /* @__PURE__ */ f(ne, {
|
|
116
116
|
open: e,
|
|
117
|
-
onOpenChange:
|
|
118
|
-
children: /* @__PURE__ */ p(
|
|
117
|
+
onOpenChange: ye,
|
|
118
|
+
children: /* @__PURE__ */ p(re, {
|
|
119
119
|
className: "flex max-h-[90vh] flex-col sm:max-w-3xl",
|
|
120
120
|
"data-testid": "anomaly-detector-panel",
|
|
121
|
-
children: [/* @__PURE__ */ p(
|
|
121
|
+
children: [/* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(ie, { children: w("bigconsole.anomalies.title", "Anomaly detector") }), /* @__PURE__ */ f(u, { children: x ? w("bigconsole.anomalies.descriptionNamed", "Find unusual values in a numeric series of {{name}}.", { name: x }) : w("bigconsole.anomalies.description", "Find unusual values in a numeric series of this data sink.") })] }), /* @__PURE__ */ p("div", {
|
|
122
122
|
className: "min-h-0 flex-1 space-y-form-gap overflow-y-auto",
|
|
123
123
|
children: [
|
|
124
124
|
/* @__PURE__ */ p("div", {
|
|
@@ -128,13 +128,13 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
128
128
|
htmlFor: "anomaly-method",
|
|
129
129
|
className: $,
|
|
130
130
|
children: w("bigconsole.anomalies.method.label", "Method")
|
|
131
|
-
}), /* @__PURE__ */ f(
|
|
131
|
+
}), /* @__PURE__ */ f(ae, {
|
|
132
132
|
id: "anomaly-method",
|
|
133
133
|
className: v,
|
|
134
134
|
value: A,
|
|
135
135
|
onChange: (e) => {
|
|
136
136
|
let t = Z.find((t) => t.value === e.target.value);
|
|
137
|
-
t &&
|
|
137
|
+
t && de(t.value);
|
|
138
138
|
},
|
|
139
139
|
children: Z.map((e) => /* @__PURE__ */ f("option", {
|
|
140
140
|
value: e.value,
|
|
@@ -153,11 +153,11 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
153
153
|
list: "anomaly-column-suggestions",
|
|
154
154
|
value: j,
|
|
155
155
|
placeholder: w("bigconsole.anomalies.valueFieldPlaceholder", "e.g. revenue (blank for a number list)"),
|
|
156
|
-
onChange: (e) =>
|
|
156
|
+
onChange: (e) => fe(e.target.value)
|
|
157
157
|
}),
|
|
158
158
|
/* @__PURE__ */ f("datalist", {
|
|
159
159
|
id: "anomaly-column-suggestions",
|
|
160
|
-
children:
|
|
160
|
+
children: S.map((e) => /* @__PURE__ */ f("option", { value: e }, e))
|
|
161
161
|
})
|
|
162
162
|
] }),
|
|
163
163
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
@@ -204,7 +204,7 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
204
204
|
value: R,
|
|
205
205
|
onChange: (e) => z(e.target.value)
|
|
206
206
|
})] }),
|
|
207
|
-
A === r.Threshold && /* @__PURE__ */ p(
|
|
207
|
+
A === r.Threshold && /* @__PURE__ */ p(se, { children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
208
208
|
htmlFor: "anomaly-upper",
|
|
209
209
|
className: $,
|
|
210
210
|
children: w("bigconsole.anomalies.upper", "Upper threshold")
|
|
@@ -213,7 +213,7 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
213
213
|
inputMode: "decimal",
|
|
214
214
|
className: v,
|
|
215
215
|
value: B,
|
|
216
|
-
onChange: (e) =>
|
|
216
|
+
onChange: (e) => pe(e.target.value)
|
|
217
217
|
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
218
218
|
htmlFor: "anomaly-lower",
|
|
219
219
|
className: $,
|
|
@@ -222,24 +222,24 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
222
222
|
id: "anomaly-lower",
|
|
223
223
|
inputMode: "decimal",
|
|
224
224
|
className: v,
|
|
225
|
-
value:
|
|
226
|
-
onChange: (e) =>
|
|
225
|
+
value: V,
|
|
226
|
+
onChange: (e) => me(e.target.value)
|
|
227
227
|
})] })] })
|
|
228
228
|
]
|
|
229
229
|
}),
|
|
230
230
|
/* @__PURE__ */ f("div", {
|
|
231
231
|
className: "flex items-center gap-2",
|
|
232
|
-
children: /* @__PURE__ */ f(
|
|
233
|
-
onClick:
|
|
232
|
+
children: /* @__PURE__ */ f(te, {
|
|
233
|
+
onClick: J,
|
|
234
234
|
disabled: E,
|
|
235
235
|
"data-testid": "anomaly-run",
|
|
236
236
|
children: E ? w("bigconsole.anomalies.running", "Running...") : w("bigconsole.anomalies.run", "Run")
|
|
237
237
|
})
|
|
238
238
|
}),
|
|
239
|
-
(
|
|
239
|
+
(H || D) && /* @__PURE__ */ f("p", {
|
|
240
240
|
role: "alert",
|
|
241
241
|
className: "text-sm text-status-error-text",
|
|
242
|
-
children:
|
|
242
|
+
children: H ?? D
|
|
243
243
|
}),
|
|
244
244
|
Q && /* @__PURE__ */ p("div", {
|
|
245
245
|
className: "space-y-2",
|
|
@@ -253,49 +253,49 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
253
253
|
}), Q.flagged > Y.length && ` ${w("bigconsole.anomalies.showingTop", "Showing the {{count}} most extreme.", { count: Y.length })}`]
|
|
254
254
|
}),
|
|
255
255
|
Q.truncated && /* @__PURE__ */ f("p", {
|
|
256
|
-
className: "text-sm text-status-warning-text",
|
|
256
|
+
className: "text-sm text-[var(--color-status-warning-text)]",
|
|
257
257
|
children: w("bigconsole.anomalies.truncated", "The series was very large; only the first rows were analysed.")
|
|
258
258
|
}),
|
|
259
259
|
/* @__PURE__ */ f("p", {
|
|
260
260
|
className: "text-xs text-text-muted",
|
|
261
261
|
children: w("bigconsole.anomalies.stats", "Mean {{mean}} · σ {{std}} · normal range {{low}} to {{high}}", {
|
|
262
|
-
mean:
|
|
263
|
-
std:
|
|
264
|
-
low:
|
|
265
|
-
high:
|
|
262
|
+
mean: b(Q.mean),
|
|
263
|
+
std: b(Q.stdDev),
|
|
264
|
+
low: b(Q.lowerBound),
|
|
265
|
+
high: b(Q.upperBound)
|
|
266
266
|
})
|
|
267
267
|
}),
|
|
268
268
|
Y.length === 0 ? /* @__PURE__ */ f("p", {
|
|
269
269
|
className: "text-sm text-text-secondary",
|
|
270
270
|
children: w("bigconsole.anomalies.none", "No anomalies found with these settings.")
|
|
271
|
-
}) : /* @__PURE__ */ p(
|
|
272
|
-
"aria-sort":
|
|
271
|
+
}) : /* @__PURE__ */ p(ce, { children: [/* @__PURE__ */ f(g, { children: /* @__PURE__ */ p(_, { children: [/* @__PURE__ */ f(h, { className: "w-8" }), X.map((e) => /* @__PURE__ */ f(h, {
|
|
272
|
+
"aria-sort": W === e.key ? G === "asc" ? "ascending" : "descending" : "none",
|
|
273
273
|
children: /* @__PURE__ */ p("button", {
|
|
274
274
|
type: "button",
|
|
275
275
|
className: "inline-flex items-center gap-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
|
|
276
|
-
onClick: () =>
|
|
277
|
-
children: [e.label,
|
|
276
|
+
onClick: () => _e(e.key),
|
|
277
|
+
children: [e.label, W === e.key && /* @__PURE__ */ f("span", {
|
|
278
278
|
"aria-hidden": "true",
|
|
279
|
-
children:
|
|
279
|
+
children: G === "asc" ? "▲" : "▼"
|
|
280
280
|
})]
|
|
281
281
|
})
|
|
282
|
-
}, e.key))] }) }), /* @__PURE__ */ f(
|
|
283
|
-
let t =
|
|
282
|
+
}, e.key))] }) }), /* @__PURE__ */ f(le, { children: Y.map((e) => {
|
|
283
|
+
let t = ge.has(e.index);
|
|
284
284
|
return /* @__PURE__ */ p(i, { children: [/* @__PURE__ */ p(_, { children: [
|
|
285
285
|
/* @__PURE__ */ f(m, { children: /* @__PURE__ */ f("button", {
|
|
286
286
|
type: "button",
|
|
287
287
|
"aria-expanded": t,
|
|
288
288
|
"aria-label": w("bigconsole.anomalies.toggleRow", "Show source row"),
|
|
289
289
|
className: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
|
|
290
|
-
onClick: () =>
|
|
290
|
+
onClick: () => ve(e.index),
|
|
291
291
|
children: f(t ? c : l, { className: "h-4 w-4" })
|
|
292
292
|
}) }),
|
|
293
293
|
/* @__PURE__ */ f(m, { children: e.index }),
|
|
294
294
|
/* @__PURE__ */ f(m, { children: e.label }),
|
|
295
|
-
/* @__PURE__ */ f(m, { children:
|
|
296
|
-
/* @__PURE__ */ f(m, { children:
|
|
295
|
+
/* @__PURE__ */ f(m, { children: b(e.value) }),
|
|
296
|
+
/* @__PURE__ */ f(m, { children: b(e.score) }),
|
|
297
297
|
/* @__PURE__ */ f(m, { children: /* @__PURE__ */ f("span", {
|
|
298
|
-
className: `rounded-pill px-2 py-1 text-xs ${e.direction === n.High ? "bg-status-error-
|
|
298
|
+
className: `rounded-pill px-2 py-1 text-xs ${e.direction === n.High ? "border border-[var(--color-status-error-border)] bg-[var(--color-status-error-bgSubtle)] text-[var(--color-status-error-text)]" : "border border-[var(--color-status-warning-border)] bg-[var(--color-status-warning-bgSubtle)] text-[var(--color-status-warning-text)]"}`,
|
|
299
299
|
children: e.direction === n.High ? w("bigconsole.anomalies.direction.high", "High") : w("bigconsole.anomalies.direction.low", "Low")
|
|
300
300
|
}) })
|
|
301
301
|
] }), t && /* @__PURE__ */ f(_, { children: /* @__PURE__ */ f(m, {
|
|
@@ -313,4 +313,4 @@ var x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(fu
|
|
|
313
313
|
})
|
|
314
314
|
});
|
|
315
315
|
});
|
|
316
|
-
export {
|
|
316
|
+
export { x as AnomalyDetectorPanel, x as default };
|
|
@@ -1,96 +1,89 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { DATA_SINK_STATUS_TONE as t, statusToneClasses as n } from "../../utils/statusTone.js";
|
|
3
|
+
import { memo as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
5
|
// src/bigconsole/components/datasink/DataSinkStatusBadge.tsx
|
|
5
|
-
var
|
|
6
|
-
let
|
|
6
|
+
var o = r(function({ status: r, size: o = "md", showIcon: s = !0 }) {
|
|
7
|
+
let c = e(), l = {
|
|
7
8
|
sm: "px-2 py-0.5 text-xs",
|
|
8
9
|
md: "px-2.5 py-1 text-sm",
|
|
9
10
|
lg: "px-3 py-1.5 text-base"
|
|
10
|
-
},
|
|
11
|
+
}, u = {
|
|
11
12
|
sm: "w-3 h-3",
|
|
12
13
|
md: "w-4 h-4",
|
|
13
14
|
lg: "w-5 h-5"
|
|
14
|
-
},
|
|
15
|
+
}, d = {
|
|
15
16
|
ready: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
icon: /* @__PURE__ */ n("svg", {
|
|
19
|
-
className: c[i],
|
|
17
|
+
icon: /* @__PURE__ */ i("svg", {
|
|
18
|
+
className: u[o],
|
|
20
19
|
fill: "none",
|
|
21
20
|
stroke: "currentColor",
|
|
22
21
|
viewBox: "0 0 24 24",
|
|
23
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ i("path", {
|
|
24
23
|
strokeLinecap: "round",
|
|
25
24
|
strokeLinejoin: "round",
|
|
26
25
|
strokeWidth: 2,
|
|
27
26
|
d: "M5 13l4 4L19 7"
|
|
28
27
|
})
|
|
29
28
|
}),
|
|
30
|
-
label:
|
|
29
|
+
label: c("bigconsole.dataSinks.status.ready", "Ready")
|
|
31
30
|
},
|
|
32
31
|
error: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
icon: /* @__PURE__ */ n("svg", {
|
|
36
|
-
className: c[i],
|
|
32
|
+
icon: /* @__PURE__ */ i("svg", {
|
|
33
|
+
className: u[o],
|
|
37
34
|
fill: "none",
|
|
38
35
|
stroke: "currentColor",
|
|
39
36
|
viewBox: "0 0 24 24",
|
|
40
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ i("path", {
|
|
41
38
|
strokeLinecap: "round",
|
|
42
39
|
strokeLinejoin: "round",
|
|
43
40
|
strokeWidth: 2,
|
|
44
41
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
45
42
|
})
|
|
46
43
|
}),
|
|
47
|
-
label:
|
|
44
|
+
label: c("bigconsole.dataSinks.status.error", "Error")
|
|
48
45
|
},
|
|
49
46
|
stale: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
icon: /* @__PURE__ */ n("svg", {
|
|
53
|
-
className: c[i],
|
|
47
|
+
icon: /* @__PURE__ */ i("svg", {
|
|
48
|
+
className: u[o],
|
|
54
49
|
fill: "none",
|
|
55
50
|
stroke: "currentColor",
|
|
56
51
|
viewBox: "0 0 24 24",
|
|
57
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ i("path", {
|
|
58
53
|
strokeLinecap: "round",
|
|
59
54
|
strokeLinejoin: "round",
|
|
60
55
|
strokeWidth: 2,
|
|
61
56
|
d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
62
57
|
})
|
|
63
58
|
}),
|
|
64
|
-
label:
|
|
59
|
+
label: c("bigconsole.dataSinks.status.stale", "Stale")
|
|
65
60
|
},
|
|
66
61
|
refreshing: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
icon: /* @__PURE__ */ n("svg", {
|
|
70
|
-
className: `${c[i]} animate-spin`,
|
|
62
|
+
icon: /* @__PURE__ */ i("svg", {
|
|
63
|
+
className: `${u[o]} animate-spin`,
|
|
71
64
|
fill: "none",
|
|
72
65
|
stroke: "currentColor",
|
|
73
66
|
viewBox: "0 0 24 24",
|
|
74
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ i("path", {
|
|
75
68
|
strokeLinecap: "round",
|
|
76
69
|
strokeLinejoin: "round",
|
|
77
70
|
strokeWidth: 2,
|
|
78
71
|
d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
|
|
79
72
|
})
|
|
80
73
|
}),
|
|
81
|
-
label:
|
|
74
|
+
label: c("bigconsole.dataSinks.status.refreshing", "Refreshing")
|
|
82
75
|
}
|
|
83
|
-
}[
|
|
84
|
-
return
|
|
76
|
+
}[r];
|
|
77
|
+
return d ? /* @__PURE__ */ a("span", {
|
|
85
78
|
className: `
|
|
86
79
|
inline-flex items-center gap-1.5
|
|
87
|
-
${
|
|
88
|
-
${
|
|
89
|
-
${l.text}
|
|
80
|
+
${l[o]}
|
|
81
|
+
${n(t, r)}
|
|
90
82
|
rounded-full
|
|
83
|
+
border
|
|
91
84
|
font-medium
|
|
92
85
|
`,
|
|
93
|
-
children: [
|
|
86
|
+
children: [s && d.icon, /* @__PURE__ */ i("span", { children: d.label })]
|
|
94
87
|
}) : null;
|
|
95
88
|
});
|
|
96
|
-
export {
|
|
89
|
+
export { o as DataSinkStatusBadge, o as default };
|
|
@@ -108,9 +108,9 @@ var C = 6, w = 1e7, T = 5e4, E = t(function({ isOpen: t, dataSinkName: E, hasExi
|
|
|
108
108
|
children: j("bigconsole.dataSinks.importGuide.uploadCsvBody", "For a quick, one-off import, upload a spreadsheet export and it becomes available to your dashboards right away.")
|
|
109
109
|
})] }),
|
|
110
110
|
D && /* @__PURE__ */ S("div", {
|
|
111
|
-
className: "flex items-start gap-2 rounded-lg border border-status-warning-border bg-status-warning-
|
|
112
|
-
children: [/* @__PURE__ */ x(o, { className: "size-4 shrink-0 text-status-warning-text mt-0.5" }), /* @__PURE__ */ x("p", {
|
|
113
|
-
className: "text-sm text-status-warning-text",
|
|
111
|
+
className: "flex items-start gap-2 rounded-lg border border-[var(--color-status-warning-border)] bg-[var(--color-status-warning-bgSubtle)] px-3 py-2",
|
|
112
|
+
children: [/* @__PURE__ */ x(o, { className: "size-4 shrink-0 text-[var(--color-status-warning-text)] mt-0.5" }), /* @__PURE__ */ x("p", {
|
|
113
|
+
className: "text-sm text-[var(--color-status-warning-text)]",
|
|
114
114
|
children: j("bigconsole.dataSinks.importGuide.hasExistingDataWarning", "This data sink already has data — importing a CSV will replace it.")
|
|
115
115
|
})]
|
|
116
116
|
}),
|
|
@@ -139,7 +139,7 @@ var C = 6, w = 1e7, T = 5e4, E = t(function({ isOpen: t, dataSinkName: E, hasExi
|
|
|
139
139
|
]
|
|
140
140
|
}),
|
|
141
141
|
R && /* @__PURE__ */ x("div", {
|
|
142
|
-
className: "rounded-lg border border-status-error-border bg-status-error-
|
|
142
|
+
className: "rounded-lg border border-[var(--color-status-error-border)] bg-[var(--color-status-error-bgSubtle)] px-3 py-2",
|
|
143
143
|
children: /* @__PURE__ */ x("p", {
|
|
144
144
|
className: "text-sm text-status-error-text",
|
|
145
145
|
children: R
|