@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.3
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/builder/inspector/DataBindingSection.js +109 -113
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.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 +151 -154
- 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/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.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 +182 -197
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
- 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 +69 -68
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
- 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 +178 -177
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +223 -219
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +167 -170
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +238 -208
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +92 -90
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -127
- 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 +121 -83
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
- 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
|
@@ -5,123 +5,124 @@ import { BOOTSTRAP_RETRY_DELAY_MS as n } from "../constants.js";
|
|
|
5
5
|
import { useBigConsole as r } from "../context/BigConsoleContext.js";
|
|
6
6
|
import "../context/index.js";
|
|
7
7
|
import { BIGCONSOLE_PERMISSIONS as i } from "../../constants/permissions.js";
|
|
8
|
-
import { isNative as a, nativeCopyText as o, nativeNotify as s, nativeToast as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { memo as l, useCallback as u, useEffect as
|
|
12
|
-
import { useParams as
|
|
13
|
-
import { AccessDenied as
|
|
8
|
+
import { isNative as a, nativeCopyText as o, nativeNotify as s, nativeToast as ee } from "../../utils/nativeBridge.js";
|
|
9
|
+
import te from "../components/workflow/WorkflowStatusBadge.js";
|
|
10
|
+
import c from "../components/workflow/WorkflowDeleteDialog.js";
|
|
11
|
+
import { memo as l, useCallback as u, useEffect as d, useState as f } from "react";
|
|
12
|
+
import { useParams as ne } from "react-router";
|
|
13
|
+
import { AccessDenied as re, PermissionButton as p } from "@burdenoff/fe-libs/shared/components";
|
|
14
14
|
import { usePermissions as m } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { useI18n as h } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
16
|
+
import { GlassCard as ie, IllustratedEmptyState as g, NextSteps as ae, PagePurpose as oe } from "@burdenoff/fe-libs/ui";
|
|
17
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
18
|
+
import { WorkflowBuilder as b } from "@burdenoff/fluidgrids-fe-sdk";
|
|
19
|
+
import { formatDistanceToNow as x } from "date-fns";
|
|
19
20
|
//#region src/bigconsole/pages/WorkflowViewPage.tsx
|
|
20
|
-
var
|
|
21
|
+
var S = ({ className: e }) => /* @__PURE__ */ v("svg", {
|
|
21
22
|
className: e,
|
|
22
23
|
fill: "none",
|
|
23
24
|
stroke: "currentColor",
|
|
24
25
|
viewBox: "0 0 24 24",
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
+
children: /* @__PURE__ */ v("path", {
|
|
26
27
|
strokeLinecap: "round",
|
|
27
28
|
strokeLinejoin: "round",
|
|
28
29
|
strokeWidth: 2,
|
|
29
30
|
d: "M15 19l-7-7 7-7"
|
|
30
31
|
})
|
|
31
|
-
}),
|
|
32
|
+
}), C = ({ className: e }) => /* @__PURE__ */ v("svg", {
|
|
32
33
|
className: e,
|
|
33
34
|
fill: "none",
|
|
34
35
|
stroke: "currentColor",
|
|
35
36
|
viewBox: "0 0 24 24",
|
|
36
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ v("path", {
|
|
37
38
|
strokeLinecap: "round",
|
|
38
39
|
strokeLinejoin: "round",
|
|
39
40
|
strokeWidth: 2,
|
|
40
41
|
d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
|
|
41
42
|
})
|
|
42
|
-
}),
|
|
43
|
+
}), se = ({ className: e }) => /* @__PURE__ */ v("svg", {
|
|
43
44
|
className: e,
|
|
44
45
|
fill: "none",
|
|
45
46
|
stroke: "currentColor",
|
|
46
47
|
viewBox: "0 0 24 24",
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ v("path", {
|
|
48
49
|
strokeLinecap: "round",
|
|
49
50
|
strokeLinejoin: "round",
|
|
50
51
|
strokeWidth: 2,
|
|
51
52
|
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"
|
|
52
53
|
})
|
|
53
|
-
}),
|
|
54
|
+
}), ce = ({ className: e }) => /* @__PURE__ */ y("svg", {
|
|
54
55
|
className: e,
|
|
55
56
|
fill: "none",
|
|
56
57
|
stroke: "currentColor",
|
|
57
58
|
viewBox: "0 0 24 24",
|
|
58
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ v("path", {
|
|
59
60
|
strokeLinecap: "round",
|
|
60
61
|
strokeLinejoin: "round",
|
|
61
62
|
strokeWidth: 2,
|
|
62
63
|
d: "M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"
|
|
63
|
-
}), /* @__PURE__ */
|
|
64
|
+
}), /* @__PURE__ */ v("path", {
|
|
64
65
|
strokeLinecap: "round",
|
|
65
66
|
strokeLinejoin: "round",
|
|
66
67
|
strokeWidth: 2,
|
|
67
68
|
d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
68
69
|
})]
|
|
69
|
-
}),
|
|
70
|
+
}), le = ({ className: e }) => /* @__PURE__ */ v("svg", {
|
|
70
71
|
className: e,
|
|
71
72
|
fill: "none",
|
|
72
73
|
stroke: "currentColor",
|
|
73
74
|
viewBox: "0 0 24 24",
|
|
74
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ v("path", {
|
|
75
76
|
strokeLinecap: "round",
|
|
76
77
|
strokeLinejoin: "round",
|
|
77
78
|
strokeWidth: 2,
|
|
78
79
|
d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
|
|
79
80
|
})
|
|
80
|
-
}),
|
|
81
|
+
}), ue = ({ className: e }) => /* @__PURE__ */ v("svg", {
|
|
81
82
|
className: e,
|
|
82
83
|
fill: "none",
|
|
83
84
|
stroke: "currentColor",
|
|
84
85
|
viewBox: "0 0 24 24",
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ v("path", {
|
|
86
87
|
strokeLinecap: "round",
|
|
87
88
|
strokeLinejoin: "round",
|
|
88
89
|
strokeWidth: 2,
|
|
89
90
|
d: "M5 13l4 4L19 7"
|
|
90
91
|
})
|
|
91
|
-
}),
|
|
92
|
+
}), de = ({ className: e }) => /* @__PURE__ */ v("svg", {
|
|
92
93
|
className: e,
|
|
93
94
|
fill: "none",
|
|
94
95
|
stroke: "currentColor",
|
|
95
96
|
viewBox: "0 0 24 24",
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ v("path", {
|
|
97
98
|
strokeLinecap: "round",
|
|
98
99
|
strokeLinejoin: "round",
|
|
99
100
|
strokeWidth: 2,
|
|
100
101
|
d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"
|
|
101
102
|
})
|
|
102
|
-
}),
|
|
103
|
+
}), fe = ({ className: e }) => /* @__PURE__ */ v("svg", {
|
|
103
104
|
className: e,
|
|
104
105
|
fill: "none",
|
|
105
106
|
stroke: "currentColor",
|
|
106
107
|
viewBox: "0 0 24 24",
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ v("path", {
|
|
108
109
|
strokeLinecap: "round",
|
|
109
110
|
strokeLinejoin: "round",
|
|
110
111
|
strokeWidth: 2,
|
|
111
112
|
d: "M19 9l-7 7-7-7"
|
|
112
113
|
})
|
|
113
|
-
}),
|
|
114
|
-
let l = e(), { workflowId:
|
|
115
|
-
|
|
116
|
-
let A =
|
|
117
|
-
|
|
118
|
-
if (!
|
|
114
|
+
}), w = l(function() {
|
|
115
|
+
let l = e(), { t: w } = h(), { workflowId: T } = ne(), { apiGatewayUrl: pe, authToken: me, workspaceId: he } = r(), { hasPermission: E, isLoading: D } = m(), O = E(i.WORKFLOW_READ), k = E(i.WORKFLOW_UPDATE);
|
|
116
|
+
E(i.WORKFLOW_DELETE);
|
|
117
|
+
let A = E(i.WORKFLOW_EXECUTE), [j, M] = f(null), [N, P] = f(!1), [, F] = f(!1), [I, L] = f(!1), [R, z] = f(!1), [B, V] = f(!1), [ge, H] = f(!1), [U, W] = f(null), { loading: _e, error: G, fetchWorkflow: K, deleteWorkflow: q, executeWorkflow: J, pollWorkflowExecution: Y } = t({ skipFetch: !0 });
|
|
118
|
+
d(() => {
|
|
119
|
+
if (!T) {
|
|
119
120
|
H(!0);
|
|
120
121
|
return;
|
|
121
122
|
}
|
|
122
123
|
let e = !1, t = async (r) => {
|
|
123
124
|
try {
|
|
124
|
-
let i = await K(
|
|
125
|
+
let i = await K(T);
|
|
125
126
|
if (e) return;
|
|
126
127
|
i ? (M(i), H(!0)) : r === 0 ? setTimeout(() => {
|
|
127
128
|
e || t(1);
|
|
@@ -133,16 +134,16 @@ var w = ({ className: e }) => /* @__PURE__ */ b("svg", {
|
|
|
133
134
|
return t(0), () => {
|
|
134
135
|
e = !0;
|
|
135
136
|
};
|
|
136
|
-
}, [
|
|
137
|
+
}, [T, K]);
|
|
137
138
|
let X = u(() => {
|
|
138
139
|
l("/workflows");
|
|
139
140
|
}, [l]), Z = u(() => {
|
|
140
|
-
l(`/workflows/${
|
|
141
|
-
}, [l,
|
|
142
|
-
if (
|
|
141
|
+
l(`/workflows/${T}/edit`);
|
|
142
|
+
}, [l, T]), ve = u(async () => {
|
|
143
|
+
if (T) {
|
|
143
144
|
F(!0);
|
|
144
145
|
try {
|
|
145
|
-
await q(
|
|
146
|
+
await q(T) ? (a() && s("success"), l("/workflows")) : a() && s("error");
|
|
146
147
|
} catch {
|
|
147
148
|
a() && s("error");
|
|
148
149
|
} finally {
|
|
@@ -150,15 +151,15 @@ var w = ({ className: e }) => /* @__PURE__ */ b("svg", {
|
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
}, [
|
|
153
|
-
|
|
154
|
+
T,
|
|
154
155
|
q,
|
|
155
156
|
l
|
|
156
157
|
]), Q = u(async () => {
|
|
157
|
-
if (!
|
|
158
|
+
if (!T) return;
|
|
158
159
|
L(!0), W(null);
|
|
159
160
|
let e = Date.now();
|
|
160
161
|
try {
|
|
161
|
-
let t = await J(
|
|
162
|
+
let t = await J(T);
|
|
162
163
|
if (t) {
|
|
163
164
|
let n = Date.now() - e;
|
|
164
165
|
t.externalWorkflowId ? (W({
|
|
@@ -166,11 +167,11 @@ var w = ({ className: e }) => /* @__PURE__ */ b("svg", {
|
|
|
166
167
|
output: {
|
|
167
168
|
externalWorkflowId: t.externalWorkflowId,
|
|
168
169
|
executionCount: t.executionCount,
|
|
169
|
-
status: "Triggered — polling for completion..."
|
|
170
|
+
status: w("bigconsole.workflows.view.executionTriggeredPolling", "Triggered — polling for completion...")
|
|
170
171
|
},
|
|
171
172
|
error: null,
|
|
172
173
|
executionTimeMs: n
|
|
173
|
-
}), Y(
|
|
174
|
+
}), Y(T, {
|
|
174
175
|
intervalMs: 3e3,
|
|
175
176
|
timeoutMs: 12e4,
|
|
176
177
|
onProgress: (e) => {
|
|
@@ -181,7 +182,7 @@ var w = ({ className: e }) => /* @__PURE__ */ b("svg", {
|
|
|
181
182
|
...n,
|
|
182
183
|
output: {
|
|
183
184
|
...n.output || {},
|
|
184
|
-
status: t.status === "error" ? "Failed" : "Completed",
|
|
185
|
+
status: t.status === "error" ? w("bigconsole.workflows.view.executionStatusFailed", "Failed") : w("bigconsole.workflows.view.executionStatusCompleted", "Completed"),
|
|
185
186
|
executionCount: t.executionCount,
|
|
186
187
|
lastExecutedAt: t.lastExecutedAt
|
|
187
188
|
},
|
|
@@ -192,273 +193,282 @@ var w = ({ className: e }) => /* @__PURE__ */ b("svg", {
|
|
|
192
193
|
output: {
|
|
193
194
|
executionCount: t.executionCount,
|
|
194
195
|
lastExecutedAt: t.lastExecutedAt,
|
|
195
|
-
status: "Completed"
|
|
196
|
+
status: w("bigconsole.workflows.view.executionStatusCompleted", "Completed")
|
|
196
197
|
},
|
|
197
198
|
error: null,
|
|
198
199
|
executionTimeMs: n
|
|
199
200
|
});
|
|
200
|
-
let r = await K(
|
|
201
|
+
let r = await K(T);
|
|
201
202
|
r && M(r);
|
|
202
203
|
}
|
|
203
204
|
} catch (t) {
|
|
204
205
|
W({
|
|
205
206
|
success: !1,
|
|
206
207
|
output: null,
|
|
207
|
-
error: t instanceof Error ? t.message : "Execution failed",
|
|
208
|
+
error: t instanceof Error ? t.message : w("bigconsole.workflows.errors.executionFailed", "Execution failed"),
|
|
208
209
|
executionTimeMs: Date.now() - e
|
|
209
210
|
});
|
|
210
211
|
} finally {
|
|
211
212
|
L(!1);
|
|
212
213
|
}
|
|
213
214
|
}, [
|
|
214
|
-
|
|
215
|
+
T,
|
|
215
216
|
J,
|
|
216
217
|
K,
|
|
217
|
-
Y
|
|
218
|
-
|
|
218
|
+
Y,
|
|
219
|
+
w
|
|
220
|
+
]), ye = u(async () => {
|
|
219
221
|
if (j?.webhookUrl) try {
|
|
220
|
-
await o(j.webhookUrl), z(!0), a() &&
|
|
222
|
+
await o(j.webhookUrl), z(!0), a() && ee(w("bigconsole.workflows.view.webhookCopiedToast", "Webhook copied")), setTimeout(() => z(!1), 2e3);
|
|
221
223
|
} catch {}
|
|
222
|
-
}, [j?.webhookUrl]),
|
|
224
|
+
}, [j?.webhookUrl, w]), be = u((e) => {
|
|
223
225
|
l(`/datasinks/${e}`);
|
|
224
226
|
}, [l]);
|
|
225
|
-
if (!
|
|
227
|
+
if (!ge || _e && !j || D) return /* @__PURE__ */ v("div", {
|
|
226
228
|
className: "p-6 flex items-center justify-center min-h-[400px]",
|
|
227
|
-
children: /* @__PURE__ */
|
|
229
|
+
children: /* @__PURE__ */ y("svg", {
|
|
228
230
|
className: "w-8 h-8 text-action-primary-bg animate-spin",
|
|
229
231
|
fill: "none",
|
|
230
232
|
viewBox: "0 0 24 24",
|
|
231
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ v("circle", {
|
|
232
234
|
className: "opacity-25",
|
|
233
235
|
cx: "12",
|
|
234
236
|
cy: "12",
|
|
235
237
|
r: "10",
|
|
236
238
|
stroke: "currentColor",
|
|
237
239
|
strokeWidth: "4"
|
|
238
|
-
}), /* @__PURE__ */
|
|
240
|
+
}), /* @__PURE__ */ v("path", {
|
|
239
241
|
className: "opacity-75",
|
|
240
242
|
fill: "currentColor",
|
|
241
243
|
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"
|
|
242
244
|
})]
|
|
243
245
|
})
|
|
244
246
|
});
|
|
245
|
-
if (!O) return /* @__PURE__ */
|
|
246
|
-
title: "Access Denied",
|
|
247
|
-
description: "You don't have permission to view this workflow."
|
|
247
|
+
if (!O) return /* @__PURE__ */ v(re, {
|
|
248
|
+
title: w("bigconsole.workflows.errors.accessDeniedTitle", "Access Denied"),
|
|
249
|
+
description: w("bigconsole.workflows.errors.accessDeniedViewDescription", "You don't have permission to view this workflow.")
|
|
248
250
|
});
|
|
249
|
-
if (G || !j) return /* @__PURE__ */
|
|
251
|
+
if (G || !j) return /* @__PURE__ */ y("div", {
|
|
250
252
|
className: "p-6",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ y("button", {
|
|
252
254
|
type: "button",
|
|
253
255
|
onClick: X,
|
|
254
256
|
className: "inline-flex items-center gap-1 text-sm text-text-secondary hover:text-text-primary mb-4",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
256
|
-
}), /* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ v(S, { className: "w-4 h-4" }), w("bigconsole.workflows.view.backToWorkflows", "Back to Workflows")]
|
|
258
|
+
}), /* @__PURE__ */ v(g, {
|
|
257
259
|
illustration: "empty-data",
|
|
258
|
-
title: "Workflow not found",
|
|
259
|
-
description: G?.message || "The workflow you are looking for does not exist."
|
|
260
|
+
title: w("bigconsole.workflows.view.notFoundTitle", "Workflow not found"),
|
|
261
|
+
description: G?.message || w("bigconsole.workflows.view.notFoundDescription", "The workflow you are looking for does not exist.")
|
|
260
262
|
})]
|
|
261
263
|
});
|
|
262
|
-
let $ = j.dataSinkLinks?.length || 0,
|
|
264
|
+
let $ = j.dataSinkLinks?.length || 0, xe = [
|
|
263
265
|
...A ? [{
|
|
264
266
|
id: "execute",
|
|
265
|
-
label: "Run the workflow",
|
|
266
|
-
description: "Trigger an execution to pull fresh data now.",
|
|
267
|
+
label: w("bigconsole.workflows.view.nextStepExecuteLabel", "Run the workflow"),
|
|
268
|
+
description: w("bigconsole.workflows.view.nextStepExecuteDescription", "Trigger an execution to pull fresh data now."),
|
|
267
269
|
onClick: Q
|
|
268
270
|
}] : [],
|
|
269
271
|
{
|
|
270
272
|
id: "design",
|
|
271
|
-
label: "Inspect the design",
|
|
272
|
-
description: "Expand the read-only preview to see each step.",
|
|
273
|
+
label: w("bigconsole.workflows.view.nextStepDesignLabel", "Inspect the design"),
|
|
274
|
+
description: w("bigconsole.workflows.view.nextStepDesignDescription", "Expand the read-only preview to see each step."),
|
|
273
275
|
onClick: () => V(!0)
|
|
274
276
|
},
|
|
275
277
|
...k ? [{
|
|
276
278
|
id: "edit",
|
|
277
|
-
label: "Edit in the builder",
|
|
278
|
-
description: "Open the FluidGrids visual builder to change the flow.",
|
|
279
|
+
label: w("bigconsole.workflows.view.nextStepEditLabel", "Edit in the builder"),
|
|
280
|
+
description: w("bigconsole.workflows.view.nextStepEditDescription", "Open the FluidGrids visual builder to change the flow."),
|
|
279
281
|
onClick: Z
|
|
280
282
|
}] : [],
|
|
281
283
|
{
|
|
282
284
|
id: "sinks",
|
|
283
|
-
label: "Check the linked data sinks",
|
|
284
|
-
description: "See where this workflow writes its output.",
|
|
285
|
+
label: w("bigconsole.workflows.view.nextStepSinksLabel", "Check the linked data sinks"),
|
|
286
|
+
description: w("bigconsole.workflows.view.nextStepSinksDescription", "See where this workflow writes its output."),
|
|
285
287
|
onClick: () => l("/datasinks")
|
|
286
288
|
}
|
|
287
289
|
];
|
|
288
|
-
return /* @__PURE__ */
|
|
290
|
+
return /* @__PURE__ */ y("div", {
|
|
289
291
|
className: "p-6 max-w-5xl mx-auto",
|
|
290
292
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ y("div", {
|
|
292
294
|
className: "mb-8",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ y("button", {
|
|
294
296
|
type: "button",
|
|
295
297
|
onClick: X,
|
|
296
298
|
className: "inline-flex items-center gap-1 text-sm text-text-secondary hover:text-text-primary mb-4",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
298
|
-
}), /* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ v(S, { className: "w-4 h-4" }), w("bigconsole.workflows.view.backToWorkflows", "Back to Workflows")]
|
|
300
|
+
}), /* @__PURE__ */ y("div", {
|
|
299
301
|
className: "flex items-start justify-between",
|
|
300
|
-
children: [/* @__PURE__ */
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ y("div", { children: [
|
|
303
|
+
/* @__PURE__ */ y("div", {
|
|
302
304
|
className: "flex items-center gap-3 mb-2",
|
|
303
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ v("h1", {
|
|
304
306
|
className: "text-2xl font-bold text-text-primary",
|
|
305
307
|
children: j.name
|
|
306
|
-
}), /* @__PURE__ */
|
|
308
|
+
}), /* @__PURE__ */ v(te, { status: j.status })]
|
|
307
309
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ v("p", {
|
|
309
311
|
className: "text-sm text-text-secondary font-mono",
|
|
310
312
|
children: j.key
|
|
311
313
|
}),
|
|
312
|
-
j.externalWorkflowId && /* @__PURE__ */
|
|
314
|
+
j.externalWorkflowId && /* @__PURE__ */ y("p", {
|
|
313
315
|
className: "text-xs text-text-tertiary mt-1",
|
|
314
|
-
children: [
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
children: [
|
|
317
|
+
w("bigconsole.workflows.view.fluidGridsIdLabel", "FluidGrids ID:"),
|
|
318
|
+
" ",
|
|
319
|
+
/* @__PURE__ */ v("span", {
|
|
320
|
+
className: "font-mono",
|
|
321
|
+
children: j.externalWorkflowId
|
|
322
|
+
})
|
|
323
|
+
]
|
|
318
324
|
})
|
|
319
|
-
] }), /* @__PURE__ */
|
|
325
|
+
] }), /* @__PURE__ */ y("div", {
|
|
320
326
|
className: "flex items-center gap-2",
|
|
321
327
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ v(p, {
|
|
323
329
|
permission: i.WORKFLOW_EXECUTE,
|
|
324
330
|
deniedBehavior: "disable",
|
|
325
|
-
children: /* @__PURE__ */
|
|
331
|
+
children: /* @__PURE__ */ y("button", {
|
|
326
332
|
type: "button",
|
|
327
333
|
onClick: Q,
|
|
328
334
|
disabled: I,
|
|
329
335
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-status-success-bg hover:bg-status-success-bg/90 rounded-md transition-colors disabled:opacity-50",
|
|
330
|
-
children: [/* @__PURE__ */
|
|
336
|
+
children: [/* @__PURE__ */ v(ce, { className: "w-4 h-4" }), I ? w("bigconsole.workflows.actions.executing", "Executing...") : w("bigconsole.workflows.actions.execute", "Execute")]
|
|
331
337
|
})
|
|
332
338
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ v(p, {
|
|
334
340
|
permission: i.WORKFLOW_UPDATE,
|
|
335
341
|
deniedBehavior: "disable",
|
|
336
|
-
children: /* @__PURE__ */
|
|
342
|
+
children: /* @__PURE__ */ y("button", {
|
|
337
343
|
type: "button",
|
|
338
344
|
onClick: Z,
|
|
339
345
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors",
|
|
340
|
-
children: [/* @__PURE__ */
|
|
346
|
+
children: [/* @__PURE__ */ v(C, { className: "w-4 h-4" }), w("bigconsole.workflows.actions.edit", "Edit")]
|
|
341
347
|
})
|
|
342
348
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ v(p, {
|
|
344
350
|
permission: i.WORKFLOW_DELETE,
|
|
345
351
|
deniedBehavior: "hide",
|
|
346
|
-
children: /* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ y("button", {
|
|
347
353
|
type: "button",
|
|
348
354
|
onClick: () => P(!0),
|
|
349
355
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-status-error-text bg-status-error-bg/10 hover:bg-status-error-bg/20 rounded-md transition-colors",
|
|
350
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ v(se, { className: "w-4 h-4" }), w("bigconsole.workflows.actions.delete", "Delete")]
|
|
351
357
|
})
|
|
352
358
|
})
|
|
353
359
|
]
|
|
354
360
|
})]
|
|
355
361
|
})]
|
|
356
362
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ v(oe, {
|
|
358
364
|
className: "mb-6",
|
|
359
|
-
children: "A workflow is the visual ETL job that feeds this BigConsole — it fetches, transforms, and delivers data into linked data sinks. From here you can run it on demand, inspect its design and execution history, copy its webhook trigger, and edit it in the visual builder."
|
|
365
|
+
children: w("bigconsole.workflows.view.purpose", "A workflow is the visual ETL job that feeds this BigConsole — it fetches, transforms, and delivers data into linked data sinks. From here you can run it on demand, inspect its design and execution history, copy its webhook trigger, and edit it in the visual builder.")
|
|
360
366
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ v(ae, {
|
|
362
368
|
storageKey: "bigconsole-workflow-view",
|
|
363
|
-
steps:
|
|
369
|
+
steps: xe
|
|
364
370
|
}),
|
|
365
|
-
U && /* @__PURE__ */
|
|
371
|
+
U && /* @__PURE__ */ y("div", {
|
|
366
372
|
className: `mb-6 p-4 rounded-lg border ${U.success ? "bg-status-success-bg/10 border-status-success-border/20" : "bg-status-error-bg/10 border-status-error-border/20"}`,
|
|
367
373
|
children: [
|
|
368
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ y("div", {
|
|
369
375
|
className: "flex items-center justify-between mb-2",
|
|
370
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
371
377
|
className: "text-sm font-semibold text-text-primary",
|
|
372
|
-
children: U.success ? "Execution Triggered" : "Execution Failed"
|
|
373
|
-
}), /* @__PURE__ */
|
|
378
|
+
children: U.success ? w("bigconsole.workflows.view.executionResultTriggered", "Execution Triggered") : w("bigconsole.workflows.view.executionResultFailed", "Execution Failed")
|
|
379
|
+
}), /* @__PURE__ */ y("span", {
|
|
374
380
|
className: "text-xs text-text-secondary",
|
|
375
381
|
children: [U.executionTimeMs, "ms"]
|
|
376
382
|
})]
|
|
377
383
|
}),
|
|
378
|
-
U.error ? /* @__PURE__ */
|
|
384
|
+
U.error ? /* @__PURE__ */ v("p", {
|
|
379
385
|
className: "text-sm text-status-error-text",
|
|
380
386
|
children: U.error
|
|
381
|
-
}) : /* @__PURE__ */
|
|
387
|
+
}) : /* @__PURE__ */ v("pre", {
|
|
382
388
|
className: "text-xs text-text-secondary font-mono bg-bg-sunken p-2 rounded overflow-auto max-h-[200px]",
|
|
383
389
|
children: JSON.stringify(U.output, null, 2)
|
|
384
390
|
}),
|
|
385
|
-
U.runId && /* @__PURE__ */
|
|
391
|
+
U.runId && /* @__PURE__ */ y("p", {
|
|
386
392
|
className: "text-xs text-text-tertiary mt-2",
|
|
387
|
-
children: [
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
393
|
+
children: [
|
|
394
|
+
w("bigconsole.workflows.view.runIdLabel", "Run ID:"),
|
|
395
|
+
" ",
|
|
396
|
+
/* @__PURE__ */ v("span", {
|
|
397
|
+
className: "font-mono",
|
|
398
|
+
children: U.runId
|
|
399
|
+
})
|
|
400
|
+
]
|
|
391
401
|
})
|
|
392
402
|
]
|
|
393
403
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ y("div", {
|
|
395
405
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ y("div", {
|
|
397
407
|
className: "bg-bg-surface border border-border-default rounded-lg p-4",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
399
409
|
className: "text-sm font-medium text-text-secondary mb-2",
|
|
400
|
-
children: "Description"
|
|
401
|
-
}), /* @__PURE__ */
|
|
410
|
+
children: w("bigconsole.workflows.view.descriptionLabel", "Description")
|
|
411
|
+
}), /* @__PURE__ */ v("p", {
|
|
402
412
|
className: "text-sm text-text-primary",
|
|
403
|
-
children: j.description || "No description"
|
|
413
|
+
children: j.description || w("bigconsole.workflows.view.noDescription", "No description")
|
|
404
414
|
})]
|
|
405
|
-
}), /* @__PURE__ */
|
|
415
|
+
}), /* @__PURE__ */ y(ie, {
|
|
406
416
|
treatment: "glass",
|
|
407
417
|
glow: !0,
|
|
408
418
|
className: "p-4",
|
|
409
|
-
children: [/* @__PURE__ */
|
|
419
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
410
420
|
className: "text-sm font-medium text-text-secondary mb-2",
|
|
411
|
-
children: "Execution Stats"
|
|
412
|
-
}), /* @__PURE__ */
|
|
421
|
+
children: w("bigconsole.workflows.view.executionStatsLabel", "Execution Stats")
|
|
422
|
+
}), /* @__PURE__ */ y("div", {
|
|
413
423
|
className: "grid grid-cols-2 gap-4",
|
|
414
|
-
children: [/* @__PURE__ */
|
|
424
|
+
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
415
425
|
className: "text-2xl font-bold text-text-primary",
|
|
416
426
|
children: j.executionCount
|
|
417
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ v("p", {
|
|
418
428
|
className: "text-xs text-text-secondary",
|
|
419
|
-
children: "Total Executions"
|
|
420
|
-
})] }), /* @__PURE__ */
|
|
429
|
+
children: w("bigconsole.workflows.view.totalExecutionsLabel", "Total Executions")
|
|
430
|
+
})] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
421
431
|
className: "text-sm font-medium text-text-primary",
|
|
422
|
-
children: j.lastExecutedAt ?
|
|
423
|
-
}), /* @__PURE__ */
|
|
432
|
+
children: j.lastExecutedAt ? x(new Date(j.lastExecutedAt), { addSuffix: !0 }) : w("bigconsole.workflows.view.never", "Never")
|
|
433
|
+
}), /* @__PURE__ */ v("p", {
|
|
424
434
|
className: "text-xs text-text-secondary",
|
|
425
|
-
children: "Last Executed"
|
|
435
|
+
children: w("bigconsole.workflows.view.lastExecutedLabel", "Last Executed")
|
|
426
436
|
})] })]
|
|
427
437
|
})]
|
|
428
438
|
})]
|
|
429
439
|
}),
|
|
430
|
-
j.webhookUrl && /* @__PURE__ */
|
|
440
|
+
j.webhookUrl && /* @__PURE__ */ y("div", {
|
|
431
441
|
className: "bg-bg-surface border border-border-default rounded-lg p-4 mb-8",
|
|
432
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
433
443
|
className: "text-sm font-medium text-text-secondary mb-2",
|
|
434
|
-
children: "Webhook URL"
|
|
435
|
-
}), /* @__PURE__ */
|
|
444
|
+
children: w("bigconsole.workflows.view.webhookUrlLabel", "Webhook URL")
|
|
445
|
+
}), /* @__PURE__ */ y("div", {
|
|
436
446
|
className: "flex items-center gap-2",
|
|
437
|
-
children: [/* @__PURE__ */
|
|
447
|
+
children: [/* @__PURE__ */ v("code", {
|
|
438
448
|
className: "flex-1 text-sm text-text-primary font-mono bg-bg-sunken px-3 py-2 rounded overflow-auto",
|
|
439
449
|
children: j.webhookUrl
|
|
440
|
-
}), /* @__PURE__ */
|
|
450
|
+
}), /* @__PURE__ */ v("button", {
|
|
441
451
|
type: "button",
|
|
442
|
-
onClick:
|
|
452
|
+
onClick: ye,
|
|
443
453
|
className: "flex items-center gap-1 px-3 py-2 text-sm text-text-secondary hover:text-text-primary transition-colors",
|
|
444
|
-
children: R ? /* @__PURE__ */
|
|
454
|
+
children: R ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ue, { className: "w-4 h-4 text-status-success-text" }), w("bigconsole.workflows.actions.copied", "Copied!")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(le, { className: "w-4 h-4" }), w("bigconsole.workflows.actions.copy", "Copy")] })
|
|
445
455
|
})]
|
|
446
456
|
})]
|
|
447
457
|
}),
|
|
448
|
-
j.externalWorkflowId && /* @__PURE__ */
|
|
458
|
+
j.externalWorkflowId && /* @__PURE__ */ y("div", {
|
|
449
459
|
className: "bg-bg-surface border border-border-default rounded-lg mb-8 overflow-hidden",
|
|
450
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ y("button", {
|
|
451
461
|
type: "button",
|
|
452
462
|
onClick: () => V((e) => !e),
|
|
453
463
|
className: "w-full flex items-center justify-between px-4 py-3 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
455
|
-
}), B && /* @__PURE__ */
|
|
464
|
+
children: [/* @__PURE__ */ v("span", { children: w("bigconsole.workflows.view.designPreviewTitle", "Workflow Design Preview") }), /* @__PURE__ */ v(fe, { className: `w-4 h-4 text-text-secondary transition-transform ${B ? "rotate-180" : ""}` })]
|
|
465
|
+
}), B && /* @__PURE__ */ v("div", {
|
|
456
466
|
className: "border-t border-border-default",
|
|
457
467
|
style: { height: "450px" },
|
|
458
|
-
children: /* @__PURE__ */ b
|
|
459
|
-
apiGatewayUrl:
|
|
460
|
-
workspaceId:
|
|
461
|
-
authToken:
|
|
468
|
+
children: /* @__PURE__ */ v(b, {
|
|
469
|
+
apiGatewayUrl: pe,
|
|
470
|
+
workspaceId: he || "default",
|
|
471
|
+
authToken: me,
|
|
462
472
|
workflowId: j.externalWorkflowId,
|
|
463
473
|
readonly: !0,
|
|
464
474
|
hideHeader: !0,
|
|
@@ -466,102 +476,98 @@ var w = ({ className: e }) => /* @__PURE__ */ b("svg", {
|
|
|
466
476
|
})
|
|
467
477
|
})]
|
|
468
478
|
}),
|
|
469
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ y("div", {
|
|
470
480
|
className: "bg-bg-surface border border-border-default rounded-lg p-4 mb-8",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
481
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
472
482
|
className: "text-sm font-medium text-text-secondary mb-4",
|
|
473
|
-
children:
|
|
474
|
-
|
|
475
|
-
$,
|
|
476
|
-
")"
|
|
477
|
-
]
|
|
478
|
-
}), $ === 0 ? /* @__PURE__ */ b(g, {
|
|
483
|
+
children: w("bigconsole.workflows.view.linkedDataSinksTitle", "Linked DataSinks ({{count}})", { count: $ })
|
|
484
|
+
}), $ === 0 ? /* @__PURE__ */ v(g, {
|
|
479
485
|
illustration: "empty-generic",
|
|
480
|
-
title: "No data sinks linked",
|
|
481
|
-
description: "This workflow has no data sinks linked yet — its output isn't being stored."
|
|
482
|
-
}) : /* @__PURE__ */
|
|
486
|
+
title: w("bigconsole.workflows.view.noDataSinksTitle", "No data sinks linked"),
|
|
487
|
+
description: w("bigconsole.workflows.view.noDataSinksDescription", "This workflow has no data sinks linked yet — its output isn't being stored.")
|
|
488
|
+
}) : /* @__PURE__ */ v("div", {
|
|
483
489
|
className: "space-y-2",
|
|
484
|
-
children: j.dataSinkLinks?.map((e) => /* @__PURE__ */
|
|
490
|
+
children: j.dataSinkLinks?.map((e) => /* @__PURE__ */ y("div", {
|
|
485
491
|
className: "flex items-center justify-between px-3 py-2 bg-bg-sunken rounded-md",
|
|
486
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ y("div", {
|
|
487
493
|
className: "flex items-center gap-3",
|
|
488
|
-
children: [/* @__PURE__ */
|
|
494
|
+
children: [/* @__PURE__ */ v(de, { className: "w-4 h-4 text-text-secondary" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
489
495
|
className: "text-sm font-medium text-text-primary",
|
|
490
496
|
children: e.dataSink?.name || e.dataSink?.key || e.dataSinkId
|
|
491
|
-
}), e.dataSink?.key && /* @__PURE__ */
|
|
497
|
+
}), e.dataSink?.key && /* @__PURE__ */ v("p", {
|
|
492
498
|
className: "text-xs text-text-secondary font-mono",
|
|
493
499
|
children: e.dataSink.key
|
|
494
500
|
})] })]
|
|
495
|
-
}), /* @__PURE__ */
|
|
501
|
+
}), /* @__PURE__ */ y("div", {
|
|
496
502
|
className: "flex items-center gap-4",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
503
|
+
children: [/* @__PURE__ */ y("div", {
|
|
498
504
|
className: "flex items-center gap-2",
|
|
499
|
-
children: [e.isEnabled ? /* @__PURE__ */
|
|
505
|
+
children: [e.isEnabled ? /* @__PURE__ */ v("span", {
|
|
500
506
|
className: "text-xs text-status-success-text",
|
|
501
|
-
children: "Enabled"
|
|
502
|
-
}) : /* @__PURE__ */
|
|
507
|
+
children: w("bigconsole.workflows.view.dataSinkEnabled", "Enabled")
|
|
508
|
+
}) : /* @__PURE__ */ v("span", {
|
|
503
509
|
className: "text-xs text-text-secondary",
|
|
504
|
-
children: "Disabled"
|
|
505
|
-
}), /* @__PURE__ */
|
|
510
|
+
children: w("bigconsole.workflows.view.dataSinkDisabled", "Disabled")
|
|
511
|
+
}), /* @__PURE__ */ v("span", {
|
|
506
512
|
className: "text-xs text-text-secondary",
|
|
507
|
-
children:
|
|
513
|
+
children: w("bigconsole.workflows.view.dataSinkPriority", "Priority: {{priority}}", { priority: e.priority })
|
|
508
514
|
})]
|
|
509
|
-
}), e.dataSink && /* @__PURE__ */
|
|
515
|
+
}), e.dataSink && /* @__PURE__ */ v("button", {
|
|
510
516
|
type: "button",
|
|
511
|
-
onClick: () =>
|
|
517
|
+
onClick: () => be(e.dataSinkId),
|
|
512
518
|
className: "text-xs text-action-primary-bg hover:underline",
|
|
513
|
-
children: "View"
|
|
519
|
+
children: w("bigconsole.workflows.actions.view", "View")
|
|
514
520
|
})]
|
|
515
521
|
})]
|
|
516
522
|
}, e.id))
|
|
517
523
|
})]
|
|
518
524
|
}),
|
|
519
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ y("div", {
|
|
520
526
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
521
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ y("div", {
|
|
522
528
|
className: "bg-bg-surface border border-border-default rounded-lg p-4",
|
|
523
529
|
children: [
|
|
524
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ v("h3", {
|
|
525
531
|
className: "text-sm font-medium text-text-secondary mb-2",
|
|
526
|
-
children: "Created"
|
|
532
|
+
children: w("bigconsole.workflows.view.createdLabel", "Created")
|
|
527
533
|
}),
|
|
528
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ v("p", {
|
|
529
535
|
className: "text-sm text-text-primary",
|
|
530
|
-
children:
|
|
536
|
+
children: x(new Date(j.createdAt), { addSuffix: !0 })
|
|
531
537
|
}),
|
|
532
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ v("p", {
|
|
533
539
|
className: "text-xs text-text-secondary",
|
|
534
|
-
children:
|
|
540
|
+
children: w("bigconsole.workflows.view.byAuthor", "by {{author}}", { author: j.createdBy })
|
|
535
541
|
})
|
|
536
542
|
]
|
|
537
|
-
}), /* @__PURE__ */
|
|
543
|
+
}), /* @__PURE__ */ y("div", {
|
|
538
544
|
className: "bg-bg-surface border border-border-default rounded-lg p-4",
|
|
539
545
|
children: [
|
|
540
|
-
/* @__PURE__ */
|
|
546
|
+
/* @__PURE__ */ v("h3", {
|
|
541
547
|
className: "text-sm font-medium text-text-secondary mb-2",
|
|
542
|
-
children: "Last Updated"
|
|
548
|
+
children: w("bigconsole.workflows.view.lastUpdatedLabel", "Last Updated")
|
|
543
549
|
}),
|
|
544
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ v("p", {
|
|
545
551
|
className: "text-sm text-text-primary",
|
|
546
|
-
children:
|
|
552
|
+
children: x(new Date(j.updatedAt), { addSuffix: !0 })
|
|
547
553
|
}),
|
|
548
|
-
/* @__PURE__ */
|
|
554
|
+
/* @__PURE__ */ v("p", {
|
|
549
555
|
className: "text-xs text-text-secondary",
|
|
550
|
-
children:
|
|
556
|
+
children: w("bigconsole.workflows.view.byAuthor", "by {{author}}", { author: j.updatedBy || j.createdBy })
|
|
551
557
|
})
|
|
552
558
|
]
|
|
553
559
|
})]
|
|
554
560
|
}),
|
|
555
|
-
j && /* @__PURE__ */
|
|
561
|
+
j && /* @__PURE__ */ v(c, {
|
|
556
562
|
workflow: j,
|
|
557
563
|
isOpen: N,
|
|
558
564
|
onClose: () => P(!1),
|
|
559
|
-
onConfirm:
|
|
565
|
+
onConfirm: ve
|
|
560
566
|
})
|
|
561
567
|
]
|
|
562
568
|
});
|
|
563
569
|
});
|
|
564
570
|
//#endregion
|
|
565
|
-
export {
|
|
571
|
+
export { w as WorkflowViewPage };
|
|
566
572
|
|
|
567
573
|
//# sourceMappingURL=WorkflowViewPage.js.map
|