@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.
- package/dist/bigconsole/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
- package/dist/bigconsole/pages/DashboardsPage.js +638 -855
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- package/package.json +4 -4
|
@@ -243,6 +243,9 @@ var _ = "min-h-[var(--size-controlHeight-md)]", _e = "rounded-pill bg-bg-sunken
|
|
|
243
243
|
"data-testid": "pipeline-stages",
|
|
244
244
|
children: Q === 0 ? /* @__PURE__ */ h(pe, {
|
|
245
245
|
illustration: "empty-generic",
|
|
246
|
+
kind: "first-use",
|
|
247
|
+
glassIllustration: "workflows",
|
|
248
|
+
size: "panel",
|
|
246
249
|
title: w("bigconsole.pipelines.view.noStagesTitle", "No stages defined"),
|
|
247
250
|
description: w("bigconsole.pipelines.view.noStagesDescription", "Edit the pipeline to add parser stages."),
|
|
248
251
|
action: /* @__PURE__ */ g(p, {
|
|
@@ -2,126 +2,126 @@ import { PipelineScopePicker as e } from "../components/pipeline/PipelineScopePi
|
|
|
2
2
|
import { useAppNavigate as t } from "../contexts/NavigationContext.js";
|
|
3
3
|
import "../contexts/index.js";
|
|
4
4
|
import { SECTION_FOCUS_RING as n, sectionSurfaceClasses as ee } from "../components/common/sectionStyles.js";
|
|
5
|
-
import { Section as r, SectionStack as
|
|
6
|
-
import { isNative as
|
|
7
|
-
import
|
|
8
|
-
import { usePipelineStore as
|
|
9
|
-
import { PipelineCard as
|
|
10
|
-
import { PipelineDeleteDialog as
|
|
5
|
+
import { Section as r, SectionStack as te } from "../components/common/Section.js";
|
|
6
|
+
import { isNative as i, nativeNotify as a } from "../../utils/nativeBridge.js";
|
|
7
|
+
import ne from "../hooks/usePipelineOperations.js";
|
|
8
|
+
import { usePipelineStore as o } from "../store/pipelineStore.js";
|
|
9
|
+
import { PipelineCard as re } from "../components/pipeline/PipelineCard.js";
|
|
10
|
+
import { PipelineDeleteDialog as ie } from "../components/pipeline/PipelineDeleteDialog.js";
|
|
11
11
|
import "../components/common/index.js";
|
|
12
|
-
import { pipelinesListControls as
|
|
13
|
-
import { BIGCONSOLE_PERMISSIONS as
|
|
14
|
-
import { memo as
|
|
15
|
-
import { useSearchParams as
|
|
16
|
-
import { AccessDenied as
|
|
17
|
-
import { usePermissions as
|
|
18
|
-
import { AlertCircle as
|
|
19
|
-
import { AuroraBackground as
|
|
20
|
-
import { useI18n as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import { useAssistantPageControls as
|
|
12
|
+
import { pipelinesListControls as s } from "../assistant/pageControls.js";
|
|
13
|
+
import { BIGCONSOLE_PERMISSIONS as c } from "../../constants/permissions.js";
|
|
14
|
+
import { memo as l, useCallback as u, useMemo as d, useState as f } from "react";
|
|
15
|
+
import { useSearchParams as ae } from "react-router";
|
|
16
|
+
import { AccessDenied as oe, PermissionButton as p } from "@burdenoff/fe-libs/shared/components";
|
|
17
|
+
import { usePermissions as se } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
18
|
+
import { AlertCircle as ce, GitBranch as le, LayoutGrid as ue, List as de, Plus as m, Search as fe } from "lucide-react";
|
|
19
|
+
import { AuroraBackground as pe, Button as h, EmptyState as g, GradientText as _, IllustratedEmptyState as v, Input as y, PagePurpose as me, Spinner as b, useGlassEmptyStates as he } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
import { useI18n as ge } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
21
|
+
import { Fragment as _e, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
22
|
+
import { useAssistantPageControls as ve } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
23
23
|
// src/bigconsole/pages/PipelinesPage.tsx
|
|
24
|
-
var
|
|
25
|
-
let
|
|
26
|
-
let e = [...
|
|
27
|
-
if (
|
|
28
|
-
let t =
|
|
24
|
+
var C = l(function() {
|
|
25
|
+
let l = t(), { t: C } = ge(), { hasPermission: w, isLoading: T } = se(), E = he(), D = w(c.PIPELINE_READ), O = w(c.PIPELINE_UPDATE), k = w(c.PIPELINE_DELETE), A = w(c.PIPELINE_TEST), [j, M] = f("all"), [N, P] = ae(), F = N.get("consoleId") || "default", [I, L] = f("grid"), R = o((e) => e.searchQuery), z = o((e) => e.setSearchQuery), ye = o((e) => e.deleteDialogOpen), B = o((e) => e.currentPipeline), V = o((e) => e.openDeleteDialog), H = o((e) => e.closeDeleteDialog), { loading: U, error: W, pipelines: G, deletePipeline: K, refetch: q } = ne({ consoleId: F }), J = d(() => {
|
|
26
|
+
let e = [...G];
|
|
27
|
+
if (j !== "all" && (e = e.filter((e) => e.status === j)), R.trim()) {
|
|
28
|
+
let t = R.toLowerCase();
|
|
29
29
|
e = e.filter((e) => e.name.toLowerCase().includes(t) || e.description?.toLowerCase().includes(t));
|
|
30
30
|
}
|
|
31
31
|
return e.sort((e, t) => new Date(t.updatedAt).getTime() - new Date(e.updatedAt).getTime());
|
|
32
32
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
]),
|
|
37
|
-
|
|
38
|
-
}, [
|
|
39
|
-
|
|
40
|
-
}, [
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
|
|
44
|
-
}, [
|
|
45
|
-
let t =
|
|
46
|
-
t &&
|
|
47
|
-
}, [
|
|
48
|
-
if (
|
|
33
|
+
G,
|
|
34
|
+
j,
|
|
35
|
+
R
|
|
36
|
+
]), Y = u(() => {
|
|
37
|
+
l(`/pipelines/new?consoleId=${encodeURIComponent(F)}`);
|
|
38
|
+
}, [l, F]), be = u((e) => {
|
|
39
|
+
l(`/pipelines/${e}`);
|
|
40
|
+
}, [l]), xe = u((e) => {
|
|
41
|
+
l(`/pipelines/${e}/edit`);
|
|
42
|
+
}, [l]), X = u((e) => {
|
|
43
|
+
l(`/pipelines/${e}?test=true`);
|
|
44
|
+
}, [l]), Se = u((e) => {
|
|
45
|
+
let t = G.find((t) => t.id === e);
|
|
46
|
+
t && V(t);
|
|
47
|
+
}, [G, V]), Ce = u(async () => {
|
|
48
|
+
if (B) {
|
|
49
49
|
try {
|
|
50
|
-
await
|
|
50
|
+
await K(B.id), i() && a("success");
|
|
51
51
|
} catch (e) {
|
|
52
|
-
throw
|
|
52
|
+
throw i() && a("error"), e;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
H();
|
|
55
55
|
}
|
|
56
56
|
}, [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
]),
|
|
61
|
-
|
|
62
|
-
}, [
|
|
57
|
+
B,
|
|
58
|
+
K,
|
|
59
|
+
H
|
|
60
|
+
]), Z = u(() => {
|
|
61
|
+
M("all"), z("");
|
|
62
|
+
}, [z]), Q = d(() => [
|
|
63
63
|
{
|
|
64
64
|
value: "all",
|
|
65
|
-
label:
|
|
65
|
+
label: C("bigconsole.pipelines.filters.all", "All")
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
value: "draft",
|
|
69
|
-
label:
|
|
69
|
+
label: C("bigconsole.pipelines.filters.draft", "Draft")
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
value: "active",
|
|
73
|
-
label:
|
|
73
|
+
label: C("bigconsole.pipelines.filters.active", "Active")
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
value: "inactive",
|
|
77
|
-
label:
|
|
77
|
+
label: C("bigconsole.pipelines.filters.inactive", "Inactive")
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
value: "error",
|
|
81
|
-
label:
|
|
81
|
+
label: C("bigconsole.pipelines.filters.error", "Error")
|
|
82
82
|
}
|
|
83
|
-
], [
|
|
84
|
-
tr:
|
|
83
|
+
], [C]), we = d(() => !T && D && !W ? s({
|
|
84
|
+
tr: C,
|
|
85
85
|
statusOptions: Q,
|
|
86
|
-
status:
|
|
86
|
+
status: j,
|
|
87
87
|
setStatus: (e) => {
|
|
88
88
|
let t = Q.find((t) => t.value === e);
|
|
89
|
-
t &&
|
|
89
|
+
t && M(t.value);
|
|
90
90
|
},
|
|
91
|
-
setSearch:
|
|
91
|
+
setSearch: z
|
|
92
92
|
}) : null, [
|
|
93
|
+
C,
|
|
94
|
+
T,
|
|
93
95
|
D,
|
|
94
|
-
|
|
95
|
-
A,
|
|
96
|
-
q,
|
|
96
|
+
W,
|
|
97
97
|
Q,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
j,
|
|
99
|
+
z
|
|
100
100
|
]);
|
|
101
|
-
if (
|
|
101
|
+
if (ve(we), T) return /* @__PURE__ */ x("div", {
|
|
102
102
|
style: {
|
|
103
103
|
display: "flex",
|
|
104
104
|
alignItems: "center",
|
|
105
105
|
justifyContent: "center",
|
|
106
106
|
padding: "80px 0"
|
|
107
107
|
},
|
|
108
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ x(b, { style: {
|
|
109
109
|
height: "var(--size-icon-xl)",
|
|
110
110
|
width: "var(--size-icon-xl)"
|
|
111
111
|
} })
|
|
112
112
|
});
|
|
113
|
-
if (!
|
|
114
|
-
title:
|
|
115
|
-
description:
|
|
113
|
+
if (!D) return /* @__PURE__ */ x(oe, {
|
|
114
|
+
title: C("bigconsole.pipelines.errors.accessDeniedTitle", "Access Denied"),
|
|
115
|
+
description: C("bigconsole.pipelines.errors.accessDeniedListDescription", "You don't have permission to view pipelines.")
|
|
116
116
|
});
|
|
117
|
-
let $ = /* @__PURE__ */
|
|
117
|
+
let $ = /* @__PURE__ */ S("header", {
|
|
118
118
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ x(pe, { intensity: "subtle" }), /* @__PURE__ */ S("div", {
|
|
120
120
|
className: "flex flex-col gap-form-gap sm:flex-row sm:items-center sm:justify-between",
|
|
121
121
|
style: { padding: "var(--space-pagePadding)" },
|
|
122
|
-
children: [/* @__PURE__ */
|
|
122
|
+
children: [/* @__PURE__ */ S("div", {
|
|
123
123
|
className: "flex min-w-0 items-center gap-form-gap",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
124
|
+
children: [/* @__PURE__ */ x("span", {
|
|
125
125
|
"aria-hidden": "true",
|
|
126
126
|
className: "flex shrink-0 items-center justify-center rounded-card",
|
|
127
127
|
style: {
|
|
@@ -129,121 +129,137 @@ var D = u(function() {
|
|
|
129
129
|
width: "var(--size-controlHeight-lg)",
|
|
130
130
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
131
131
|
},
|
|
132
|
-
children: /* @__PURE__ */
|
|
132
|
+
children: /* @__PURE__ */ x(le, { style: {
|
|
133
133
|
height: "var(--size-icon-lg)",
|
|
134
134
|
width: "var(--size-icon-lg)",
|
|
135
135
|
color: "var(--color-action-primary-text)"
|
|
136
136
|
} })
|
|
137
|
-
}), /* @__PURE__ */
|
|
137
|
+
}), /* @__PURE__ */ S("div", {
|
|
138
138
|
className: "min-w-0",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ x("h1", {
|
|
140
140
|
className: "text-2xl font-bold leading-tight text-text-primary",
|
|
141
|
-
children: /* @__PURE__ */
|
|
142
|
-
}), /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ x(_, { children: C("bigconsole.pipelines.list.heading", "Pipelines") })
|
|
142
|
+
}), /* @__PURE__ */ x("p", {
|
|
143
143
|
className: "text-sm text-text-secondary",
|
|
144
|
-
children:
|
|
144
|
+
children: C("bigconsole.pipelines.list.subtitle", "Create and manage sequential parser chains for data transformation")
|
|
145
145
|
})]
|
|
146
146
|
})]
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
permission:
|
|
147
|
+
}), /* @__PURE__ */ x(p, {
|
|
148
|
+
permission: c.PIPELINE_CREATE,
|
|
149
149
|
deniedBehavior: "disable",
|
|
150
|
-
children: /* @__PURE__ */
|
|
151
|
-
onClick:
|
|
150
|
+
children: /* @__PURE__ */ S(h, {
|
|
151
|
+
onClick: Y,
|
|
152
152
|
className: "w-full shrink-0 min-h-[var(--size-controlHeight-md)] sm:w-auto",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ x(m, { className: "h-icon-sm w-icon-sm" }), C("bigconsole.pipelines.actions.createPipeline", "Create Pipeline")]
|
|
154
154
|
})
|
|
155
155
|
})]
|
|
156
156
|
})]
|
|
157
157
|
});
|
|
158
|
-
return
|
|
158
|
+
return W ? /* @__PURE__ */ S("div", {
|
|
159
159
|
className: "min-h-screen bg-bg-canvas",
|
|
160
|
-
children: [$, /* @__PURE__ */
|
|
160
|
+
children: [$, /* @__PURE__ */ x("div", {
|
|
161
161
|
style: { padding: "var(--space-pagePadding)" },
|
|
162
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: E ? /* @__PURE__ */ x("div", {
|
|
163
|
+
"data-testid": "pipelines-error",
|
|
164
|
+
children: /* @__PURE__ */ x(g, {
|
|
165
|
+
kind: "error",
|
|
166
|
+
size: "page",
|
|
167
|
+
title: C("bigconsole.pipelines.errors.loadListTitle", "Failed to load Pipelines"),
|
|
168
|
+
description: /* @__PURE__ */ S(_e, { children: [W.message, /* @__PURE__ */ x("span", {
|
|
169
|
+
className: "mt-1 block",
|
|
170
|
+
children: "Nothing was changed. Retry once the console service is reachable again."
|
|
171
|
+
})] }),
|
|
172
|
+
action: /* @__PURE__ */ x(h, {
|
|
173
|
+
size: "sm",
|
|
174
|
+
onClick: () => q(),
|
|
175
|
+
children: C("bigconsole.pipelines.actions.tryAgain", "Try Again")
|
|
176
|
+
})
|
|
177
|
+
})
|
|
178
|
+
}) : /* @__PURE__ */ x(r, {
|
|
163
179
|
tone: "danger",
|
|
164
180
|
headingLevel: 2,
|
|
165
|
-
title:
|
|
166
|
-
description:
|
|
167
|
-
icon: /* @__PURE__ */
|
|
168
|
-
actions: /* @__PURE__ */
|
|
181
|
+
title: C("bigconsole.pipelines.errors.loadListTitle", "Failed to load Pipelines"),
|
|
182
|
+
description: W.message,
|
|
183
|
+
icon: /* @__PURE__ */ x(ce, { className: "h-icon-sm w-icon-sm" }),
|
|
184
|
+
actions: /* @__PURE__ */ x(h, {
|
|
169
185
|
size: "sm",
|
|
170
|
-
onClick: () =>
|
|
171
|
-
children:
|
|
186
|
+
onClick: () => q(),
|
|
187
|
+
children: C("bigconsole.pipelines.actions.tryAgain", "Try Again")
|
|
172
188
|
}),
|
|
173
189
|
"data-testid": "pipelines-error",
|
|
174
|
-
children: /* @__PURE__ */
|
|
190
|
+
children: /* @__PURE__ */ x("p", {
|
|
175
191
|
className: "text-sm text-text-secondary",
|
|
176
192
|
children: "Nothing was changed. Retry once the console service is reachable again."
|
|
177
193
|
})
|
|
178
194
|
})
|
|
179
195
|
})]
|
|
180
|
-
}) : /* @__PURE__ */
|
|
196
|
+
}) : /* @__PURE__ */ S("div", {
|
|
181
197
|
className: "min-h-screen bg-bg-canvas",
|
|
182
198
|
children: [
|
|
183
199
|
$,
|
|
184
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ x("div", {
|
|
185
201
|
style: { padding: "var(--space-pagePadding)" },
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ S(te, { children: [
|
|
203
|
+
/* @__PURE__ */ x(me, {
|
|
188
204
|
className: "max-w-[75ch]",
|
|
189
|
-
children:
|
|
205
|
+
children: C("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
206
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ S("section", {
|
|
192
208
|
"aria-label": "Filter and search pipelines",
|
|
193
209
|
"data-testid": "pipelines-toolbar",
|
|
194
210
|
"data-section-emphasis": "bare",
|
|
195
211
|
className: ee("bare", "neutral", "none"),
|
|
196
|
-
children: [/* @__PURE__ */
|
|
197
|
-
value:
|
|
212
|
+
children: [/* @__PURE__ */ x(e, {
|
|
213
|
+
value: F,
|
|
198
214
|
onChange: (e) => {
|
|
199
|
-
let t = new URLSearchParams(
|
|
200
|
-
t.set("consoleId", e),
|
|
215
|
+
let t = new URLSearchParams(N);
|
|
216
|
+
t.set("consoleId", e), P(t);
|
|
201
217
|
}
|
|
202
|
-
}), /* @__PURE__ */
|
|
218
|
+
}), /* @__PURE__ */ S("div", {
|
|
203
219
|
className: "mt-form-gap flex flex-col gap-control-gap md:flex-row md:items-center md:justify-between",
|
|
204
220
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ x("div", {
|
|
206
222
|
role: "group",
|
|
207
223
|
"aria-label": "Filter by status",
|
|
208
224
|
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__ */
|
|
225
|
+
children: Q.map((e) => /* @__PURE__ */ x("button", {
|
|
210
226
|
type: "button",
|
|
211
|
-
"aria-pressed":
|
|
212
|
-
onClick: () =>
|
|
227
|
+
"aria-pressed": j === e.value,
|
|
228
|
+
onClick: () => M(e.value),
|
|
213
229
|
className: `shrink-0 whitespace-nowrap rounded-button text-sm font-medium motion-safe:transition-colors ${n}`,
|
|
214
230
|
style: {
|
|
215
231
|
minHeight: "var(--size-controlHeight-md)",
|
|
216
232
|
padding: "0 var(--space-formGap)",
|
|
217
233
|
border: "none",
|
|
218
234
|
cursor: "pointer",
|
|
219
|
-
backgroundColor:
|
|
220
|
-
color:
|
|
221
|
-
boxShadow:
|
|
235
|
+
backgroundColor: j === e.value ? "var(--color-bg-surface)" : "transparent",
|
|
236
|
+
color: j === e.value ? "var(--color-text-primary)" : "var(--color-text-secondary)",
|
|
237
|
+
boxShadow: j === e.value ? "var(--shadow-elevation-1)" : "none"
|
|
222
238
|
},
|
|
223
239
|
children: e.label
|
|
224
240
|
}, e.value))
|
|
225
241
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ S("div", {
|
|
227
243
|
role: "group",
|
|
228
244
|
"aria-label": "Pipeline layout",
|
|
229
245
|
className: "flex shrink-0 gap-1",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
231
|
-
variant:
|
|
246
|
+
children: [/* @__PURE__ */ x(h, {
|
|
247
|
+
variant: I === "grid" ? "secondary" : "ghost",
|
|
232
248
|
"aria-label": "Grid view",
|
|
233
|
-
"aria-pressed":
|
|
234
|
-
onClick: () =>
|
|
235
|
-
children: /* @__PURE__ */
|
|
236
|
-
}), /* @__PURE__ */
|
|
237
|
-
variant:
|
|
249
|
+
"aria-pressed": I === "grid",
|
|
250
|
+
onClick: () => L("grid"),
|
|
251
|
+
children: /* @__PURE__ */ x(ue, { className: "h-icon-sm w-icon-sm" })
|
|
252
|
+
}), /* @__PURE__ */ x(h, {
|
|
253
|
+
variant: I === "list" ? "secondary" : "ghost",
|
|
238
254
|
"aria-label": "List view",
|
|
239
|
-
"aria-pressed":
|
|
240
|
-
onClick: () =>
|
|
241
|
-
children: /* @__PURE__ */
|
|
255
|
+
"aria-pressed": I === "list",
|
|
256
|
+
onClick: () => L("list"),
|
|
257
|
+
children: /* @__PURE__ */ x(de, { className: "h-icon-sm w-icon-sm" })
|
|
242
258
|
})]
|
|
243
259
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ S("div", {
|
|
245
261
|
className: "relative w-full md:max-w-[320px]",
|
|
246
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ x(fe, {
|
|
247
263
|
"aria-hidden": "true",
|
|
248
264
|
style: {
|
|
249
265
|
position: "absolute",
|
|
@@ -254,12 +270,12 @@ var D = u(function() {
|
|
|
254
270
|
width: "var(--size-icon-sm)",
|
|
255
271
|
color: "var(--color-text-muted)"
|
|
256
272
|
}
|
|
257
|
-
}), /* @__PURE__ */
|
|
273
|
+
}), /* @__PURE__ */ x(y, {
|
|
258
274
|
type: "text",
|
|
259
|
-
"aria-label":
|
|
260
|
-
placeholder:
|
|
261
|
-
value:
|
|
262
|
-
onChange: (e) =>
|
|
275
|
+
"aria-label": C("bigconsole.pipelines.list.searchPlaceholder", "Search pipelines..."),
|
|
276
|
+
placeholder: C("bigconsole.pipelines.list.searchPlaceholder", "Search pipelines..."),
|
|
277
|
+
value: R,
|
|
278
|
+
onChange: (e) => z(e.target.value),
|
|
263
279
|
style: {
|
|
264
280
|
paddingLeft: "var(--size-controlHeight-md)",
|
|
265
281
|
height: "var(--size-controlHeight-md)"
|
|
@@ -269,86 +285,103 @@ var D = u(function() {
|
|
|
269
285
|
]
|
|
270
286
|
})]
|
|
271
287
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ S(r, {
|
|
273
289
|
emphasis: "primary",
|
|
274
290
|
headingLevel: 2,
|
|
275
291
|
title: "Your pipelines",
|
|
276
292
|
description: "Open one to review its stages, or run a quick test against sample input.",
|
|
277
|
-
meta: !
|
|
293
|
+
meta: !U || G.length > 0 ? /* @__PURE__ */ S("span", {
|
|
278
294
|
className: "rounded-pill bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary",
|
|
279
|
-
children: [
|
|
295
|
+
children: [J.length, J.length === G.length ? "" : ` of ${G.length}`]
|
|
280
296
|
}) : null,
|
|
281
297
|
"data-testid": "pipelines-results",
|
|
282
298
|
children: [
|
|
283
|
-
|
|
299
|
+
U && G.length === 0 && /* @__PURE__ */ x("div", {
|
|
284
300
|
className: "flex items-center justify-center py-12",
|
|
285
301
|
role: "status",
|
|
286
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ S("div", {
|
|
287
303
|
className: "text-center",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
304
|
+
children: [/* @__PURE__ */ x(b, { style: {
|
|
289
305
|
height: "var(--size-icon-xl)",
|
|
290
306
|
width: "var(--size-icon-xl)",
|
|
291
307
|
margin: "0 auto var(--space-formGap)"
|
|
292
|
-
} }), /* @__PURE__ */
|
|
308
|
+
} }), /* @__PURE__ */ x("p", {
|
|
293
309
|
className: "text-sm text-text-muted",
|
|
294
|
-
children:
|
|
310
|
+
children: C("bigconsole.pipelines.list.loading", "Loading pipelines...")
|
|
295
311
|
})]
|
|
296
312
|
})
|
|
297
313
|
}),
|
|
298
|
-
!
|
|
314
|
+
!U && G.length === 0 && /* @__PURE__ */ x("div", {
|
|
299
315
|
"data-testid": "pipelines-empty",
|
|
300
|
-
children: /* @__PURE__ */
|
|
316
|
+
children: /* @__PURE__ */ x(v, {
|
|
301
317
|
illustration: "empty-data",
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
318
|
+
kind: "first-use",
|
|
319
|
+
glassIllustration: "workflows",
|
|
320
|
+
size: "page",
|
|
321
|
+
title: C("bigconsole.pipelines.list.emptyTitle", "No Pipelines yet"),
|
|
322
|
+
description: C("bigconsole.pipelines.list.emptyDescription", "Create a pipeline to chain parsers together for sequential data transformation. Each stage processes the output of the previous stage."),
|
|
323
|
+
action: /* @__PURE__ */ x(p, {
|
|
324
|
+
permission: c.PIPELINE_CREATE,
|
|
306
325
|
deniedBehavior: "disable",
|
|
307
|
-
children: /* @__PURE__ */
|
|
308
|
-
onClick:
|
|
326
|
+
children: /* @__PURE__ */ S(h, {
|
|
327
|
+
onClick: Y,
|
|
309
328
|
className: "min-h-[var(--size-controlHeight-md)]",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
329
|
+
children: [/* @__PURE__ */ x(m, { className: "h-icon-sm w-icon-sm" }), C("bigconsole.pipelines.actions.createPipeline", "Create Pipeline")]
|
|
311
330
|
})
|
|
312
331
|
})
|
|
313
332
|
})
|
|
314
333
|
}),
|
|
315
|
-
!
|
|
334
|
+
!U && J.length === 0 && G.length > 0 && (E ? /* @__PURE__ */ x("div", {
|
|
335
|
+
"data-testid": "pipelines-no-results",
|
|
336
|
+
children: /* @__PURE__ */ x(g, {
|
|
337
|
+
kind: R.trim() ? "no-results" : "filtered",
|
|
338
|
+
size: "panel",
|
|
339
|
+
title: C("bigconsole.pipelines.list.noResultsTitle", "No matching pipelines"),
|
|
340
|
+
description: C("bigconsole.pipelines.list.noResultsDescription", "No pipelines match your filters"),
|
|
341
|
+
action: /* @__PURE__ */ x(h, {
|
|
342
|
+
size: "sm",
|
|
343
|
+
variant: "secondary",
|
|
344
|
+
onClick: Z,
|
|
345
|
+
children: "Clear filters"
|
|
346
|
+
})
|
|
347
|
+
})
|
|
348
|
+
}) : /* @__PURE__ */ x(r, {
|
|
316
349
|
emphasis: "muted",
|
|
317
350
|
tone: "info",
|
|
318
351
|
padding: "compact",
|
|
319
352
|
headingLevel: 3,
|
|
320
|
-
title:
|
|
321
|
-
description:
|
|
322
|
-
actions: /* @__PURE__ */
|
|
353
|
+
title: C("bigconsole.pipelines.list.noResultsTitle", "No matching pipelines"),
|
|
354
|
+
description: C("bigconsole.pipelines.list.noResultsDescription", "No pipelines match your filters"),
|
|
355
|
+
actions: /* @__PURE__ */ x(h, {
|
|
323
356
|
size: "sm",
|
|
324
357
|
variant: "secondary",
|
|
325
|
-
onClick:
|
|
358
|
+
onClick: Z,
|
|
326
359
|
children: "Clear filters"
|
|
327
360
|
}),
|
|
328
361
|
"data-testid": "pipelines-no-results"
|
|
329
|
-
}),
|
|
330
|
-
|
|
331
|
-
className:
|
|
332
|
-
"data-layout":
|
|
333
|
-
children:
|
|
362
|
+
})),
|
|
363
|
+
J.length > 0 && /* @__PURE__ */ x("div", {
|
|
364
|
+
className: I === "grid" ? "grid grid-cols-1 gap-form-gap sm:grid-cols-2 xl:grid-cols-3" : "grid grid-cols-1 gap-form-gap",
|
|
365
|
+
"data-layout": I,
|
|
366
|
+
children: J.map((e) => /* @__PURE__ */ x(re, {
|
|
334
367
|
pipeline: e,
|
|
335
|
-
onView:
|
|
336
|
-
onEdit:
|
|
337
|
-
onTest:
|
|
338
|
-
onDelete:
|
|
368
|
+
onView: be,
|
|
369
|
+
onEdit: O ? xe : void 0,
|
|
370
|
+
onTest: A ? X : void 0,
|
|
371
|
+
onDelete: k ? Se : void 0
|
|
339
372
|
}, e.id))
|
|
340
373
|
})
|
|
341
374
|
]
|
|
342
375
|
})
|
|
343
376
|
] })
|
|
344
377
|
}),
|
|
345
|
-
|
|
346
|
-
pipeline:
|
|
347
|
-
isOpen:
|
|
348
|
-
onClose:
|
|
349
|
-
onConfirm:
|
|
378
|
+
B && /* @__PURE__ */ x(ie, {
|
|
379
|
+
pipeline: B,
|
|
380
|
+
isOpen: ye,
|
|
381
|
+
onClose: H,
|
|
382
|
+
onConfirm: Ce
|
|
350
383
|
})
|
|
351
384
|
]
|
|
352
385
|
});
|
|
353
386
|
});
|
|
354
|
-
export {
|
|
387
|
+
export { C as PipelinesPage, C as default };
|