@burdenoff/microfe-bigconsole 2026.1115.2 → 2026.1115.4
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/AppearanceSection.js +11 -5
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +5 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +110 -104
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +137 -130
- package/dist/bigconsole/components/widgets/chart/charts/funnelData.d.ts +16 -0
- package/dist/bigconsole/components/widgets/chart/charts/funnelData.js +12 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +55 -54
- package/dist/bigconsole/components/widgets/heatmap/heatmapData.d.ts +10 -0
- package/dist/bigconsole/components/widgets/heatmap/heatmapData.js +95 -0
- package/dist/bigconsole/pages/DataSinkViewPage.js +234 -238
- package/dist/bigconsole/types/index.d.ts +0 -14
- package/dist/generated/wspace-operations.d.ts +0 -124
- package/dist/generated/wspace-operations.js +69 -1186
- package/package.json +1 -1
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts +0 -29
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -110
|
@@ -2,16 +2,15 @@ import "../contexts/index.js";
|
|
|
2
2
|
import { useAppNavigate as e } from "../contexts/NavigationContext.js";
|
|
3
3
|
import { newWorkflowPath as t } from "../BigConsoleRoutes.js";
|
|
4
4
|
import { NEW_WORKFLOW_NAV as n } from "../workflowOpen.js";
|
|
5
|
-
import { isNative as
|
|
5
|
+
import { isNative as ee, nativeConfirm as te, nativeImpact as ne, nativeNotify as r } from "../../utils/nativeBridge.js";
|
|
6
6
|
import "../components/common/sectionStyles.js";
|
|
7
|
-
import { Section as
|
|
8
|
-
import
|
|
9
|
-
import ie from "../hooks/useDataSinkSubscription.js";
|
|
7
|
+
import { Section as i, SectionStack as re } from "../components/common/Section.js";
|
|
8
|
+
import ie from "../hooks/useDataSinkOperations.js";
|
|
10
9
|
import { useDataSinkStore as ae } from "../store/dataSinkStore.js";
|
|
11
10
|
import { formatByteSize as oe } from "../utils/format.js";
|
|
12
|
-
import { hasDataSinkPayload as
|
|
11
|
+
import { hasDataSinkPayload as a } from "../utils/dataSinkPayload.js";
|
|
13
12
|
import { describeSetupGaps as se, getSetupGaps as ce } from "../utils/dataSinkSetup.js";
|
|
14
|
-
import { DataSinkStatusBadge as
|
|
13
|
+
import { DataSinkStatusBadge as o } from "../components/datasink/DataSinkStatusBadge.js";
|
|
15
14
|
import { DataSinkDataViewer as le } from "../components/datasink/DataSinkDataViewer.js";
|
|
16
15
|
import { DataSinkTableViewer as ue } from "../components/datasink/DataSinkTableViewer.js";
|
|
17
16
|
import { LinkedWorkflowsPanel as de } from "../components/datasink/LinkedWorkflowsPanel.js";
|
|
@@ -23,104 +22,101 @@ import { AnomalyDetectorPanel as ge } from "../components/datasink/AnomalyDetect
|
|
|
23
22
|
import { numericColumnSuggestions as _e } from "../utils/anomalyColumns.js";
|
|
24
23
|
import { ImportDataGuideDialog as ve } from "../components/datasink/ImportDataGuideDialog.js";
|
|
25
24
|
import "../components/common/index.js";
|
|
26
|
-
import { BIGCONSOLE_PERMISSIONS as
|
|
25
|
+
import { BIGCONSOLE_PERMISSIONS as s } from "../../constants/permissions.js";
|
|
27
26
|
import { dataSinkSuggestAnchorProps as ye } from "../proactive/entities.js";
|
|
28
|
-
import { memo as
|
|
27
|
+
import { memo as c, useCallback as l, useEffect as be, useMemo as xe, useState as u } from "react";
|
|
29
28
|
import { useParams as Se } from "react-router";
|
|
30
|
-
import { AccessDenied as Ce, PermissionButton as
|
|
29
|
+
import { AccessDenied as Ce, PermissionButton as d } from "@burdenoff/fe-libs/shared/components";
|
|
31
30
|
import { usePermissions as we } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
32
|
-
import { Activity as Te, AlertCircle as Ee, ArrowLeft as
|
|
33
|
-
import { Button as
|
|
31
|
+
import { Activity as Te, AlertCircle as Ee, ArrowLeft as f, Bell as De, Code as Oe, Database as p, Download as ke, Edit as Ae, Eye as je, EyeOff as Me, Grid3X3 as Ne, Loader2 as m, RefreshCw as Pe, Trash2 as Fe, Upload as h } from "lucide-react";
|
|
32
|
+
import { Button as g, IllustratedEmptyState as Ie, NextSteps as Le, PagePurpose as Re } from "@burdenoff/fe-libs/ui";
|
|
34
33
|
import { useI18n as ze } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
35
|
-
import { Fragment as
|
|
36
|
-
import { formatDistanceToNow as
|
|
34
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
35
|
+
import { formatDistanceToNow as b } from "date-fns";
|
|
37
36
|
// src/bigconsole/pages/DataSinkViewPage.tsx
|
|
38
|
-
var
|
|
39
|
-
let { dataSinkId:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, [C, l]), Z = u(async () => {
|
|
53
|
-
if (l) {
|
|
54
|
-
O(!0);
|
|
37
|
+
var x = "focus-visible:ring-inset focus-visible:ring-offset-0", S = c(function() {
|
|
38
|
+
let { dataSinkId: c } = Se(), S = e(), { t: C } = ze(), { hasPermission: Be, isLoading: Ve } = we(), He = Be(s.DATASINK_READ), [w, T] = u(!1), [E, D] = u(!1), [O, k] = u(!1), [Ue, A] = u(!1), [We, j] = u(!1), [Ge, M] = u(!1), [N, Ke] = u(null), [P, F] = u(!1), [I, L] = u("table"), [R, qe] = u(100), [z, Je] = u(0), [B, Ye] = u(null), [Xe, Ze] = u(!1), V = ae((e) => c ? e.dataSinks.get(c) : void 0), H = fe(V?.metadata), Qe = xe(() => _e(N), [N]), { loading: $e, error: U, fetchDataSink: W, getDataSinkData: G, refreshDataSink: K, updateDataSink: q, deleteDataSink: J } = ie({ skipFetch: !0 });
|
|
39
|
+
be(() => {
|
|
40
|
+
c && W(c);
|
|
41
|
+
}, [c, W]);
|
|
42
|
+
let et = l(async () => {
|
|
43
|
+
c && await W(c);
|
|
44
|
+
}, [c, W]), Y = l(() => {
|
|
45
|
+
S("/datasinks");
|
|
46
|
+
}, [S]), X = l(() => {
|
|
47
|
+
S(`/datasinks/${c}/edit`);
|
|
48
|
+
}, [S, c]), Z = l(async () => {
|
|
49
|
+
if (c) {
|
|
50
|
+
D(!0);
|
|
55
51
|
try {
|
|
56
|
-
await K({ id:
|
|
52
|
+
await K({ id: c });
|
|
57
53
|
} catch {} finally {
|
|
58
|
-
|
|
54
|
+
D(!1);
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
|
-
}, [
|
|
62
|
-
if (!
|
|
63
|
-
let e = await
|
|
64
|
-
title:
|
|
65
|
-
message:
|
|
66
|
-
okButtonTitle:
|
|
67
|
-
cancelButtonTitle:
|
|
57
|
+
}, [c, K]), tt = l(async () => {
|
|
58
|
+
if (!c) return;
|
|
59
|
+
let e = await te({
|
|
60
|
+
title: C("bigconsole.dataSinks.view.deleteConfirmTitle", "Delete DataSink?"),
|
|
61
|
+
message: C("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?"),
|
|
62
|
+
okButtonTitle: C("bigconsole.dataSinks.view.delete", "Delete"),
|
|
63
|
+
cancelButtonTitle: C("bigconsole.dataSinks.view.cancel", "Cancel")
|
|
68
64
|
});
|
|
69
|
-
if (e === null ? window.confirm(
|
|
70
|
-
|
|
65
|
+
if (e === null ? window.confirm(C("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?")) : e) {
|
|
66
|
+
ne("medium"), k(!0);
|
|
71
67
|
try {
|
|
72
|
-
await J(
|
|
68
|
+
await J(c), ee() && r("success"), S("/datasinks");
|
|
73
69
|
} catch {
|
|
74
|
-
|
|
70
|
+
ee() && r("error");
|
|
75
71
|
} finally {
|
|
76
72
|
k(!1);
|
|
77
73
|
}
|
|
78
74
|
}
|
|
79
75
|
}, [
|
|
80
|
-
|
|
76
|
+
c,
|
|
81
77
|
J,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
]), Q =
|
|
85
|
-
if (
|
|
78
|
+
S,
|
|
79
|
+
C
|
|
80
|
+
]), Q = l(async (e, t) => {
|
|
81
|
+
if (c) {
|
|
86
82
|
F(!0);
|
|
87
83
|
try {
|
|
88
|
-
let n = await G({ id:
|
|
84
|
+
let n = await G({ id: c }, {
|
|
89
85
|
limit: t,
|
|
90
86
|
offset: e
|
|
91
87
|
});
|
|
92
|
-
n && (
|
|
88
|
+
n && (Ke(n.raw || {}), Ye(typeof n.totalCount == "number" ? n.totalCount : null), Ze(!!n.hasMore), Je(e));
|
|
93
89
|
} catch {} finally {
|
|
94
90
|
F(!1);
|
|
95
91
|
}
|
|
96
92
|
}
|
|
97
|
-
}, [
|
|
98
|
-
|
|
93
|
+
}, [c, G]), nt = l(async () => {
|
|
94
|
+
c && (w ? T(!1) : (await Q(0, R), T(!0)));
|
|
99
95
|
}, [
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
c,
|
|
97
|
+
w,
|
|
102
98
|
Q,
|
|
103
99
|
R
|
|
104
|
-
]), rt =
|
|
105
|
-
|
|
106
|
-
}, [Q]), it =
|
|
100
|
+
]), rt = l((e) => {
|
|
101
|
+
qe(e), Q(0, e);
|
|
102
|
+
}, [Q]), it = l(() => {
|
|
107
103
|
A(!0);
|
|
108
|
-
}, []), at =
|
|
104
|
+
}, []), at = l(() => {
|
|
109
105
|
A(!1);
|
|
110
|
-
}, []), ot =
|
|
106
|
+
}, []), ot = l(() => {
|
|
111
107
|
j(!0);
|
|
112
|
-
}, []), st =
|
|
108
|
+
}, []), st = l(() => {
|
|
113
109
|
j(!1);
|
|
114
|
-
}, []), ct =
|
|
115
|
-
j(!1),
|
|
116
|
-
}, [
|
|
110
|
+
}, []), ct = l(() => {
|
|
111
|
+
j(!1), S(t(), n);
|
|
112
|
+
}, [S]), lt = l(async (e) => {
|
|
117
113
|
if (!V || !await q({
|
|
118
114
|
id: V.id,
|
|
119
115
|
version: V.version,
|
|
120
116
|
data: e
|
|
121
117
|
})) return !1;
|
|
122
118
|
try {
|
|
123
|
-
await Q(0, R),
|
|
119
|
+
await Q(0, R), T(!0);
|
|
124
120
|
} catch {}
|
|
125
121
|
return !0;
|
|
126
122
|
}, [
|
|
@@ -129,302 +125,302 @@ var S = "focus-visible:ring-inset focus-visible:ring-offset-0", C = l(function()
|
|
|
129
125
|
Q,
|
|
130
126
|
R
|
|
131
127
|
]);
|
|
132
|
-
if (
|
|
128
|
+
if ($e && !V) return /* @__PURE__ */ v("div", {
|
|
133
129
|
className: "flex min-h-[240px] items-center justify-center p-card-padding",
|
|
134
|
-
children: /* @__PURE__ */
|
|
130
|
+
children: /* @__PURE__ */ v(m, { className: "h-icon-lg w-icon-lg animate-spin text-text-secondary" })
|
|
135
131
|
});
|
|
136
|
-
if (U && !V) return /* @__PURE__ */
|
|
132
|
+
if (U && !V) return /* @__PURE__ */ v("div", {
|
|
137
133
|
className: "p-card-padding",
|
|
138
|
-
children: /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ v(i, {
|
|
139
135
|
tone: "danger",
|
|
140
136
|
headingLevel: 2,
|
|
141
|
-
title:
|
|
137
|
+
title: C("bigconsole.dataSinks.view.loadError", "Failed to load DataSink"),
|
|
142
138
|
description: U.message,
|
|
143
|
-
icon: /* @__PURE__ */
|
|
144
|
-
actions: /* @__PURE__ */
|
|
139
|
+
icon: /* @__PURE__ */ v(Ee, { className: "h-icon-sm w-icon-sm" }),
|
|
140
|
+
actions: /* @__PURE__ */ y(g, {
|
|
145
141
|
onClick: Y,
|
|
146
142
|
variant: "secondary",
|
|
147
143
|
size: "sm",
|
|
148
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ v(f, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.goBack", "Go back")]
|
|
149
145
|
})
|
|
150
146
|
})
|
|
151
147
|
});
|
|
152
|
-
if (!Ve && !He) return /* @__PURE__ */
|
|
153
|
-
title:
|
|
154
|
-
description:
|
|
148
|
+
if (!Ve && !He) return /* @__PURE__ */ v(Ce, {
|
|
149
|
+
title: C("bigconsole.dataSinks.view.accessDeniedTitle", "Access Denied"),
|
|
150
|
+
description: C("bigconsole.dataSinks.view.accessDeniedDescription", "You don't have permission to view this data sink.")
|
|
155
151
|
});
|
|
156
|
-
if (!V) return /* @__PURE__ */
|
|
152
|
+
if (!V) return /* @__PURE__ */ v("div", {
|
|
157
153
|
className: "flex min-h-[240px] items-center justify-center p-card-padding",
|
|
158
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ v(Ie, {
|
|
159
155
|
illustration: "empty-data",
|
|
160
|
-
title:
|
|
161
|
-
description:
|
|
162
|
-
action: /* @__PURE__ */
|
|
156
|
+
title: C("bigconsole.dataSinks.view.notFoundTitle", "DataSink not found"),
|
|
157
|
+
description: C("bigconsole.dataSinks.view.notFoundDescription", "The DataSink you're looking for doesn't exist or has been deleted."),
|
|
158
|
+
action: /* @__PURE__ */ y(g, {
|
|
163
159
|
onClick: Y,
|
|
164
160
|
variant: "default",
|
|
165
161
|
size: "default",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
162
|
+
children: [/* @__PURE__ */ v(f, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.goBackToDataSinks", "Go back to DataSinks")]
|
|
167
163
|
})
|
|
168
164
|
})
|
|
169
165
|
});
|
|
170
|
-
let
|
|
171
|
-
return /* @__PURE__ */
|
|
166
|
+
let $ = ce(V);
|
|
167
|
+
return /* @__PURE__ */ y("div", {
|
|
172
168
|
className: "min-w-0 p-card-padding",
|
|
173
169
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ y("header", {
|
|
175
171
|
className: "mb-section-gap flex flex-wrap items-start justify-between gap-form-gap",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ y("div", {
|
|
177
173
|
className: "min-w-[min(100%,16rem)] flex-1",
|
|
178
174
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ y(g, {
|
|
180
176
|
onClick: Y,
|
|
181
177
|
variant: "ghost",
|
|
182
178
|
size: "sm",
|
|
183
179
|
className: "mb-4",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ v(f, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.backToDataSinks", "Back to DataSinks")]
|
|
185
181
|
}),
|
|
186
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ y("div", {
|
|
187
183
|
className: "flex flex-wrap items-center gap-2",
|
|
188
184
|
...ye(V.id),
|
|
189
185
|
children: [
|
|
190
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ v("h1", {
|
|
191
187
|
className: "break-words text-2xl font-bold text-text-primary",
|
|
192
|
-
children: V.name ||
|
|
188
|
+
children: V.name || C("bigconsole.dataSinks.view.untitled", "Untitled")
|
|
193
189
|
}),
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ v(o, { status: V.status }),
|
|
191
|
+
/* @__PURE__ */ y("span", {
|
|
196
192
|
className: "rounded-pill border border-border-subtle px-2 py-1 text-xs text-text-secondary",
|
|
197
193
|
children: ["v", V.version]
|
|
198
194
|
})
|
|
199
195
|
]
|
|
200
196
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ v("p", {
|
|
202
198
|
className: "mt-1 break-all font-mono text-sm text-text-muted",
|
|
203
199
|
children: V.key
|
|
204
200
|
}),
|
|
205
|
-
V.description && /* @__PURE__ */
|
|
201
|
+
V.description && /* @__PURE__ */ v("p", {
|
|
206
202
|
className: "mt-2 break-words text-sm text-text-secondary",
|
|
207
203
|
children: V.description
|
|
208
204
|
})
|
|
209
205
|
]
|
|
210
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ y("div", {
|
|
211
207
|
className: "flex max-w-full flex-wrap items-center gap-2",
|
|
212
208
|
children: [
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
permission:
|
|
209
|
+
/* @__PURE__ */ v(d, {
|
|
210
|
+
permission: s.DATASINK_EXECUTE,
|
|
215
211
|
deniedBehavior: "disable",
|
|
216
|
-
children: /* @__PURE__ */
|
|
212
|
+
children: /* @__PURE__ */ y(g, {
|
|
217
213
|
onClick: Z,
|
|
218
|
-
disabled:
|
|
214
|
+
disabled: E,
|
|
219
215
|
variant: "default",
|
|
220
216
|
size: "default",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
217
|
+
children: [/* @__PURE__ */ v(Pe, { className: `w-4 h-4 mr-2 ${E ? "animate-spin" : ""}` }), E ? C("bigconsole.dataSinks.view.refreshing", "Refreshing...") : C("bigconsole.dataSinks.view.refresh", "Refresh")]
|
|
222
218
|
})
|
|
223
219
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ y(g, {
|
|
225
221
|
onClick: ot,
|
|
226
222
|
variant: "secondary",
|
|
227
223
|
size: "default",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ v(h, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.importData", "Import Data")]
|
|
229
225
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ y(g, {
|
|
231
227
|
onClick: it,
|
|
232
228
|
variant: "secondary",
|
|
233
229
|
size: "default",
|
|
234
|
-
children: [/* @__PURE__ */
|
|
230
|
+
children: [/* @__PURE__ */ v(ke, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.export", "Export")]
|
|
235
231
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
onClick: () =>
|
|
232
|
+
/* @__PURE__ */ y(g, {
|
|
233
|
+
onClick: () => S(`/datasinks/${c}/alerts`),
|
|
238
234
|
variant: "secondary",
|
|
239
235
|
size: "default",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ v(De, { className: "w-4 h-4 mr-2" }), C("bigconsole.alerts.title", "Alerts")]
|
|
241
237
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ y(g, {
|
|
243
239
|
onClick: () => M(!0),
|
|
244
240
|
variant: "secondary",
|
|
245
241
|
size: "default",
|
|
246
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ v(Te, { className: "w-4 h-4 mr-2" }), C("bigconsole.anomalies.open", "Anomalies")]
|
|
247
243
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
permission:
|
|
244
|
+
/* @__PURE__ */ v(d, {
|
|
245
|
+
permission: s.DATASINK_UPDATE,
|
|
250
246
|
deniedBehavior: "disable",
|
|
251
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ y(g, {
|
|
252
248
|
onClick: X,
|
|
253
249
|
variant: "secondary",
|
|
254
250
|
size: "default",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ v(Ae, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.edit", "Edit")]
|
|
256
252
|
})
|
|
257
253
|
}),
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
permission:
|
|
254
|
+
/* @__PURE__ */ v(d, {
|
|
255
|
+
permission: s.DATASINK_DELETE,
|
|
260
256
|
deniedBehavior: "hide",
|
|
261
|
-
children: /* @__PURE__ */
|
|
262
|
-
onClick:
|
|
263
|
-
disabled:
|
|
257
|
+
children: /* @__PURE__ */ y(g, {
|
|
258
|
+
onClick: tt,
|
|
259
|
+
disabled: O,
|
|
264
260
|
variant: "destructive",
|
|
265
261
|
size: "default",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ v(Fe, { className: "w-4 h-4 mr-2" }), O ? C("bigconsole.dataSinks.view.deleting", "Deleting...") : C("bigconsole.dataSinks.view.delete", "Delete")]
|
|
267
263
|
})
|
|
268
264
|
})
|
|
269
265
|
]
|
|
270
266
|
})]
|
|
271
267
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ v(Re, {
|
|
273
269
|
className: "mb-section-gap",
|
|
274
|
-
children:
|
|
270
|
+
children: C("bigconsole.dataSinks.view.pagePurpose", "A data sink is a structured store that holds your processed data and serves it to dashboards. From here you can inspect its schema and stats, preview the cached rows, refresh it from its linked workflow, or export it.")
|
|
275
271
|
}),
|
|
276
|
-
|
|
272
|
+
$.length > 0 && /* @__PURE__ */ y("div", {
|
|
277
273
|
role: "status",
|
|
278
274
|
className: "mb-section-gap flex flex-wrap items-center justify-between gap-form-gap rounded-input border border-[var(--color-status-warning-border)] bg-[var(--color-status-warning-bgSubtle)] p-3",
|
|
279
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ v("p", {
|
|
280
276
|
className: "min-w-0 text-sm text-[var(--color-status-warning-text)]",
|
|
281
|
-
children: se(
|
|
282
|
-
}), /* @__PURE__ */
|
|
283
|
-
permission:
|
|
277
|
+
children: se($, C)
|
|
278
|
+
}), /* @__PURE__ */ v(d, {
|
|
279
|
+
permission: s.DATASINK_UPDATE,
|
|
284
280
|
deniedBehavior: "disable",
|
|
285
|
-
children: /* @__PURE__ */
|
|
281
|
+
children: /* @__PURE__ */ v(g, {
|
|
286
282
|
onClick: X,
|
|
287
283
|
variant: "secondary",
|
|
288
284
|
size: "sm",
|
|
289
|
-
children:
|
|
285
|
+
children: C("bigconsole.dataSinks.setup.continueSetup", "Continue setup")
|
|
290
286
|
})
|
|
291
287
|
})]
|
|
292
288
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ y(re, {
|
|
294
290
|
className: "mt-section-gap",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
291
|
+
children: [/* @__PURE__ */ y("div", {
|
|
296
292
|
className: "grid min-w-0 gap-section-gap lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ v(i, {
|
|
298
294
|
headingLevel: 2,
|
|
299
|
-
title:
|
|
295
|
+
title: C("bigconsole.dataSinks.view.details", "Details"),
|
|
300
296
|
description: "Cache, refresh and storage settings for this sink.",
|
|
301
|
-
children: /* @__PURE__ */
|
|
297
|
+
children: /* @__PURE__ */ y("dl", {
|
|
302
298
|
className: "divide-y divide-[var(--color-border-subtle)] text-sm",
|
|
303
299
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ y("div", {
|
|
305
301
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2 first:pt-0",
|
|
306
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
307
303
|
className: "min-w-0 text-text-secondary",
|
|
308
|
-
children:
|
|
309
|
-
}), /* @__PURE__ */
|
|
304
|
+
children: C("bigconsole.dataSinks.view.status", "Status")
|
|
305
|
+
}), /* @__PURE__ */ v("dd", { children: /* @__PURE__ */ v(o, {
|
|
310
306
|
status: V.status,
|
|
311
307
|
size: "sm"
|
|
312
308
|
}) })]
|
|
313
309
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ y("div", {
|
|
315
311
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
317
313
|
className: "min-w-0 text-text-secondary",
|
|
318
|
-
children:
|
|
319
|
-
}), /* @__PURE__ */
|
|
314
|
+
children: C("bigconsole.dataSinks.view.owner", "Owner")
|
|
315
|
+
}), /* @__PURE__ */ v("dd", {
|
|
320
316
|
className: `min-w-0 break-words text-right ${H ? "font-medium text-text-primary" : "text-text-muted"}`,
|
|
321
317
|
"data-testid": "datasink-owner",
|
|
322
|
-
children: H ||
|
|
318
|
+
children: H || C("bigconsole.dataSinks.view.ownerNotSet", "Not set")
|
|
323
319
|
})]
|
|
324
320
|
}),
|
|
325
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ y("div", {
|
|
326
322
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
|
|
327
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
328
324
|
className: "min-w-0 text-text-secondary",
|
|
329
|
-
children:
|
|
330
|
-
}), /* @__PURE__ */
|
|
325
|
+
children: C("bigconsole.dataSinks.view.cacheTtl", "Cache TTL")
|
|
326
|
+
}), /* @__PURE__ */ v("dd", {
|
|
331
327
|
className: "font-medium text-text-primary",
|
|
332
|
-
children: V.ttl ? `${V.ttl}s` :
|
|
328
|
+
children: V.ttl ? `${V.ttl}s` : C("bigconsole.dataSinks.view.none", "None")
|
|
333
329
|
})]
|
|
334
330
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ y("div", {
|
|
336
332
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
333
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
338
334
|
className: "min-w-0 text-text-secondary",
|
|
339
|
-
children:
|
|
340
|
-
}), /* @__PURE__ */
|
|
335
|
+
children: C("bigconsole.dataSinks.view.refreshType", "Refresh Type")
|
|
336
|
+
}), /* @__PURE__ */ v("dd", {
|
|
341
337
|
className: "font-medium capitalize text-text-primary",
|
|
342
|
-
children: V.refresh?.type ||
|
|
338
|
+
children: V.refresh?.type || C("bigconsole.dataSinks.view.manual", "Manual")
|
|
343
339
|
})]
|
|
344
340
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ y("div", {
|
|
346
342
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
|
|
347
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
348
344
|
className: "min-w-0 text-text-secondary",
|
|
349
|
-
children:
|
|
350
|
-
}), /* @__PURE__ */
|
|
345
|
+
children: C("bigconsole.dataSinks.view.size", "Size")
|
|
346
|
+
}), /* @__PURE__ */ v("dd", {
|
|
351
347
|
className: "font-medium text-text-primary",
|
|
352
348
|
children: oe(V.sizeBytes || 0)
|
|
353
349
|
})]
|
|
354
350
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ y("div", {
|
|
356
352
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
353
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
358
354
|
className: "min-w-0 text-text-secondary",
|
|
359
|
-
children:
|
|
360
|
-
}), /* @__PURE__ */
|
|
355
|
+
children: C("bigconsole.dataSinks.view.version", "Version")
|
|
356
|
+
}), /* @__PURE__ */ v("dd", {
|
|
361
357
|
className: "font-medium text-text-primary",
|
|
362
358
|
children: V.version || 1
|
|
363
359
|
})]
|
|
364
360
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ y("div", {
|
|
366
362
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
368
364
|
className: "min-w-0 text-text-secondary",
|
|
369
|
-
children:
|
|
370
|
-
}), /* @__PURE__ */
|
|
365
|
+
children: C("bigconsole.dataSinks.view.lastRefreshed", "Last Refreshed")
|
|
366
|
+
}), /* @__PURE__ */ v("dd", {
|
|
371
367
|
className: "font-medium text-text-primary",
|
|
372
|
-
children: V.lastRefreshedAt ?
|
|
368
|
+
children: V.lastRefreshedAt ? b(new Date(V.lastRefreshedAt), { addSuffix: !0 }) : C("bigconsole.dataSinks.view.never", "Never")
|
|
373
369
|
})]
|
|
374
370
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ y("div", {
|
|
376
372
|
className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2 last:pb-0",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
378
374
|
className: "min-w-0 text-text-secondary",
|
|
379
|
-
children:
|
|
380
|
-
}), /* @__PURE__ */
|
|
375
|
+
children: C("bigconsole.dataSinks.view.created", "Created")
|
|
376
|
+
}), /* @__PURE__ */ v("dd", {
|
|
381
377
|
className: "font-medium text-text-primary",
|
|
382
|
-
children:
|
|
378
|
+
children: b(new Date(V.createdAt), { addSuffix: !0 })
|
|
383
379
|
})]
|
|
384
380
|
})
|
|
385
381
|
]
|
|
386
382
|
})
|
|
387
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ y(i, {
|
|
388
384
|
emphasis: "primary",
|
|
389
385
|
headingLevel: 2,
|
|
390
|
-
title:
|
|
386
|
+
title: C("bigconsole.dataSinks.view.dataPreview", "Data Preview"),
|
|
391
387
|
description: "The rows this sink is currently serving to dashboards.",
|
|
392
|
-
icon: /* @__PURE__ */
|
|
393
|
-
actions: /* @__PURE__ */
|
|
388
|
+
icon: /* @__PURE__ */ v(p, { className: "h-icon-sm w-icon-sm" }),
|
|
389
|
+
actions: /* @__PURE__ */ y(_, { children: [w && /* @__PURE__ */ y("div", {
|
|
394
390
|
role: "group",
|
|
395
|
-
"aria-label":
|
|
391
|
+
"aria-label": C("bigconsole.dataSinks.view.dataPreview", "Data Preview"),
|
|
396
392
|
className: "flex items-center overflow-hidden rounded-button border border-[var(--color-border-default)]",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ v("button", {
|
|
398
394
|
type: "button",
|
|
399
395
|
onClick: () => L("table"),
|
|
400
396
|
"aria-pressed": I === "table",
|
|
401
|
-
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${
|
|
402
|
-
title:
|
|
403
|
-
children: /* @__PURE__ */
|
|
404
|
-
}), /* @__PURE__ */
|
|
397
|
+
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${x} ${I === "table" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
|
|
398
|
+
title: C("bigconsole.dataSinks.view.tableView", "Table view"),
|
|
399
|
+
children: /* @__PURE__ */ v(Ne, { className: "w-4 h-4" })
|
|
400
|
+
}), /* @__PURE__ */ v("button", {
|
|
405
401
|
type: "button",
|
|
406
402
|
onClick: () => L("json"),
|
|
407
403
|
"aria-pressed": I === "json",
|
|
408
|
-
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${
|
|
409
|
-
title:
|
|
410
|
-
children: /* @__PURE__ */
|
|
404
|
+
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${x} ${I === "json" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
|
|
405
|
+
title: C("bigconsole.dataSinks.view.jsonView", "JSON view"),
|
|
406
|
+
children: /* @__PURE__ */ v(Oe, { className: "w-4 h-4" })
|
|
411
407
|
})]
|
|
412
|
-
}), /* @__PURE__ */
|
|
413
|
-
onClick:
|
|
408
|
+
}), /* @__PURE__ */ v(g, {
|
|
409
|
+
onClick: nt,
|
|
414
410
|
disabled: P,
|
|
415
|
-
variant:
|
|
411
|
+
variant: w ? "secondary" : "default",
|
|
416
412
|
size: "sm",
|
|
417
|
-
children: P ? /* @__PURE__ */
|
|
413
|
+
children: P ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(m, { className: "w-4 h-4 mr-2 animate-spin" }), C("bigconsole.dataSinks.view.loading", "Loading...")] }) : w ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Me, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.hideData", "Hide Data")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(je, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.showData", "Show Data")] })
|
|
418
414
|
})] }),
|
|
419
|
-
children: [
|
|
415
|
+
children: [w && N && /* @__PURE__ */ y(_, { children: [v(I === "table" ? ue : le, {
|
|
420
416
|
data: N,
|
|
421
417
|
maxHeight: "400px"
|
|
422
|
-
}), B !== null && /* @__PURE__ */
|
|
418
|
+
}), B !== null && /* @__PURE__ */ y("div", {
|
|
423
419
|
className: "mt-form-gap flex flex-wrap items-center justify-between gap-form-gap border-t border-[var(--color-border-subtle)] pt-form-gap",
|
|
424
|
-
children: [/* @__PURE__ */
|
|
420
|
+
children: [/* @__PURE__ */ y("label", {
|
|
425
421
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
426
|
-
children: [/* @__PURE__ */
|
|
427
|
-
"aria-label":
|
|
422
|
+
children: [/* @__PURE__ */ v("span", { children: C("bigconsole.dataSinks.view.rowsPerPage", "Rows per page") }), /* @__PURE__ */ v("select", {
|
|
423
|
+
"aria-label": C("bigconsole.dataSinks.view.rowsPerPage", "Rows per page"),
|
|
428
424
|
className: "h-control-md rounded-input border border-[var(--color-border-default)] bg-bg-canvas px-2 text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
|
|
429
425
|
value: R,
|
|
430
426
|
onChange: (e) => rt(Number(e.target.value)),
|
|
@@ -432,129 +428,129 @@ var S = "focus-visible:ring-inset focus-visible:ring-offset-0", C = l(function()
|
|
|
432
428
|
100,
|
|
433
429
|
500,
|
|
434
430
|
1e3
|
|
435
|
-
].map((e) => /* @__PURE__ */
|
|
431
|
+
].map((e) => /* @__PURE__ */ v("option", {
|
|
436
432
|
value: e,
|
|
437
433
|
children: e
|
|
438
434
|
}, e))
|
|
439
435
|
})]
|
|
440
|
-
}), /* @__PURE__ */
|
|
436
|
+
}), /* @__PURE__ */ y("div", {
|
|
441
437
|
className: "flex flex-wrap items-center gap-control-gap text-sm text-text-secondary",
|
|
442
438
|
children: [
|
|
443
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ v("span", { children: B === 0 ? C("bigconsole.dataSinks.view.zeroRows", "0 rows") : C("bigconsole.dataSinks.view.rowRange", "{{start}}–{{end}} of {{total}}", {
|
|
444
440
|
start: z + 1,
|
|
445
441
|
end: Math.min(z + R, B),
|
|
446
442
|
total: B
|
|
447
443
|
}) }),
|
|
448
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ v(g, {
|
|
449
445
|
variant: "secondary",
|
|
450
446
|
size: "sm",
|
|
451
447
|
disabled: z === 0 || P,
|
|
452
448
|
onClick: () => void Q(Math.max(0, z - R), R),
|
|
453
|
-
children:
|
|
449
|
+
children: C("bigconsole.dataSinks.view.previous", "Previous")
|
|
454
450
|
}),
|
|
455
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ v(g, {
|
|
456
452
|
variant: "secondary",
|
|
457
453
|
size: "sm",
|
|
458
|
-
disabled: !
|
|
454
|
+
disabled: !Xe || P,
|
|
459
455
|
onClick: () => void Q(z + R, R),
|
|
460
|
-
children:
|
|
456
|
+
children: C("bigconsole.dataSinks.view.next", "Next")
|
|
461
457
|
})
|
|
462
458
|
]
|
|
463
459
|
})]
|
|
464
|
-
})] }), !
|
|
460
|
+
})] }), !w && (a(V) ? /* @__PURE__ */ y("p", {
|
|
465
461
|
className: "flex items-center gap-icon-gap text-sm text-text-secondary",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
462
|
+
children: [/* @__PURE__ */ v(p, {
|
|
467
463
|
"aria-hidden": "true",
|
|
468
464
|
className: "h-icon-sm w-icon-sm shrink-0 text-text-muted"
|
|
469
|
-
}),
|
|
470
|
-
}) : /* @__PURE__ */
|
|
465
|
+
}), C("bigconsole.dataSinks.view.showDataHint", "Click \"Show Data\" to preview the cached data.")]
|
|
466
|
+
}) : /* @__PURE__ */ y("div", {
|
|
471
467
|
className: "flex flex-col items-center gap-form-gap py-form-gap text-center",
|
|
472
468
|
children: [
|
|
473
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ v(p, {
|
|
474
470
|
"aria-hidden": "true",
|
|
475
471
|
className: "h-icon-lg w-icon-lg text-text-muted"
|
|
476
472
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ v("p", {
|
|
478
474
|
className: "text-sm text-text-secondary",
|
|
479
|
-
children:
|
|
475
|
+
children: C("bigconsole.dataSinks.view.noDataYet", "This data sink has no data yet. Upload a CSV or build a workflow to import data.")
|
|
480
476
|
}),
|
|
481
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ y(g, {
|
|
482
478
|
onClick: ot,
|
|
483
479
|
variant: "default",
|
|
484
480
|
size: "sm",
|
|
485
|
-
children: [/* @__PURE__ */
|
|
481
|
+
children: [/* @__PURE__ */ v(h, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.importData", "Import Data")]
|
|
486
482
|
})
|
|
487
483
|
]
|
|
488
484
|
}))]
|
|
489
485
|
})]
|
|
490
|
-
}), /* @__PURE__ */
|
|
486
|
+
}), /* @__PURE__ */ y("div", {
|
|
491
487
|
className: "grid min-w-0 gap-section-gap md:grid-cols-2",
|
|
492
488
|
children: [
|
|
493
|
-
V.fluidGridsWorkflowId && /* @__PURE__ */
|
|
489
|
+
V.fluidGridsWorkflowId && /* @__PURE__ */ v(me, {
|
|
494
490
|
workflowId: V.fluidGridsWorkflowId,
|
|
495
491
|
executionId: V.fluidGridsWorkflowExecutionId || void 0,
|
|
496
492
|
lastRefreshedAt: V.lastRefreshedAt || void 0,
|
|
497
493
|
setupState: V.setupState,
|
|
498
494
|
status: V.status,
|
|
499
495
|
onRerunWorkflow: Z,
|
|
500
|
-
disabled:
|
|
501
|
-
isRerunning:
|
|
496
|
+
disabled: E,
|
|
497
|
+
isRerunning: E
|
|
502
498
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ v(de, {
|
|
504
500
|
workflowLinks: V.workflowLinks,
|
|
505
501
|
dataSinkKey: V.key,
|
|
506
|
-
onLinked:
|
|
502
|
+
onLinked: et
|
|
507
503
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ v(pe, { dataSinkKey: V.key })
|
|
509
505
|
]
|
|
510
506
|
})]
|
|
511
507
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
508
|
+
/* @__PURE__ */ v(Le, {
|
|
513
509
|
storageKey: "bigconsole-datasink-view",
|
|
514
510
|
steps: [
|
|
515
511
|
{
|
|
516
512
|
id: "preview",
|
|
517
|
-
label:
|
|
518
|
-
description:
|
|
519
|
-
onClick:
|
|
513
|
+
label: C("bigconsole.dataSinks.view.nextSteps.previewLabel", "Preview the data"),
|
|
514
|
+
description: C("bigconsole.dataSinks.view.nextSteps.previewDescription", "Open the cached rows to confirm the sink holds what you expect."),
|
|
515
|
+
onClick: nt
|
|
520
516
|
},
|
|
521
517
|
{
|
|
522
518
|
id: "refresh",
|
|
523
|
-
label:
|
|
524
|
-
description:
|
|
519
|
+
label: C("bigconsole.dataSinks.view.nextSteps.refreshLabel", "Refresh from source"),
|
|
520
|
+
description: C("bigconsole.dataSinks.view.nextSteps.refreshDescription", "Re-run the linked workflow to pull the latest data."),
|
|
525
521
|
onClick: Z
|
|
526
522
|
},
|
|
527
523
|
{
|
|
528
524
|
id: "build-dashboard",
|
|
529
|
-
label:
|
|
530
|
-
description:
|
|
531
|
-
onClick: () =>
|
|
525
|
+
label: C("bigconsole.dataSinks.view.nextSteps.dashboardLabel", "Visualize it on a dashboard"),
|
|
526
|
+
description: C("bigconsole.dataSinks.view.nextSteps.dashboardDescription", "Add widgets that query this sink to see your data live."),
|
|
527
|
+
onClick: () => S("/dashboards")
|
|
532
528
|
},
|
|
533
529
|
{
|
|
534
530
|
id: "export",
|
|
535
|
-
label:
|
|
536
|
-
description:
|
|
531
|
+
label: C("bigconsole.dataSinks.view.nextSteps.exportLabel", "Export the data"),
|
|
532
|
+
description: C("bigconsole.dataSinks.view.nextSteps.exportDescription", "Download the contents for use elsewhere."),
|
|
537
533
|
onClick: it
|
|
538
534
|
}
|
|
539
535
|
]
|
|
540
536
|
}),
|
|
541
|
-
|
|
542
|
-
isOpen:
|
|
543
|
-
dataSinkId:
|
|
537
|
+
c && /* @__PURE__ */ v(ge, {
|
|
538
|
+
isOpen: Ge,
|
|
539
|
+
dataSinkId: c,
|
|
544
540
|
dataSinkName: V.name || V.key,
|
|
545
|
-
columnSuggestions:
|
|
541
|
+
columnSuggestions: Qe,
|
|
546
542
|
onClose: () => M(!1)
|
|
547
543
|
}),
|
|
548
|
-
/* @__PURE__ */
|
|
549
|
-
isOpen:
|
|
550
|
-
dataSinkId:
|
|
544
|
+
/* @__PURE__ */ v(he, {
|
|
545
|
+
isOpen: Ue,
|
|
546
|
+
dataSinkId: c || null,
|
|
551
547
|
dataSinkName: V.name || V.key,
|
|
552
548
|
onClose: at
|
|
553
549
|
}),
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
isOpen:
|
|
550
|
+
/* @__PURE__ */ v(ve, {
|
|
551
|
+
isOpen: We,
|
|
556
552
|
dataSinkName: V.name || V.key,
|
|
557
|
-
hasExistingData:
|
|
553
|
+
hasExistingData: a(V),
|
|
558
554
|
onClose: st,
|
|
559
555
|
onGoToWorkflows: ct,
|
|
560
556
|
onImportCsv: lt
|
|
@@ -562,4 +558,4 @@ var S = "focus-visible:ring-inset focus-visible:ring-offset-0", C = l(function()
|
|
|
562
558
|
]
|
|
563
559
|
});
|
|
564
560
|
});
|
|
565
|
-
export {
|
|
561
|
+
export { S as DataSinkViewPage, S as default };
|