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