@burdenoff/microfe-bigconsole 2026.1010.12 → 2026.1012.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/README.md +19 -0
- package/dist/bigconsole/BigConsoleRoot.js +88 -82
- package/dist/bigconsole/BigConsoleRoutes.js +163 -136
- package/dist/bigconsole/assistant/assistantProduct.js +1 -4
- package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
- package/dist/bigconsole/assistant/pageContext.js +1 -6
- package/dist/bigconsole/assistant/recordAdapters.js +26 -27
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/common/index.d.ts +0 -1
- package/dist/bigconsole/components/common/index.js +0 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +58 -57
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -173
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +165 -163
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +50 -51
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +76 -77
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +499 -507
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js +73 -131
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +28 -9
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +110 -27
- package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
- package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/context/BigConsoleContext.d.ts +10 -0
- package/dist/bigconsole/context/BigConsoleContext.js +47 -30
- package/dist/bigconsole/context/index.d.ts +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
- package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
- package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
- package/dist/bigconsole/hooks/useDrilldown.js +68 -67
- package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
- package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
- package/dist/bigconsole/pages/DashboardsPage.js +221 -269
- package/dist/bigconsole/pages/DataParsersPage.js +157 -180
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
- package/dist/bigconsole/pages/DataSinksPage.js +216 -251
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +265 -279
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -107
- package/dist/bigconsole/pages/SettingsPage.js +173 -179
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +235 -122
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
- package/dist/bigconsole/store/widgetStore.d.ts +0 -12
- package/dist/bigconsole/store/widgetStore.js +1 -3
- package/dist/bigconsole/types/index.d.ts +17 -2
- package/dist/bigconsole/utils/backendError.d.ts +0 -18
- package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
- package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
- package/dist/bigconsole/utils/index.d.ts +2 -0
- package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
- package/dist/bigconsole/utils/safeUrl.js +93 -0
- package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
- package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
- package/dist/bigconsole/workflowOpen.js +14 -15
- package/dist/generated/wspace-operations.d.ts +138 -8
- package/dist/generated/wspace-operations.js +281 -240
- package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
- package/package.json +9 -5
- package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
- package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
- package/dist/bigconsole/assistant/pageControls.js +0 -169
- package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
- package/dist/bigconsole/assistant/previewControl.js +0 -10
- package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
- package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
- package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
- package/dist/bigconsole/components/common/SortBySelect.js +0 -29
- package/dist/bigconsole/constants/backendErrors.js +0 -94
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
- package/dist/bigconsole/utils/backendError.js +0 -42
- package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
- package/dist/bigconsole/utils/dashboardList.js +0 -15
- package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
- package/dist/bigconsole/utils/dataSinkList.js +0 -15
- package/dist/bigconsole/utils/formDirty.d.ts +0 -82
- package/dist/bigconsole/utils/formDirty.js +0 -21
- package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
- package/dist/bigconsole/utils/insightsDraft.js +0 -8
- package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
- package/dist/bigconsole/utils/layoutBaseline.js +0 -96
- package/dist/bigconsole/utils/listSort.d.ts +0 -80
- package/dist/bigconsole/utils/listSort.js +0 -85
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
- package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
|
@@ -8,66 +8,59 @@ import "../components/common/index.js";
|
|
|
8
8
|
import { BIGCONSOLE_PERMISSIONS as i } from "../../constants/permissions.js";
|
|
9
9
|
import { nativeConfirm as ee } from "../../utils/nativeBridge.js";
|
|
10
10
|
import { AlertRuleEditor as te } from "../components/datasink/AlertRuleEditor.js";
|
|
11
|
-
import { alertErrorMessage as a,
|
|
11
|
+
import { alertErrorMessage as a, useDataSinkAlerts as ne } from "../hooks/useDataSinkAlerts.js";
|
|
12
12
|
import { AlertExecutionHistory as re } from "../components/datasink/AlertExecutionHistory.js";
|
|
13
|
-
import { ALERT_VALIDATION_MESSAGES as
|
|
14
|
-
import { useEffect as
|
|
13
|
+
import { ALERT_VALIDATION_MESSAGES as o, alertDraft as s, alertDraftInput as c, validateAlertDraft as l } from "../utils/alertRules.js";
|
|
14
|
+
import { useEffect as u, useRef as d, useState as f } from "react";
|
|
15
15
|
import { useParams as p } from "react-router";
|
|
16
|
-
import { AccessDenied as
|
|
17
|
-
import { usePermissions as
|
|
18
|
-
import { ArrowLeft as
|
|
19
|
-
import { Button as h, Switch as
|
|
20
|
-
import {
|
|
21
|
-
import { useI18n as
|
|
22
|
-
import { Fragment as he, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
16
|
+
import { AccessDenied as ie } from "@burdenoff/fe-libs/shared/components";
|
|
17
|
+
import { usePermissions as ae } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
18
|
+
import { ArrowLeft as oe, Bell as se, Loader2 as ce, Plus as le, RefreshCw as ue, Trash2 as m } from "lucide-react";
|
|
19
|
+
import { Button as h, Switch as de } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
import { Fragment as fe, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
21
|
+
import { useI18n as pe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
23
22
|
//#region src/bigconsole/pages/DataSinkAlertsPage.tsx
|
|
24
23
|
function v() {
|
|
25
24
|
let { dataSinkId: e = "" } = p(), { currentUser: n, workspaceId: r } = t();
|
|
26
25
|
return /* @__PURE__ */ g(y, { dataSinkId: e }, `${n?.id ?? ""}|${r ?? ""}|${e}`);
|
|
27
26
|
}
|
|
28
27
|
function y({ dataSinkId: p }) {
|
|
29
|
-
let { t: v } =
|
|
30
|
-
|
|
28
|
+
let { t: v } = pe(), y = e(), { currentUser: b, workspaceId: x } = t(), { hasPermission: S, isLoading: C } = ae(), w = S(i.DATASINK_READ), T = !C && S(i.DATASINK_UPDATE), E = ne(p, !C && w && !!x && !!b?.id), D = E.sink, O = D?.alerts ?? [], [k, me] = f(""), [A, j] = f(null), [M, N] = f(!1), P = d(!1), F = d(null), [I, L] = f(null), [R, z] = f(null), [B, V] = f(!1), [he, H] = f(null), [U, W] = f(null), [ge, G] = f(0), K = d(0), q = d(0), J = A?.selection;
|
|
29
|
+
u(() => {
|
|
31
30
|
J !== void 0 && document.getElementById("alert-name")?.focus();
|
|
32
31
|
}, [J]);
|
|
33
|
-
let
|
|
34
|
-
pe({
|
|
35
|
-
id: "datasink-alert-rule",
|
|
36
|
-
label: v("bigconsole.assistant.unsaved.alertRule", "the alert rule"),
|
|
37
|
-
dirty: Y
|
|
38
|
-
});
|
|
39
|
-
let X = async (e) => await ee({
|
|
32
|
+
let _e = !!A && JSON.stringify(A.draft) !== A.original, Y = async (e) => await ee({
|
|
40
33
|
title: v("bigconsole.alerts.confirm.title", "Confirm alert change"),
|
|
41
34
|
message: e,
|
|
42
35
|
okButtonTitle: v("bigconsole.alerts.confirm.continue", "Continue"),
|
|
43
36
|
cancelButtonTitle: v("bigconsole.alerts.rule.cancel", "Cancel")
|
|
44
|
-
}) ?? window.confirm(e),
|
|
45
|
-
if (M || !D || !await
|
|
37
|
+
}) ?? window.confirm(e), X = () => !_e || Y(v("bigconsole.alerts.confirm.discard", "Discard your unsaved rule changes?")), Z = async (e) => {
|
|
38
|
+
if (M || !D || !await X()) return;
|
|
46
39
|
document.activeElement instanceof HTMLElement && (F.current = document.activeElement);
|
|
47
|
-
let t =
|
|
40
|
+
let t = s(e);
|
|
48
41
|
j({
|
|
49
42
|
draft: t,
|
|
50
43
|
original: JSON.stringify(t),
|
|
51
44
|
version: D.version,
|
|
52
45
|
selection: ++q.current
|
|
53
46
|
}), K.current++, W(null), H(null), V(!1), L(null), z(null);
|
|
54
|
-
},
|
|
55
|
-
M || !await
|
|
56
|
-
},
|
|
47
|
+
}, ve = async () => {
|
|
48
|
+
M || !await X() || (j(null), W(null), H(null), K.current++, V(!1), L(null), F.current?.isConnected && F.current.focus());
|
|
49
|
+
}, Q = async () => {
|
|
57
50
|
if (!A || !D || !T || P.current) return;
|
|
58
|
-
let e =
|
|
51
|
+
let e = l(A.draft, E.channels);
|
|
59
52
|
if (e) {
|
|
60
|
-
L(v(`bigconsole.alerts.validation.${e}`,
|
|
53
|
+
L(v(`bigconsole.alerts.validation.${e}`, o[e]));
|
|
61
54
|
return;
|
|
62
55
|
}
|
|
63
56
|
P.current = !0, N(!0), L(null), z(null);
|
|
64
57
|
let t = new Set(O.map((e) => e.id));
|
|
65
58
|
try {
|
|
66
|
-
let e = await E.save(
|
|
59
|
+
let e = await E.save(c(A.draft), A.version);
|
|
67
60
|
if (!e) return;
|
|
68
61
|
let n = e.alerts?.find((e) => A.draft.id ? e.id === A.draft.id : !t.has(e.id));
|
|
69
62
|
if (n) {
|
|
70
|
-
let t =
|
|
63
|
+
let t = s(n);
|
|
71
64
|
j({
|
|
72
65
|
draft: t,
|
|
73
66
|
original: JSON.stringify(t),
|
|
@@ -81,26 +74,26 @@ function y({ dataSinkId: p }) {
|
|
|
81
74
|
} finally {
|
|
82
75
|
P.current = !1, N(!1);
|
|
83
76
|
}
|
|
84
|
-
},
|
|
77
|
+
}, ye = async (e) => {
|
|
85
78
|
if (!D || !T || P.current) return;
|
|
86
79
|
let t = {
|
|
87
|
-
...
|
|
80
|
+
...s(e),
|
|
88
81
|
enabled: !e.enabled
|
|
89
|
-
}, n =
|
|
82
|
+
}, n = l(t, E.channels);
|
|
90
83
|
if (n) {
|
|
91
|
-
L(v(`bigconsole.alerts.validation.${n}`,
|
|
84
|
+
L(v(`bigconsole.alerts.validation.${n}`, o[n]));
|
|
92
85
|
return;
|
|
93
86
|
}
|
|
94
87
|
P.current = !0, N(!0), L(null), z(null);
|
|
95
88
|
try {
|
|
96
|
-
await E.save(
|
|
89
|
+
await E.save(c(t), D.version) && (z(t.enabled ? v("bigconsole.alerts.feedback.enabled", "Alert rule enabled.") : v("bigconsole.alerts.feedback.disabled", "Alert rule disabled.")), G((e) => e + 1));
|
|
97
90
|
} catch (e) {
|
|
98
91
|
L(a(e));
|
|
99
92
|
} finally {
|
|
100
93
|
P.current = !1, N(!1);
|
|
101
94
|
}
|
|
102
|
-
},
|
|
103
|
-
if (!(!D || !T || P.current) && !(!await
|
|
95
|
+
}, be = async (e) => {
|
|
96
|
+
if (!(!D || !T || P.current) && !(!await Y(`${v("bigconsole.alerts.confirm.delete", "Delete alert rule")} “${e.name}”?`) || P.current)) {
|
|
104
97
|
P.current = !0, N(!0), L(null), z(null);
|
|
105
98
|
try {
|
|
106
99
|
await E.remove(e.id, D.version) && (A?.draft.id === e.id && j(null), z(v("bigconsole.alerts.feedback.deleted", "Alert rule deleted.")), G((e) => e + 1));
|
|
@@ -110,7 +103,7 @@ function y({ dataSinkId: p }) {
|
|
|
110
103
|
P.current = !1, N(!1);
|
|
111
104
|
}
|
|
112
105
|
}
|
|
113
|
-
},
|
|
106
|
+
}, xe = async () => {
|
|
114
107
|
if (!A || B || M) return;
|
|
115
108
|
let e = ++K.current, { condition: t, conditionType: n } = A.draft;
|
|
116
109
|
V(!0), H(null), W(null);
|
|
@@ -126,15 +119,15 @@ function y({ dataSinkId: p }) {
|
|
|
126
119
|
} finally {
|
|
127
120
|
K.current === e && V(!1);
|
|
128
121
|
}
|
|
129
|
-
},
|
|
130
|
-
if (!A?.draft.id || M || !await
|
|
122
|
+
}, Se = async () => {
|
|
123
|
+
if (!A?.draft.id || M || !await X()) return;
|
|
131
124
|
let e = await E.reload(), t = e?.alerts?.find((e) => e.id === A.draft.id);
|
|
132
125
|
if (!e) return;
|
|
133
126
|
if (!t) {
|
|
134
127
|
j(null), z(v("bigconsole.alerts.feedback.removedElsewhere", "This rule no longer exists."));
|
|
135
128
|
return;
|
|
136
129
|
}
|
|
137
|
-
let n =
|
|
130
|
+
let n = s(t);
|
|
138
131
|
j({
|
|
139
132
|
draft: n,
|
|
140
133
|
original: JSON.stringify(n),
|
|
@@ -145,9 +138,9 @@ function y({ dataSinkId: p }) {
|
|
|
145
138
|
if (C || E.loading) return /* @__PURE__ */ _("div", {
|
|
146
139
|
role: "status",
|
|
147
140
|
className: "flex min-h-60 items-center justify-center p-card-padding",
|
|
148
|
-
children: [/* @__PURE__ */ g(
|
|
141
|
+
children: [/* @__PURE__ */ g(ce, { className: "mr-2 h-5 w-5 animate-spin text-text-secondary" }), v("bigconsole.alerts.loading", "Loading alerts…")]
|
|
149
142
|
});
|
|
150
|
-
if (!w) return /* @__PURE__ */ g(
|
|
143
|
+
if (!w) return /* @__PURE__ */ g(ie, {
|
|
151
144
|
title: v("bigconsole.alerts.denied", "Access denied"),
|
|
152
145
|
description: v("bigconsole.alerts.deniedDescription", "You do not have permission to read this data sink.")
|
|
153
146
|
});
|
|
@@ -161,9 +154,9 @@ function y({ dataSinkId: p }) {
|
|
|
161
154
|
title: v("bigconsole.alerts.unavailable", "Alerts could not be loaded"),
|
|
162
155
|
headingLevel: 2,
|
|
163
156
|
tone: "danger",
|
|
164
|
-
description:
|
|
157
|
+
description: E.error ?? v("bigconsole.alerts.notFound", "Data sink not found."),
|
|
165
158
|
actions: /* @__PURE__ */ g(h, {
|
|
166
|
-
onClick: () => void E.
|
|
159
|
+
onClick: () => void E.reload(),
|
|
167
160
|
variant: "secondary",
|
|
168
161
|
children: v("bigconsole.alerts.retry", "Retry")
|
|
169
162
|
})
|
|
@@ -183,7 +176,7 @@ function y({ dataSinkId: p }) {
|
|
|
183
176
|
size: "sm",
|
|
184
177
|
onClick: () => y(`/datasinks/${p}`),
|
|
185
178
|
className: "mb-3",
|
|
186
|
-
children: [/* @__PURE__ */ g(
|
|
179
|
+
children: [/* @__PURE__ */ g(oe, { className: "mr-2 h-4 w-4" }), v("bigconsole.alerts.back", "Back to data sink")]
|
|
187
180
|
}),
|
|
188
181
|
/* @__PURE__ */ _("h1", {
|
|
189
182
|
className: "break-words text-2xl font-bold text-text-primary",
|
|
@@ -221,7 +214,7 @@ function y({ dataSinkId: p }) {
|
|
|
221
214
|
E.error && /* @__PURE__ */ g("p", {
|
|
222
215
|
role: "alert",
|
|
223
216
|
className: "mb-4 break-words text-sm text-status-error-text",
|
|
224
|
-
children:
|
|
217
|
+
children: E.error
|
|
225
218
|
}),
|
|
226
219
|
/* @__PURE__ */ _("div", {
|
|
227
220
|
className: "grid min-w-0 items-start gap-section-gap xl:grid-cols-[minmax(0,1.2fr)_minmax(0,1fr)]",
|
|
@@ -230,12 +223,12 @@ function y({ dataSinkId: p }) {
|
|
|
230
223
|
children: [/* @__PURE__ */ _(r, {
|
|
231
224
|
title: v("bigconsole.alerts.list.title", "Alert rules"),
|
|
232
225
|
headingLevel: 2,
|
|
233
|
-
icon: /* @__PURE__ */ g(
|
|
226
|
+
icon: /* @__PURE__ */ g(se, { className: "h-4 w-4" }),
|
|
234
227
|
actions: /* @__PURE__ */ _(h, {
|
|
235
228
|
size: "sm",
|
|
236
|
-
onClick: () => void
|
|
229
|
+
onClick: () => void Z(),
|
|
237
230
|
disabled: !T || M,
|
|
238
|
-
children: [/* @__PURE__ */ g(
|
|
231
|
+
children: [/* @__PURE__ */ g(le, { className: "mr-2 h-4 w-4" }), v("bigconsole.alerts.list.new", "New alert rule")]
|
|
239
232
|
}),
|
|
240
233
|
children: [
|
|
241
234
|
/* @__PURE__ */ g("label", {
|
|
@@ -247,7 +240,7 @@ function y({ dataSinkId: p }) {
|
|
|
247
240
|
id: "alert-search",
|
|
248
241
|
type: "search",
|
|
249
242
|
value: k,
|
|
250
|
-
onChange: (e) =>
|
|
243
|
+
onChange: (e) => me(e.target.value),
|
|
251
244
|
placeholder: v("bigconsole.alerts.list.searchPlaceholder", "Search alerts…"),
|
|
252
245
|
className: `mb-4 w-full min-w-0 rounded-control border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary ${n}`
|
|
253
246
|
}),
|
|
@@ -307,7 +300,7 @@ function y({ dataSinkId: p }) {
|
|
|
307
300
|
children: [
|
|
308
301
|
/* @__PURE__ */ g("button", {
|
|
309
302
|
type: "button",
|
|
310
|
-
onClick: () => void
|
|
303
|
+
onClick: () => void Z(e),
|
|
311
304
|
disabled: M,
|
|
312
305
|
className: `break-words text-left font-medium text-text-primary underline-offset-4 hover:underline ${n}`,
|
|
313
306
|
children: e.name
|
|
@@ -339,9 +332,9 @@ function y({ dataSinkId: p }) {
|
|
|
339
332
|
}),
|
|
340
333
|
/* @__PURE__ */ g("td", {
|
|
341
334
|
className: "py-4 pr-2",
|
|
342
|
-
children: /* @__PURE__ */ g(
|
|
335
|
+
children: /* @__PURE__ */ g(de, {
|
|
343
336
|
checked: e.enabled,
|
|
344
|
-
onCheckedChange: () => void
|
|
337
|
+
onCheckedChange: () => void ye(e),
|
|
345
338
|
disabled: !T || M,
|
|
346
339
|
"aria-label": `${v("bigconsole.alerts.list.enabled", "Enabled")} · ${e.name}`
|
|
347
340
|
})
|
|
@@ -352,10 +345,10 @@ function y({ dataSinkId: p }) {
|
|
|
352
345
|
type: "button",
|
|
353
346
|
variant: "ghost",
|
|
354
347
|
size: "sm",
|
|
355
|
-
onClick: () => void
|
|
348
|
+
onClick: () => void be(e),
|
|
356
349
|
disabled: !T || M,
|
|
357
350
|
"aria-label": `${v("bigconsole.alerts.confirm.delete", "Delete alert rule")} · ${e.name}`,
|
|
358
|
-
children: /* @__PURE__ */ g(
|
|
351
|
+
children: /* @__PURE__ */ g(m, { className: "h-4 w-4" })
|
|
359
352
|
})
|
|
360
353
|
})
|
|
361
354
|
]
|
|
@@ -380,11 +373,11 @@ function y({ dataSinkId: p }) {
|
|
|
380
373
|
owner: E.owner,
|
|
381
374
|
rules: O,
|
|
382
375
|
load: E.history,
|
|
383
|
-
refreshVersion:
|
|
376
|
+
refreshVersion: ge
|
|
384
377
|
})]
|
|
385
378
|
}), /* @__PURE__ */ g("div", {
|
|
386
379
|
className: "min-w-0",
|
|
387
|
-
children: A ? /* @__PURE__ */ _(
|
|
380
|
+
children: A ? /* @__PURE__ */ _(fe, { children: [/* @__PURE__ */ g(te, {
|
|
388
381
|
draft: A.draft,
|
|
389
382
|
channels: E.channels,
|
|
390
383
|
channelError: E.channelError,
|
|
@@ -392,7 +385,7 @@ function y({ dataSinkId: p }) {
|
|
|
392
385
|
pending: M,
|
|
393
386
|
previewing: B,
|
|
394
387
|
preview: U?.result ?? null,
|
|
395
|
-
previewError:
|
|
388
|
+
previewError: he,
|
|
396
389
|
previewStale: !!U && (U.condition !== A.draft.condition || U.conditionType !== A.draft.conditionType || D.version > U.result.version),
|
|
397
390
|
error: I,
|
|
398
391
|
onChange: (e) => {
|
|
@@ -401,15 +394,15 @@ function y({ dataSinkId: p }) {
|
|
|
401
394
|
draft: e
|
|
402
395
|
});
|
|
403
396
|
},
|
|
404
|
-
onSave: () => void
|
|
405
|
-
onCancel: () => void
|
|
406
|
-
onPreview: () => void
|
|
397
|
+
onSave: () => void Q(),
|
|
398
|
+
onCancel: () => void ve(),
|
|
399
|
+
onPreview: () => void xe(),
|
|
407
400
|
onReloadChannels: () => void E.reloadChannels()
|
|
408
401
|
}), A.draft.id && /* @__PURE__ */ g(h, {
|
|
409
402
|
type: "button",
|
|
410
403
|
variant: "ghost",
|
|
411
404
|
size: "sm",
|
|
412
|
-
onClick: () => void
|
|
405
|
+
onClick: () => void Se(),
|
|
413
406
|
disabled: M || E.refreshing,
|
|
414
407
|
className: "mt-3",
|
|
415
408
|
children: v("bigconsole.alerts.rule.reloadSaved", "Reload saved rule")
|