@burdenoff/microfe-bigconsole 2026.1123.6 → 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.
Files changed (88) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  29. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  30. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  31. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  32. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  33. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  34. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  35. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  36. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  37. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  38. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  39. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  40. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  41. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  42. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  43. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  44. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  45. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  46. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  47. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  48. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  49. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  50. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  51. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  52. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  53. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  54. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  56. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  57. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  58. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  59. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  60. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  61. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  62. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  63. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  64. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  65. package/dist/bigconsole/pages/AdminPage.js +147 -146
  66. package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
  67. package/dist/bigconsole/pages/DashboardsPage.js +638 -855
  68. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  69. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  70. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  71. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  72. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  73. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  74. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  75. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  76. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  77. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  78. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  79. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  80. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  81. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  82. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  83. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  84. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  85. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  86. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  87. package/dist/bigconsole/utils/statusTone.js +44 -0
  88. 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 u, Dialog as te, DialogContent as ne, DialogDescription as d, DialogHeader as re, DialogTitle as ie } from "@burdenoff/fe-libs/ui";
8
- import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
- import { Fragment as oe, jsx as f, jsxs as p } from "react/jsx-runtime";
10
- import { Table as se, TableBody as ce, TableCell as m, TableHead as h, TableHeader as g, TableRow as _ } from "@burdenoff/fe-libs/ui/table";
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 b(e, t, n) {
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 x = (e) => e == null ? "–" : Number(e.toPrecision(6)).toString(), S = a(function({ isOpen: e, dataSinkId: a, dataSinkName: S, columnSuggestions: le = [], onClose: C }) {
29
- let { t: w } = ae(), { result: T, loading: E, error: D, detect: O, reset: k } = t(a), [A, ue] = s(r.Zscore), [j, de] = s(""), [M, N] = s(""), [P, F] = s(""), [I, L] = s("3"), [R, z] = s("1.5"), [B, V] = s(""), [H, fe] = s(""), [U, W] = s(null), [G, pe] = s("score"), [K, q] = s("desc"), [me, J] = s(/* @__PURE__ */ new Set()), he = o(async () => {
30
- let e = y(I), t = y(R), n = y(B), i = y(H);
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
- W(w("bigconsole.anomalies.errors.invalidNumber", "Enter valid numbers for the parameters."));
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
- W(w("bigconsole.anomalies.errors.boundRequired", "Enter an upper and/or lower threshold."));
36
+ U(w("bigconsole.anomalies.errors.boundRequired", "Enter an upper and/or lower threshold."));
37
37
  return;
38
38
  }
39
- W(null), J(/* @__PURE__ */ new Set());
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
- H,
61
+ V,
62
62
  O,
63
63
  w
64
- ]), ge = o((e) => {
65
- e === G ? q((e) => e === "asc" ? "desc" : "asc") : (pe(e), q(e === "score" ? "desc" : "asc"));
66
- }, [G]), _e = o((e) => {
67
- J((t) => {
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) => (K === "asc" ? 1 : -1) * b(e, t, G)), e;
73
+ return e.sort((e, t) => (G === "asc" ? 1 : -1) * ue(e, t, W)), e;
74
74
  }, [
75
75
  T,
76
- G,
77
- K
78
- ]), ve = o((e) => {
79
- e || (k(), W(null), J(/* @__PURE__ */ new Set()), C());
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(te, {
115
+ return /* @__PURE__ */ f(ne, {
116
116
  open: e,
117
- onOpenChange: ve,
118
- children: /* @__PURE__ */ p(ne, {
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(re, { children: [/* @__PURE__ */ f(ie, { children: w("bigconsole.anomalies.title", "Anomaly detector") }), /* @__PURE__ */ f(d, { children: S ? w("bigconsole.anomalies.descriptionNamed", "Find unusual values in a numeric series of {{name}}.", { name: S }) : w("bigconsole.anomalies.description", "Find unusual values in a numeric series of this data sink.") })] }), /* @__PURE__ */ p("div", {
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("select", {
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 && ue(t.value);
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) => de(e.target.value)
156
+ onChange: (e) => fe(e.target.value)
157
157
  }),
158
158
  /* @__PURE__ */ f("datalist", {
159
159
  id: "anomaly-column-suggestions",
160
- children: le.map((e) => /* @__PURE__ */ f("option", { value: e }, e))
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(oe, { children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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) => V(e.target.value)
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: H,
226
- onChange: (e) => fe(e.target.value)
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(u, {
233
- onClick: he,
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
- (U || D) && /* @__PURE__ */ f("p", {
239
+ (H || D) && /* @__PURE__ */ f("p", {
240
240
  role: "alert",
241
241
  className: "text-sm text-status-error-text",
242
- children: U ?? D
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: x(Q.mean),
263
- std: x(Q.stdDev),
264
- low: x(Q.lowerBound),
265
- high: x(Q.upperBound)
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(se, { children: [/* @__PURE__ */ f(g, { children: /* @__PURE__ */ p(_, { children: [/* @__PURE__ */ f(h, { className: "w-8" }), X.map((e) => /* @__PURE__ */ f(h, {
272
- "aria-sort": G === e.key ? K === "asc" ? "ascending" : "descending" : "none",
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: () => ge(e.key),
277
- children: [e.label, G === e.key && /* @__PURE__ */ f("span", {
276
+ onClick: () => _e(e.key),
277
+ children: [e.label, W === e.key && /* @__PURE__ */ f("span", {
278
278
  "aria-hidden": "true",
279
- children: K === "asc" ? "▲" : "▼"
279
+ children: G === "asc" ? "▲" : "▼"
280
280
  })]
281
281
  })
282
- }, e.key))] }) }), /* @__PURE__ */ f(ce, { children: Y.map((e) => {
283
- let t = me.has(e.index);
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: () => _e(e.index),
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: x(e.value) }),
296
- /* @__PURE__ */ f(m, { children: x(e.score) }),
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-bg text-status-error-text" : "bg-status-warning-bg text-status-warning-text"}`,
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 { S as AnomalyDetectorPanel, S as default };
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 { memo as t } from "react";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
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 i = t(function({ status: t, size: i = "md", showIcon: a = !0 }) {
6
- let o = e(), s = {
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
- }, c = {
11
+ }, u = {
11
12
  sm: "w-3 h-3",
12
13
  md: "w-4 h-4",
13
14
  lg: "w-5 h-5"
14
- }, l = {
15
+ }, d = {
15
16
  ready: {
16
- bg: "bg-status-success-bg/10",
17
- text: "text-status-success-text",
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__ */ n("path", {
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: o("bigconsole.dataSinks.status.ready", "Ready")
29
+ label: c("bigconsole.dataSinks.status.ready", "Ready")
31
30
  },
32
31
  error: {
33
- bg: "bg-status-error-bg/10",
34
- text: "text-status-error-text",
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__ */ n("path", {
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: o("bigconsole.dataSinks.status.error", "Error")
44
+ label: c("bigconsole.dataSinks.status.error", "Error")
48
45
  },
49
46
  stale: {
50
- bg: "bg-status-warning-bg/10",
51
- text: "text-[var(--color-status-warning-text)]",
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__ */ n("path", {
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: o("bigconsole.dataSinks.status.stale", "Stale")
59
+ label: c("bigconsole.dataSinks.status.stale", "Stale")
65
60
  },
66
61
  refreshing: {
67
- bg: "bg-action-primary-bg/10",
68
- text: "text-action-primary-bg",
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__ */ n("path", {
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: o("bigconsole.dataSinks.status.refreshing", "Refreshing")
74
+ label: c("bigconsole.dataSinks.status.refreshing", "Refreshing")
82
75
  }
83
- }[t];
84
- return l ? /* @__PURE__ */ r("span", {
76
+ }[r];
77
+ return d ? /* @__PURE__ */ a("span", {
85
78
  className: `
86
79
  inline-flex items-center gap-1.5
87
- ${s[i]}
88
- ${l.bg}
89
- ${l.text}
80
+ ${l[o]}
81
+ ${n(t, r)}
90
82
  rounded-full
83
+ border
91
84
  font-medium
92
85
  `,
93
- children: [a && l.icon, /* @__PURE__ */ n("span", { children: l.label })]
86
+ children: [s && d.icon, /* @__PURE__ */ i("span", { children: d.label })]
94
87
  }) : null;
95
88
  });
96
- export { i as DataSinkStatusBadge, i as default };
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-bg px-3 py-2",
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-bg px-3 py-2",
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