@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
|
@@ -1,223 +1,224 @@
|
|
|
1
1
|
import "../common/sectionStyles.js";
|
|
2
2
|
import "../common/index.js";
|
|
3
3
|
import { memo as e, useCallback as t, useEffect as n, useMemo as r, useRef as i, useState as a } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ThemedSelect as o } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
7
|
// src/bigconsole/components/datasink/RefreshTypeSelector.tsx
|
|
7
|
-
var
|
|
8
|
-
let { t:
|
|
8
|
+
var u = e(function({ value: e, onChange: u, disabled: d = !1, error: f }) {
|
|
9
|
+
let { t: p } = s(), m = r(() => [
|
|
9
10
|
{
|
|
10
|
-
label:
|
|
11
|
+
label: p("bigconsole.dataSinks.refreshType.presetEvery5MinutesLabel", "Every 5 minutes"),
|
|
11
12
|
cron: "*/5 * * * *",
|
|
12
|
-
description:
|
|
13
|
+
description: p("bigconsole.dataSinks.refreshType.presetEvery5MinutesDescription", "High frequency updates")
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
|
-
label:
|
|
16
|
+
label: p("bigconsole.dataSinks.refreshType.presetEvery15MinutesLabel", "Every 15 minutes"),
|
|
16
17
|
cron: "*/15 * * * *",
|
|
17
|
-
description:
|
|
18
|
+
description: p("bigconsole.dataSinks.refreshType.presetEvery15MinutesDescription", "Balanced frequency")
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
|
-
label:
|
|
21
|
+
label: p("bigconsole.dataSinks.refreshType.presetEveryHourLabel", "Every hour"),
|
|
21
22
|
cron: "0 * * * *",
|
|
22
|
-
description:
|
|
23
|
+
description: p("bigconsole.dataSinks.refreshType.presetEveryHourDescription", "Hourly updates")
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
|
-
label:
|
|
26
|
+
label: p("bigconsole.dataSinks.refreshType.presetEveryDayLabel", "Every day at midnight"),
|
|
26
27
|
cron: "0 0 * * *",
|
|
27
|
-
description:
|
|
28
|
+
description: p("bigconsole.dataSinks.refreshType.presetEveryDayDescription", "Daily updates")
|
|
28
29
|
}
|
|
29
|
-
], [
|
|
30
|
+
], [p]), h = r(() => [
|
|
30
31
|
{
|
|
31
32
|
value: "UTC",
|
|
32
|
-
label:
|
|
33
|
+
label: p("bigconsole.dataSinks.refreshType.timezoneUtc", "UTC")
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
36
|
value: "America/New_York",
|
|
36
|
-
label:
|
|
37
|
+
label: p("bigconsole.dataSinks.refreshType.timezoneEastern", "Eastern Time (US)")
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
40
|
value: "America/Los_Angeles",
|
|
40
|
-
label:
|
|
41
|
+
label: p("bigconsole.dataSinks.refreshType.timezonePacific", "Pacific Time (US)")
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
value: "Europe/London",
|
|
44
|
-
label:
|
|
45
|
+
label: p("bigconsole.dataSinks.refreshType.timezoneLondon", "London (UK)")
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
value: "Europe/Paris",
|
|
48
|
-
label:
|
|
49
|
+
label: p("bigconsole.dataSinks.refreshType.timezoneParis", "Paris (EU)")
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
52
|
value: "Asia/Tokyo",
|
|
52
|
-
label:
|
|
53
|
+
label: p("bigconsole.dataSinks.refreshType.timezoneTokyo", "Tokyo (Japan)")
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
value: "Asia/Kolkata",
|
|
56
|
-
label:
|
|
57
|
+
label: p("bigconsole.dataSinks.refreshType.timezoneKolkata", "India (IST)")
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
60
|
value: "Australia/Sydney",
|
|
60
|
-
label:
|
|
61
|
+
label: p("bigconsole.dataSinks.refreshType.timezoneSydney", "Sydney (Australia)")
|
|
61
62
|
}
|
|
62
|
-
], [
|
|
63
|
+
], [p]), g = t((e) => m.find((t) => t.cron === e) || null, [m]), [_, v] = a(e?.type || "manual"), [y, b] = a(e?.schedule ? g(e.schedule.cron) || null : m[1]), [x, S] = a(e?.schedule ? !g(e.schedule.cron) : !1), [C, w] = a(e?.schedule?.cron || ""), [T, E] = a(e?.schedule?.timezone || "UTC"), D = i(e);
|
|
63
64
|
n(() => {
|
|
64
|
-
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
let t =
|
|
68
|
-
t ? (
|
|
65
|
+
D.current !== e && e && (D.current = e, queueMicrotask(() => {
|
|
66
|
+
if (v(e.type), e.schedule) {
|
|
67
|
+
E(e.schedule.timezone);
|
|
68
|
+
let t = g(e.schedule.cron);
|
|
69
|
+
t ? (b(t), S(!1)) : (w(e.schedule.cron), S(!0));
|
|
69
70
|
}
|
|
70
71
|
}));
|
|
71
|
-
}, [e,
|
|
72
|
-
let
|
|
73
|
-
|
|
72
|
+
}, [e, g]);
|
|
73
|
+
let O = t((e) => {
|
|
74
|
+
d || (v(e), u(e === "manual" ? { type: "manual" } : {
|
|
74
75
|
type: "scheduled",
|
|
75
76
|
schedule: {
|
|
76
|
-
cron:
|
|
77
|
-
timezone:
|
|
77
|
+
cron: x ? C : y?.cron || m[1].cron,
|
|
78
|
+
timezone: T
|
|
78
79
|
}
|
|
79
80
|
}));
|
|
80
81
|
}, [
|
|
82
|
+
d,
|
|
81
83
|
u,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
u || (y(e), x(!1), l({
|
|
84
|
+
x,
|
|
85
|
+
C,
|
|
86
|
+
y,
|
|
87
|
+
T,
|
|
88
|
+
m
|
|
89
|
+
]), k = t((e) => {
|
|
90
|
+
d || (b(e), S(!1), u({
|
|
90
91
|
type: "scheduled",
|
|
91
92
|
schedule: {
|
|
92
93
|
cron: e.cron,
|
|
93
|
-
timezone:
|
|
94
|
+
timezone: T
|
|
94
95
|
}
|
|
95
96
|
}));
|
|
96
97
|
}, [
|
|
98
|
+
d,
|
|
97
99
|
u,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
u || (x(!0), y(null), S && l({
|
|
100
|
+
T
|
|
101
|
+
]), A = t(() => {
|
|
102
|
+
d || (S(!0), b(null), C && u({
|
|
102
103
|
type: "scheduled",
|
|
103
104
|
schedule: {
|
|
104
|
-
cron:
|
|
105
|
-
timezone:
|
|
105
|
+
cron: C,
|
|
106
|
+
timezone: T
|
|
106
107
|
}
|
|
107
108
|
}));
|
|
108
109
|
}, [
|
|
110
|
+
d,
|
|
109
111
|
u,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
]), A = t((e) => {
|
|
112
|
+
C,
|
|
113
|
+
T
|
|
114
|
+
]), j = t((e) => {
|
|
114
115
|
let t = e.target.value;
|
|
115
|
-
|
|
116
|
+
w(t), t.trim() && u({
|
|
116
117
|
type: "scheduled",
|
|
117
118
|
schedule: {
|
|
118
119
|
cron: t,
|
|
119
|
-
timezone:
|
|
120
|
+
timezone: T
|
|
120
121
|
}
|
|
121
122
|
});
|
|
122
|
-
}, [
|
|
123
|
+
}, [u, T]), M = t((e) => {
|
|
123
124
|
let t = e.target.value;
|
|
124
|
-
|
|
125
|
+
E(t), _ === "scheduled" && u({
|
|
125
126
|
type: "scheduled",
|
|
126
127
|
schedule: {
|
|
127
|
-
cron:
|
|
128
|
+
cron: x ? C : y?.cron || "",
|
|
128
129
|
timezone: t
|
|
129
130
|
}
|
|
130
131
|
});
|
|
131
132
|
}, [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
u,
|
|
134
|
+
_,
|
|
135
|
+
x,
|
|
136
|
+
C,
|
|
137
|
+
y
|
|
137
138
|
]);
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
+
return /* @__PURE__ */ l("div", {
|
|
139
140
|
className: "space-y-4",
|
|
140
141
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
142
143
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
143
|
-
children:
|
|
144
|
-
}), /* @__PURE__ */
|
|
144
|
+
children: p("bigconsole.dataSinks.refreshType.heading", "Refresh Type")
|
|
145
|
+
}), /* @__PURE__ */ c("p", {
|
|
145
146
|
className: "text-xs text-text-secondary",
|
|
146
|
-
children:
|
|
147
|
+
children: p("bigconsole.dataSinks.refreshType.headingDescription", "When should this data be updated?")
|
|
147
148
|
})] }),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ l("div", {
|
|
149
150
|
className: "space-y-list-gap",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ l("label", {
|
|
151
152
|
className: `
|
|
152
153
|
flex cursor-pointer items-start gap-3
|
|
153
154
|
rounded-input
|
|
154
155
|
border p-4
|
|
155
156
|
motion-safe:transition-colors
|
|
156
|
-
${
|
|
157
|
-
${
|
|
157
|
+
${d ? "cursor-not-allowed opacity-50" : ""}
|
|
158
|
+
${_ === "manual" ? "border-[var(--color-action-primary-bg)] bg-bg-accentSubtle" : "border-[var(--color-border-subtle)] hover:border-[var(--color-border-strong)]"}
|
|
158
159
|
`,
|
|
159
|
-
children: [/* @__PURE__ */
|
|
160
|
+
children: [/* @__PURE__ */ c("input", {
|
|
160
161
|
type: "radio",
|
|
161
162
|
name: "refresh-type",
|
|
162
|
-
checked:
|
|
163
|
-
onChange: () =>
|
|
164
|
-
disabled:
|
|
163
|
+
checked: _ === "manual",
|
|
164
|
+
onChange: () => O("manual"),
|
|
165
|
+
disabled: d,
|
|
165
166
|
className: "\n mt-0.5\n h-4 w-4\n border-[var(--color-border-default)]\n text-action-primary-bg\n focus-visible:ring-2\n focus-visible:ring-ring\n "
|
|
166
|
-
}), /* @__PURE__ */
|
|
167
|
+
}), /* @__PURE__ */ l("div", {
|
|
167
168
|
className: "flex-1",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ c("span", {
|
|
169
170
|
className: "text-sm font-medium text-text-primary",
|
|
170
|
-
children:
|
|
171
|
-
}), /* @__PURE__ */
|
|
171
|
+
children: p("bigconsole.dataSinks.refreshType.manualLabel", "Manual")
|
|
172
|
+
}), /* @__PURE__ */ c("p", {
|
|
172
173
|
className: "text-xs text-text-secondary mt-0.5",
|
|
173
|
-
children:
|
|
174
|
+
children: p("bigconsole.dataSinks.refreshType.manualDescription", "Data refreshes only when you click the \"Refresh\" button")
|
|
174
175
|
})]
|
|
175
176
|
})]
|
|
176
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ l("div", {
|
|
177
178
|
className: `
|
|
178
179
|
rounded-input border
|
|
179
180
|
motion-safe:transition-colors
|
|
180
|
-
${
|
|
181
|
-
${
|
|
181
|
+
${d ? "opacity-50" : ""}
|
|
182
|
+
${_ === "scheduled" ? "border-[var(--color-action-primary-bg)] bg-bg-accentSubtle" : "border-[var(--color-border-subtle)]"}
|
|
182
183
|
`,
|
|
183
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ l("label", {
|
|
184
185
|
className: `
|
|
185
186
|
flex items-start gap-3
|
|
186
187
|
p-4
|
|
187
188
|
cursor-pointer
|
|
188
|
-
${
|
|
189
|
+
${d ? "cursor-not-allowed" : ""}
|
|
189
190
|
`,
|
|
190
|
-
children: [/* @__PURE__ */
|
|
191
|
+
children: [/* @__PURE__ */ c("input", {
|
|
191
192
|
type: "radio",
|
|
192
193
|
name: "refresh-type",
|
|
193
|
-
checked:
|
|
194
|
-
onChange: () =>
|
|
195
|
-
disabled:
|
|
194
|
+
checked: _ === "scheduled",
|
|
195
|
+
onChange: () => O("scheduled"),
|
|
196
|
+
disabled: d,
|
|
196
197
|
className: "\n mt-0.5\n h-4 w-4\n border-[var(--color-border-default)]\n text-action-primary-bg\n focus-visible:ring-2\n focus-visible:ring-ring\n "
|
|
197
|
-
}), /* @__PURE__ */
|
|
198
|
+
}), /* @__PURE__ */ l("div", {
|
|
198
199
|
className: "flex-1",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
200
|
+
children: [/* @__PURE__ */ c("span", {
|
|
200
201
|
className: "text-sm font-medium text-text-primary",
|
|
201
|
-
children:
|
|
202
|
-
}), /* @__PURE__ */
|
|
202
|
+
children: p("bigconsole.dataSinks.refreshType.automaticLabel", "Automatic")
|
|
203
|
+
}), /* @__PURE__ */ c("p", {
|
|
203
204
|
className: "text-xs text-text-secondary mt-0.5",
|
|
204
|
-
children:
|
|
205
|
+
children: p("bigconsole.dataSinks.refreshType.automaticDescription", "Data refreshes on a schedule")
|
|
205
206
|
})]
|
|
206
207
|
})]
|
|
207
|
-
}),
|
|
208
|
+
}), _ === "scheduled" && /* @__PURE__ */ l("div", {
|
|
208
209
|
className: "space-y-form-gap px-4 pb-4",
|
|
209
210
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ l("div", {
|
|
211
212
|
className: "border-t border-[var(--color-border-subtle)] pt-4",
|
|
212
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ c("label", {
|
|
213
214
|
className: "mb-2 block text-xs font-medium text-text-secondary",
|
|
214
|
-
children:
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
children: p("bigconsole.dataSinks.refreshType.scheduleLabel", "Schedule")
|
|
216
|
+
}), /* @__PURE__ */ c("div", {
|
|
216
217
|
className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
|
|
217
|
-
children:
|
|
218
|
+
children: m.map((e) => /* @__PURE__ */ c("button", {
|
|
218
219
|
type: "button",
|
|
219
|
-
onClick: () =>
|
|
220
|
-
disabled:
|
|
220
|
+
onClick: () => k(e),
|
|
221
|
+
disabled: d,
|
|
221
222
|
className: `
|
|
222
223
|
min-h-[var(--size-controlHeight-md)] rounded-input
|
|
223
224
|
border
|
|
@@ -225,52 +226,52 @@ var l = e(function({ value: e, onChange: l, disabled: u = !1, error: d }) {
|
|
|
225
226
|
text-left
|
|
226
227
|
motion-safe:transition-colors
|
|
227
228
|
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface
|
|
228
|
-
${
|
|
229
|
-
${!
|
|
229
|
+
${d ? "cursor-not-allowed" : "cursor-pointer"}
|
|
230
|
+
${!x && y?.cron === e.cron ? "border-[var(--color-action-primary-bg)] bg-bg-accentSubtle text-text-link" : "border-[var(--color-border-subtle)] hover:border-[var(--color-border-strong)]"}
|
|
230
231
|
`,
|
|
231
|
-
children: /* @__PURE__ */
|
|
232
|
+
children: /* @__PURE__ */ c("span", {
|
|
232
233
|
className: "text-sm font-medium",
|
|
233
234
|
children: e.label
|
|
234
235
|
})
|
|
235
236
|
}, e.cron))
|
|
236
237
|
})]
|
|
237
238
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("button", {
|
|
239
240
|
type: "button",
|
|
240
|
-
onClick:
|
|
241
|
-
disabled:
|
|
241
|
+
onClick: A,
|
|
242
|
+
disabled: d,
|
|
242
243
|
className: `
|
|
243
244
|
min-h-[var(--size-controlHeight-md)] rounded-button text-xs
|
|
244
245
|
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface
|
|
245
|
-
${
|
|
246
|
+
${x ? "text-text-link" : "text-text-secondary hover:text-text-primary"}
|
|
246
247
|
`,
|
|
247
|
-
children:
|
|
248
|
-
}),
|
|
248
|
+
children: x ? p("bigconsole.dataSinks.refreshType.usingCustomSchedule", "Using custom schedule") : p("bigconsole.dataSinks.refreshType.useCustomSchedule", "Use custom schedule...")
|
|
249
|
+
}), x && /* @__PURE__ */ l("div", {
|
|
249
250
|
className: "mt-2",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ c("input", {
|
|
251
252
|
type: "text",
|
|
252
253
|
"aria-label": "Custom cron expression",
|
|
253
|
-
value:
|
|
254
|
-
onChange:
|
|
255
|
-
disabled:
|
|
254
|
+
value: C,
|
|
255
|
+
onChange: j,
|
|
256
|
+
disabled: d,
|
|
256
257
|
placeholder: "*/15 * * * *",
|
|
257
258
|
className: "\n h-control-md w-full min-w-0\n rounded-input\n border border-[var(--color-border-default)]\n bg-bg-sunken\n px-3\n font-mono\n text-sm text-text-primary\n focus-visible:outline-none\n focus-visible:ring-2\n focus-visible:ring-ring\n "
|
|
258
|
-
}), /* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ c("p", {
|
|
259
260
|
className: "mt-1 text-xs text-text-muted",
|
|
260
|
-
children:
|
|
261
|
+
children: p("bigconsole.dataSinks.refreshType.customCronHelp", "Enter a cron expression (e.g., */15 * * * * for every 15 minutes)")
|
|
261
262
|
})]
|
|
262
263
|
})] }),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
264
265
|
htmlFor: "refresh-timezone",
|
|
265
266
|
className: "mb-2 block text-xs font-medium text-text-secondary",
|
|
266
|
-
children:
|
|
267
|
-
}), /* @__PURE__ */
|
|
267
|
+
children: p("bigconsole.dataSinks.refreshType.timezoneLabel", "Timezone")
|
|
268
|
+
}), /* @__PURE__ */ c(o, {
|
|
268
269
|
id: "refresh-timezone",
|
|
269
|
-
value:
|
|
270
|
-
onChange:
|
|
271
|
-
disabled:
|
|
270
|
+
value: T,
|
|
271
|
+
onChange: M,
|
|
272
|
+
disabled: d,
|
|
272
273
|
className: "\n h-control-md w-full min-w-0\n rounded-input\n border border-[var(--color-border-default)]\n bg-bg-sunken\n px-3\n text-sm text-text-primary\n focus-visible:outline-none\n focus-visible:ring-2\n focus-visible:ring-ring\n ",
|
|
273
|
-
children:
|
|
274
|
+
children: h.map((e) => /* @__PURE__ */ c("option", {
|
|
274
275
|
value: e.value,
|
|
275
276
|
children: e.label
|
|
276
277
|
}, e.value))
|
|
@@ -279,25 +280,25 @@ var l = e(function({ value: e, onChange: l, disabled: u = !1, error: d }) {
|
|
|
279
280
|
})]
|
|
280
281
|
})]
|
|
281
282
|
}),
|
|
282
|
-
|
|
283
|
+
f && /* @__PURE__ */ l("div", {
|
|
283
284
|
className: "flex items-start gap-2",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ c("svg", {
|
|
285
286
|
className: "w-4 h-4 text-status-error-text flex-shrink-0 mt-0.5",
|
|
286
287
|
fill: "none",
|
|
287
288
|
stroke: "currentColor",
|
|
288
289
|
viewBox: "0 0 24 24",
|
|
289
|
-
children: /* @__PURE__ */
|
|
290
|
+
children: /* @__PURE__ */ c("path", {
|
|
290
291
|
strokeLinecap: "round",
|
|
291
292
|
strokeLinejoin: "round",
|
|
292
293
|
strokeWidth: 2,
|
|
293
294
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
294
295
|
})
|
|
295
|
-
}), /* @__PURE__ */
|
|
296
|
+
}), /* @__PURE__ */ c("p", {
|
|
296
297
|
className: "text-xs text-status-error-text",
|
|
297
|
-
children:
|
|
298
|
+
children: f
|
|
298
299
|
})]
|
|
299
300
|
})
|
|
300
301
|
]
|
|
301
302
|
});
|
|
302
303
|
});
|
|
303
|
-
export {
|
|
304
|
+
export { u as RefreshTypeSelector, u as default };
|
|
@@ -1,104 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SETUP_STATE_TONE as e, statusToneClasses as t } from "../../utils/statusTone.js";
|
|
2
|
+
import { memo as n } from "react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
4
|
// src/bigconsole/components/datasink/SetupStateBadge.tsx
|
|
4
|
-
var
|
|
5
|
+
var a = {
|
|
5
6
|
workflow_pending: {
|
|
6
7
|
label: "Workflow Pending",
|
|
7
8
|
shortLabel: "Draft",
|
|
8
|
-
bgColor: "bg-status-warning-bg/10",
|
|
9
|
-
textColor: "text-[var(--color-status-warning-text)]",
|
|
10
9
|
icon: "pending"
|
|
11
10
|
},
|
|
12
11
|
workflow_running: {
|
|
13
12
|
label: "Workflow Running",
|
|
14
13
|
shortLabel: "Running",
|
|
15
|
-
bgColor: "bg-action-primary-bg/10",
|
|
16
|
-
textColor: "text-action-primary-bg",
|
|
17
14
|
icon: "running"
|
|
18
15
|
},
|
|
19
16
|
workflow_completed: {
|
|
20
17
|
label: "Workflow Completed",
|
|
21
18
|
shortLabel: "Config Needed",
|
|
22
|
-
bgColor: "bg-status-warning-bg/10",
|
|
23
|
-
textColor: "text-[var(--color-status-warning-text)]",
|
|
24
19
|
icon: "pending"
|
|
25
20
|
},
|
|
26
21
|
configuration_pending: {
|
|
27
22
|
label: "Configuration Pending",
|
|
28
23
|
shortLabel: "In Progress",
|
|
29
|
-
bgColor: "bg-status-warning-bg/10",
|
|
30
|
-
textColor: "text-[var(--color-status-warning-text)]",
|
|
31
24
|
icon: "pending"
|
|
32
25
|
},
|
|
33
26
|
completed: {
|
|
34
27
|
label: "Ready",
|
|
35
28
|
shortLabel: "Ready",
|
|
36
|
-
bgColor: "bg-status-success-bg/10",
|
|
37
|
-
textColor: "text-status-success-text",
|
|
38
29
|
icon: "completed"
|
|
39
30
|
}
|
|
40
|
-
},
|
|
41
|
-
pending: ({ className: e }) => /* @__PURE__ */
|
|
31
|
+
}, o = {
|
|
32
|
+
pending: ({ className: e }) => /* @__PURE__ */ r("svg", {
|
|
42
33
|
className: e,
|
|
43
34
|
fill: "none",
|
|
44
35
|
stroke: "currentColor",
|
|
45
36
|
viewBox: "0 0 24 24",
|
|
46
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ r("path", {
|
|
47
38
|
strokeLinecap: "round",
|
|
48
39
|
strokeLinejoin: "round",
|
|
49
40
|
strokeWidth: 2,
|
|
50
41
|
d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
51
42
|
})
|
|
52
43
|
}),
|
|
53
|
-
running: ({ className: e }) => /* @__PURE__ */
|
|
44
|
+
running: ({ className: e }) => /* @__PURE__ */ i("svg", {
|
|
54
45
|
className: `${e} animate-spin`,
|
|
55
46
|
fill: "none",
|
|
56
47
|
viewBox: "0 0 24 24",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ r("circle", {
|
|
58
49
|
className: "opacity-25",
|
|
59
50
|
cx: "12",
|
|
60
51
|
cy: "12",
|
|
61
52
|
r: "10",
|
|
62
53
|
stroke: "currentColor",
|
|
63
54
|
strokeWidth: "4"
|
|
64
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ r("path", {
|
|
65
56
|
className: "opacity-75",
|
|
66
57
|
fill: "currentColor",
|
|
67
58
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
68
59
|
})]
|
|
69
60
|
}),
|
|
70
|
-
completed: ({ className: e }) => /* @__PURE__ */
|
|
61
|
+
completed: ({ className: e }) => /* @__PURE__ */ r("svg", {
|
|
71
62
|
className: e,
|
|
72
63
|
fill: "none",
|
|
73
64
|
stroke: "currentColor",
|
|
74
65
|
viewBox: "0 0 24 24",
|
|
75
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ r("path", {
|
|
76
67
|
strokeLinecap: "round",
|
|
77
68
|
strokeLinejoin: "round",
|
|
78
69
|
strokeWidth: 2,
|
|
79
70
|
d: "M5 13l4 4L19 7"
|
|
80
71
|
})
|
|
81
72
|
})
|
|
82
|
-
},
|
|
83
|
-
let
|
|
84
|
-
if (!
|
|
85
|
-
let
|
|
73
|
+
}, s = n(function({ state: n, abbreviated: s = !1, size: c = "sm" }) {
|
|
74
|
+
let l = a[n];
|
|
75
|
+
if (!l) return null;
|
|
76
|
+
let u = {
|
|
86
77
|
sm: "px-2 py-0.5 text-xs",
|
|
87
78
|
md: "px-2.5 py-1 text-sm"
|
|
88
|
-
},
|
|
79
|
+
}, d = {
|
|
89
80
|
sm: "w-3 h-3",
|
|
90
81
|
md: "w-4 h-4"
|
|
91
|
-
},
|
|
92
|
-
return /* @__PURE__ */
|
|
82
|
+
}, f = o[l.icon];
|
|
83
|
+
return /* @__PURE__ */ i("span", {
|
|
93
84
|
className: `
|
|
94
85
|
inline-flex items-center gap-1
|
|
95
86
|
font-medium
|
|
96
87
|
rounded-full
|
|
97
|
-
|
|
98
|
-
${
|
|
99
|
-
${
|
|
88
|
+
border
|
|
89
|
+
${u[c]}
|
|
90
|
+
${t(e, n)}
|
|
100
91
|
`,
|
|
101
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ r(f, { className: d[c] }), /* @__PURE__ */ r("span", { children: s ? l.shortLabel : l.label })]
|
|
102
93
|
});
|
|
103
94
|
});
|
|
104
|
-
export {
|
|
95
|
+
export { s as SetupStateBadge, s as default };
|