@burdenoff/microfe-bigconsole 2026.805.2 → 2026.812.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/components/DrilldownDashboardRenderer.js +118 -106
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js.map +1 -1
- package/dist/bigconsole/components/DrilldownModal.js +54 -50
- package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
- package/dist/bigconsole/components/builder/BuilderCanvas.js +2 -2
- package/dist/bigconsole/components/builder/BuilderCanvas.js.map +1 -1
- package/dist/bigconsole/components/builder/BuilderTopbar.js +3 -3
- package/dist/bigconsole/components/builder/BuilderTopbar.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/AdvancedSection.js +24 -25
- package/dist/bigconsole/components/builder/inspector/AdvancedSection.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +40 -29
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +145 -111
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/GeneralSection.js +58 -44
- package/dist/bigconsole/components/builder/inspector/GeneralSection.js.map +1 -1
- package/dist/bigconsole/components/common/Section.js +70 -0
- package/dist/bigconsole/components/common/Section.js.map +1 -0
- package/dist/bigconsole/components/common/index.js +2 -0
- package/dist/bigconsole/components/common/sectionStyles.js +42 -0
- package/dist/bigconsole/components/common/sectionStyles.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +269 -251
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +214 -223
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +12 -18
- package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +110 -102
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +81 -68
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +125 -159
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +147 -144
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +154 -153
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +82 -79
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +171 -284
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +250 -273
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +45 -53
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +157 -148
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +167 -161
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -95
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +20 -18
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +26 -58
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js.map +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +307 -229
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +128 -129
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkCard.js +78 -79
- package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +33 -34
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +79 -61
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +75 -64
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +20 -19
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js.map +1 -1
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +127 -171
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +312 -307
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +65 -66
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js.map +1 -1
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +121 -127
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +194 -189
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +3 -3
- package/dist/bigconsole/components/datasink/SetupStateBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +95 -95
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +163 -131
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.js +3 -3
- package/dist/bigconsole/components/parser/ExpressionEditor.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +205 -260
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserCard.js +133 -114
- package/dist/bigconsole/components/parser/ParserCard.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +193 -174
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +2 -2
- package/dist/bigconsole/components/parser/ParserStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserTypeBadge.js +4 -4
- package/dist/bigconsole/components/parser/ParserTypeBadge.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.js +134 -89
- package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +77 -64
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +7 -10
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewContent.js +31 -32
- package/dist/bigconsole/components/preview/AiPreviewContent.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +152 -103
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +193 -148
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/previewShared.js +41 -23
- package/dist/bigconsole/components/preview/previewShared.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +405 -364
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +265 -237
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +764 -821
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +7 -5
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +7 -8
- package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +8 -7
- package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +46 -49
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +154 -147
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +118 -101
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +244 -191
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +92 -76
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +89 -86
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +2 -2
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +64 -63
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +2 -2
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +65 -58
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListItem.js.map +1 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +79 -72
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +181 -180
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +100 -90
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +3 -3
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.js +6 -4
- package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/ErrorState.js +7 -5
- package/dist/bigconsole/components/widgets/states/ErrorState.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/LoadingState.js +5 -4
- package/dist/bigconsole/components/widgets/states/LoadingState.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +193 -172
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableHeader.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +3 -3
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +2 -2
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +283 -249
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +28 -20
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowCard.js +92 -77
- package/dist/bigconsole/components/workflow/WorkflowCard.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +70 -51
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +16 -17
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +46 -42
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +372 -348
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useModalFocusTrap.js +53 -0
- package/dist/bigconsole/hooks/useModalFocusTrap.js.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +153 -142
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +230 -220
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +832 -790
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +249 -304
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +324 -349
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +336 -323
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +356 -458
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +14 -8
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/HomePage.js +186 -193
- package/dist/bigconsole/pages/HomePage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +901 -724
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +769 -675
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +382 -354
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +540 -420
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +416 -384
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +260 -309
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +278 -142
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +382 -366
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +202 -316
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,83 +1,87 @@
|
|
|
1
1
|
import { useAppNavigate as e } from "../contexts/NavigationContext.js";
|
|
2
2
|
import "../contexts/index.js";
|
|
3
|
-
import t from "../
|
|
4
|
-
import n from "../
|
|
5
|
-
import
|
|
6
|
-
import i from "../
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
3
|
+
import { SECTION_FOCUS_RING as t } from "../components/common/sectionStyles.js";
|
|
4
|
+
import { Section as n, SectionStack as r } from "../components/common/Section.js";
|
|
5
|
+
import "../components/common/index.js";
|
|
6
|
+
import i from "../hooks/useParserOperations.js";
|
|
7
|
+
import ee from "../hooks/usePipelineOperations.js";
|
|
8
|
+
import { BIGCONSOLE_PERMISSIONS as a } from "../../constants/permissions.js";
|
|
9
|
+
import te from "../components/pipeline/PipelineStatusBadge.js";
|
|
10
|
+
import { memo as o, useCallback as s, useEffect as ne, useId as re, useMemo as c, useState as l } from "react";
|
|
11
|
+
import { useParams as ie } from "react-router";
|
|
12
|
+
import { AccessDenied as ae } from "@burdenoff/fe-libs/shared/components";
|
|
13
|
+
import { usePermissions as oe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
14
|
+
import { useI18n as se } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
15
|
+
import { Button as u, IllustratedEmptyState as ce, PagePurpose as le, Spinner as ue } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { Fragment as de, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
13
17
|
//#region src/bigconsole/pages/PipelineBuilderPage.tsx
|
|
14
|
-
var g = ({ className: e }) => /* @__PURE__ */
|
|
18
|
+
var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-medium text-text-primary", h = "mt-1 text-xs text-text-secondary", g = "mb-1 text-xs font-semibold uppercase tracking-wide text-text-muted", _ = `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 ${t}`, v = `${_} font-mono`, y = `inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-button text-text-secondary motion-safe:transition-colors disabled:opacity-30 ${t}`, b = `${y} hover:bg-bg-surface hover:text-text-primary`, fe = `${y} hover:bg-[var(--color-status-error-bgSubtle)] hover:text-status-error-text`, pe = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
15
19
|
className: e,
|
|
16
20
|
fill: "none",
|
|
17
21
|
stroke: "currentColor",
|
|
18
22
|
viewBox: "0 0 24 24",
|
|
19
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ d("path", {
|
|
20
24
|
strokeLinecap: "round",
|
|
21
25
|
strokeLinejoin: "round",
|
|
22
26
|
strokeWidth: 2,
|
|
23
27
|
d: "M10 19l-7-7m0 0l7-7m-7 7h18"
|
|
24
28
|
})
|
|
25
|
-
}),
|
|
29
|
+
}), x = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
26
30
|
className: e,
|
|
27
31
|
fill: "none",
|
|
28
32
|
stroke: "currentColor",
|
|
29
33
|
viewBox: "0 0 24 24",
|
|
30
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ d("path", {
|
|
31
35
|
strokeLinecap: "round",
|
|
32
36
|
strokeLinejoin: "round",
|
|
33
37
|
strokeWidth: 2,
|
|
34
38
|
d: "M12 4v16m8-8H4"
|
|
35
39
|
})
|
|
36
|
-
}),
|
|
40
|
+
}), me = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
37
41
|
className: e,
|
|
38
42
|
fill: "none",
|
|
39
43
|
stroke: "currentColor",
|
|
40
44
|
viewBox: "0 0 24 24",
|
|
41
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ d("path", {
|
|
42
46
|
strokeLinecap: "round",
|
|
43
47
|
strokeLinejoin: "round",
|
|
44
48
|
strokeWidth: 2,
|
|
45
49
|
d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
|
|
46
50
|
})
|
|
47
|
-
}),
|
|
51
|
+
}), he = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
48
52
|
className: e,
|
|
49
53
|
fill: "none",
|
|
50
54
|
stroke: "currentColor",
|
|
51
55
|
viewBox: "0 0 24 24",
|
|
52
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ d("path", {
|
|
53
57
|
strokeLinecap: "round",
|
|
54
58
|
strokeLinejoin: "round",
|
|
55
59
|
strokeWidth: 2,
|
|
56
60
|
d: "M5 15l7-7 7 7"
|
|
57
61
|
})
|
|
58
|
-
}),
|
|
62
|
+
}), ge = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
59
63
|
className: e,
|
|
60
64
|
fill: "none",
|
|
61
65
|
stroke: "currentColor",
|
|
62
66
|
viewBox: "0 0 24 24",
|
|
63
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ d("path", {
|
|
64
68
|
strokeLinecap: "round",
|
|
65
69
|
strokeLinejoin: "round",
|
|
66
70
|
strokeWidth: 2,
|
|
67
71
|
d: "M19 9l-7 7-7-7"
|
|
68
72
|
})
|
|
69
|
-
}),
|
|
73
|
+
}), S = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
70
74
|
className: e,
|
|
71
75
|
fill: "none",
|
|
72
76
|
stroke: "currentColor",
|
|
73
77
|
viewBox: "0 0 24 24",
|
|
74
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ d("path", {
|
|
75
79
|
strokeLinecap: "round",
|
|
76
80
|
strokeLinejoin: "round",
|
|
77
81
|
strokeWidth: 2,
|
|
78
82
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
79
83
|
})
|
|
80
|
-
}),
|
|
84
|
+
}), _e = [
|
|
81
85
|
{
|
|
82
86
|
value: "draft",
|
|
83
87
|
label: "Draft"
|
|
@@ -90,7 +94,7 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
90
94
|
value: "inactive",
|
|
91
95
|
label: "Inactive"
|
|
92
96
|
}
|
|
93
|
-
],
|
|
97
|
+
], C = [
|
|
94
98
|
{
|
|
95
99
|
value: "fail",
|
|
96
100
|
label: "Fail",
|
|
@@ -106,7 +110,7 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
106
110
|
label: "Fallback",
|
|
107
111
|
description: "Use fallback value on error"
|
|
108
112
|
}
|
|
109
|
-
],
|
|
113
|
+
], ve = {
|
|
110
114
|
parserId: "",
|
|
111
115
|
parserName: "",
|
|
112
116
|
parserType: null,
|
|
@@ -116,14 +120,14 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
116
120
|
onError: "fail",
|
|
117
121
|
fallbackValue: "",
|
|
118
122
|
description: ""
|
|
119
|
-
},
|
|
120
|
-
let { pipelineId:
|
|
121
|
-
consoleId:
|
|
123
|
+
}, w = o(function() {
|
|
124
|
+
let { t: o } = se(), { pipelineId: y } = ie(), w = e(), T = !!y && y !== "new", E = "default", D = re(), { hasPermission: O, isLoading: ye } = oe(), be = O(a.PIPELINE_READ), xe = O(a.PIPELINE_CREATE), Se = O(a.PIPELINE_UPDATE), k = T ? Se : xe, [A, j] = l(""), [M, N] = l(""), [P, F] = l("draft"), [I, L] = l([]), [R, Ce] = l(1), [z, B] = l(!1), [V, H] = l(null), { loading: we, error: U, fetchPipeline: W, createPipeline: G, updatePipeline: K } = ee({
|
|
125
|
+
consoleId: E,
|
|
122
126
|
skipFetch: !0
|
|
123
|
-
}), { parsers:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
e && (
|
|
127
|
+
}), { parsers: q } = i({ consoleId: E });
|
|
128
|
+
ne(() => {
|
|
129
|
+
T && y && W(y).then((e) => {
|
|
130
|
+
e && (j(e.name), N(e.description || ""), F(e.status), Ce(e.version), L((e.stages || []).map((e) => ({
|
|
127
131
|
id: e.id,
|
|
128
132
|
parserId: e.parserId,
|
|
129
133
|
parserName: e.parserName || "",
|
|
@@ -137,38 +141,47 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
137
141
|
}))));
|
|
138
142
|
});
|
|
139
143
|
}, [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
T,
|
|
145
|
+
y,
|
|
146
|
+
W
|
|
143
147
|
]);
|
|
144
|
-
let
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
let Te = {
|
|
149
|
+
draft: o("bigconsole.pipelines.builder.status.draft", "Draft"),
|
|
150
|
+
active: o("bigconsole.pipelines.builder.status.active", "Active"),
|
|
151
|
+
inactive: o("bigconsole.pipelines.builder.status.inactive", "Inactive"),
|
|
152
|
+
error: o("bigconsole.pipelines.builder.status.error", "Error")
|
|
153
|
+
}, Ee = {
|
|
154
|
+
fail: o("bigconsole.pipelines.builder.onError.fail", "Fail"),
|
|
155
|
+
skip: o("bigconsole.pipelines.builder.onError.skip", "Skip"),
|
|
156
|
+
fallback: o("bigconsole.pipelines.builder.onError.fallback", "Fallback")
|
|
157
|
+
}, J = c(() => !A.trim() || I.length === 0 ? !1 : I.every((e) => e.parserId && e.inputKey && e.outputKey), [A, I]), Y = c(() => A.trim() ? I.length === 0 ? "Add at least one stage to save this pipeline." : I.every((e) => e.parserId && e.inputKey && e.outputKey) ? null : "Every stage needs a parser, an input key and an output key." : "Give the pipeline a name to save it.", [A, I]), X = s(() => {
|
|
158
|
+
w("/pipelines");
|
|
159
|
+
}, [w]), Z = s(() => {
|
|
160
|
+
L((e) => [...e, { ...ve }]);
|
|
161
|
+
}, []), De = s((e) => {
|
|
162
|
+
L((t) => t.filter((t, n) => n !== e));
|
|
163
|
+
}, []), Q = s((e, t) => {
|
|
164
|
+
L((n) => {
|
|
152
165
|
let r = [...n], i = t === "up" ? e - 1 : e + 1;
|
|
153
166
|
return i < 0 || i >= r.length ? n : ([r[e], r[i]] = [r[i], r[e]], r);
|
|
154
167
|
});
|
|
155
|
-
}, []), $ =
|
|
156
|
-
|
|
168
|
+
}, []), $ = s((e, t) => {
|
|
169
|
+
L((n) => n.map((n, r) => r === e ? {
|
|
157
170
|
...n,
|
|
158
171
|
...t
|
|
159
172
|
} : n));
|
|
160
|
-
}, []),
|
|
161
|
-
let n =
|
|
173
|
+
}, []), Oe = s((e, t) => {
|
|
174
|
+
let n = q.find((e) => e.id === t);
|
|
162
175
|
n && $(e, {
|
|
163
176
|
parserId: n.id,
|
|
164
177
|
parserName: n.name,
|
|
165
178
|
parserType: n.type
|
|
166
179
|
});
|
|
167
|
-
}, [
|
|
168
|
-
if (!(!
|
|
180
|
+
}, [q, $]), ke = s(async () => {
|
|
181
|
+
if (!(!J || !k)) {
|
|
169
182
|
B(!0), H(null);
|
|
170
183
|
try {
|
|
171
|
-
let e =
|
|
184
|
+
let e = I.map((e) => ({
|
|
172
185
|
parserId: e.parserId,
|
|
173
186
|
parserName: e.parserName,
|
|
174
187
|
parserType: e.parserType || void 0,
|
|
@@ -179,421 +192,528 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
179
192
|
fallbackValue: e.fallbackValue ? JSON.parse(e.fallbackValue) : void 0,
|
|
180
193
|
description: e.description || void 0
|
|
181
194
|
}));
|
|
182
|
-
if (
|
|
183
|
-
name:
|
|
184
|
-
description:
|
|
185
|
-
status:
|
|
186
|
-
},
|
|
195
|
+
if (T && y) await K(y, {
|
|
196
|
+
name: A,
|
|
197
|
+
description: M || void 0,
|
|
198
|
+
status: P
|
|
199
|
+
}, R) && w(`/pipelines/${y}`);
|
|
187
200
|
else {
|
|
188
|
-
let t = await
|
|
189
|
-
consoleId:
|
|
190
|
-
name:
|
|
191
|
-
description:
|
|
192
|
-
status:
|
|
201
|
+
let t = await G({
|
|
202
|
+
consoleId: E,
|
|
203
|
+
name: A,
|
|
204
|
+
description: M || void 0,
|
|
205
|
+
status: P,
|
|
193
206
|
stages: e
|
|
194
207
|
});
|
|
195
|
-
t &&
|
|
208
|
+
t && w(`/pipelines/${t.id}`);
|
|
196
209
|
}
|
|
197
210
|
} catch (e) {
|
|
198
|
-
H(e instanceof Error ? e.message : "Failed to save pipeline");
|
|
211
|
+
H(e instanceof Error ? e.message : o("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"));
|
|
199
212
|
} finally {
|
|
200
213
|
B(!1);
|
|
201
214
|
}
|
|
202
215
|
}
|
|
203
216
|
}, [
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
O,
|
|
207
|
-
x,
|
|
208
|
-
a,
|
|
217
|
+
J,
|
|
218
|
+
E,
|
|
209
219
|
k,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
220
|
+
T,
|
|
221
|
+
y,
|
|
222
|
+
A,
|
|
223
|
+
M,
|
|
224
|
+
P,
|
|
225
|
+
I,
|
|
226
|
+
R,
|
|
227
|
+
G,
|
|
214
228
|
K,
|
|
215
|
-
|
|
216
|
-
|
|
229
|
+
w,
|
|
230
|
+
o
|
|
217
231
|
]);
|
|
218
|
-
return
|
|
219
|
-
className: "p-
|
|
220
|
-
children: /* @__PURE__ */
|
|
232
|
+
return we && T ? /* @__PURE__ */ d("div", {
|
|
233
|
+
className: "p-card-padding",
|
|
234
|
+
children: /* @__PURE__ */ f("div", {
|
|
221
235
|
className: "flex flex-col items-center justify-center py-16",
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
cy: "12",
|
|
230
|
-
r: "10",
|
|
231
|
-
stroke: "currentColor",
|
|
232
|
-
strokeWidth: "4"
|
|
233
|
-
}), /* @__PURE__ */ m("path", {
|
|
234
|
-
className: "opacity-75",
|
|
235
|
-
fill: "currentColor",
|
|
236
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
237
|
-
})]
|
|
238
|
-
}), /* @__PURE__ */ m("p", {
|
|
239
|
-
className: "text-sm text-text-secondary",
|
|
240
|
-
children: "Loading Pipeline..."
|
|
236
|
+
role: "status",
|
|
237
|
+
children: [/* @__PURE__ */ d(ue, { style: {
|
|
238
|
+
height: "var(--size-icon-xl)",
|
|
239
|
+
width: "var(--size-icon-xl)"
|
|
240
|
+
} }), /* @__PURE__ */ d("p", {
|
|
241
|
+
className: "mt-form-gap text-sm text-text-secondary",
|
|
242
|
+
children: o("bigconsole.pipelines.builder.loading", "Loading Pipeline...")
|
|
241
243
|
})]
|
|
242
244
|
})
|
|
243
|
-
}) :
|
|
244
|
-
title: "Access Denied",
|
|
245
|
-
description: "You don't have permission to view this pipeline."
|
|
246
|
-
}) :
|
|
247
|
-
className: "p-
|
|
248
|
-
children: /* @__PURE__ */
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
type: "button",
|
|
265
|
-
onClick: X,
|
|
266
|
-
className: "px-4 py-2 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors",
|
|
267
|
-
children: "Back to Pipelines"
|
|
268
|
-
})
|
|
269
|
-
]
|
|
245
|
+
}) : T && !ye && !be ? /* @__PURE__ */ d(ae, {
|
|
246
|
+
title: o("bigconsole.pipelines.builder.accessDenied.title", "Access Denied"),
|
|
247
|
+
description: o("bigconsole.pipelines.builder.accessDenied.description", "You don't have permission to view this pipeline.")
|
|
248
|
+
}) : U ? /* @__PURE__ */ d("div", {
|
|
249
|
+
className: "p-card-padding",
|
|
250
|
+
children: /* @__PURE__ */ d(n, {
|
|
251
|
+
tone: "danger",
|
|
252
|
+
headingLevel: 2,
|
|
253
|
+
title: o("bigconsole.pipelines.builder.errors.loadFailed", "Failed to load Pipeline"),
|
|
254
|
+
description: U.message,
|
|
255
|
+
icon: /* @__PURE__ */ d(S, { className: "h-icon-sm w-icon-sm" }),
|
|
256
|
+
actions: /* @__PURE__ */ d(u, {
|
|
257
|
+
onClick: X,
|
|
258
|
+
className: p,
|
|
259
|
+
children: o("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")
|
|
260
|
+
}),
|
|
261
|
+
"data-testid": "pipeline-builder-error",
|
|
262
|
+
children: /* @__PURE__ */ d("p", {
|
|
263
|
+
className: "text-sm text-text-secondary",
|
|
264
|
+
children: "The pipeline could not be read from the console service. Nothing was changed."
|
|
265
|
+
})
|
|
270
266
|
})
|
|
271
|
-
}) : /* @__PURE__ */
|
|
272
|
-
className: "p-
|
|
273
|
-
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
-
className: "flex items-
|
|
276
|
-
children: [/* @__PURE__ */
|
|
277
|
-
className: "flex
|
|
278
|
-
children: [/* @__PURE__ */
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
className: "p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-colors",
|
|
282
|
-
children: /* @__PURE__ */ m(g, { className: "w-5 h-5" })
|
|
283
|
-
}), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
|
|
284
|
-
className: "text-2xl font-bold text-text-primary",
|
|
285
|
-
children: x ? "Edit Pipeline" : "Create Pipeline"
|
|
286
|
-
}), /* @__PURE__ */ m("p", {
|
|
287
|
-
className: "text-sm text-text-secondary mt-1",
|
|
288
|
-
children: x ? "Update pipeline settings and stages" : "Create a new data transformation pipeline"
|
|
289
|
-
})] })]
|
|
290
|
-
}), /* @__PURE__ */ h("div", {
|
|
291
|
-
className: "flex items-center gap-2",
|
|
292
|
-
children: [/* @__PURE__ */ m("button", {
|
|
293
|
-
type: "button",
|
|
267
|
+
}) : /* @__PURE__ */ d("div", {
|
|
268
|
+
className: "p-card-padding",
|
|
269
|
+
children: /* @__PURE__ */ f(r, { children: [
|
|
270
|
+
/* @__PURE__ */ f("header", {
|
|
271
|
+
className: "flex flex-col gap-form-gap sm:flex-row sm:items-start sm:justify-between",
|
|
272
|
+
children: [/* @__PURE__ */ f("div", {
|
|
273
|
+
className: "flex min-w-0 flex-col gap-control-gap",
|
|
274
|
+
children: [/* @__PURE__ */ f(u, {
|
|
275
|
+
variant: "ghost",
|
|
276
|
+
size: "sm",
|
|
294
277
|
onClick: X,
|
|
295
|
-
className: "
|
|
296
|
-
children: "
|
|
297
|
-
}), /* @__PURE__ */
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
278
|
+
className: "w-fit",
|
|
279
|
+
children: [/* @__PURE__ */ d(pe, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")]
|
|
280
|
+
}), /* @__PURE__ */ f("div", {
|
|
281
|
+
className: "min-w-0",
|
|
282
|
+
children: [/* @__PURE__ */ d("h1", {
|
|
283
|
+
className: "text-2xl font-bold leading-tight text-text-primary",
|
|
284
|
+
children: T ? o("bigconsole.pipelines.builder.header.editTitle", "Edit Pipeline") : o("bigconsole.pipelines.builder.header.createTitle", "Create Pipeline")
|
|
285
|
+
}), /* @__PURE__ */ d("p", {
|
|
286
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
287
|
+
children: T ? o("bigconsole.pipelines.builder.header.editSubtitle", "Update pipeline settings and stages") : o("bigconsole.pipelines.builder.header.createSubtitle", "Create a new data transformation pipeline")
|
|
288
|
+
})]
|
|
289
|
+
})]
|
|
290
|
+
}), /* @__PURE__ */ f("div", {
|
|
291
|
+
className: "flex flex-col gap-1 sm:items-end",
|
|
292
|
+
children: [/* @__PURE__ */ f("div", {
|
|
293
|
+
className: "flex flex-wrap items-center gap-control-gap",
|
|
294
|
+
children: [/* @__PURE__ */ d(u, {
|
|
295
|
+
variant: "secondary",
|
|
296
|
+
onClick: X,
|
|
297
|
+
className: p,
|
|
298
|
+
children: o("bigconsole.pipelines.builder.actions.cancel", "Cancel")
|
|
299
|
+
}), /* @__PURE__ */ d(u, {
|
|
300
|
+
onClick: ke,
|
|
301
|
+
disabled: !J || z || !k,
|
|
302
|
+
title: k ? void 0 : T ? o("bigconsole.pipelines.builder.actions.noUpdatePermission", "You don't have permission to update pipelines.") : o("bigconsole.pipelines.builder.actions.noCreatePermission", "You don't have permission to create pipelines."),
|
|
303
|
+
className: p,
|
|
304
|
+
children: z ? o("bigconsole.pipelines.builder.actions.saving", "Saving...") : T ? o("bigconsole.pipelines.builder.actions.saveChanges", "Save Changes") : o("bigconsole.pipelines.builder.actions.createPipeline", "Create Pipeline")
|
|
305
|
+
})]
|
|
306
|
+
}), Y && /* @__PURE__ */ d("p", {
|
|
307
|
+
className: "text-xs text-text-secondary sm:text-right",
|
|
308
|
+
"data-testid": "pipeline-save-blocked-reason",
|
|
309
|
+
children: Y
|
|
304
310
|
})]
|
|
305
311
|
})]
|
|
306
312
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
className: "
|
|
309
|
-
children: "Build a pipeline by chaining parser stages — each stage reads an input key, runs a parser, and writes a structured output key that the next stage (or a data sink) can use. Name it, add your stages in order, then test it before saving so your data flows end to end."
|
|
313
|
+
/* @__PURE__ */ d(le, {
|
|
314
|
+
className: "max-w-[75ch]",
|
|
315
|
+
children: o("bigconsole.pipelines.builder.header.purpose", "Build a pipeline by chaining parser stages — each stage reads an input key, runs a parser, and writes a structured output key that the next stage (or a data sink) can use. Name it, add your stages in order, then test it before saving so your data flows end to end.")
|
|
310
316
|
}),
|
|
311
|
-
V && /* @__PURE__ */
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
})
|
|
317
|
+
V && /* @__PURE__ */ d(n, {
|
|
318
|
+
tone: "danger",
|
|
319
|
+
headingLevel: 2,
|
|
320
|
+
title: o("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"),
|
|
321
|
+
description: V,
|
|
322
|
+
icon: /* @__PURE__ */ d(S, { className: "h-icon-sm w-icon-sm" }),
|
|
323
|
+
"data-testid": "pipeline-save-error"
|
|
317
324
|
}),
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
className: "grid grid-cols-1 lg:grid-cols-3
|
|
320
|
-
children: [/* @__PURE__ */
|
|
321
|
-
className: "lg:col-span-2
|
|
322
|
-
children: [/* @__PURE__ */
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
className: "
|
|
325
|
+
/* @__PURE__ */ f("div", {
|
|
326
|
+
className: "grid grid-cols-1 gap-section-gap lg:grid-cols-3",
|
|
327
|
+
children: [/* @__PURE__ */ d("div", {
|
|
328
|
+
className: "min-w-0 lg:col-span-2",
|
|
329
|
+
children: /* @__PURE__ */ f(r, { children: [/* @__PURE__ */ d(n, {
|
|
330
|
+
headingLevel: 2,
|
|
331
|
+
title: o("bigconsole.pipelines.builder.basicInfo.heading", "Basic Information"),
|
|
332
|
+
description: "How this pipeline is identified, and whether it runs.",
|
|
333
|
+
"data-testid": "pipeline-basic-info",
|
|
334
|
+
children: /* @__PURE__ */ f("div", {
|
|
335
|
+
className: "flex flex-col gap-form-gap",
|
|
329
336
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
className: "
|
|
332
|
-
children: [
|
|
333
|
-
|
|
334
|
-
|
|
337
|
+
/* @__PURE__ */ f("div", {
|
|
338
|
+
className: "min-w-0",
|
|
339
|
+
children: [/* @__PURE__ */ f("label", {
|
|
340
|
+
htmlFor: `${D}-name`,
|
|
341
|
+
className: m,
|
|
342
|
+
children: [
|
|
343
|
+
o("bigconsole.pipelines.builder.basicInfo.nameLabel", "Name"),
|
|
344
|
+
" ",
|
|
345
|
+
/* @__PURE__ */ d("span", {
|
|
346
|
+
className: "text-status-error-text",
|
|
347
|
+
children: "*"
|
|
348
|
+
})
|
|
349
|
+
]
|
|
350
|
+
}), /* @__PURE__ */ d("input", {
|
|
351
|
+
id: `${D}-name`,
|
|
352
|
+
type: "text",
|
|
353
|
+
value: A,
|
|
354
|
+
onChange: (e) => j(e.target.value),
|
|
355
|
+
placeholder: o("bigconsole.pipelines.builder.basicInfo.namePlaceholder", "My Pipeline"),
|
|
356
|
+
className: _
|
|
335
357
|
})]
|
|
336
|
-
}),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
358
|
+
}),
|
|
359
|
+
/* @__PURE__ */ f("div", {
|
|
360
|
+
className: "min-w-0",
|
|
361
|
+
children: [/* @__PURE__ */ d("label", {
|
|
362
|
+
htmlFor: `${D}-description`,
|
|
363
|
+
className: m,
|
|
364
|
+
children: o("bigconsole.pipelines.builder.basicInfo.descriptionLabel", "Description")
|
|
365
|
+
}), /* @__PURE__ */ d("textarea", {
|
|
366
|
+
id: `${D}-description`,
|
|
367
|
+
value: M,
|
|
368
|
+
onChange: (e) => N(e.target.value),
|
|
369
|
+
placeholder: o("bigconsole.pipelines.builder.basicInfo.descriptionPlaceholder", "What does this pipeline do?"),
|
|
370
|
+
rows: 3,
|
|
371
|
+
className: `${_} resize-y`
|
|
372
|
+
})]
|
|
373
|
+
}),
|
|
374
|
+
/* @__PURE__ */ f("div", {
|
|
375
|
+
className: "min-w-0 border-t border-[var(--color-border-subtle)] pt-form-gap",
|
|
376
|
+
children: [
|
|
377
|
+
/* @__PURE__ */ d("label", {
|
|
378
|
+
htmlFor: `${D}-status`,
|
|
379
|
+
className: m,
|
|
380
|
+
children: o("bigconsole.pipelines.builder.basicInfo.statusLabel", "Status")
|
|
381
|
+
}),
|
|
382
|
+
/* @__PURE__ */ d("select", {
|
|
383
|
+
id: `${D}-status`,
|
|
384
|
+
value: P,
|
|
385
|
+
onChange: (e) => F(e.target.value),
|
|
386
|
+
className: _,
|
|
387
|
+
children: _e.map((e) => /* @__PURE__ */ d("option", {
|
|
388
|
+
value: e.value,
|
|
389
|
+
children: Te[e.value]
|
|
390
|
+
}, e.value))
|
|
391
|
+
}),
|
|
392
|
+
/* @__PURE__ */ d("p", {
|
|
393
|
+
className: h,
|
|
394
|
+
children: "Only active pipelines process incoming data."
|
|
395
|
+
})
|
|
396
|
+
]
|
|
397
|
+
})
|
|
365
398
|
]
|
|
366
|
-
})
|
|
367
|
-
}), /* @__PURE__ */
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}), /* @__PURE__ */ h("button", {
|
|
381
|
-
type: "button",
|
|
382
|
-
onClick: Z,
|
|
383
|
-
className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors",
|
|
384
|
-
children: [/* @__PURE__ */ m(_, { className: "w-4 h-4" }), "Add Stage"]
|
|
385
|
-
})]
|
|
386
|
-
}), F.length === 0 ? /* @__PURE__ */ m(f, {
|
|
399
|
+
})
|
|
400
|
+
}), /* @__PURE__ */ d(n, {
|
|
401
|
+
emphasis: "primary",
|
|
402
|
+
headingLevel: 2,
|
|
403
|
+
title: o("bigconsole.pipelines.builder.stages.heading", "Stages ({{count}})", { count: I.length }),
|
|
404
|
+
description: "Each stage reads an input key, runs a parser, and writes an output key for the next stage.",
|
|
405
|
+
actions: /* @__PURE__ */ f(u, {
|
|
406
|
+
size: "sm",
|
|
407
|
+
onClick: Z,
|
|
408
|
+
className: p,
|
|
409
|
+
children: [/* @__PURE__ */ d(x, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addStage", "Add Stage")]
|
|
410
|
+
}),
|
|
411
|
+
"data-testid": "pipeline-stages-editor",
|
|
412
|
+
children: I.length === 0 ? /* @__PURE__ */ d(ce, {
|
|
387
413
|
illustration: "empty-generic",
|
|
388
|
-
title: "No stages yet",
|
|
389
|
-
description: "Add a stage to start building your pipeline.",
|
|
390
|
-
action: /* @__PURE__ */
|
|
391
|
-
type: "button",
|
|
414
|
+
title: o("bigconsole.pipelines.builder.stages.emptyTitle", "No stages yet"),
|
|
415
|
+
description: o("bigconsole.pipelines.builder.stages.emptyDescription", "Add a stage to start building your pipeline."),
|
|
416
|
+
action: /* @__PURE__ */ f(u, {
|
|
392
417
|
onClick: Z,
|
|
393
|
-
className:
|
|
394
|
-
children: [/* @__PURE__ */
|
|
418
|
+
className: p,
|
|
419
|
+
children: [/* @__PURE__ */ d(x, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addFirstStage", "Add First Stage")]
|
|
395
420
|
})
|
|
396
|
-
}) : /* @__PURE__ */
|
|
397
|
-
className: "
|
|
398
|
-
children:
|
|
399
|
-
className: "
|
|
400
|
-
children:
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
className: "font-
|
|
409
|
-
children:
|
|
421
|
+
}) : /* @__PURE__ */ d("ol", {
|
|
422
|
+
className: "flex flex-col gap-form-gap",
|
|
423
|
+
children: I.map((e, r) => /* @__PURE__ */ d("li", {
|
|
424
|
+
className: "min-w-0",
|
|
425
|
+
children: /* @__PURE__ */ d(n, {
|
|
426
|
+
emphasis: "muted",
|
|
427
|
+
padding: "compact",
|
|
428
|
+
headingLevel: 3,
|
|
429
|
+
title: /* @__PURE__ */ f("span", {
|
|
430
|
+
className: "flex min-w-0 items-center gap-icon-gap",
|
|
431
|
+
children: [/* @__PURE__ */ d("span", {
|
|
432
|
+
"aria-hidden": "true",
|
|
433
|
+
className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-pill bg-bg-surface text-xs font-semibold text-text-secondary",
|
|
434
|
+
children: r + 1
|
|
435
|
+
}), /* @__PURE__ */ d("span", {
|
|
436
|
+
className: "min-w-0 truncate",
|
|
437
|
+
children: e.parserName || o("bigconsole.pipelines.builder.stages.defaultStageName", "Stage {{number}}", { number: r + 1 })
|
|
410
438
|
})]
|
|
411
|
-
}),
|
|
412
|
-
|
|
439
|
+
}),
|
|
440
|
+
actions: /* @__PURE__ */ f(de, { children: [
|
|
441
|
+
/* @__PURE__ */ d("button", {
|
|
442
|
+
type: "button",
|
|
443
|
+
onClick: () => Q(r, "up"),
|
|
444
|
+
disabled: r === 0,
|
|
445
|
+
className: b,
|
|
446
|
+
"aria-label": `Move stage ${r + 1} up`,
|
|
447
|
+
children: /* @__PURE__ */ d(he, { className: "h-icon-sm w-icon-sm" })
|
|
448
|
+
}),
|
|
449
|
+
/* @__PURE__ */ d("button", {
|
|
450
|
+
type: "button",
|
|
451
|
+
onClick: () => Q(r, "down"),
|
|
452
|
+
disabled: r === I.length - 1,
|
|
453
|
+
className: b,
|
|
454
|
+
"aria-label": `Move stage ${r + 1} down`,
|
|
455
|
+
children: /* @__PURE__ */ d(ge, { className: "h-icon-sm w-icon-sm" })
|
|
456
|
+
}),
|
|
457
|
+
/* @__PURE__ */ d("button", {
|
|
458
|
+
type: "button",
|
|
459
|
+
onClick: () => De(r),
|
|
460
|
+
className: fe,
|
|
461
|
+
"aria-label": `Remove stage ${r + 1}`,
|
|
462
|
+
children: /* @__PURE__ */ d(me, { className: "h-icon-sm w-icon-sm" })
|
|
463
|
+
})
|
|
464
|
+
] }),
|
|
465
|
+
"data-testid": "pipeline-stage-editor",
|
|
466
|
+
children: /* @__PURE__ */ f("div", {
|
|
467
|
+
className: "flex flex-col gap-form-gap",
|
|
413
468
|
children: [
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
469
|
+
/* @__PURE__ */ f("div", {
|
|
470
|
+
className: "min-w-0",
|
|
471
|
+
children: [/* @__PURE__ */ f("label", {
|
|
472
|
+
htmlFor: `${D}-parser-${r}`,
|
|
473
|
+
className: m,
|
|
474
|
+
children: [
|
|
475
|
+
o("bigconsole.pipelines.builder.stages.parserLabel", "Parser"),
|
|
476
|
+
" ",
|
|
477
|
+
/* @__PURE__ */ d("span", {
|
|
478
|
+
className: "text-status-error-text",
|
|
479
|
+
children: "*"
|
|
480
|
+
})
|
|
481
|
+
]
|
|
482
|
+
}), /* @__PURE__ */ f("select", {
|
|
483
|
+
id: `${D}-parser-${r}`,
|
|
484
|
+
value: e.parserId,
|
|
485
|
+
onChange: (e) => Oe(r, e.target.value),
|
|
486
|
+
className: _,
|
|
487
|
+
children: [/* @__PURE__ */ d("option", {
|
|
488
|
+
value: "",
|
|
489
|
+
children: o("bigconsole.pipelines.builder.stages.parserPlaceholder", "Select a parser...")
|
|
490
|
+
}), q.map((e) => /* @__PURE__ */ f("option", {
|
|
491
|
+
value: e.id,
|
|
492
|
+
children: [
|
|
493
|
+
e.name,
|
|
494
|
+
" (",
|
|
495
|
+
e.type.toUpperCase(),
|
|
496
|
+
")"
|
|
497
|
+
]
|
|
498
|
+
}, e.id))]
|
|
499
|
+
})]
|
|
427
500
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
501
|
+
/* @__PURE__ */ f("fieldset", {
|
|
502
|
+
className: "min-w-0",
|
|
503
|
+
children: [/* @__PURE__ */ d("legend", {
|
|
504
|
+
className: g,
|
|
505
|
+
children: "Data contract"
|
|
506
|
+
}), /* @__PURE__ */ f("div", {
|
|
507
|
+
className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
|
|
508
|
+
children: [/* @__PURE__ */ f("div", {
|
|
509
|
+
className: "min-w-0",
|
|
510
|
+
children: [/* @__PURE__ */ f("label", {
|
|
511
|
+
htmlFor: `${D}-input-${r}`,
|
|
512
|
+
className: m,
|
|
513
|
+
children: [
|
|
514
|
+
o("bigconsole.pipelines.builder.stages.inputKeyLabel", "Input Key"),
|
|
515
|
+
" ",
|
|
516
|
+
/* @__PURE__ */ d("span", {
|
|
517
|
+
className: "text-status-error-text",
|
|
518
|
+
children: "*"
|
|
519
|
+
})
|
|
520
|
+
]
|
|
521
|
+
}), /* @__PURE__ */ d("input", {
|
|
522
|
+
id: `${D}-input-${r}`,
|
|
523
|
+
type: "text",
|
|
524
|
+
value: e.inputKey,
|
|
525
|
+
onChange: (e) => $(r, { inputKey: e.target.value }),
|
|
526
|
+
placeholder: o("bigconsole.pipelines.builder.stages.inputKeyPlaceholder", "data"),
|
|
527
|
+
className: v
|
|
528
|
+
})]
|
|
529
|
+
}), /* @__PURE__ */ f("div", {
|
|
530
|
+
className: "min-w-0",
|
|
531
|
+
children: [/* @__PURE__ */ f("label", {
|
|
532
|
+
htmlFor: `${D}-output-${r}`,
|
|
533
|
+
className: m,
|
|
534
|
+
children: [
|
|
535
|
+
o("bigconsole.pipelines.builder.stages.outputKeyLabel", "Output Key"),
|
|
536
|
+
" ",
|
|
537
|
+
/* @__PURE__ */ d("span", {
|
|
538
|
+
className: "text-status-error-text",
|
|
539
|
+
children: "*"
|
|
540
|
+
})
|
|
541
|
+
]
|
|
542
|
+
}), /* @__PURE__ */ d("input", {
|
|
543
|
+
id: `${D}-output-${r}`,
|
|
544
|
+
type: "text",
|
|
545
|
+
value: e.outputKey,
|
|
546
|
+
onChange: (e) => $(r, { outputKey: e.target.value }),
|
|
547
|
+
placeholder: o("bigconsole.pipelines.builder.stages.outputKeyPlaceholder", "result"),
|
|
548
|
+
className: v
|
|
549
|
+
})]
|
|
550
|
+
})]
|
|
446
551
|
})]
|
|
447
|
-
}),
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
value: e.id,
|
|
552
|
+
}),
|
|
553
|
+
/* @__PURE__ */ f("fieldset", {
|
|
554
|
+
className: "min-w-0",
|
|
555
|
+
children: [/* @__PURE__ */ d("legend", {
|
|
556
|
+
className: g,
|
|
557
|
+
children: "Failure policy"
|
|
558
|
+
}), /* @__PURE__ */ f("div", {
|
|
559
|
+
className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
|
|
456
560
|
children: [
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
561
|
+
/* @__PURE__ */ f("div", {
|
|
562
|
+
className: "min-w-0",
|
|
563
|
+
children: [
|
|
564
|
+
/* @__PURE__ */ d("label", {
|
|
565
|
+
htmlFor: `${D}-onerror-${r}`,
|
|
566
|
+
className: m,
|
|
567
|
+
children: o("bigconsole.pipelines.builder.stages.onErrorLabel", "On Error")
|
|
568
|
+
}),
|
|
569
|
+
/* @__PURE__ */ d("select", {
|
|
570
|
+
id: `${D}-onerror-${r}`,
|
|
571
|
+
value: e.onError,
|
|
572
|
+
onChange: (e) => $(r, { onError: e.target.value }),
|
|
573
|
+
className: _,
|
|
574
|
+
children: C.map((e) => /* @__PURE__ */ d("option", {
|
|
575
|
+
value: e.value,
|
|
576
|
+
children: Ee[e.value]
|
|
577
|
+
}, e.value))
|
|
578
|
+
}),
|
|
579
|
+
/* @__PURE__ */ d("p", {
|
|
580
|
+
className: h,
|
|
581
|
+
children: C.find((t) => t.value === e.onError)?.description
|
|
582
|
+
})
|
|
583
|
+
]
|
|
584
|
+
}),
|
|
585
|
+
/* @__PURE__ */ d("div", {
|
|
586
|
+
className: "flex min-w-0 items-start",
|
|
587
|
+
children: /* @__PURE__ */ f("label", {
|
|
588
|
+
htmlFor: `${D}-enabled-${r}`,
|
|
589
|
+
className: `flex cursor-pointer items-center gap-2 ${p}`,
|
|
590
|
+
children: [/* @__PURE__ */ d("input", {
|
|
591
|
+
id: `${D}-enabled-${r}`,
|
|
592
|
+
type: "checkbox",
|
|
593
|
+
checked: e.enabled,
|
|
594
|
+
onChange: (e) => $(r, { enabled: e.target.checked }),
|
|
595
|
+
className: `h-4 w-4 rounded border-[var(--color-border-subtle)] text-action-primary-bg ${t}`
|
|
596
|
+
}), /* @__PURE__ */ d("span", {
|
|
597
|
+
className: "text-sm text-text-primary",
|
|
598
|
+
children: o("bigconsole.pipelines.builder.stages.enabledLabel", "Enabled")
|
|
599
|
+
})]
|
|
600
|
+
})
|
|
601
|
+
}),
|
|
602
|
+
e.onError === "fallback" && /* @__PURE__ */ f("div", {
|
|
603
|
+
className: "min-w-0 sm:col-span-2",
|
|
604
|
+
children: [/* @__PURE__ */ d("label", {
|
|
605
|
+
htmlFor: `${D}-fallback-${r}`,
|
|
606
|
+
className: m,
|
|
607
|
+
children: o("bigconsole.pipelines.builder.stages.fallbackValueLabel", "Fallback Value (JSON)")
|
|
608
|
+
}), /* @__PURE__ */ d("input", {
|
|
609
|
+
id: `${D}-fallback-${r}`,
|
|
610
|
+
type: "text",
|
|
611
|
+
value: e.fallbackValue,
|
|
612
|
+
onChange: (e) => $(r, { fallbackValue: e.target.value }),
|
|
613
|
+
placeholder: "{\"default\": true}",
|
|
614
|
+
className: v
|
|
615
|
+
})]
|
|
616
|
+
})
|
|
461
617
|
]
|
|
462
|
-
}, e.id))]
|
|
463
|
-
})]
|
|
464
|
-
}),
|
|
465
|
-
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
|
|
466
|
-
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
467
|
-
children: ["Input Key ", /* @__PURE__ */ m("span", {
|
|
468
|
-
className: "text-status-error-text",
|
|
469
|
-
children: "*"
|
|
470
|
-
})]
|
|
471
|
-
}), /* @__PURE__ */ m("input", {
|
|
472
|
-
type: "text",
|
|
473
|
-
value: e.inputKey,
|
|
474
|
-
onChange: (e) => $(t, { inputKey: e.target.value }),
|
|
475
|
-
placeholder: "data",
|
|
476
|
-
className: "w-full px-3 py-2 text-sm font-mono text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
|
|
477
|
-
})] }),
|
|
478
|
-
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
|
|
479
|
-
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
480
|
-
children: ["Output Key ", /* @__PURE__ */ m("span", {
|
|
481
|
-
className: "text-status-error-text",
|
|
482
|
-
children: "*"
|
|
483
|
-
})]
|
|
484
|
-
}), /* @__PURE__ */ m("input", {
|
|
485
|
-
type: "text",
|
|
486
|
-
value: e.outputKey,
|
|
487
|
-
onChange: (e) => $(t, { outputKey: e.target.value }),
|
|
488
|
-
placeholder: "result",
|
|
489
|
-
className: "w-full px-3 py-2 text-sm font-mono text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
|
|
490
|
-
})] }),
|
|
491
|
-
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
492
|
-
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
493
|
-
children: "On Error"
|
|
494
|
-
}), /* @__PURE__ */ m("select", {
|
|
495
|
-
value: e.onError,
|
|
496
|
-
onChange: (e) => $(t, { onError: e.target.value }),
|
|
497
|
-
className: "w-full px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg",
|
|
498
|
-
children: v.map((e) => /* @__PURE__ */ m("option", {
|
|
499
|
-
value: e.value,
|
|
500
|
-
children: e.label
|
|
501
|
-
}, e.value))
|
|
502
|
-
})] }),
|
|
503
|
-
/* @__PURE__ */ m("div", {
|
|
504
|
-
className: "flex items-center",
|
|
505
|
-
children: /* @__PURE__ */ h("label", {
|
|
506
|
-
className: "flex items-center gap-2 cursor-pointer",
|
|
507
|
-
children: [/* @__PURE__ */ m("input", {
|
|
508
|
-
type: "checkbox",
|
|
509
|
-
checked: e.enabled,
|
|
510
|
-
onChange: (e) => $(t, { enabled: e.target.checked }),
|
|
511
|
-
className: "w-4 h-4 rounded border-border-default text-action-primary-bg focus:ring-action-primary-bg"
|
|
512
|
-
}), /* @__PURE__ */ m("span", {
|
|
513
|
-
className: "text-sm text-text-primary",
|
|
514
|
-
children: "Enabled"
|
|
515
618
|
})]
|
|
516
619
|
})
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}, t))
|
|
534
|
-
})]
|
|
535
|
-
})]
|
|
536
|
-
}), /* @__PURE__ */ h("div", {
|
|
537
|
-
className: "space-y-6",
|
|
538
|
-
children: [/* @__PURE__ */ h("div", {
|
|
539
|
-
className: "bg-bg-surface border border-border-default rounded-lg p-6",
|
|
540
|
-
children: [/* @__PURE__ */ m("h2", {
|
|
541
|
-
className: "text-lg font-semibold text-text-primary mb-4",
|
|
542
|
-
children: "Preview"
|
|
543
|
-
}), /* @__PURE__ */ h("div", {
|
|
544
|
-
className: "space-y-3",
|
|
620
|
+
]
|
|
621
|
+
})
|
|
622
|
+
})
|
|
623
|
+
}, r))
|
|
624
|
+
})
|
|
625
|
+
})] })
|
|
626
|
+
}), /* @__PURE__ */ d("div", {
|
|
627
|
+
className: "min-w-0",
|
|
628
|
+
children: /* @__PURE__ */ f(r, { children: [/* @__PURE__ */ d(n, {
|
|
629
|
+
emphasis: "muted",
|
|
630
|
+
headingLevel: 2,
|
|
631
|
+
title: o("bigconsole.pipelines.builder.preview.heading", "Preview"),
|
|
632
|
+
description: "What will be saved.",
|
|
633
|
+
"data-testid": "pipeline-preview",
|
|
634
|
+
children: /* @__PURE__ */ f("dl", {
|
|
635
|
+
className: "flex flex-col gap-3 text-sm",
|
|
545
636
|
children: [
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
className: "
|
|
548
|
-
children: "
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
className: "
|
|
558
|
-
children: /* @__PURE__ */
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
637
|
+
/* @__PURE__ */ f("div", {
|
|
638
|
+
className: "min-w-0",
|
|
639
|
+
children: [/* @__PURE__ */ d("dt", {
|
|
640
|
+
className: "text-xs text-text-muted",
|
|
641
|
+
children: o("bigconsole.pipelines.builder.preview.nameLabel", "Name")
|
|
642
|
+
}), /* @__PURE__ */ d("dd", {
|
|
643
|
+
className: "break-words text-text-primary",
|
|
644
|
+
children: A || o("bigconsole.pipelines.builder.preview.untitled", "Untitled")
|
|
645
|
+
})]
|
|
646
|
+
}),
|
|
647
|
+
/* @__PURE__ */ f("div", {
|
|
648
|
+
className: "min-w-0",
|
|
649
|
+
children: [/* @__PURE__ */ d("dt", {
|
|
650
|
+
className: "text-xs text-text-muted",
|
|
651
|
+
children: o("bigconsole.pipelines.builder.preview.statusLabel", "Status")
|
|
652
|
+
}), /* @__PURE__ */ d("dd", {
|
|
653
|
+
className: "mt-1",
|
|
654
|
+
children: /* @__PURE__ */ d(te, {
|
|
655
|
+
status: P,
|
|
656
|
+
size: "sm"
|
|
657
|
+
})
|
|
658
|
+
})]
|
|
659
|
+
}),
|
|
660
|
+
/* @__PURE__ */ f("div", {
|
|
661
|
+
className: "min-w-0",
|
|
662
|
+
children: [/* @__PURE__ */ d("dt", {
|
|
663
|
+
className: "text-xs text-text-muted",
|
|
664
|
+
children: o("bigconsole.pipelines.builder.preview.stagesLabel", "Stages")
|
|
665
|
+
}), /* @__PURE__ */ d("dd", {
|
|
666
|
+
className: "text-text-primary",
|
|
667
|
+
children: I.length
|
|
668
|
+
})]
|
|
669
|
+
}),
|
|
670
|
+
I.length > 0 && /* @__PURE__ */ f("div", {
|
|
671
|
+
className: "min-w-0 border-t border-[var(--color-border-subtle)] pt-3",
|
|
672
|
+
children: [/* @__PURE__ */ d("dt", {
|
|
673
|
+
className: "text-xs text-text-muted",
|
|
674
|
+
children: o("bigconsole.pipelines.builder.preview.dataFlowLabel", "Data Flow")
|
|
675
|
+
}), /* @__PURE__ */ f("dd", {
|
|
676
|
+
className: "mt-1 flex flex-wrap items-center gap-1 text-xs",
|
|
677
|
+
children: [I.map((e, t) => /* @__PURE__ */ f("span", {
|
|
678
|
+
className: "flex items-center gap-1",
|
|
679
|
+
children: [/* @__PURE__ */ d("code", {
|
|
680
|
+
className: "rounded-button bg-bg-surface px-1.5 py-0.5 font-mono break-all text-text-primary",
|
|
681
|
+
children: e.inputKey
|
|
682
|
+
}), /* @__PURE__ */ d("span", {
|
|
683
|
+
"aria-hidden": "true",
|
|
684
|
+
className: "text-text-muted",
|
|
685
|
+
children: "→"
|
|
686
|
+
})]
|
|
687
|
+
}, t)), /* @__PURE__ */ d("code", {
|
|
688
|
+
className: "rounded-button bg-bg-surface px-1.5 py-0.5 font-mono break-all text-text-primary",
|
|
689
|
+
children: I[I.length - 1].outputKey
|
|
690
|
+
})]
|
|
691
|
+
})]
|
|
692
|
+
})
|
|
574
693
|
]
|
|
575
|
-
})
|
|
576
|
-
}), /* @__PURE__ */
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
694
|
+
})
|
|
695
|
+
}), /* @__PURE__ */ d(n, {
|
|
696
|
+
emphasis: "muted",
|
|
697
|
+
padding: "compact",
|
|
698
|
+
headingLevel: 2,
|
|
699
|
+
title: o("bigconsole.pipelines.builder.tips.heading", "Tips"),
|
|
700
|
+
"data-testid": "pipeline-builder-tips",
|
|
701
|
+
children: /* @__PURE__ */ f("ul", {
|
|
702
|
+
className: "list-disc space-y-1 pl-4 text-sm text-text-secondary",
|
|
583
703
|
children: [
|
|
584
|
-
/* @__PURE__ */
|
|
585
|
-
/* @__PURE__ */
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */
|
|
704
|
+
/* @__PURE__ */ d("li", { children: o("bigconsole.pipelines.builder.tips.item1", "Each stage processes the output of the previous stage") }),
|
|
705
|
+
/* @__PURE__ */ d("li", { children: o("bigconsole.pipelines.builder.tips.item2", "Use consistent input/output keys to chain data") }),
|
|
706
|
+
/* @__PURE__ */ d("li", { children: o("bigconsole.pipelines.builder.tips.item3", "Set error handling per stage for robustness") }),
|
|
707
|
+
/* @__PURE__ */ d("li", { children: o("bigconsole.pipelines.builder.tips.item4", "Disable stages to skip them during execution") })
|
|
588
708
|
]
|
|
589
|
-
})
|
|
590
|
-
})]
|
|
709
|
+
})
|
|
710
|
+
})] })
|
|
591
711
|
})]
|
|
592
712
|
})
|
|
593
|
-
]
|
|
713
|
+
] })
|
|
594
714
|
});
|
|
595
715
|
});
|
|
596
716
|
//#endregion
|
|
597
|
-
export {
|
|
717
|
+
export { w as PipelineBuilderPage, w as default };
|
|
598
718
|
|
|
599
719
|
//# sourceMappingURL=PipelineBuilderPage.js.map
|