@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,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 b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
- import { useLazyQuery as x } from "@apollo/client/react";
10
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
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 T = [
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 E(e, t, r, i) {
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 D = {
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
- }, O = {
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
- }, k = {
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
- }, A = r(function({ open: r, onClose: A, widgetTitle: j, series: M }) {
65
- let { t: N } = b(), [P, F] = s(""), [I, L] = s(n.Zscore), [R, z] = s("3"), [B, V] = s(null), [H, U] = s(null), [W, { loading: G }] = x(e, { fetchPolicy: "no-cache" });
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 && (F(M[0]?.field ?? ""), L(n.Zscore), z("3"), V(null), U(null));
68
- }, [r, M]);
69
- let K = o(() => M.find((e) => e.field === P) ?? M[0] ?? null, [M, P]), q = T.find((e) => e.value === I) ?? T[0], J = I !== n.Iqr, Y = Number.parseFloat(R), X = !J || Number.isFinite(Y) && (I !== n.Zscore || Y > 0), Z = !G && K !== null && K.values.length > 0 && X, Q = i(() => {
70
- K && X && (U(null), V(null), W({ variables: { input: {
71
- values: K.values,
72
- method: I,
73
- threshold: J ? Y : null
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 && V(e.data.detectAnomalies);
75
+ e.data && H(e.data.detectAnomalies);
76
76
  }).catch((e) => {
77
- U(e instanceof Error ? e.message : String(e));
77
+ W(e instanceof Error ? e.message : String(e));
78
78
  }));
79
79
  }, [
80
- W,
81
- I,
82
- J,
83
- K,
80
+ G,
81
+ L,
84
82
  Y,
85
- X
83
+ q,
84
+ X,
85
+ Z
86
86
  ]);
87
- return /* @__PURE__ */ C(h, {
87
+ return /* @__PURE__ */ w(h, {
88
88
  open: r,
89
- onOpenChange: (e) => !e && !G && A(),
90
- children: /* @__PURE__ */ w(g, {
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__ */ w(v, {
92
+ children: [/* @__PURE__ */ T(v, {
93
93
  className: "shrink-0",
94
- children: [/* @__PURE__ */ C(y, { children: N("bigconsole.analysis.outliers.title", "Spot outliers") }), /* @__PURE__ */ C(_, { children: N("bigconsole.analysis.outliers.description", "Statistical scan of “{{title}}” — flagged points are readings worth a second look, not errors.", { title: j }) })]
95
- }), /* @__PURE__ */ C("div", {
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: M.length === 0 ? /* @__PURE__ */ C(t, {
97
+ children: N.length === 0 ? /* @__PURE__ */ w(t, {
98
98
  headingLevel: 3,
99
99
  tone: "neutral",
100
100
  padding: "compact",
101
- title: N("bigconsole.analysis.outliers.noSeriesTitle", "Nothing to analyze"),
102
- description: N("bigconsole.analysis.outliers.noSeriesDescription", "This widget has no numeric series in its current data."),
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__ */ w(S, { children: [
105
- /* @__PURE__ */ w("div", {
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__ */ w("div", { children: [/* @__PURE__ */ C("label", {
112
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
113
113
  htmlFor: "outlier-series",
114
- style: O,
115
- children: N("bigconsole.analysis.outliers.seriesLabel", "Series")
116
- }), /* @__PURE__ */ C("select", {
114
+ style: k,
115
+ children: P("bigconsole.analysis.outliers.seriesLabel", "Series")
116
+ }), /* @__PURE__ */ w(b, {
117
117
  id: "outlier-series",
118
- value: K?.field ?? "",
118
+ value: q?.field ?? "",
119
119
  onChange: (e) => {
120
- F(e.target.value), V(null);
120
+ I(e.target.value), H(null);
121
121
  },
122
- disabled: G,
123
- style: D,
122
+ disabled: K,
123
+ style: O,
124
124
  "data-testid": "outlier-series-select",
125
- children: M.map((e) => /* @__PURE__ */ w("option", {
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__ */ w("div", { children: [/* @__PURE__ */ C("label", {
135
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
136
136
  htmlFor: "outlier-method",
137
- style: O,
138
- children: N("bigconsole.analysis.outliers.methodLabel", "Method")
139
- }), /* @__PURE__ */ C("select", {
137
+ style: k,
138
+ children: P("bigconsole.analysis.outliers.methodLabel", "Method")
139
+ }), /* @__PURE__ */ w(b, {
140
140
  id: "outlier-method",
141
- value: I,
141
+ value: L,
142
142
  onChange: (e) => {
143
- L(e.target.value), V(null);
143
+ R(e.target.value), H(null);
144
144
  },
145
- disabled: G,
146
- style: D,
145
+ disabled: K,
146
+ style: O,
147
147
  "data-testid": "outlier-method-select",
148
- children: T.map((e) => /* @__PURE__ */ C("option", {
148
+ children: E.map((e) => /* @__PURE__ */ w("option", {
149
149
  value: e.value,
150
- children: N(e.labelKey, e.fallback)
150
+ children: P(e.labelKey, e.fallback)
151
151
  }, e.value))
152
152
  })] }),
153
- J && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
153
+ Y && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
154
154
  htmlFor: "outlier-threshold",
155
- style: O,
156
- children: I === n.Zscore ? N("bigconsole.analysis.outliers.stddevLabel", "Stddev multiplier") : N("bigconsole.analysis.outliers.thresholdLabel", "Threshold")
157
- }), /* @__PURE__ */ C("input", {
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: R,
161
+ value: z,
162
162
  onChange: (e) => {
163
- z(e.target.value), V(null);
163
+ B(e.target.value), H(null);
164
164
  },
165
- disabled: G,
166
- style: D,
165
+ disabled: K,
166
+ style: O,
167
167
  "data-testid": "outlier-threshold-input"
168
168
  })] })
169
169
  ]
170
170
  }),
171
- q && /* @__PURE__ */ C("p", {
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: N(q.descriptionKey, q.descriptionFallback)
177
+ children: P(J.descriptionKey, J.descriptionFallback)
178
178
  }),
179
- /* @__PURE__ */ w("div", {
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__ */ w(m, {
186
- onClick: Q,
187
- disabled: !Z,
185
+ children: [/* @__PURE__ */ T(m, {
186
+ onClick: $,
187
+ disabled: !Q,
188
188
  "data-testid": "outlier-run",
189
- children: [G ? /* @__PURE__ */ C(d, {
189
+ children: [K ? /* @__PURE__ */ w(d, {
190
190
  className: "size-4 animate-spin",
191
191
  "aria-hidden": "true"
192
- }) : /* @__PURE__ */ C(f, {
192
+ }) : /* @__PURE__ */ w(f, {
193
193
  className: "size-4",
194
194
  "aria-hidden": "true"
195
- }), N("bigconsole.analysis.outliers.run", "Run analysis")]
196
- }), /* @__PURE__ */ C("span", {
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: N("bigconsole.analysis.outliers.pointCount", "{{count}} data points from “{{field}}”", {
202
- count: K?.values.length ?? 0,
203
- field: K?.label ?? ""
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
- H && /* @__PURE__ */ C(t, {
207
+ U && /* @__PURE__ */ w(t, {
208
208
  headingLevel: 3,
209
209
  tone: "danger",
210
210
  padding: "compact",
211
- icon: /* @__PURE__ */ C(p, { className: "size-4" }),
212
- title: N("bigconsole.analysis.outliers.runFailedTitle", "Analysis failed"),
213
- description: H,
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
- B && !H && /* @__PURE__ */ C(S, { children: B.count === 0 ? /* @__PURE__ */ C(t, {
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__ */ C(u, { className: "size-4" }),
221
- title: N("bigconsole.analysis.outliers.cleanTitle", "No outliers detected"),
222
- description: N("bigconsole.analysis.outliers.cleanDescription", "Every point in “{{field}}” falls inside the chosen bounds.", { field: K?.label ?? "" }),
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__ */ C(t, {
224
+ }) : /* @__PURE__ */ w(t, {
225
225
  headingLevel: 3,
226
226
  tone: "warning",
227
227
  padding: "compact",
228
- icon: /* @__PURE__ */ C(l, { className: "size-4" }),
229
- title: N("bigconsole.analysis.outliers.foundTitle", "{{count}} outlier{{plural}} flagged", {
230
- count: B.count,
231
- plural: B.count === 1 ? "" : "s"
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: N("bigconsole.analysis.outliers.foundDescription", "Read-only findings — nothing in the dashboard is changed."),
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__ */ w("table", {
235
+ children: /* @__PURE__ */ T("table", {
236
236
  style: {
237
237
  width: "100%",
238
238
  borderCollapse: "collapse"
239
239
  },
240
- children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", { children: [
241
- /* @__PURE__ */ C("th", {
240
+ children: [/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ T("tr", { children: [
241
+ /* @__PURE__ */ w("th", {
242
242
  style: {
243
- ...k,
243
+ ...A,
244
244
  color: "var(--color-text-secondary)"
245
245
  },
246
- children: N("bigconsole.analysis.outliers.colPoint", "Point")
246
+ children: P("bigconsole.analysis.outliers.colPoint", "Point")
247
247
  }),
248
- /* @__PURE__ */ C("th", {
248
+ /* @__PURE__ */ w("th", {
249
249
  style: {
250
- ...k,
250
+ ...A,
251
251
  color: "var(--color-text-secondary)"
252
252
  },
253
- children: N("bigconsole.analysis.outliers.colValue", "Value")
253
+ children: P("bigconsole.analysis.outliers.colValue", "Value")
254
254
  }),
255
- /* @__PURE__ */ C("th", {
255
+ /* @__PURE__ */ w("th", {
256
256
  style: {
257
- ...k,
257
+ ...A,
258
258
  color: "var(--color-text-secondary)"
259
259
  },
260
- children: N("bigconsole.analysis.outliers.colDirection", "Direction")
260
+ children: P("bigconsole.analysis.outliers.colDirection", "Direction")
261
261
  }),
262
- /* @__PURE__ */ C("th", {
262
+ /* @__PURE__ */ w("th", {
263
263
  style: {
264
- ...k,
264
+ ...A,
265
265
  color: "var(--color-text-secondary)"
266
266
  },
267
- children: N("bigconsole.analysis.outliers.colScore", "Score")
267
+ children: P("bigconsole.analysis.outliers.colScore", "Score")
268
268
  })
269
- ] }) }), /* @__PURE__ */ C("tbody", { children: B.anomalies.map((e) => {
270
- let t = K?.pointLabels[e.index] ?? null;
271
- return /* @__PURE__ */ w("tr", { children: [
272
- /* @__PURE__ */ w("td", {
273
- style: k,
274
- children: [t ?? e.index + 1, /* @__PURE__ */ C("span", {
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: E(e, I, J ? Y : void 0, t)
280
+ children: D(e, L, Y ? X : void 0, t)
281
281
  })]
282
282
  }),
283
- /* @__PURE__ */ C("td", {
283
+ /* @__PURE__ */ w("td", {
284
284
  style: {
285
- ...k,
285
+ ...A,
286
286
  whiteSpace: "nowrap"
287
287
  },
288
288
  children: e.value
289
289
  }),
290
- /* @__PURE__ */ C("td", {
291
- style: k,
292
- children: /* @__PURE__ */ w("span", {
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__ */ C(l, {
299
+ children: [e.direction === "HIGH" ? /* @__PURE__ */ w(l, {
300
300
  className: "size-3.5",
301
301
  "aria-hidden": "true"
302
- }) : /* @__PURE__ */ C(c, {
302
+ }) : /* @__PURE__ */ w(c, {
303
303
  className: "size-3.5",
304
304
  "aria-hidden": "true"
305
- }), e.direction === "HIGH" ? N("bigconsole.analysis.outliers.high", "High") : N("bigconsole.analysis.outliers.low", "Low")]
305
+ }), e.direction === "HIGH" ? P("bigconsole.analysis.outliers.high", "High") : P("bigconsole.analysis.outliers.low", "Low")]
306
306
  })
307
307
  }),
308
- /* @__PURE__ */ C("td", {
308
+ /* @__PURE__ */ w("td", {
309
309
  style: {
310
- ...k,
310
+ ...A,
311
311
  whiteSpace: "nowrap"
312
312
  },
313
- children: I === n.Zscore ? `${e.score.toFixed(2)}σ` : `+${e.score.toFixed(2)}`
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 { A as OutlierSpottingDialog, A as default, E as explainAnomaly };
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 { memo as e } from "react";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
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 r = {
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
- }, i = {
9
+ }, o = {
9
10
  sm: "w-3 h-3",
10
11
  md: "w-4 h-4",
11
12
  lg: "w-5 h-5"
12
- }, a = ({ className: e }) => /* @__PURE__ */ t("svg", {
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__ */ t("path", {
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
- }), o = ({ className: e }) => /* @__PURE__ */ t("svg", {
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__ */ t("path", {
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
- }), s = e(function({ status: e, size: s = "md", showIcon: c = !0 }) {
35
- let l = r[s], u = i[s], d = {
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
- bg: "bg-status-success-bg/10",
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
- bg: "bg-bg-sunken",
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
- }[e];
49
- return d ? /* @__PURE__ */ n("span", {
45
+ }[n];
46
+ return p ? /* @__PURE__ */ i("span", {
50
47
  className: `
51
48
  inline-flex items-center gap-1.5
52
- ${l}
53
- ${d.bg}
54
- ${d.text}
49
+ ${d}
50
+ ${t(e, n)}
55
51
  rounded-full
52
+ border
56
53
  font-medium
57
54
  `,
58
- children: [c && d.icon, /* @__PURE__ */ t("span", { children: d.label })]
59
- }) : /* @__PURE__ */ t("span", {
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
- ${l}
63
- bg-bg-sunken
64
- text-text-secondary
59
+ ${d}
60
+ ${t(e, n)}
65
61
  rounded-full
62
+ border
66
63
  font-medium
67
64
  `,
68
- children: e
65
+ children: n
69
66
  });
70
67
  });
71
- export { s as ParserStatusBadge, s as default };
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 { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
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 c({ value: c, onChange: l, disabled: u = !1 }) {
11
- let d = r(), { t: f } = a(), { hasPermission: p, isLoading: m } = i(), { dashboards: h, loading: g, error: _ } = t({ skipFetch: m || !p(n.DASHBOARD_READ) });
12
- return /* @__PURE__ */ s("div", {
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__ */ o("label", {
16
- htmlFor: d,
16
+ /* @__PURE__ */ s("label", {
17
+ htmlFor: f,
17
18
  className: "mb-1 block text-sm font-medium text-text-primary",
18
- children: f("bigconsole.pipelines.scope.label", "Dashboard scope")
19
+ children: p("bigconsole.pipelines.scope.label", "Dashboard scope")
19
20
  }),
20
- /* @__PURE__ */ s("select", {
21
- id: d,
22
- value: c,
23
- onChange: (e) => l(e.target.value),
24
- disabled: u || g,
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__ */ o("option", {
28
+ /* @__PURE__ */ s("option", {
28
29
  value: "default",
29
- children: f("bigconsole.pipelines.scope.workspace", "Workspace pipelines")
30
+ children: p("bigconsole.pipelines.scope.workspace", "Workspace pipelines")
30
31
  }),
31
- c !== "default" && !h.some((e) => e.id === c) && /* @__PURE__ */ o("option", {
32
- value: c,
33
- children: c
32
+ l !== "default" && !g.some((e) => e.id === l) && /* @__PURE__ */ s("option", {
33
+ value: l,
34
+ children: l
34
35
  }),
35
- h.map((e) => /* @__PURE__ */ o("option", {
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
- _ && /* @__PURE__ */ o("p", {
42
+ v && /* @__PURE__ */ s("p", {
42
43
  role: "alert",
43
44
  className: "mt-1 text-xs text-status-error-text",
44
- children: f("bigconsole.pipelines.scope.loadError", "Dashboard scopes could not be loaded.")
45
+ children: p("bigconsole.pipelines.scope.loadError", "Dashboard scopes could not be loaded.")
45
46
  })
46
47
  ]
47
48
  });
48
49
  }
49
- export { c as PipelineScopePicker };
50
+ export { l as PipelineScopePicker };