@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
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { useBigConsole as e } from "../../context/BigConsoleContext.js";
|
|
2
|
+
import { BIGCONSOLE_PERMISSIONS as t } from "../../../constants/permissions.js";
|
|
3
|
+
import { nativeConfirm as n } from "../../../utils/nativeBridge.js";
|
|
4
|
+
import { useTr as r } from "../../../shared/hooks/useTr.js";
|
|
5
|
+
import "../../context/index.js";
|
|
6
|
+
import { useFleetCopyActions as i } from "../../hooks/useFleetCopyActions.js";
|
|
7
|
+
import { useFleetFlags as a } from "../../hooks/useFleetFlags.js";
|
|
8
|
+
import { useOwnerBoundRun as o } from "../../hooks/useOwnerBoundRun.js";
|
|
9
|
+
import { allowedAnswers as s, changedFieldLabel as c, restoreIsEmpty as l } from "../../utils/fleetFlags.js";
|
|
10
|
+
import { memo as u, useCallback as d, useState as f } from "react";
|
|
11
|
+
import { PermissionButton as p } from "@burdenoff/fe-libs/shared/components";
|
|
12
|
+
import { Button as m, Spinner as h } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
|
+
// src/bigconsole/components/fleet/FleetCopySection.tsx
|
|
15
|
+
var v = (e, t) => e instanceof Error && e.message ? e.message : t, y = u(function({ dashboardId: u, masterName: y, onBoardChanged: b, lock: x }) {
|
|
16
|
+
let S = r(), { workspaceId: C, currentUser: w } = e(), T = `${C ?? ""}:${w?.id ?? ""}:${u}`, { loading: E, error: D, flags: O, refetch: k } = a(u, !0), A = i(), [j, M] = f({ phase: "idle" }), [N, P] = f(null), [F, I] = f([]), L = d(() => {
|
|
17
|
+
M({ phase: "idle" }), P(null), I([]);
|
|
18
|
+
}, []), R = d(async () => {
|
|
19
|
+
await k(), await b?.();
|
|
20
|
+
}, [b, k]), { acting: z, begin: B, run: V } = o(T, R, L, x), H = A.busy || z, U = d(async (e, t, r) => {
|
|
21
|
+
let i = await n({
|
|
22
|
+
title: e,
|
|
23
|
+
message: t,
|
|
24
|
+
okButtonTitle: r,
|
|
25
|
+
cancelButtonTitle: S("bigconsole.fleet.link.cancel", "Cancel")
|
|
26
|
+
});
|
|
27
|
+
return i === null ? window.confirm(t) : i;
|
|
28
|
+
}, [S]), W = (e) => S("bigconsole.fleet.copy.noticeDrilldown", "A widget's drilldown led to the page \"{{page}}\", which this board does not have, so it now opens the default page.", { page: e.pageName }), G = (e, t) => e === "ACCEPTED_MASTER" ? S("bigconsole.fleet.flags.accept", "Take the master's version") : e === "REMOVED" ? S("bigconsole.fleet.flags.remove", "Remove it") : t === "MASTER_REMOVED" ? S("bigconsole.fleet.flags.keepRemoved", "Keep it") : S("bigconsole.fleet.flags.keep", "Keep mine"), K = d(async (e, t) => {
|
|
29
|
+
let n = B();
|
|
30
|
+
if (t === "ACCEPTED_MASTER") {
|
|
31
|
+
if (!await U(S("bigconsole.fleet.flags.acceptTitle", "Take the master's version?"), S("bigconsole.fleet.flags.acceptConfirm", "\"{{title}}\" goes back to the master's version. Your changes to it are lost.", { title: e.widgetTitle }), S("bigconsole.fleet.flags.acceptOk", "Take it")) || !n()) return;
|
|
32
|
+
} else if (t === "REMOVED" && (!await U(S("bigconsole.fleet.flags.removeTitle", "Remove this widget?"), S("bigconsole.fleet.flags.removeConfirm", "\"{{title}}\" is removed from this board. A push does not give it back.", { title: e.widgetTitle }), S("bigconsole.fleet.flags.removeOk", "Remove")) || !n())) return;
|
|
33
|
+
P(null), I([]), await V(() => A.resolveFlag(e.id, t), (n) => {
|
|
34
|
+
M({ phase: "idle" }), I(n), P({
|
|
35
|
+
tone: "ok",
|
|
36
|
+
text: t === "ACCEPTED_MASTER" ? S("bigconsole.fleet.flags.accepted", "\"{{title}}\" is back to the master's version.", { title: e.widgetTitle }) : t === "REMOVED" ? S("bigconsole.fleet.flags.removed", "\"{{title}}\" was removed.", { title: e.widgetTitle }) : S("bigconsole.fleet.flags.kept", "\"{{title}}\" is now your own. The master will not flag it again.", { title: e.widgetTitle })
|
|
37
|
+
});
|
|
38
|
+
}, (e) => P({
|
|
39
|
+
tone: "error",
|
|
40
|
+
text: v(e, S("bigconsole.fleet.error.flag", "The flag could not be answered."))
|
|
41
|
+
}));
|
|
42
|
+
}, [
|
|
43
|
+
A,
|
|
44
|
+
B,
|
|
45
|
+
U,
|
|
46
|
+
V,
|
|
47
|
+
S
|
|
48
|
+
]), q = d(() => (P(null), I([]), V(() => A.previewRestore(u), (e) => M({
|
|
49
|
+
phase: "preview",
|
|
50
|
+
counts: e
|
|
51
|
+
}), (e) => P({
|
|
52
|
+
tone: "error",
|
|
53
|
+
text: v(e, S("bigconsole.fleet.error.restorePreview", "The preview could not be made."))
|
|
54
|
+
}))), [
|
|
55
|
+
A,
|
|
56
|
+
u,
|
|
57
|
+
V,
|
|
58
|
+
S
|
|
59
|
+
]), J = d(async () => {
|
|
60
|
+
let e = B();
|
|
61
|
+
await U(S("bigconsole.fleet.restore.title", "Restore this board to its original?"), S("bigconsole.fleet.restore.confirm", "Edited widgets go back to the master's version and removed ones come back. Your own widgets stay."), S("bigconsole.fleet.restore.ok", "Restore")) && e() && (P(null), await V(() => A.restore(u), (e) => {
|
|
62
|
+
M({
|
|
63
|
+
phase: "done",
|
|
64
|
+
counts: e
|
|
65
|
+
}), I(e.notices);
|
|
66
|
+
}, (e) => P({
|
|
67
|
+
tone: "error",
|
|
68
|
+
text: v(e, S("bigconsole.fleet.error.restore", "The board could not be restored."))
|
|
69
|
+
})));
|
|
70
|
+
}, [
|
|
71
|
+
A,
|
|
72
|
+
B,
|
|
73
|
+
U,
|
|
74
|
+
u,
|
|
75
|
+
V,
|
|
76
|
+
S
|
|
77
|
+
]), Y = (e, t) => t ? S("bigconsole.fleet.restore.done", "{{restored}} edited widgets went back to the master's version, {{back}} removed ones came back, {{kept}} of your own stayed.", {
|
|
78
|
+
restored: e.widgetsRestored,
|
|
79
|
+
back: e.widgetsBroughtBack,
|
|
80
|
+
kept: e.localWidgetsKept
|
|
81
|
+
}) : S("bigconsole.fleet.restore.preview", "{{restored}} edited widgets would go back to the master's version, {{back}} removed ones would come back, {{kept}} of your own would stay.", {
|
|
82
|
+
restored: e.widgetsRestored,
|
|
83
|
+
back: e.widgetsBroughtBack,
|
|
84
|
+
kept: e.localWidgetsKept
|
|
85
|
+
});
|
|
86
|
+
return /* @__PURE__ */ _("div", {
|
|
87
|
+
className: "flex flex-col gap-form-gap",
|
|
88
|
+
"data-testid": "fleet-copy-section",
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ g("p", {
|
|
91
|
+
style: {
|
|
92
|
+
margin: 0,
|
|
93
|
+
color: "var(--color-text-secondary)",
|
|
94
|
+
fontSize: "var(--font-size-body-sm)"
|
|
95
|
+
},
|
|
96
|
+
children: y ? S("bigconsole.fleet.copy.follows", "This board is a linked copy of \"{{name}}\".", { name: y }) : S("bigconsole.fleet.copy.followsUnknown", "This board is a linked copy of another board.")
|
|
97
|
+
}),
|
|
98
|
+
N && /* @__PURE__ */ g("p", {
|
|
99
|
+
role: N.tone === "error" ? "alert" : "status",
|
|
100
|
+
"data-testid": "fleet-copy-message",
|
|
101
|
+
style: {
|
|
102
|
+
margin: 0,
|
|
103
|
+
color: N.tone === "error" ? "var(--color-status-error-text)" : "var(--color-text-primary)",
|
|
104
|
+
fontSize: "var(--font-size-body-sm)"
|
|
105
|
+
},
|
|
106
|
+
children: N.text
|
|
107
|
+
}),
|
|
108
|
+
F.length > 0 && /* @__PURE__ */ g("ul", {
|
|
109
|
+
"data-testid": "fleet-copy-notices",
|
|
110
|
+
style: {
|
|
111
|
+
margin: 0,
|
|
112
|
+
paddingLeft: "1.25rem",
|
|
113
|
+
color: "var(--color-text-secondary)",
|
|
114
|
+
fontSize: "var(--font-size-body-sm)"
|
|
115
|
+
},
|
|
116
|
+
children: F.map((e, t) => /* @__PURE__ */ g("li", { children: W(e) }, `${e.widgetId}-${t}`))
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ g("strong", {
|
|
119
|
+
style: { color: "var(--color-text-primary)" },
|
|
120
|
+
children: S("bigconsole.fleet.flags.title", "Waiting for your answer")
|
|
121
|
+
}),
|
|
122
|
+
E && O.length === 0 && /* @__PURE__ */ _("div", {
|
|
123
|
+
className: "flex items-center gap-2",
|
|
124
|
+
style: { color: "var(--color-text-secondary)" },
|
|
125
|
+
children: [/* @__PURE__ */ g(h, { style: {
|
|
126
|
+
height: "var(--size-icon-sm)",
|
|
127
|
+
width: "var(--size-icon-sm)"
|
|
128
|
+
} }), S("bigconsole.fleet.flags.loading", "Loading…")]
|
|
129
|
+
}),
|
|
130
|
+
!E && D && /* @__PURE__ */ g("p", {
|
|
131
|
+
role: "alert",
|
|
132
|
+
style: {
|
|
133
|
+
margin: 0,
|
|
134
|
+
color: "var(--color-status-error-text)"
|
|
135
|
+
},
|
|
136
|
+
children: S("bigconsole.fleet.flags.loadError", "The flags on this board could not be loaded.")
|
|
137
|
+
}),
|
|
138
|
+
!E && !D && O.length === 0 && /* @__PURE__ */ g("p", {
|
|
139
|
+
"data-testid": "fleet-flags-none",
|
|
140
|
+
style: {
|
|
141
|
+
margin: 0,
|
|
142
|
+
color: "var(--color-text-secondary)",
|
|
143
|
+
fontSize: "var(--font-size-body-sm)"
|
|
144
|
+
},
|
|
145
|
+
children: S("bigconsole.fleet.flags.none", "Nothing. The master has no change waiting for you.")
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ g("ul", {
|
|
148
|
+
className: "flex flex-col gap-1",
|
|
149
|
+
style: {
|
|
150
|
+
listStyle: "none",
|
|
151
|
+
margin: 0,
|
|
152
|
+
padding: 0
|
|
153
|
+
},
|
|
154
|
+
children: O.map((e) => /* @__PURE__ */ _("li", {
|
|
155
|
+
"data-testid": "fleet-flag",
|
|
156
|
+
className: "flex flex-col gap-2 rounded-input border px-3 py-2",
|
|
157
|
+
style: { borderColor: "var(--color-border-subtle)" },
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ g("span", {
|
|
160
|
+
style: { color: "var(--color-text-primary)" },
|
|
161
|
+
children: e.widgetTitle
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ g("span", {
|
|
164
|
+
style: {
|
|
165
|
+
color: "var(--color-text-secondary)",
|
|
166
|
+
fontSize: "var(--font-size-body-sm)"
|
|
167
|
+
},
|
|
168
|
+
children: e.type === "MASTER_REMOVED" ? S("bigconsole.fleet.flags.removedByMaster", "The master removed this widget. It stays on your board until you answer.") : S("bigconsole.fleet.flags.changedByMaster", "The master changed this widget and you edited it too. Your version stays until you answer. Changed: {{fields}}.", { fields: e.changedFields.map((e) => {
|
|
169
|
+
let t = c(e);
|
|
170
|
+
return t ? S(t.key, t.fallback) : e;
|
|
171
|
+
}).join(", ") })
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ g(p, {
|
|
174
|
+
permission: t.DASHBOARD_UPDATE,
|
|
175
|
+
deniedBehavior: "hide",
|
|
176
|
+
children: /* @__PURE__ */ g("span", {
|
|
177
|
+
className: "flex flex-wrap gap-2",
|
|
178
|
+
children: s(e.type).map((t) => /* @__PURE__ */ g(m, {
|
|
179
|
+
size: "sm",
|
|
180
|
+
variant: t === "REMOVED" ? "ghost" : "outline",
|
|
181
|
+
disabled: H,
|
|
182
|
+
onClick: () => void K(e, t),
|
|
183
|
+
"data-testid": `fleet-flag-${t}`,
|
|
184
|
+
children: G(t, e.type)
|
|
185
|
+
}, t))
|
|
186
|
+
})
|
|
187
|
+
})
|
|
188
|
+
]
|
|
189
|
+
}, e.id))
|
|
190
|
+
}),
|
|
191
|
+
/* @__PURE__ */ g("strong", {
|
|
192
|
+
style: { color: "var(--color-text-primary)" },
|
|
193
|
+
children: S("bigconsole.fleet.restore.heading", "Back to the original")
|
|
194
|
+
}),
|
|
195
|
+
j.phase === "idle" && /* @__PURE__ */ g("div", { children: /* @__PURE__ */ g(p, {
|
|
196
|
+
permission: t.DASHBOARD_UPDATE,
|
|
197
|
+
deniedBehavior: "hide",
|
|
198
|
+
children: /* @__PURE__ */ g(m, {
|
|
199
|
+
variant: "outline",
|
|
200
|
+
onClick: q,
|
|
201
|
+
disabled: H,
|
|
202
|
+
"data-testid": "fleet-restore",
|
|
203
|
+
children: S("bigconsole.fleet.restore.start", "Restore board to original…")
|
|
204
|
+
})
|
|
205
|
+
}) }),
|
|
206
|
+
j.phase === "preview" && /* @__PURE__ */ _("div", {
|
|
207
|
+
className: "flex flex-col gap-form-gap rounded-input border p-3",
|
|
208
|
+
style: { borderColor: "var(--color-border-subtle)" },
|
|
209
|
+
"data-testid": "fleet-restore-preview",
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ g("span", {
|
|
212
|
+
style: { color: "var(--color-text-primary)" },
|
|
213
|
+
children: S("bigconsole.fleet.restore.previewTitle", "Preview: nothing has been changed yet")
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ g("span", {
|
|
216
|
+
"data-testid": "fleet-restore-counts",
|
|
217
|
+
style: {
|
|
218
|
+
color: "var(--color-text-secondary)",
|
|
219
|
+
fontSize: "var(--font-size-body-sm)"
|
|
220
|
+
},
|
|
221
|
+
children: Y(j.counts, !1)
|
|
222
|
+
}),
|
|
223
|
+
l(j.counts) && /* @__PURE__ */ g("span", {
|
|
224
|
+
style: {
|
|
225
|
+
color: "var(--color-text-secondary)",
|
|
226
|
+
fontSize: "var(--font-size-body-sm)"
|
|
227
|
+
},
|
|
228
|
+
children: S("bigconsole.fleet.restore.nothing", "Nothing to restore: this board already matches its master.")
|
|
229
|
+
}),
|
|
230
|
+
/* @__PURE__ */ _("div", {
|
|
231
|
+
className: "flex gap-2",
|
|
232
|
+
children: [/* @__PURE__ */ _(m, {
|
|
233
|
+
onClick: () => void J(),
|
|
234
|
+
disabled: H || l(j.counts),
|
|
235
|
+
"data-testid": "fleet-restore-confirm",
|
|
236
|
+
children: [H && /* @__PURE__ */ g(h, { style: {
|
|
237
|
+
height: "var(--size-icon-sm)",
|
|
238
|
+
width: "var(--size-icon-sm)"
|
|
239
|
+
} }), S("bigconsole.fleet.restore.ok", "Restore")]
|
|
240
|
+
}), /* @__PURE__ */ g(m, {
|
|
241
|
+
variant: "outline",
|
|
242
|
+
onClick: () => M({ phase: "idle" }),
|
|
243
|
+
disabled: H,
|
|
244
|
+
children: S("bigconsole.fleet.link.cancel", "Cancel")
|
|
245
|
+
})]
|
|
246
|
+
})
|
|
247
|
+
]
|
|
248
|
+
}),
|
|
249
|
+
j.phase === "done" && /* @__PURE__ */ _("div", {
|
|
250
|
+
className: "flex flex-col gap-form-gap rounded-input border p-3",
|
|
251
|
+
style: { borderColor: "var(--color-border-subtle)" },
|
|
252
|
+
"data-testid": "fleet-restore-done",
|
|
253
|
+
children: [/* @__PURE__ */ g("span", {
|
|
254
|
+
"data-testid": "fleet-restore-result",
|
|
255
|
+
style: { color: "var(--color-text-primary)" },
|
|
256
|
+
children: Y(j.counts, !0)
|
|
257
|
+
}), /* @__PURE__ */ g("div", { children: /* @__PURE__ */ g(m, {
|
|
258
|
+
variant: "outline",
|
|
259
|
+
onClick: () => M({ phase: "idle" }),
|
|
260
|
+
children: S("bigconsole.fleet.push.done", "Done")
|
|
261
|
+
}) })]
|
|
262
|
+
})
|
|
263
|
+
]
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
export { y as FleetCopySection, y as default };
|
|
@@ -88,7 +88,7 @@ var h = {
|
|
|
88
88
|
}),
|
|
89
89
|
E && S === null && /* @__PURE__ */ p("p", {
|
|
90
90
|
role: "alert",
|
|
91
|
-
style: { color: "var(--color-status-
|
|
91
|
+
style: { color: "var(--color-status-error-text)" },
|
|
92
92
|
children: E
|
|
93
93
|
}),
|
|
94
94
|
b.length > 0 && /* @__PURE__ */ p("ul", {
|
|
@@ -138,7 +138,7 @@ var h = {
|
|
|
138
138
|
/* @__PURE__ */ p("p", { children: _ ? y("bigconsole.analysis.boardLint.savedPreviewNote", "This changes the widget on your dashboard. You can undo it right after.") : y("bigconsole.analysis.boardLint.previewNote", "This creates a refined copy of the draft. Your current draft stays as it is, and you can undo it.") }),
|
|
139
139
|
E && /* @__PURE__ */ p("p", {
|
|
140
140
|
role: "alert",
|
|
141
|
-
style: { color: "var(--color-status-
|
|
141
|
+
style: { color: "var(--color-status-error-text)" },
|
|
142
142
|
children: E
|
|
143
143
|
}),
|
|
144
144
|
/* @__PURE__ */ m("div", {
|