@burdenoff/microfe-bigconsole 2026.1011.10 → 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
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import { usePipelineStore as e } from "../store/pipelineStore.js";
|
|
2
2
|
import { useAppNavigate as t } from "../contexts/NavigationContext.js";
|
|
3
3
|
import "../contexts/index.js";
|
|
4
|
-
import { SECTION_FOCUS_RING as
|
|
5
|
-
import { Section as
|
|
4
|
+
import { SECTION_FOCUS_RING as n, sectionSurfaceClasses as ee } from "../components/common/sectionStyles.js";
|
|
5
|
+
import { Section as r, SectionStack as i } from "../components/common/Section.js";
|
|
6
6
|
import "../components/common/index.js";
|
|
7
|
-
import
|
|
8
|
-
import { BIGCONSOLE_PERMISSIONS as
|
|
9
|
-
import { isNative as
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import ie from "../components/pipeline/PipelineCard.js";
|
|
7
|
+
import te from "../hooks/usePipelineOperations.js";
|
|
8
|
+
import { BIGCONSOLE_PERMISSIONS as a } from "../../constants/permissions.js";
|
|
9
|
+
import { isNative as o, nativeNotify as s } from "../../utils/nativeBridge.js";
|
|
10
|
+
import { PipelineScopePicker as c } from "../components/pipeline/PipelineScopePicker.js";
|
|
11
|
+
import ne from "../components/pipeline/PipelineDeleteDialog.js";
|
|
12
|
+
import re from "../components/pipeline/PipelineCard.js";
|
|
14
13
|
import { memo as l, useCallback as u, useMemo as d, useState as f } from "react";
|
|
15
14
|
import { useSearchParams as p } from "react-router";
|
|
16
15
|
import { AccessDenied as m, PermissionButton as h } from "@burdenoff/fe-libs/shared/components";
|
|
17
16
|
import { usePermissions as g } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
18
|
-
import { AlertCircle as _, GitBranch as
|
|
19
|
-
import { AuroraBackground as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { useAssistantPageControls as fe } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
17
|
+
import { AlertCircle as _, GitBranch as v, LayoutGrid as y, List as ie, Plus as b, Search as ae } from "lucide-react";
|
|
18
|
+
import { AuroraBackground as oe, Button as x, GradientText as se, IllustratedEmptyState as ce, Input as le, PagePurpose as ue, Spinner as S } from "@burdenoff/fe-libs/ui";
|
|
19
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
20
|
+
import { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
23
21
|
//#region src/bigconsole/pages/PipelinesPage.tsx
|
|
24
22
|
var E = l(function() {
|
|
25
|
-
let l = t(), { t: E } =
|
|
23
|
+
let l = t(), { t: E } = T(), { hasPermission: D, isLoading: O } = g(), k = D(a.PIPELINE_READ), A = D(a.PIPELINE_UPDATE), j = D(a.PIPELINE_DELETE), M = D(a.PIPELINE_TEST), [N, P] = f("all"), [F, I] = p(), L = F.get("consoleId") || "default", [R, z] = f("grid"), B = e((e) => e.searchQuery), V = e((e) => e.setSearchQuery), H = e((e) => e.deleteDialogOpen), U = e((e) => e.currentPipeline), W = e((e) => e.openDeleteDialog), G = e((e) => e.closeDeleteDialog), { loading: K, error: q, pipelines: J, deletePipeline: Y, refetch: de } = te({ consoleId: L }), X = d(() => {
|
|
26
24
|
let e = [...J];
|
|
27
25
|
if (N !== "all" && (e = e.filter((e) => e.status === N)), B.trim()) {
|
|
28
26
|
let t = B.toLowerCase();
|
|
@@ -35,21 +33,21 @@ var E = l(function() {
|
|
|
35
33
|
B
|
|
36
34
|
]), Z = u(() => {
|
|
37
35
|
l(`/pipelines/new?consoleId=${encodeURIComponent(L)}`);
|
|
38
|
-
}, [l, L]),
|
|
36
|
+
}, [l, L]), fe = u((e) => {
|
|
39
37
|
l(`/pipelines/${e}`);
|
|
40
|
-
}, [l]),
|
|
38
|
+
}, [l]), pe = u((e) => {
|
|
41
39
|
l(`/pipelines/${e}/edit`);
|
|
42
|
-
}, [l]),
|
|
40
|
+
}, [l]), me = u((e) => {
|
|
43
41
|
l(`/pipelines/${e}?test=true`);
|
|
44
|
-
}, [l]),
|
|
42
|
+
}, [l]), he = u((e) => {
|
|
45
43
|
let t = J.find((t) => t.id === e);
|
|
46
44
|
t && W(t);
|
|
47
|
-
}, [J, W]),
|
|
45
|
+
}, [J, W]), ge = u(async () => {
|
|
48
46
|
if (U) {
|
|
49
47
|
try {
|
|
50
|
-
await Y(U.id),
|
|
48
|
+
await Y(U.id), o() && s("success");
|
|
51
49
|
} catch (e) {
|
|
52
|
-
throw
|
|
50
|
+
throw o() && s("error"), e;
|
|
53
51
|
}
|
|
54
52
|
G();
|
|
55
53
|
}
|
|
@@ -57,9 +55,9 @@ var E = l(function() {
|
|
|
57
55
|
U,
|
|
58
56
|
Y,
|
|
59
57
|
G
|
|
60
|
-
]),
|
|
58
|
+
]), _e = u(() => {
|
|
61
59
|
P("all"), V("");
|
|
62
|
-
}, [V]), Q =
|
|
60
|
+
}, [V]), Q = [
|
|
63
61
|
{
|
|
64
62
|
value: "all",
|
|
65
63
|
label: E("bigconsole.pipelines.filters.all", "All")
|
|
@@ -80,48 +78,31 @@ var E = l(function() {
|
|
|
80
78
|
value: "error",
|
|
81
79
|
label: E("bigconsole.pipelines.filters.error", "Error")
|
|
82
80
|
}
|
|
83
|
-
]
|
|
84
|
-
if (
|
|
85
|
-
tr: E,
|
|
86
|
-
statusOptions: Q,
|
|
87
|
-
status: N,
|
|
88
|
-
setStatus: (e) => {
|
|
89
|
-
let t = Q.find((t) => t.value === e);
|
|
90
|
-
t && P(t.value);
|
|
91
|
-
},
|
|
92
|
-
setSearch: V
|
|
93
|
-
}) : null, [
|
|
94
|
-
E,
|
|
95
|
-
O,
|
|
96
|
-
k,
|
|
97
|
-
q,
|
|
98
|
-
Q,
|
|
99
|
-
N,
|
|
100
|
-
V
|
|
101
|
-
])), O) return /* @__PURE__ */ w("div", {
|
|
81
|
+
];
|
|
82
|
+
if (O) return /* @__PURE__ */ C("div", {
|
|
102
83
|
style: {
|
|
103
84
|
display: "flex",
|
|
104
85
|
alignItems: "center",
|
|
105
86
|
justifyContent: "center",
|
|
106
87
|
padding: "80px 0"
|
|
107
88
|
},
|
|
108
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ C(S, { style: {
|
|
109
90
|
height: "var(--size-icon-xl)",
|
|
110
91
|
width: "var(--size-icon-xl)"
|
|
111
92
|
} })
|
|
112
93
|
});
|
|
113
|
-
if (!k) return /* @__PURE__ */
|
|
94
|
+
if (!k) return /* @__PURE__ */ C(m, {
|
|
114
95
|
title: E("bigconsole.pipelines.errors.accessDeniedTitle", "Access Denied"),
|
|
115
96
|
description: E("bigconsole.pipelines.errors.accessDeniedListDescription", "You don't have permission to view pipelines.")
|
|
116
97
|
});
|
|
117
|
-
let $ = /* @__PURE__ */
|
|
98
|
+
let $ = /* @__PURE__ */ w("header", {
|
|
118
99
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ C(oe, { intensity: "subtle" }), /* @__PURE__ */ w("div", {
|
|
120
101
|
className: "flex flex-col gap-form-gap sm:flex-row sm:items-center sm:justify-between",
|
|
121
102
|
style: { padding: "var(--space-pagePadding)" },
|
|
122
|
-
children: [/* @__PURE__ */
|
|
103
|
+
children: [/* @__PURE__ */ w("div", {
|
|
123
104
|
className: "flex min-w-0 items-center gap-form-gap",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ C("span", {
|
|
125
106
|
"aria-hidden": "true",
|
|
126
107
|
className: "flex shrink-0 items-center justify-center rounded-card",
|
|
127
108
|
style: {
|
|
@@ -129,88 +110,88 @@ var E = l(function() {
|
|
|
129
110
|
width: "var(--size-controlHeight-lg)",
|
|
130
111
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
131
112
|
},
|
|
132
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ C(v, { style: {
|
|
133
114
|
height: "var(--size-icon-lg)",
|
|
134
115
|
width: "var(--size-icon-lg)",
|
|
135
116
|
color: "var(--color-action-primary-text)"
|
|
136
117
|
} })
|
|
137
|
-
}), /* @__PURE__ */
|
|
118
|
+
}), /* @__PURE__ */ w("div", {
|
|
138
119
|
className: "min-w-0",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
120
|
+
children: [/* @__PURE__ */ C("h1", {
|
|
140
121
|
className: "text-2xl font-bold leading-tight text-text-primary",
|
|
141
|
-
children: /* @__PURE__ */
|
|
142
|
-
}), /* @__PURE__ */
|
|
122
|
+
children: /* @__PURE__ */ C(se, { children: E("bigconsole.pipelines.list.heading", "Pipelines") })
|
|
123
|
+
}), /* @__PURE__ */ C("p", {
|
|
143
124
|
className: "text-sm text-text-secondary",
|
|
144
125
|
children: E("bigconsole.pipelines.list.subtitle", "Create and manage sequential parser chains for data transformation")
|
|
145
126
|
})]
|
|
146
127
|
})]
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
permission:
|
|
128
|
+
}), /* @__PURE__ */ C(h, {
|
|
129
|
+
permission: a.PIPELINE_CREATE,
|
|
149
130
|
deniedBehavior: "disable",
|
|
150
|
-
children: /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ w(x, {
|
|
151
132
|
onClick: Z,
|
|
152
133
|
className: "w-full shrink-0 min-h-[var(--size-controlHeight-md)] sm:w-auto",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ C(b, { className: "h-icon-sm w-icon-sm" }), E("bigconsole.pipelines.actions.createPipeline", "Create Pipeline")]
|
|
154
135
|
})
|
|
155
136
|
})]
|
|
156
137
|
})]
|
|
157
138
|
});
|
|
158
|
-
return q ? /* @__PURE__ */
|
|
139
|
+
return q ? /* @__PURE__ */ w("div", {
|
|
159
140
|
className: "min-h-screen bg-bg-canvas",
|
|
160
|
-
children: [$, /* @__PURE__ */
|
|
141
|
+
children: [$, /* @__PURE__ */ C("div", {
|
|
161
142
|
style: { padding: "var(--space-pagePadding)" },
|
|
162
|
-
children: /* @__PURE__ */
|
|
143
|
+
children: /* @__PURE__ */ C(r, {
|
|
163
144
|
tone: "danger",
|
|
164
145
|
headingLevel: 2,
|
|
165
146
|
title: E("bigconsole.pipelines.errors.loadListTitle", "Failed to load Pipelines"),
|
|
166
147
|
description: q.message,
|
|
167
|
-
icon: /* @__PURE__ */
|
|
168
|
-
actions: /* @__PURE__ */
|
|
148
|
+
icon: /* @__PURE__ */ C(_, { className: "h-icon-sm w-icon-sm" }),
|
|
149
|
+
actions: /* @__PURE__ */ C(x, {
|
|
169
150
|
size: "sm",
|
|
170
|
-
onClick: () =>
|
|
151
|
+
onClick: () => de(),
|
|
171
152
|
children: E("bigconsole.pipelines.actions.tryAgain", "Try Again")
|
|
172
153
|
}),
|
|
173
154
|
"data-testid": "pipelines-error",
|
|
174
|
-
children: /* @__PURE__ */
|
|
155
|
+
children: /* @__PURE__ */ C("p", {
|
|
175
156
|
className: "text-sm text-text-secondary",
|
|
176
157
|
children: "Nothing was changed. Retry once the console service is reachable again."
|
|
177
158
|
})
|
|
178
159
|
})
|
|
179
160
|
})]
|
|
180
|
-
}) : /* @__PURE__ */
|
|
161
|
+
}) : /* @__PURE__ */ w("div", {
|
|
181
162
|
className: "min-h-screen bg-bg-canvas",
|
|
182
163
|
children: [
|
|
183
164
|
$,
|
|
184
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ C("div", {
|
|
185
166
|
style: { padding: "var(--space-pagePadding)" },
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
167
|
+
children: /* @__PURE__ */ w(i, { children: [
|
|
168
|
+
/* @__PURE__ */ C(ue, {
|
|
188
169
|
className: "max-w-[75ch]",
|
|
189
170
|
children: E("bigconsole.pipelines.list.purpose", "Pipelines chain parsers and data sinks into a repeatable flow — they take raw input, run it through your parsers, and route the structured result into a sink. Use them to turn messy logs, files, or API payloads into clean, queryable data your dashboards can use.")
|
|
190
171
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ w("section", {
|
|
192
173
|
"aria-label": "Filter and search pipelines",
|
|
193
174
|
"data-testid": "pipelines-toolbar",
|
|
194
175
|
"data-section-emphasis": "bare",
|
|
195
|
-
className:
|
|
196
|
-
children: [/* @__PURE__ */
|
|
176
|
+
className: ee("bare", "neutral", "none"),
|
|
177
|
+
children: [/* @__PURE__ */ C(c, {
|
|
197
178
|
value: L,
|
|
198
179
|
onChange: (e) => {
|
|
199
180
|
let t = new URLSearchParams(F);
|
|
200
181
|
t.set("consoleId", e), I(t);
|
|
201
182
|
}
|
|
202
|
-
}), /* @__PURE__ */
|
|
183
|
+
}), /* @__PURE__ */ w("div", {
|
|
203
184
|
className: "mt-form-gap flex flex-col gap-control-gap md:flex-row md:items-center md:justify-between",
|
|
204
185
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ C("div", {
|
|
206
187
|
role: "group",
|
|
207
188
|
"aria-label": "Filter by status",
|
|
208
189
|
className: "flex min-w-0 max-w-full items-center gap-1 overflow-x-auto rounded-card bg-bg-sunken p-1",
|
|
209
|
-
children: Q.map((e) => /* @__PURE__ */
|
|
190
|
+
children: Q.map((e) => /* @__PURE__ */ C("button", {
|
|
210
191
|
type: "button",
|
|
211
192
|
"aria-pressed": N === e.value,
|
|
212
193
|
onClick: () => P(e.value),
|
|
213
|
-
className: `shrink-0 whitespace-nowrap rounded-button text-sm font-medium motion-safe:transition-colors ${
|
|
194
|
+
className: `shrink-0 whitespace-nowrap rounded-button text-sm font-medium motion-safe:transition-colors ${n}`,
|
|
214
195
|
style: {
|
|
215
196
|
minHeight: "var(--size-controlHeight-md)",
|
|
216
197
|
padding: "0 var(--space-formGap)",
|
|
@@ -223,27 +204,27 @@ var E = l(function() {
|
|
|
223
204
|
children: e.label
|
|
224
205
|
}, e.value))
|
|
225
206
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ w("div", {
|
|
227
208
|
role: "group",
|
|
228
209
|
"aria-label": "Pipeline layout",
|
|
229
210
|
className: "flex shrink-0 gap-1",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ C(x, {
|
|
231
212
|
variant: R === "grid" ? "secondary" : "ghost",
|
|
232
213
|
"aria-label": "Grid view",
|
|
233
214
|
"aria-pressed": R === "grid",
|
|
234
215
|
onClick: () => z("grid"),
|
|
235
|
-
children: /* @__PURE__ */
|
|
236
|
-
}), /* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ C(y, { className: "h-icon-sm w-icon-sm" })
|
|
217
|
+
}), /* @__PURE__ */ C(x, {
|
|
237
218
|
variant: R === "list" ? "secondary" : "ghost",
|
|
238
219
|
"aria-label": "List view",
|
|
239
220
|
"aria-pressed": R === "list",
|
|
240
221
|
onClick: () => z("list"),
|
|
241
|
-
children: /* @__PURE__ */
|
|
222
|
+
children: /* @__PURE__ */ C(ie, { className: "h-icon-sm w-icon-sm" })
|
|
242
223
|
})]
|
|
243
224
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ w("div", {
|
|
245
226
|
className: "relative w-full md:max-w-[320px]",
|
|
246
|
-
children: [/* @__PURE__ */
|
|
227
|
+
children: [/* @__PURE__ */ C(ae, {
|
|
247
228
|
"aria-hidden": "true",
|
|
248
229
|
style: {
|
|
249
230
|
position: "absolute",
|
|
@@ -254,7 +235,7 @@ var E = l(function() {
|
|
|
254
235
|
width: "var(--size-icon-sm)",
|
|
255
236
|
color: "var(--color-text-muted)"
|
|
256
237
|
}
|
|
257
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ C(le, {
|
|
258
239
|
type: "text",
|
|
259
240
|
"aria-label": E("bigconsole.pipelines.list.searchPlaceholder", "Search pipelines..."),
|
|
260
241
|
placeholder: E("bigconsole.pipelines.list.searchPlaceholder", "Search pipelines..."),
|
|
@@ -269,84 +250,84 @@ var E = l(function() {
|
|
|
269
250
|
]
|
|
270
251
|
})]
|
|
271
252
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ w(r, {
|
|
273
254
|
emphasis: "primary",
|
|
274
255
|
headingLevel: 2,
|
|
275
256
|
title: "Your pipelines",
|
|
276
257
|
description: "Open one to review its stages, or run a quick test against sample input.",
|
|
277
|
-
meta: !K || J.length > 0 ? /* @__PURE__ */
|
|
258
|
+
meta: !K || J.length > 0 ? /* @__PURE__ */ w("span", {
|
|
278
259
|
className: "rounded-pill bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary",
|
|
279
260
|
children: [X.length, X.length === J.length ? "" : ` of ${J.length}`]
|
|
280
261
|
}) : null,
|
|
281
262
|
"data-testid": "pipelines-results",
|
|
282
263
|
children: [
|
|
283
|
-
K && J.length === 0 && /* @__PURE__ */
|
|
264
|
+
K && J.length === 0 && /* @__PURE__ */ C("div", {
|
|
284
265
|
className: "flex items-center justify-center py-12",
|
|
285
266
|
role: "status",
|
|
286
|
-
children: /* @__PURE__ */
|
|
267
|
+
children: /* @__PURE__ */ w("div", {
|
|
287
268
|
className: "text-center",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ C(S, { style: {
|
|
289
270
|
height: "var(--size-icon-xl)",
|
|
290
271
|
width: "var(--size-icon-xl)",
|
|
291
272
|
margin: "0 auto var(--space-formGap)"
|
|
292
|
-
} }), /* @__PURE__ */
|
|
273
|
+
} }), /* @__PURE__ */ C("p", {
|
|
293
274
|
className: "text-sm text-text-muted",
|
|
294
275
|
children: E("bigconsole.pipelines.list.loading", "Loading pipelines...")
|
|
295
276
|
})]
|
|
296
277
|
})
|
|
297
278
|
}),
|
|
298
|
-
!K && J.length === 0 && /* @__PURE__ */
|
|
279
|
+
!K && J.length === 0 && /* @__PURE__ */ C("div", {
|
|
299
280
|
"data-testid": "pipelines-empty",
|
|
300
|
-
children: /* @__PURE__ */
|
|
281
|
+
children: /* @__PURE__ */ C(ce, {
|
|
301
282
|
illustration: "empty-data",
|
|
302
283
|
title: E("bigconsole.pipelines.list.emptyTitle", "No Pipelines yet"),
|
|
303
284
|
description: E("bigconsole.pipelines.list.emptyDescription", "Create a pipeline to chain parsers together for sequential data transformation. Each stage processes the output of the previous stage."),
|
|
304
|
-
action: /* @__PURE__ */
|
|
305
|
-
permission:
|
|
285
|
+
action: /* @__PURE__ */ C(h, {
|
|
286
|
+
permission: a.PIPELINE_CREATE,
|
|
306
287
|
deniedBehavior: "disable",
|
|
307
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ w(x, {
|
|
308
289
|
onClick: Z,
|
|
309
290
|
className: "min-h-[var(--size-controlHeight-md)]",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
291
|
+
children: [/* @__PURE__ */ C(b, { className: "h-icon-sm w-icon-sm" }), E("bigconsole.pipelines.actions.createPipeline", "Create Pipeline")]
|
|
311
292
|
})
|
|
312
293
|
})
|
|
313
294
|
})
|
|
314
295
|
}),
|
|
315
|
-
!K && X.length === 0 && J.length > 0 && /* @__PURE__ */
|
|
296
|
+
!K && X.length === 0 && J.length > 0 && /* @__PURE__ */ C(r, {
|
|
316
297
|
emphasis: "muted",
|
|
317
298
|
tone: "info",
|
|
318
299
|
padding: "compact",
|
|
319
300
|
headingLevel: 3,
|
|
320
301
|
title: E("bigconsole.pipelines.list.noResultsTitle", "No matching pipelines"),
|
|
321
302
|
description: E("bigconsole.pipelines.list.noResultsDescription", "No pipelines match your filters"),
|
|
322
|
-
actions: /* @__PURE__ */
|
|
303
|
+
actions: /* @__PURE__ */ C(x, {
|
|
323
304
|
size: "sm",
|
|
324
305
|
variant: "secondary",
|
|
325
|
-
onClick:
|
|
306
|
+
onClick: _e,
|
|
326
307
|
children: "Clear filters"
|
|
327
308
|
}),
|
|
328
309
|
"data-testid": "pipelines-no-results"
|
|
329
310
|
}),
|
|
330
|
-
X.length > 0 && /* @__PURE__ */
|
|
311
|
+
X.length > 0 && /* @__PURE__ */ C("div", {
|
|
331
312
|
className: R === "grid" ? "grid grid-cols-1 gap-form-gap sm:grid-cols-2 xl:grid-cols-3" : "grid grid-cols-1 gap-form-gap",
|
|
332
313
|
"data-layout": R,
|
|
333
|
-
children: X.map((e) => /* @__PURE__ */
|
|
314
|
+
children: X.map((e) => /* @__PURE__ */ C(re, {
|
|
334
315
|
pipeline: e,
|
|
335
|
-
onView:
|
|
336
|
-
onEdit: A ?
|
|
337
|
-
onTest: M ?
|
|
338
|
-
onDelete: j ?
|
|
316
|
+
onView: fe,
|
|
317
|
+
onEdit: A ? pe : void 0,
|
|
318
|
+
onTest: M ? me : void 0,
|
|
319
|
+
onDelete: j ? he : void 0
|
|
339
320
|
}, e.id))
|
|
340
321
|
})
|
|
341
322
|
]
|
|
342
323
|
})
|
|
343
324
|
] })
|
|
344
325
|
}),
|
|
345
|
-
U && /* @__PURE__ */
|
|
326
|
+
U && /* @__PURE__ */ C(ne, {
|
|
346
327
|
pipeline: U,
|
|
347
328
|
isOpen: H,
|
|
348
329
|
onClose: G,
|
|
349
|
-
onConfirm:
|
|
330
|
+
onConfirm: ge
|
|
350
331
|
})
|
|
351
332
|
]
|
|
352
333
|
});
|