@burdenoff/microfe-bigconsole 2026.624.2 → 2026.625.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/BigConsoleRoutes.js +93 -93
- package/dist/bigconsole/assistant/assistantApi.js +215 -0
- package/dist/bigconsole/assistant/assistantApi.js.map +1 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +119 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js.map +1 -0
- package/dist/bigconsole/assistant/index.js +2 -0
- package/dist/bigconsole/assistant/pageContext.js +51 -0
- package/dist/bigconsole/assistant/pageContext.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +48 -48
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +52 -52
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +33 -33
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +179 -179
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +38 -38
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +32 -32
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +31 -31
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +98 -98
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.js +31 -31
- package/dist/bigconsole/components/parser/ImportParserDialog.js +162 -162
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +79 -79
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -307
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +222 -222
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +23 -23
- package/dist/bigconsole/index.js +3 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +74 -74
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +168 -189
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +266 -310
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +148 -194
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -246
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -231
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +173 -219
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/HomePage.js +125 -141
- package/dist/bigconsole/pages/HomePage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +159 -184
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +401 -393
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +220 -201
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +212 -206
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +204 -181
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +107 -150
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +184 -171
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +69 -81
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +230 -216
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +106 -149
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/generated/wspace-operations.js +87 -36
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +6 -2
|
@@ -1,355 +1,383 @@
|
|
|
1
1
|
import { useParserStore as e } from "../store/parserStore.js";
|
|
2
|
-
import { useAppNavigate as
|
|
2
|
+
import { useAppNavigate as t } from "../contexts/NavigationContext.js";
|
|
3
3
|
import "../contexts/index.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { isNative as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { memo as
|
|
12
|
-
import { useParams as
|
|
13
|
-
import { AlertCircle as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
4
|
+
import ee from "../hooks/useDataSinkOperations.js";
|
|
5
|
+
import te from "../hooks/useParserOperations.js";
|
|
6
|
+
import n from "../components/parser/ParserTypeBadge.js";
|
|
7
|
+
import r from "../components/parser/ParserStatusBadge.js";
|
|
8
|
+
import { isNative as i, nativeCopyText as a, nativeImpact as ne, nativeNotify as o, nativeToast as re } from "../../utils/nativeBridge.js";
|
|
9
|
+
import ie from "../components/parser/ExpressionEditor.js";
|
|
10
|
+
import ae from "../components/parser/ExportParserDialog.js";
|
|
11
|
+
import { memo as s, useCallback as c, useEffect as l, useState as u } from "react";
|
|
12
|
+
import { useParams as d } from "react-router-dom";
|
|
13
|
+
import { AlertCircle as f, AlertTriangle as oe, ArrowDown as se, ArrowLeft as p, Check as ce, Copy as le, Database as ue, Download as de, Edit as fe, FileCode2 as pe, Loader2 as m, Play as h, Trash2 as g } from "lucide-react";
|
|
14
|
+
import { Badge as _, Button as v, Card as y, CardContent as b, CardHeader as x, CardTitle as S, Dialog as me, DialogContent as he, DialogDescription as ge, DialogFooter as _e, DialogHeader as ve, DialogTitle as ye, GlassCard as C, IllustratedEmptyState as w, NextSteps as T, PagePurpose as E } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
16
16
|
import { formatDistanceToNow as A } from "date-fns";
|
|
17
17
|
//#region src/bigconsole/pages/ParserViewPage.tsx
|
|
18
|
-
var j = "default", M =
|
|
19
|
-
let { parserId:
|
|
18
|
+
var j = "default", M = s(function() {
|
|
19
|
+
let { parserId: s, consoleId: M } = d(), N = t(), P = M || j, [F, I] = u(!1), [be, L] = u(!1), [xe, R] = u(!1), [z, B] = u(!1), [Se, V] = u(!1), [H, U] = u(null), W = e((e) => s ? e.parsers.get(s) : void 0), { loading: Ce, error: G, fetchParser: K, deleteParser: q, executeParser: J } = te({
|
|
20
20
|
consoleId: P,
|
|
21
21
|
skipFetch: !0
|
|
22
|
-
}), { dataSinks:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
|
|
27
|
-
}, [
|
|
28
|
-
let
|
|
22
|
+
}), { dataSinks: we, fetchDataSinks: Y } = ee({ skipFetch: !0 });
|
|
23
|
+
l(() => {
|
|
24
|
+
s && K(s);
|
|
25
|
+
}, [s, K]), l(() => {
|
|
26
|
+
Y();
|
|
27
|
+
}, [Y]);
|
|
28
|
+
let X = W?.inputSinkKey ? we.find((e) => e.key === W.inputSinkKey) : null, Z = c(() => {
|
|
29
29
|
N(M ? `/dashboards/${M}/parsers` : "/parsers");
|
|
30
|
-
}, [N, M]),
|
|
31
|
-
N(M ? `/dashboards/${M}/parsers/${
|
|
30
|
+
}, [N, M]), Q = c(() => {
|
|
31
|
+
N(M ? `/dashboards/${M}/parsers/${s}/edit` : `/parsers/${s}/edit`);
|
|
32
32
|
}, [
|
|
33
33
|
N,
|
|
34
|
-
|
|
34
|
+
s,
|
|
35
35
|
M
|
|
36
|
-
]),
|
|
37
|
-
if (
|
|
36
|
+
]), Te = c(async () => {
|
|
37
|
+
if (s) {
|
|
38
38
|
I(!0);
|
|
39
39
|
try {
|
|
40
|
-
await
|
|
40
|
+
await q(s) ? (i() && o("success"), N(M ? `/dashboards/${M}/parsers` : "/parsers")) : i() && o("error");
|
|
41
41
|
} catch {
|
|
42
|
-
|
|
42
|
+
i() && o("error");
|
|
43
43
|
} finally {
|
|
44
|
-
I(!1),
|
|
44
|
+
I(!1), L(!1);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
s,
|
|
49
|
+
q,
|
|
50
50
|
N,
|
|
51
51
|
M
|
|
52
|
-
]),
|
|
53
|
-
if (
|
|
54
|
-
await
|
|
52
|
+
]), Ee = c(async () => {
|
|
53
|
+
if (W?.expression) try {
|
|
54
|
+
await a(W.expression), R(!0), i() && re("Expression copied"), setTimeout(() => R(!1), 2e3);
|
|
55
55
|
} catch {}
|
|
56
|
-
}, [
|
|
57
|
-
if (
|
|
58
|
-
|
|
56
|
+
}, [W?.expression]), $ = c(async () => {
|
|
57
|
+
if (s) {
|
|
58
|
+
B(!0), U(null);
|
|
59
59
|
try {
|
|
60
|
-
let e = await
|
|
61
|
-
e &&
|
|
60
|
+
let e = await J(s);
|
|
61
|
+
e && U({
|
|
62
62
|
success: e.success,
|
|
63
63
|
output: e.output,
|
|
64
64
|
error: e.error,
|
|
65
65
|
executionTimeMs: e.executionTimeMs
|
|
66
66
|
});
|
|
67
67
|
} catch (e) {
|
|
68
|
-
|
|
68
|
+
U({
|
|
69
69
|
success: !1,
|
|
70
70
|
output: null,
|
|
71
71
|
error: e instanceof Error ? e.message : "Execution failed",
|
|
72
72
|
executionTimeMs: 0
|
|
73
73
|
});
|
|
74
74
|
} finally {
|
|
75
|
-
|
|
75
|
+
B(!1);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
}, [N,
|
|
81
|
-
|
|
82
|
-
}, []),
|
|
83
|
-
|
|
78
|
+
}, [s, J]), De = c(() => {
|
|
79
|
+
X && N(`/datasinks/${X.id}`);
|
|
80
|
+
}, [N, X]), Oe = c(() => {
|
|
81
|
+
V(!0);
|
|
82
|
+
}, []), ke = c(() => {
|
|
83
|
+
V(!1);
|
|
84
84
|
}, []);
|
|
85
|
-
return
|
|
85
|
+
return Ce && !W ? /* @__PURE__ */ O("div", {
|
|
86
86
|
className: "flex items-center justify-center min-h-[400px]",
|
|
87
|
-
children: /* @__PURE__ */
|
|
88
|
-
}) :
|
|
87
|
+
children: /* @__PURE__ */ O(m, { className: "w-8 h-8 text-text-secondary animate-spin" })
|
|
88
|
+
}) : G ? /* @__PURE__ */ O("div", {
|
|
89
89
|
className: "flex items-center justify-center min-h-[400px] p-card-padding",
|
|
90
|
-
children: /* @__PURE__ */
|
|
90
|
+
children: /* @__PURE__ */ k("div", {
|
|
91
91
|
className: "text-center",
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ O(f, { className: "w-12 h-12 text-state-error mx-auto mb-spacing-md" }),
|
|
94
|
+
/* @__PURE__ */ O("p", {
|
|
95
95
|
className: "text-state-error text-body-sm font-medium mb-spacing-sm",
|
|
96
96
|
children: "Failed to load Parser"
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ O("p", {
|
|
99
99
|
className: "text-text-tertiary text-body-xs mb-spacing-lg",
|
|
100
|
-
children:
|
|
100
|
+
children: G.message
|
|
101
101
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
onClick:
|
|
102
|
+
/* @__PURE__ */ k(v, {
|
|
103
|
+
onClick: Z,
|
|
104
104
|
variant: "ghost",
|
|
105
105
|
size: "sm",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ O(p, { className: "w-4 h-4 mr-2" }), "Go back"]
|
|
107
107
|
})
|
|
108
108
|
]
|
|
109
109
|
})
|
|
110
|
-
}) :
|
|
110
|
+
}) : W ? /* @__PURE__ */ k("div", {
|
|
111
111
|
className: "p-card-padding space-y-spacing-lg",
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ k("div", {
|
|
114
114
|
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-spacing-md",
|
|
115
|
-
children: [/* @__PURE__ */
|
|
115
|
+
children: [/* @__PURE__ */ k("div", {
|
|
116
116
|
className: "flex-1",
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
onClick:
|
|
118
|
+
/* @__PURE__ */ k(v, {
|
|
119
|
+
onClick: Z,
|
|
120
120
|
variant: "ghost",
|
|
121
121
|
size: "sm",
|
|
122
122
|
className: "mb-spacing-md",
|
|
123
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ O(p, { className: "w-4 h-4 mr-2" }), "Back to Parsers"]
|
|
124
124
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ k("div", {
|
|
126
126
|
className: "flex items-center gap-spacing-sm flex-wrap",
|
|
127
127
|
children: [
|
|
128
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ O("h1", {
|
|
129
129
|
className: "text-heading-h1 font-bold text-text-primary",
|
|
130
|
-
children:
|
|
130
|
+
children: W.name || "Untitled"
|
|
131
131
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ O(n, { type: W.type }),
|
|
133
|
+
/* @__PURE__ */ O(r, { status: W.status })
|
|
134
134
|
]
|
|
135
135
|
}),
|
|
136
|
-
|
|
136
|
+
W.description && /* @__PURE__ */ O("p", {
|
|
137
137
|
className: "text-body-sm text-text-secondary mt-spacing-sm",
|
|
138
|
-
children:
|
|
138
|
+
children: W.description
|
|
139
139
|
})
|
|
140
140
|
]
|
|
141
|
-
}), /* @__PURE__ */
|
|
141
|
+
}), /* @__PURE__ */ k("div", {
|
|
142
142
|
className: "flex items-center gap-spacing-sm flex-wrap",
|
|
143
143
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
onClick:
|
|
146
|
-
disabled:
|
|
144
|
+
/* @__PURE__ */ k(v, {
|
|
145
|
+
onClick: $,
|
|
146
|
+
disabled: z,
|
|
147
147
|
variant: "secondary",
|
|
148
148
|
size: "default",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
149
|
+
children: [/* @__PURE__ */ O(h, { className: "w-4 h-4 mr-2" }), z ? "Running..." : "Execute"]
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
onClick:
|
|
151
|
+
/* @__PURE__ */ k(v, {
|
|
152
|
+
onClick: Oe,
|
|
153
153
|
variant: "secondary",
|
|
154
154
|
size: "default",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
155
|
+
children: [/* @__PURE__ */ O(de, { className: "w-4 h-4 mr-2" }), "Export"]
|
|
156
156
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
onClick:
|
|
157
|
+
/* @__PURE__ */ k(v, {
|
|
158
|
+
onClick: Q,
|
|
159
159
|
variant: "secondary",
|
|
160
160
|
size: "default",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ O(fe, { className: "w-4 h-4 mr-2" }), "Edit"]
|
|
162
162
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
onClick: () =>
|
|
163
|
+
/* @__PURE__ */ k(v, {
|
|
164
|
+
onClick: () => L(!0),
|
|
165
165
|
disabled: F,
|
|
166
166
|
variant: "destructive",
|
|
167
167
|
size: "default",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
168
|
+
children: [/* @__PURE__ */ O(g, { className: "w-4 h-4 mr-2" }), "Delete"]
|
|
169
169
|
})
|
|
170
170
|
]
|
|
171
171
|
})]
|
|
172
172
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ O(E, { children: "A parser turns raw input into structured fields using its expression. Review or copy the expression, run it against a sample to see the output, then edit it or use it inside a pipeline to shape incoming data." }),
|
|
174
|
+
/* @__PURE__ */ O(T, {
|
|
175
|
+
storageKey: "bigconsole-parser-view",
|
|
176
|
+
steps: [
|
|
177
|
+
{
|
|
178
|
+
id: "execute",
|
|
179
|
+
label: "Run a test execution",
|
|
180
|
+
description: "Check the expression produces the fields you expect.",
|
|
181
|
+
onClick: $
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: "edit",
|
|
185
|
+
label: "Edit the expression",
|
|
186
|
+
description: "Refine how this parser maps your input.",
|
|
187
|
+
onClick: Q
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: "pipeline",
|
|
191
|
+
label: "Use it in a pipeline",
|
|
192
|
+
description: "Chain this parser with a data sink to process data end to end.",
|
|
193
|
+
onClick: () => N("/pipelines")
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}),
|
|
197
|
+
/* @__PURE__ */ k("div", {
|
|
174
198
|
className: "grid gap-spacing-lg lg:grid-cols-3",
|
|
175
|
-
children: [/* @__PURE__ */
|
|
199
|
+
children: [/* @__PURE__ */ k("div", {
|
|
176
200
|
className: "lg:col-span-2 space-y-spacing-lg",
|
|
177
|
-
children: [/* @__PURE__ */
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
children: [/* @__PURE__ */ k(C, {
|
|
202
|
+
treatment: "glass",
|
|
203
|
+
glow: !0,
|
|
204
|
+
children: [/* @__PURE__ */ k(x, {
|
|
205
|
+
className: "flex flex-row items-center justify-between space-y-0",
|
|
206
|
+
children: [/* @__PURE__ */ k(S, {
|
|
207
|
+
className: "flex items-center gap-spacing-sm",
|
|
208
|
+
children: [
|
|
209
|
+
/* @__PURE__ */ O(pe, { className: "w-4 h-4 text-text-secondary" }),
|
|
210
|
+
"Expression",
|
|
211
|
+
/* @__PURE__ */ O(_, {
|
|
212
|
+
variant: "secondary",
|
|
213
|
+
className: "text-xs uppercase",
|
|
214
|
+
children: W.type
|
|
215
|
+
})
|
|
216
|
+
]
|
|
217
|
+
}), /* @__PURE__ */ O(v, {
|
|
218
|
+
onClick: Ee,
|
|
219
|
+
variant: "ghost",
|
|
220
|
+
size: "sm",
|
|
221
|
+
children: xe ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(ce, { className: "w-3.5 h-3.5 text-state-success mr-2" }), "Copied!"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(le, { className: "w-3.5 h-3.5 mr-2" }), "Copy"] })
|
|
222
|
+
})]
|
|
223
|
+
}), /* @__PURE__ */ O(b, { children: /* @__PURE__ */ O(ie, {
|
|
224
|
+
value: W.expression,
|
|
225
|
+
type: W.type,
|
|
226
|
+
readOnly: !0,
|
|
227
|
+
height: "300px"
|
|
228
|
+
}) })]
|
|
229
|
+
}), H && /* @__PURE__ */ k(y, { children: [/* @__PURE__ */ k(x, {
|
|
202
230
|
className: "flex flex-row items-center justify-between space-y-0",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
231
|
+
children: [/* @__PURE__ */ k(S, {
|
|
204
232
|
className: "flex items-center gap-spacing-sm",
|
|
205
|
-
children: ["Execution Result", /* @__PURE__ */
|
|
206
|
-
variant:
|
|
207
|
-
children:
|
|
233
|
+
children: ["Execution Result", /* @__PURE__ */ O(_, {
|
|
234
|
+
variant: H.success ? "default" : "destructive",
|
|
235
|
+
children: H.success ? "Success" : "Failed"
|
|
208
236
|
})]
|
|
209
|
-
}), /* @__PURE__ */
|
|
237
|
+
}), /* @__PURE__ */ k(_, {
|
|
210
238
|
variant: "secondary",
|
|
211
239
|
className: "text-xs",
|
|
212
|
-
children: [
|
|
240
|
+
children: [H.executionTimeMs, "ms"]
|
|
213
241
|
})]
|
|
214
|
-
}), /* @__PURE__ */
|
|
242
|
+
}), /* @__PURE__ */ O(b, { children: H.error ? /* @__PURE__ */ O("div", {
|
|
215
243
|
className: "bg-state-error/5 border border-state-error/20 rounded-md p-spacing-md",
|
|
216
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ O("p", {
|
|
217
245
|
className: "text-body-sm text-state-error font-mono",
|
|
218
|
-
children:
|
|
246
|
+
children: H.error
|
|
219
247
|
})
|
|
220
|
-
}) : /* @__PURE__ */
|
|
248
|
+
}) : /* @__PURE__ */ O("pre", {
|
|
221
249
|
className: "text-body-sm text-text-primary font-mono bg-bg-sunken rounded-md p-spacing-md overflow-auto max-h-[300px]",
|
|
222
|
-
children: JSON.stringify(
|
|
250
|
+
children: JSON.stringify(H.output, null, 2)
|
|
223
251
|
}) })] })]
|
|
224
|
-
}), /* @__PURE__ */
|
|
252
|
+
}), /* @__PURE__ */ k("div", {
|
|
225
253
|
className: "space-y-spacing-lg",
|
|
226
254
|
children: [
|
|
227
|
-
/* @__PURE__ */ y
|
|
255
|
+
/* @__PURE__ */ k(y, { children: [/* @__PURE__ */ O(x, { children: /* @__PURE__ */ O(S, { children: "Data Flow" }) }), /* @__PURE__ */ O(b, { children: /* @__PURE__ */ k("div", {
|
|
228
256
|
className: "space-y-3",
|
|
229
257
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
231
259
|
className: "text-xs font-medium text-text-secondary",
|
|
232
260
|
children: "Source DataSink"
|
|
233
|
-
}),
|
|
261
|
+
}), W.inputSinkKey ? /* @__PURE__ */ k("div", {
|
|
234
262
|
className: "mt-1",
|
|
235
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ O("p", {
|
|
236
264
|
className: "text-body-sm text-text-primary font-mono",
|
|
237
|
-
children:
|
|
238
|
-
}),
|
|
239
|
-
onClick:
|
|
265
|
+
children: W.inputSinkKey
|
|
266
|
+
}), X && /* @__PURE__ */ k(v, {
|
|
267
|
+
onClick: De,
|
|
240
268
|
variant: "link",
|
|
241
269
|
size: "sm",
|
|
242
270
|
className: "mt-1 p-0 h-auto",
|
|
243
271
|
children: [
|
|
244
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ O(ue, { className: "w-3 h-3 mr-1" }),
|
|
245
273
|
"View ",
|
|
246
|
-
|
|
274
|
+
X.name || "DataSink"
|
|
247
275
|
]
|
|
248
276
|
})]
|
|
249
|
-
}) : /* @__PURE__ */
|
|
277
|
+
}) : /* @__PURE__ */ O("p", {
|
|
250
278
|
className: "text-body-sm text-text-tertiary mt-1",
|
|
251
279
|
children: "None configured"
|
|
252
280
|
})] }),
|
|
253
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ O("div", {
|
|
254
282
|
className: "flex items-center justify-center py-1",
|
|
255
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ O(se, { className: "w-4 h-4 text-text-tertiary" })
|
|
256
284
|
}),
|
|
257
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
258
286
|
className: "text-xs font-medium text-text-secondary",
|
|
259
287
|
children: "Output Key"
|
|
260
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ O("p", {
|
|
261
289
|
className: "text-body-sm text-text-primary font-mono mt-1",
|
|
262
|
-
children:
|
|
290
|
+
children: W.outputKey || "Not configured"
|
|
263
291
|
})] })
|
|
264
292
|
]
|
|
265
293
|
}) })] }),
|
|
266
|
-
/* @__PURE__ */ y
|
|
294
|
+
/* @__PURE__ */ k(y, { children: [/* @__PURE__ */ O(x, { children: /* @__PURE__ */ O(S, { children: "Configuration" }) }), /* @__PURE__ */ O(b, { children: /* @__PURE__ */ k("dl", {
|
|
267
295
|
className: "space-y-spacing-md text-body-sm",
|
|
268
296
|
children: [
|
|
269
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ k("div", {
|
|
270
298
|
className: "flex justify-between items-center",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ O("dt", {
|
|
272
300
|
className: "text-text-secondary",
|
|
273
301
|
children: "Status"
|
|
274
|
-
}), /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ O("dd", { children: /* @__PURE__ */ O(r, { status: W.status }) })]
|
|
275
303
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ k("div", {
|
|
277
305
|
className: "flex justify-between items-center",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ O("dt", {
|
|
279
307
|
className: "text-text-secondary",
|
|
280
308
|
children: "Type"
|
|
281
|
-
}), /* @__PURE__ */
|
|
309
|
+
}), /* @__PURE__ */ O("dd", { children: /* @__PURE__ */ O(n, { type: W.type }) })]
|
|
282
310
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ k("div", {
|
|
284
312
|
className: "flex justify-between items-center",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ O("dt", {
|
|
286
314
|
className: "text-text-secondary",
|
|
287
315
|
children: "Cache TTL"
|
|
288
|
-
}), /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ O("dd", {
|
|
289
317
|
className: "text-text-primary font-medium",
|
|
290
|
-
children:
|
|
318
|
+
children: W.ttl ? `${W.ttl}s` : "No caching"
|
|
291
319
|
})]
|
|
292
320
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ k("div", {
|
|
294
322
|
className: "flex justify-between items-center",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ O("dt", {
|
|
296
324
|
className: "text-text-secondary",
|
|
297
325
|
children: "Version"
|
|
298
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ O("dd", {
|
|
299
327
|
className: "text-text-primary font-medium",
|
|
300
|
-
children:
|
|
328
|
+
children: W.version || 1
|
|
301
329
|
})]
|
|
302
330
|
})
|
|
303
331
|
]
|
|
304
332
|
}) })] }),
|
|
305
|
-
/* @__PURE__ */ y
|
|
333
|
+
/* @__PURE__ */ k(y, { children: [/* @__PURE__ */ O(x, { children: /* @__PURE__ */ O(S, { children: "Timestamps" }) }), /* @__PURE__ */ O(b, { children: /* @__PURE__ */ k("dl", {
|
|
306
334
|
className: "space-y-spacing-md text-body-sm",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ k("div", {
|
|
308
336
|
className: "flex justify-between items-center",
|
|
309
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ O("dt", {
|
|
310
338
|
className: "text-text-secondary",
|
|
311
339
|
children: "Created"
|
|
312
|
-
}), /* @__PURE__ */
|
|
340
|
+
}), /* @__PURE__ */ O("dd", {
|
|
313
341
|
className: "text-text-primary font-medium",
|
|
314
|
-
children:
|
|
342
|
+
children: W.createdAt ? A(new Date(W.createdAt), { addSuffix: !0 }) : "Unknown"
|
|
315
343
|
})]
|
|
316
|
-
}), /* @__PURE__ */
|
|
344
|
+
}), /* @__PURE__ */ k("div", {
|
|
317
345
|
className: "flex justify-between items-center",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
346
|
+
children: [/* @__PURE__ */ O("dt", {
|
|
319
347
|
className: "text-text-secondary",
|
|
320
348
|
children: "Updated"
|
|
321
|
-
}), /* @__PURE__ */
|
|
349
|
+
}), /* @__PURE__ */ O("dd", {
|
|
322
350
|
className: "text-text-primary font-medium",
|
|
323
|
-
children:
|
|
351
|
+
children: W.updatedAt ? A(new Date(W.updatedAt), { addSuffix: !0 }) : "Unknown"
|
|
324
352
|
})]
|
|
325
353
|
})]
|
|
326
354
|
}) })] })
|
|
327
355
|
]
|
|
328
356
|
})]
|
|
329
357
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
open:
|
|
332
|
-
onOpenChange:
|
|
333
|
-
children: /* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ O(me, {
|
|
359
|
+
open: be,
|
|
360
|
+
onOpenChange: L,
|
|
361
|
+
children: /* @__PURE__ */ k(he, { children: [
|
|
362
|
+
/* @__PURE__ */ k(ve, { children: [/* @__PURE__ */ O(ye, { children: "Delete Parser" }), /* @__PURE__ */ k(ge, { children: [
|
|
335
363
|
"Are you sure you want to delete ",
|
|
336
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ O("strong", { children: W.name }),
|
|
337
365
|
"? This action cannot be undone."
|
|
338
366
|
] })] }),
|
|
339
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ k("div", {
|
|
340
368
|
className: "bg-state-warning/10 border border-state-warning/20 rounded-md p-spacing-md flex items-start gap-spacing-sm",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
369
|
+
children: [/* @__PURE__ */ O(oe, { className: "w-4 h-4 text-state-warning flex-shrink-0 mt-0.5" }), /* @__PURE__ */ O("p", {
|
|
342
370
|
className: "text-body-xs text-state-warning",
|
|
343
371
|
children: "Widgets and pipelines using this parser may stop working correctly after deletion."
|
|
344
372
|
})]
|
|
345
373
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
onClick: () =>
|
|
374
|
+
/* @__PURE__ */ k(_e, { children: [/* @__PURE__ */ O(v, {
|
|
375
|
+
onClick: () => L(!1),
|
|
348
376
|
variant: "secondary",
|
|
349
377
|
children: "Cancel"
|
|
350
|
-
}), /* @__PURE__ */ v
|
|
378
|
+
}), /* @__PURE__ */ O(v, {
|
|
351
379
|
onClick: () => {
|
|
352
|
-
|
|
380
|
+
ne("medium"), Te();
|
|
353
381
|
},
|
|
354
382
|
disabled: F,
|
|
355
383
|
variant: "destructive",
|
|
@@ -357,34 +385,25 @@ var j = "default", M = o(function() {
|
|
|
357
385
|
})] })
|
|
358
386
|
] })
|
|
359
387
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
isOpen:
|
|
362
|
-
parserId:
|
|
363
|
-
parserName:
|
|
364
|
-
onClose:
|
|
388
|
+
/* @__PURE__ */ O(ae, {
|
|
389
|
+
isOpen: Se,
|
|
390
|
+
parserId: s || null,
|
|
391
|
+
parserName: W.name,
|
|
392
|
+
onClose: ke
|
|
365
393
|
})
|
|
366
394
|
]
|
|
367
|
-
}) : /* @__PURE__ */
|
|
395
|
+
}) : /* @__PURE__ */ O("div", {
|
|
368
396
|
className: "flex items-center justify-center min-h-[400px] p-card-padding",
|
|
369
|
-
children: /* @__PURE__ */
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
|
|
379
|
-
children: "The Parser you're looking for doesn't exist or has been deleted."
|
|
380
|
-
}),
|
|
381
|
-
/* @__PURE__ */ y(x, {
|
|
382
|
-
onClick: Q,
|
|
383
|
-
variant: "default",
|
|
384
|
-
size: "default",
|
|
385
|
-
children: [/* @__PURE__ */ v(u, { className: "w-4 h-4 mr-2" }), "Go back to Parsers"]
|
|
386
|
-
})
|
|
387
|
-
]
|
|
397
|
+
children: /* @__PURE__ */ O(w, {
|
|
398
|
+
illustration: "empty-data",
|
|
399
|
+
title: "Parser not found",
|
|
400
|
+
description: "The Parser you're looking for doesn't exist or has been deleted.",
|
|
401
|
+
action: /* @__PURE__ */ k(v, {
|
|
402
|
+
onClick: Z,
|
|
403
|
+
variant: "default",
|
|
404
|
+
size: "default",
|
|
405
|
+
children: [/* @__PURE__ */ O(p, { className: "w-4 h-4 mr-2" }), "Go back to Parsers"]
|
|
406
|
+
})
|
|
388
407
|
})
|
|
389
408
|
});
|
|
390
409
|
});
|