@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,12 +4,12 @@ import { BigConsoleAnomalyDetectionMethod as n } from "../../../generated/wspace
|
|
|
4
4
|
import "../common/index.js";
|
|
5
5
|
import { memo as r, useCallback as i, useEffect as a, useMemo as o, useState as s } from "react";
|
|
6
6
|
import { ArrowDown as c, ArrowUp as l, CheckCircle as u, Loader2 as d, Play as f, XCircle as p } from "lucide-react";
|
|
7
|
-
import { Button as m, Dialog as h, DialogContent as g, DialogDescription as _, DialogHeader as v, DialogTitle as y } from "@burdenoff/fe-libs/ui";
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { useLazyQuery as
|
|
10
|
-
import { Fragment as
|
|
7
|
+
import { Button as m, Dialog as h, DialogContent as g, DialogDescription as _, DialogHeader as v, DialogTitle as y, ThemedSelect as b } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { useI18n as x } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { useLazyQuery as S } from "@apollo/client/react";
|
|
10
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
11
|
// src/bigconsole/components/insights/OutlierSpottingDialog.tsx
|
|
12
|
-
var
|
|
12
|
+
var E = [
|
|
13
13
|
{
|
|
14
14
|
value: n.Zscore,
|
|
15
15
|
labelKey: "bigconsole.analysis.method.zscore",
|
|
@@ -32,7 +32,7 @@ var T = [
|
|
|
32
32
|
descriptionFallback: "Flags every point strictly above a fixed cutoff."
|
|
33
33
|
}
|
|
34
34
|
];
|
|
35
|
-
function
|
|
35
|
+
function D(e, t, r, i) {
|
|
36
36
|
let a = i ? `“${i}”` : `point ${e.index + 1}`;
|
|
37
37
|
if (t === n.Zscore) {
|
|
38
38
|
let t = r ?? 3;
|
|
@@ -40,7 +40,7 @@ function E(e, t, r, i) {
|
|
|
40
40
|
}
|
|
41
41
|
return t === n.Iqr ? `${a}: ${e.value} lies ${e.score.toFixed(2)} outside the 1.5×IQR fence (${e.direction === "HIGH" ? "above Q3" : "below Q1"}).` : `${a}: ${e.value} exceeds the threshold ${r ?? 0} by ${e.score.toFixed(2)}.`;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
43
|
+
var O = {
|
|
44
44
|
width: "100%",
|
|
45
45
|
minHeight: "var(--size-controlHeight-md)",
|
|
46
46
|
padding: "0 var(--space-controlGap)",
|
|
@@ -49,80 +49,80 @@ var D = {
|
|
|
49
49
|
backgroundColor: "var(--color-bg-canvas)",
|
|
50
50
|
color: "var(--color-text-primary)",
|
|
51
51
|
fontSize: "var(--font-size-body-sm)"
|
|
52
|
-
},
|
|
52
|
+
}, k = {
|
|
53
53
|
display: "block",
|
|
54
54
|
marginBottom: "2px",
|
|
55
55
|
fontSize: "var(--font-size-body-sm)",
|
|
56
56
|
fontWeight: "var(--font-weight-medium)",
|
|
57
57
|
color: "var(--color-text-secondary)"
|
|
58
|
-
},
|
|
58
|
+
}, A = {
|
|
59
59
|
padding: "var(--space-controlGap)",
|
|
60
60
|
textAlign: "left",
|
|
61
61
|
fontSize: "var(--font-size-body-sm)",
|
|
62
62
|
borderBottom: "1px solid var(--color-border-subtle)",
|
|
63
63
|
color: "var(--color-text-primary)"
|
|
64
|
-
},
|
|
65
|
-
let { t:
|
|
64
|
+
}, j = r(function({ open: r, onClose: j, widgetTitle: M, series: N }) {
|
|
65
|
+
let { t: P } = x(), [F, I] = s(""), [L, R] = s(n.Zscore), [z, B] = s("3"), [V, H] = s(null), [U, W] = s(null), [G, { loading: K }] = S(e, { fetchPolicy: "no-cache" });
|
|
66
66
|
a(() => {
|
|
67
|
-
r && (
|
|
68
|
-
}, [r,
|
|
69
|
-
let
|
|
70
|
-
|
|
71
|
-
values:
|
|
72
|
-
method:
|
|
73
|
-
threshold:
|
|
67
|
+
r && (I(N[0]?.field ?? ""), R(n.Zscore), B("3"), H(null), W(null));
|
|
68
|
+
}, [r, N]);
|
|
69
|
+
let q = o(() => N.find((e) => e.field === F) ?? N[0] ?? null, [N, F]), J = E.find((e) => e.value === L) ?? E[0], Y = L !== n.Iqr, X = Number.parseFloat(z), Z = !Y || Number.isFinite(X) && (L !== n.Zscore || X > 0), Q = !K && q !== null && q.values.length > 0 && Z, $ = i(() => {
|
|
70
|
+
q && Z && (W(null), H(null), G({ variables: { input: {
|
|
71
|
+
values: q.values,
|
|
72
|
+
method: L,
|
|
73
|
+
threshold: Y ? X : null
|
|
74
74
|
} } }).then((e) => {
|
|
75
|
-
e.data &&
|
|
75
|
+
e.data && H(e.data.detectAnomalies);
|
|
76
76
|
}).catch((e) => {
|
|
77
|
-
|
|
77
|
+
W(e instanceof Error ? e.message : String(e));
|
|
78
78
|
}));
|
|
79
79
|
}, [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
J,
|
|
83
|
-
K,
|
|
80
|
+
G,
|
|
81
|
+
L,
|
|
84
82
|
Y,
|
|
85
|
-
|
|
83
|
+
q,
|
|
84
|
+
X,
|
|
85
|
+
Z
|
|
86
86
|
]);
|
|
87
|
-
return /* @__PURE__ */
|
|
87
|
+
return /* @__PURE__ */ w(h, {
|
|
88
88
|
open: r,
|
|
89
|
-
onOpenChange: (e) => !e && !
|
|
90
|
-
children: /* @__PURE__ */
|
|
89
|
+
onOpenChange: (e) => !e && !K && j(),
|
|
90
|
+
children: /* @__PURE__ */ T(g, {
|
|
91
91
|
className: "sm:max-w-xl flex max-h-[calc(100dvh-3rem)] flex-col overflow-hidden",
|
|
92
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ T(v, {
|
|
93
93
|
className: "shrink-0",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
95
|
-
}), /* @__PURE__ */
|
|
94
|
+
children: [/* @__PURE__ */ w(y, { children: P("bigconsole.analysis.outliers.title", "Spot outliers") }), /* @__PURE__ */ w(_, { children: P("bigconsole.analysis.outliers.description", "Statistical scan of “{{title}}” — flagged points are readings worth a second look, not errors.", { title: M }) })]
|
|
95
|
+
}), /* @__PURE__ */ w("div", {
|
|
96
96
|
className: "min-h-0 flex-1 overflow-y-auto py-4 space-y-4",
|
|
97
|
-
children:
|
|
97
|
+
children: N.length === 0 ? /* @__PURE__ */ w(t, {
|
|
98
98
|
headingLevel: 3,
|
|
99
99
|
tone: "neutral",
|
|
100
100
|
padding: "compact",
|
|
101
|
-
title:
|
|
102
|
-
description:
|
|
101
|
+
title: P("bigconsole.analysis.outliers.noSeriesTitle", "Nothing to analyze"),
|
|
102
|
+
description: P("bigconsole.analysis.outliers.noSeriesDescription", "This widget has no numeric series in its current data."),
|
|
103
103
|
"data-testid": "outlier-no-series"
|
|
104
|
-
}) : /* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
104
|
+
}) : /* @__PURE__ */ T(C, { children: [
|
|
105
|
+
/* @__PURE__ */ T("div", {
|
|
106
106
|
style: {
|
|
107
107
|
display: "grid",
|
|
108
108
|
gridTemplateColumns: "repeat(auto-fit, minmax(min(160px, 100%), 1fr))",
|
|
109
109
|
gap: "var(--space-controlGap)"
|
|
110
110
|
},
|
|
111
111
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
113
113
|
htmlFor: "outlier-series",
|
|
114
|
-
style:
|
|
115
|
-
children:
|
|
116
|
-
}), /* @__PURE__ */
|
|
114
|
+
style: k,
|
|
115
|
+
children: P("bigconsole.analysis.outliers.seriesLabel", "Series")
|
|
116
|
+
}), /* @__PURE__ */ w(b, {
|
|
117
117
|
id: "outlier-series",
|
|
118
|
-
value:
|
|
118
|
+
value: q?.field ?? "",
|
|
119
119
|
onChange: (e) => {
|
|
120
|
-
|
|
120
|
+
I(e.target.value), H(null);
|
|
121
121
|
},
|
|
122
|
-
disabled:
|
|
123
|
-
style:
|
|
122
|
+
disabled: K,
|
|
123
|
+
style: O,
|
|
124
124
|
"data-testid": "outlier-series-select",
|
|
125
|
-
children:
|
|
125
|
+
children: N.map((e) => /* @__PURE__ */ T("option", {
|
|
126
126
|
value: e.field,
|
|
127
127
|
children: [
|
|
128
128
|
e.label,
|
|
@@ -132,185 +132,185 @@ var D = {
|
|
|
132
132
|
]
|
|
133
133
|
}, e.field))
|
|
134
134
|
})] }),
|
|
135
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
136
136
|
htmlFor: "outlier-method",
|
|
137
|
-
style:
|
|
138
|
-
children:
|
|
139
|
-
}), /* @__PURE__ */
|
|
137
|
+
style: k,
|
|
138
|
+
children: P("bigconsole.analysis.outliers.methodLabel", "Method")
|
|
139
|
+
}), /* @__PURE__ */ w(b, {
|
|
140
140
|
id: "outlier-method",
|
|
141
|
-
value:
|
|
141
|
+
value: L,
|
|
142
142
|
onChange: (e) => {
|
|
143
|
-
|
|
143
|
+
R(e.target.value), H(null);
|
|
144
144
|
},
|
|
145
|
-
disabled:
|
|
146
|
-
style:
|
|
145
|
+
disabled: K,
|
|
146
|
+
style: O,
|
|
147
147
|
"data-testid": "outlier-method-select",
|
|
148
|
-
children:
|
|
148
|
+
children: E.map((e) => /* @__PURE__ */ w("option", {
|
|
149
149
|
value: e.value,
|
|
150
|
-
children:
|
|
150
|
+
children: P(e.labelKey, e.fallback)
|
|
151
151
|
}, e.value))
|
|
152
152
|
})] }),
|
|
153
|
-
|
|
153
|
+
Y && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
154
154
|
htmlFor: "outlier-threshold",
|
|
155
|
-
style:
|
|
156
|
-
children:
|
|
157
|
-
}), /* @__PURE__ */
|
|
155
|
+
style: k,
|
|
156
|
+
children: L === n.Zscore ? P("bigconsole.analysis.outliers.stddevLabel", "Stddev multiplier") : P("bigconsole.analysis.outliers.thresholdLabel", "Threshold")
|
|
157
|
+
}), /* @__PURE__ */ w("input", {
|
|
158
158
|
id: "outlier-threshold",
|
|
159
159
|
type: "number",
|
|
160
160
|
inputMode: "decimal",
|
|
161
|
-
value:
|
|
161
|
+
value: z,
|
|
162
162
|
onChange: (e) => {
|
|
163
|
-
|
|
163
|
+
B(e.target.value), H(null);
|
|
164
164
|
},
|
|
165
|
-
disabled:
|
|
166
|
-
style:
|
|
165
|
+
disabled: K,
|
|
166
|
+
style: O,
|
|
167
167
|
"data-testid": "outlier-threshold-input"
|
|
168
168
|
})] })
|
|
169
169
|
]
|
|
170
170
|
}),
|
|
171
|
-
|
|
171
|
+
J && /* @__PURE__ */ w("p", {
|
|
172
172
|
style: {
|
|
173
173
|
fontSize: "var(--font-size-body-sm)",
|
|
174
174
|
color: "var(--color-text-muted)",
|
|
175
175
|
margin: 0
|
|
176
176
|
},
|
|
177
|
-
children:
|
|
177
|
+
children: P(J.descriptionKey, J.descriptionFallback)
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ T("div", {
|
|
180
180
|
style: {
|
|
181
181
|
display: "flex",
|
|
182
182
|
alignItems: "center",
|
|
183
183
|
gap: "var(--space-controlGap)"
|
|
184
184
|
},
|
|
185
|
-
children: [/* @__PURE__ */
|
|
186
|
-
onClick:
|
|
187
|
-
disabled: !
|
|
185
|
+
children: [/* @__PURE__ */ T(m, {
|
|
186
|
+
onClick: $,
|
|
187
|
+
disabled: !Q,
|
|
188
188
|
"data-testid": "outlier-run",
|
|
189
|
-
children: [
|
|
189
|
+
children: [K ? /* @__PURE__ */ w(d, {
|
|
190
190
|
className: "size-4 animate-spin",
|
|
191
191
|
"aria-hidden": "true"
|
|
192
|
-
}) : /* @__PURE__ */
|
|
192
|
+
}) : /* @__PURE__ */ w(f, {
|
|
193
193
|
className: "size-4",
|
|
194
194
|
"aria-hidden": "true"
|
|
195
|
-
}),
|
|
196
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), P("bigconsole.analysis.outliers.run", "Run analysis")]
|
|
196
|
+
}), /* @__PURE__ */ w("span", {
|
|
197
197
|
style: {
|
|
198
198
|
fontSize: "var(--font-size-body-sm)",
|
|
199
199
|
color: "var(--color-text-muted)"
|
|
200
200
|
},
|
|
201
|
-
children:
|
|
202
|
-
count:
|
|
203
|
-
field:
|
|
201
|
+
children: P("bigconsole.analysis.outliers.pointCount", "{{count}} data points from “{{field}}”", {
|
|
202
|
+
count: q?.values.length ?? 0,
|
|
203
|
+
field: q?.label ?? ""
|
|
204
204
|
})
|
|
205
205
|
})]
|
|
206
206
|
}),
|
|
207
|
-
|
|
207
|
+
U && /* @__PURE__ */ w(t, {
|
|
208
208
|
headingLevel: 3,
|
|
209
209
|
tone: "danger",
|
|
210
210
|
padding: "compact",
|
|
211
|
-
icon: /* @__PURE__ */
|
|
212
|
-
title:
|
|
213
|
-
description:
|
|
211
|
+
icon: /* @__PURE__ */ w(p, { className: "size-4" }),
|
|
212
|
+
title: P("bigconsole.analysis.outliers.runFailedTitle", "Analysis failed"),
|
|
213
|
+
description: U,
|
|
214
214
|
"data-testid": "outlier-error"
|
|
215
215
|
}),
|
|
216
|
-
|
|
216
|
+
V && !U && /* @__PURE__ */ w(C, { children: V.count === 0 ? /* @__PURE__ */ w(t, {
|
|
217
217
|
headingLevel: 3,
|
|
218
218
|
tone: "success",
|
|
219
219
|
padding: "compact",
|
|
220
|
-
icon: /* @__PURE__ */
|
|
221
|
-
title:
|
|
222
|
-
description:
|
|
220
|
+
icon: /* @__PURE__ */ w(u, { className: "size-4" }),
|
|
221
|
+
title: P("bigconsole.analysis.outliers.cleanTitle", "No outliers detected"),
|
|
222
|
+
description: P("bigconsole.analysis.outliers.cleanDescription", "Every point in “{{field}}” falls inside the chosen bounds.", { field: q?.label ?? "" }),
|
|
223
223
|
"data-testid": "outlier-clean"
|
|
224
|
-
}) : /* @__PURE__ */
|
|
224
|
+
}) : /* @__PURE__ */ w(t, {
|
|
225
225
|
headingLevel: 3,
|
|
226
226
|
tone: "warning",
|
|
227
227
|
padding: "compact",
|
|
228
|
-
icon: /* @__PURE__ */
|
|
229
|
-
title:
|
|
230
|
-
count:
|
|
231
|
-
plural:
|
|
228
|
+
icon: /* @__PURE__ */ w(l, { className: "size-4" }),
|
|
229
|
+
title: P("bigconsole.analysis.outliers.foundTitle", "{{count}} outlier{{plural}} flagged", {
|
|
230
|
+
count: V.count,
|
|
231
|
+
plural: V.count === 1 ? "" : "s"
|
|
232
232
|
}),
|
|
233
|
-
description:
|
|
233
|
+
description: P("bigconsole.analysis.outliers.foundDescription", "Read-only findings — nothing in the dashboard is changed."),
|
|
234
234
|
"data-testid": "outlier-results",
|
|
235
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ T("table", {
|
|
236
236
|
style: {
|
|
237
237
|
width: "100%",
|
|
238
238
|
borderCollapse: "collapse"
|
|
239
239
|
},
|
|
240
|
-
children: [/* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ T("tr", { children: [
|
|
241
|
+
/* @__PURE__ */ w("th", {
|
|
242
242
|
style: {
|
|
243
|
-
...
|
|
243
|
+
...A,
|
|
244
244
|
color: "var(--color-text-secondary)"
|
|
245
245
|
},
|
|
246
|
-
children:
|
|
246
|
+
children: P("bigconsole.analysis.outliers.colPoint", "Point")
|
|
247
247
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ w("th", {
|
|
249
249
|
style: {
|
|
250
|
-
...
|
|
250
|
+
...A,
|
|
251
251
|
color: "var(--color-text-secondary)"
|
|
252
252
|
},
|
|
253
|
-
children:
|
|
253
|
+
children: P("bigconsole.analysis.outliers.colValue", "Value")
|
|
254
254
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ w("th", {
|
|
256
256
|
style: {
|
|
257
|
-
...
|
|
257
|
+
...A,
|
|
258
258
|
color: "var(--color-text-secondary)"
|
|
259
259
|
},
|
|
260
|
-
children:
|
|
260
|
+
children: P("bigconsole.analysis.outliers.colDirection", "Direction")
|
|
261
261
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ w("th", {
|
|
263
263
|
style: {
|
|
264
|
-
...
|
|
264
|
+
...A,
|
|
265
265
|
color: "var(--color-text-secondary)"
|
|
266
266
|
},
|
|
267
|
-
children:
|
|
267
|
+
children: P("bigconsole.analysis.outliers.colScore", "Score")
|
|
268
268
|
})
|
|
269
|
-
] }) }), /* @__PURE__ */
|
|
270
|
-
let t =
|
|
271
|
-
return /* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
style:
|
|
274
|
-
children: [t ?? e.index + 1, /* @__PURE__ */
|
|
269
|
+
] }) }), /* @__PURE__ */ w("tbody", { children: V.anomalies.map((e) => {
|
|
270
|
+
let t = q?.pointLabels[e.index] ?? null;
|
|
271
|
+
return /* @__PURE__ */ T("tr", { children: [
|
|
272
|
+
/* @__PURE__ */ T("td", {
|
|
273
|
+
style: A,
|
|
274
|
+
children: [t ?? e.index + 1, /* @__PURE__ */ w("span", {
|
|
275
275
|
style: {
|
|
276
276
|
display: "block",
|
|
277
277
|
fontSize: "var(--font-size-xs)",
|
|
278
278
|
color: "var(--color-text-muted)"
|
|
279
279
|
},
|
|
280
|
-
children:
|
|
280
|
+
children: D(e, L, Y ? X : void 0, t)
|
|
281
281
|
})]
|
|
282
282
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ w("td", {
|
|
284
284
|
style: {
|
|
285
|
-
...
|
|
285
|
+
...A,
|
|
286
286
|
whiteSpace: "nowrap"
|
|
287
287
|
},
|
|
288
288
|
children: e.value
|
|
289
289
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
style:
|
|
292
|
-
children: /* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ w("td", {
|
|
291
|
+
style: A,
|
|
292
|
+
children: /* @__PURE__ */ T("span", {
|
|
293
293
|
style: {
|
|
294
294
|
display: "inline-flex",
|
|
295
295
|
alignItems: "center",
|
|
296
296
|
gap: "var(--space-iconGap)",
|
|
297
297
|
color: e.direction === "HIGH" ? "var(--color-status-error-text)" : "var(--color-status-info-text)"
|
|
298
298
|
},
|
|
299
|
-
children: [e.direction === "HIGH" ? /* @__PURE__ */
|
|
299
|
+
children: [e.direction === "HIGH" ? /* @__PURE__ */ w(l, {
|
|
300
300
|
className: "size-3.5",
|
|
301
301
|
"aria-hidden": "true"
|
|
302
|
-
}) : /* @__PURE__ */
|
|
302
|
+
}) : /* @__PURE__ */ w(c, {
|
|
303
303
|
className: "size-3.5",
|
|
304
304
|
"aria-hidden": "true"
|
|
305
|
-
}), e.direction === "HIGH" ?
|
|
305
|
+
}), e.direction === "HIGH" ? P("bigconsole.analysis.outliers.high", "High") : P("bigconsole.analysis.outliers.low", "Low")]
|
|
306
306
|
})
|
|
307
307
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ w("td", {
|
|
309
309
|
style: {
|
|
310
|
-
...
|
|
310
|
+
...A,
|
|
311
311
|
whiteSpace: "nowrap"
|
|
312
312
|
},
|
|
313
|
-
children:
|
|
313
|
+
children: L === n.Zscore ? `${e.score.toFixed(2)}σ` : `+${e.score.toFixed(2)}`
|
|
314
314
|
})
|
|
315
315
|
] }, e.index);
|
|
316
316
|
}) })]
|
|
@@ -321,4 +321,4 @@ var D = {
|
|
|
321
321
|
})
|
|
322
322
|
});
|
|
323
323
|
});
|
|
324
|
-
export {
|
|
324
|
+
export { j as OutlierSpottingDialog, j as default, D as explainAnomaly };
|
|
@@ -96,11 +96,11 @@ var x = "flex flex-col gap-3 border-t border-[var(--color-border-subtle)] bg-bg-
|
|
|
96
96
|
children: l.summary
|
|
97
97
|
}),
|
|
98
98
|
j && l.declineReason && /* @__PURE__ */ y("p", {
|
|
99
|
-
className: "text-xs text-status-warning-text",
|
|
99
|
+
className: "text-xs text-[var(--color-status-warning-text)]",
|
|
100
100
|
children: l.declineReason
|
|
101
101
|
}),
|
|
102
102
|
P && /* @__PURE__ */ y("p", {
|
|
103
|
-
className: "text-xs text-status-warning-text",
|
|
103
|
+
className: "text-xs text-[var(--color-status-warning-text)]",
|
|
104
104
|
"data-testid": "kpi-change-status-notice",
|
|
105
105
|
children: P
|
|
106
106
|
}),
|
|
@@ -25,7 +25,7 @@ var i = ({ narrative: i, loading: a = !1 }) => {
|
|
|
25
25
|
children: i.summary
|
|
26
26
|
}),
|
|
27
27
|
i.status === "DECLINED" && i.declineReason && /* @__PURE__ */ t("p", {
|
|
28
|
-
className: "text-xs text-status-warning-text",
|
|
28
|
+
className: "text-xs text-[var(--color-status-warning-text)]",
|
|
29
29
|
children: i.declineReason
|
|
30
30
|
}),
|
|
31
31
|
i.claims.length > 0 && /* @__PURE__ */ t("ul", {
|
|
@@ -81,6 +81,9 @@ var d = r(function({ summary: r, loading: d, error: f, canCreate: p, onRetry: m,
|
|
|
81
81
|
}) : null]
|
|
82
82
|
}) : /* @__PURE__ */ l(s, {
|
|
83
83
|
compact: !0,
|
|
84
|
+
kind: "first-use",
|
|
85
|
+
illustration: "data-tables",
|
|
86
|
+
size: "panel",
|
|
84
87
|
title: _("bigconsole.overview.dataHealth.emptyTitle", "No data sinks yet"),
|
|
85
88
|
description: _("bigconsole.overview.dataHealth.emptyDescription", "Data sinks hold the data your dashboards display."),
|
|
86
89
|
action: p ? /* @__PURE__ */ l(o, {
|
|
@@ -52,6 +52,9 @@ var m = i(function({ dashboards: i, loading: m, error: h, canCreate: g, onRetry:
|
|
|
52
52
|
}) : i.length === 0 ? /* @__PURE__ */ f(l, {
|
|
53
53
|
className: "flex-1 py-6",
|
|
54
54
|
illustration: "empty-data",
|
|
55
|
+
kind: "first-use",
|
|
56
|
+
glassIllustration: "charts",
|
|
57
|
+
size: "panel",
|
|
55
58
|
title: x("bigconsole.overview.recentDashboards.emptyTitle", "No dashboards yet"),
|
|
56
59
|
description: x("bigconsole.overview.recentDashboards.emptyDescription", "Follow the guide below to build your first dashboard."),
|
|
57
60
|
action: g ? /* @__PURE__ */ f(s, {
|
|
@@ -1,71 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PARSER_STATUS_TONE as e, statusToneClasses as t } from "../../utils/statusTone.js";
|
|
2
|
+
import { memo as n } from "react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
4
|
// src/bigconsole/components/parser/ParserStatusBadge.tsx
|
|
4
|
-
var
|
|
5
|
+
var a = {
|
|
5
6
|
sm: "px-2 py-0.5 text-xs",
|
|
6
7
|
md: "px-2.5 py-1 text-sm",
|
|
7
8
|
lg: "px-3 py-1.5 text-base"
|
|
8
|
-
},
|
|
9
|
+
}, o = {
|
|
9
10
|
sm: "w-3 h-3",
|
|
10
11
|
md: "w-4 h-4",
|
|
11
12
|
lg: "w-5 h-5"
|
|
12
|
-
},
|
|
13
|
+
}, s = ({ className: e }) => /* @__PURE__ */ r("svg", {
|
|
13
14
|
className: e,
|
|
14
15
|
fill: "none",
|
|
15
16
|
stroke: "currentColor",
|
|
16
17
|
viewBox: "0 0 24 24",
|
|
17
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ r("path", {
|
|
18
19
|
strokeLinecap: "round",
|
|
19
20
|
strokeLinejoin: "round",
|
|
20
21
|
strokeWidth: 2,
|
|
21
22
|
d: "M5 13l4 4L19 7"
|
|
22
23
|
})
|
|
23
|
-
}),
|
|
24
|
+
}), c = ({ className: e }) => /* @__PURE__ */ r("svg", {
|
|
24
25
|
className: e,
|
|
25
26
|
fill: "none",
|
|
26
27
|
stroke: "currentColor",
|
|
27
28
|
viewBox: "0 0 24 24",
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ r("path", {
|
|
29
30
|
strokeLinecap: "round",
|
|
30
31
|
strokeLinejoin: "round",
|
|
31
32
|
strokeWidth: 2,
|
|
32
33
|
d: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
33
34
|
})
|
|
34
|
-
}),
|
|
35
|
-
let
|
|
35
|
+
}), l = n(function({ status: n, size: l = "md", showIcon: u = !0 }) {
|
|
36
|
+
let d = a[l], f = o[l], p = {
|
|
36
37
|
active: {
|
|
37
|
-
|
|
38
|
-
text: "text-status-success-text",
|
|
39
|
-
icon: /* @__PURE__ */ t(a, { className: u }),
|
|
38
|
+
icon: /* @__PURE__ */ r(s, { className: f }),
|
|
40
39
|
label: "Active"
|
|
41
40
|
},
|
|
42
41
|
inactive: {
|
|
43
|
-
|
|
44
|
-
text: "text-text-muted",
|
|
45
|
-
icon: /* @__PURE__ */ t(o, { className: u }),
|
|
42
|
+
icon: /* @__PURE__ */ r(c, { className: f }),
|
|
46
43
|
label: "Inactive"
|
|
47
44
|
}
|
|
48
|
-
}[
|
|
49
|
-
return
|
|
45
|
+
}[n];
|
|
46
|
+
return p ? /* @__PURE__ */ i("span", {
|
|
50
47
|
className: `
|
|
51
48
|
inline-flex items-center gap-1.5
|
|
52
|
-
${
|
|
53
|
-
${
|
|
54
|
-
${d.text}
|
|
49
|
+
${d}
|
|
50
|
+
${t(e, n)}
|
|
55
51
|
rounded-full
|
|
52
|
+
border
|
|
56
53
|
font-medium
|
|
57
54
|
`,
|
|
58
|
-
children: [
|
|
59
|
-
}) : /* @__PURE__ */
|
|
55
|
+
children: [u && p.icon, /* @__PURE__ */ r("span", { children: p.label })]
|
|
56
|
+
}) : /* @__PURE__ */ r("span", {
|
|
60
57
|
className: `
|
|
61
58
|
inline-flex items-center gap-1.5
|
|
62
|
-
${
|
|
63
|
-
|
|
64
|
-
text-text-secondary
|
|
59
|
+
${d}
|
|
60
|
+
${t(e, n)}
|
|
65
61
|
rounded-full
|
|
62
|
+
border
|
|
66
63
|
font-medium
|
|
67
64
|
`,
|
|
68
|
-
children:
|
|
65
|
+
children: n
|
|
69
66
|
});
|
|
70
67
|
});
|
|
71
|
-
export {
|
|
68
|
+
export { l as ParserStatusBadge, l as default };
|
|
@@ -4,46 +4,47 @@ import { BIGCONSOLE_PERMISSIONS as n } from "../../../constants/permissions.js";
|
|
|
4
4
|
import "../common/index.js";
|
|
5
5
|
import { useId as r } from "react";
|
|
6
6
|
import { usePermissions as i } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { ThemedSelect as a } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
10
|
// src/bigconsole/components/pipeline/PipelineScopePicker.tsx
|
|
10
|
-
function
|
|
11
|
-
let
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
function l({ value: l, onChange: u, disabled: d = !1 }) {
|
|
12
|
+
let f = r(), { t: p } = o(), { hasPermission: m, isLoading: h } = i(), { dashboards: g, loading: _, error: v } = t({ skipFetch: h || !m(n.DASHBOARD_READ) });
|
|
13
|
+
return /* @__PURE__ */ c("div", {
|
|
13
14
|
className: "min-w-0",
|
|
14
15
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
htmlFor:
|
|
16
|
+
/* @__PURE__ */ s("label", {
|
|
17
|
+
htmlFor: f,
|
|
17
18
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
18
|
-
children:
|
|
19
|
+
children: p("bigconsole.pipelines.scope.label", "Dashboard scope")
|
|
19
20
|
}),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
id:
|
|
22
|
-
value:
|
|
23
|
-
onChange: (e) =>
|
|
24
|
-
disabled:
|
|
21
|
+
/* @__PURE__ */ c(a, {
|
|
22
|
+
id: f,
|
|
23
|
+
value: l,
|
|
24
|
+
onChange: (e) => u(e.target.value),
|
|
25
|
+
disabled: d || _,
|
|
25
26
|
className: `w-full min-w-0 rounded-input border border-[var(--color-border-subtle)] bg-bg-canvas px-3 py-2 text-sm text-text-primary ${e}`,
|
|
26
27
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ s("option", {
|
|
28
29
|
value: "default",
|
|
29
|
-
children:
|
|
30
|
+
children: p("bigconsole.pipelines.scope.workspace", "Workspace pipelines")
|
|
30
31
|
}),
|
|
31
|
-
|
|
32
|
-
value:
|
|
33
|
-
children:
|
|
32
|
+
l !== "default" && !g.some((e) => e.id === l) && /* @__PURE__ */ s("option", {
|
|
33
|
+
value: l,
|
|
34
|
+
children: l
|
|
34
35
|
}),
|
|
35
|
-
|
|
36
|
+
g.map((e) => /* @__PURE__ */ s("option", {
|
|
36
37
|
value: e.id,
|
|
37
38
|
children: e.name
|
|
38
39
|
}, e.id))
|
|
39
40
|
]
|
|
40
41
|
}),
|
|
41
|
-
|
|
42
|
+
v && /* @__PURE__ */ s("p", {
|
|
42
43
|
role: "alert",
|
|
43
44
|
className: "mt-1 text-xs text-status-error-text",
|
|
44
|
-
children:
|
|
45
|
+
children: p("bigconsole.pipelines.scope.loadError", "Dashboard scopes could not be loaded.")
|
|
45
46
|
})
|
|
46
47
|
]
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
|
-
export {
|
|
50
|
+
export { l as PipelineScopePicker };
|