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