@burdenoff/microfe-bigconsole 2026.1123.2 → 2026.1123.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/compare/compareEngine.js +79 -66
- package/dist/bigconsole/components/fleet/CreateLinkedCopyDialog.d.ts +12 -0
- package/dist/bigconsole/components/fleet/CreateLinkedCopyDialog.js +61 -0
- package/dist/bigconsole/components/fleet/FleetChildrenPanel.d.ts +9 -0
- package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +392 -0
- package/dist/bigconsole/components/fleet/FleetPushResultTable.d.ts +7 -0
- package/dist/bigconsole/components/fleet/FleetPushResultTable.js +114 -0
- package/dist/bigconsole/components/fleet/LinkToMasterDialog.js +6 -6
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +144 -148
- package/dist/bigconsole/hooks/useFleetChildren.d.ts +37 -0
- package/dist/bigconsole/hooks/useFleetChildren.js +93 -0
- package/dist/bigconsole/hooks/useFleetMasterActions.d.ts +13 -0
- package/dist/bigconsole/hooks/useFleetMasterActions.js +71 -0
- package/dist/bigconsole/pages/DashboardViewPage.js +252 -224
- package/dist/bigconsole/utils/fleetPush.d.ts +24 -0
- package/dist/bigconsole/utils/fleetPush.js +23 -0
- package/dist/bigconsole/utils/legacyChartRows.d.ts +2 -0
- package/dist/bigconsole/utils/legacyChartRows.js +19 -0
- package/dist/generated/wspace-operations.d.ts +186 -0
- package/dist/generated/wspace-operations.js +1183 -240
- package/dist/generated/wspace-types.js +10 -8
- package/package.json +1 -1
|
@@ -9,23 +9,24 @@ import { useFleetBreadcrumb as s } from "../hooks/useFleetBreadcrumb.js";
|
|
|
9
9
|
import ee from "../hooks/useWidgetOperations.js";
|
|
10
10
|
import te from "../hooks/useDashboardOperations.js";
|
|
11
11
|
import { FleetBreadcrumb as ne } from "../components/fleet/FleetBreadcrumb.js";
|
|
12
|
+
import { FleetChildrenPanel as re } from "../components/fleet/FleetChildrenPanel.js";
|
|
13
|
+
import ie from "../hooks/usePageOperations.js";
|
|
12
14
|
import "../components/dashboard/index.js";
|
|
13
|
-
import
|
|
14
|
-
import { useReconcileAgentTool as
|
|
15
|
-
import { AsOfProvider as ie, HideWhenAsOf as l, useAsOf as ae } from "../asof/AsOfProvider.js";
|
|
15
|
+
import { AsOfProvider as c, HideWhenAsOf as l, useAsOf as ae } from "../asof/AsOfProvider.js";
|
|
16
|
+
import { useReconcileAgentTool as u } from "../components/reconcile/useReconcileAgentTool.js";
|
|
16
17
|
import "../components/common/index.js";
|
|
17
18
|
import "../components/narrative/index.js";
|
|
18
19
|
import "../store/index.js";
|
|
19
|
-
import "../hooks/index.js";
|
|
20
20
|
import { DashboardCanvas as oe } from "../components/dashboard/DashboardCanvas.js";
|
|
21
|
-
import
|
|
22
|
-
import { LiveCanvasToggle as
|
|
23
|
-
import { ExportDashboardDialog as
|
|
24
|
-
import { DrilldownBreadcrumb as
|
|
25
|
-
import { PublishToStoreDialog as
|
|
26
|
-
import { DashboardReviewDialog as
|
|
27
|
-
import { DashboardPresenceBar as
|
|
28
|
-
import { DashboardCommentsDrawer as
|
|
21
|
+
import "../hooks/index.js";
|
|
22
|
+
import { LiveCanvasToggle as se } from "../components/dashboard/LiveCanvasToggle.js";
|
|
23
|
+
import { ExportDashboardDialog as ce } from "../components/dashboard/ExportDashboardDialog.js";
|
|
24
|
+
import { DrilldownBreadcrumb as le } from "../components/dashboard/DrilldownBreadcrumb.js";
|
|
25
|
+
import { PublishToStoreDialog as ue } from "../components/dashboard/PublishToStoreDialog.js";
|
|
26
|
+
import { DashboardReviewDialog as de } from "../components/dashboard/DashboardReviewDialog.js";
|
|
27
|
+
import { DashboardPresenceBar as fe } from "../components/dashboard/DashboardPresenceBar.js";
|
|
28
|
+
import { DashboardCommentsDrawer as pe } from "../components/dashboard/DashboardCommentsDrawer.js";
|
|
29
|
+
import me, { parseUrlToGlobalFilterValues as he } from "../hooks/useFilterUrlSync.js";
|
|
29
30
|
import ge from "../hooks/useActivePage.js";
|
|
30
31
|
import { dashboardPageTabs as _e } from "../assistant/pageControls.js";
|
|
31
32
|
import { loadBigConsoleSettings as ve } from "../hooks/useBigConsoleSettings.js";
|
|
@@ -34,31 +35,31 @@ import { registerBreadcrumbName as xe, unregisterBreadcrumbName as Se } from "..
|
|
|
34
35
|
import { DigestPanel as Ce } from "../components/narrative/DigestPanel.js";
|
|
35
36
|
import { GetWidgetDocument as we } from "../../generated/wspace-operations.js";
|
|
36
37
|
import { dashboardSuggestAnchorProps as Te } from "../proactive/entities.js";
|
|
37
|
-
import { memo as
|
|
38
|
-
import { useLocation as
|
|
39
|
-
import { AccessDenied as
|
|
40
|
-
import { usePermissions as
|
|
41
|
-
import { ArrowLeft as
|
|
42
|
-
import { Button as h, IllustratedEmptyState as
|
|
43
|
-
import { useI18n as
|
|
44
|
-
import { useApolloClient as
|
|
38
|
+
import { memo as d, useCallback as f, useEffect as p, useMemo as Ee, useRef as De, useState as m } from "react";
|
|
39
|
+
import { useLocation as Oe, useParams as ke } from "react-router";
|
|
40
|
+
import { AccessDenied as Ae } from "@burdenoff/fe-libs/shared/components";
|
|
41
|
+
import { usePermissions as je } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
42
|
+
import { ArrowLeft as Me, MessageSquare as Ne, Network as Pe, Sparkles as Fe } from "lucide-react";
|
|
43
|
+
import { Button as h, IllustratedEmptyState as Ie } from "@burdenoff/fe-libs/ui";
|
|
44
|
+
import { useI18n as Le } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
45
|
+
import { useApolloClient as Re } from "@apollo/client/react";
|
|
45
46
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
46
|
-
import { useAssistantPageControls as
|
|
47
|
+
import { useAssistantPageControls as ze } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
47
48
|
// src/bigconsole/pages/DashboardViewPage.tsx
|
|
48
|
-
var y =
|
|
49
|
-
let { dashboardId: r } =
|
|
50
|
-
|
|
51
|
-
y &&
|
|
49
|
+
var y = d(function() {
|
|
50
|
+
let { dashboardId: r } = ke(), c = a(), u = i(), { t: d } = Le(), y = ae().asOf !== null, b = Re(), { hasPermission: x, isLoading: S } = je(), C = x(n.DASHBOARD_READ), w = x(n.DASHBOARD_UPDATE), Ve = x(n.DASHBOARD_EXPORT), He = x(n.DASHBOARD_PUBLISH), [Ue, T] = m(!1), [E, D] = m(!1), [We, O] = m(!1), [k, Ge] = m(!1), [A, j] = m(!1), [M, N] = m(!1), [P, Ke] = m(!1), { isInDrilldown: F, getContextFromUrl: qe, getDrilldownMetadata: Je } = me(), I = t((e) => e.currentDashboard), L = t((e) => e.setCurrentDashboard), R = t((e) => e.setGlobalFilterValue), Ye = t((e) => e.viewMode), Xe = t((e) => e.setViewMode);
|
|
51
|
+
p(() => {
|
|
52
|
+
y && Ye === "edit" && Xe("view");
|
|
52
53
|
}, [
|
|
53
54
|
y,
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
Ye,
|
|
56
|
+
Xe
|
|
56
57
|
]);
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
y &&
|
|
60
|
-
}, [y,
|
|
61
|
-
let
|
|
58
|
+
let Ze = e((e) => e.closeConfigPanel);
|
|
59
|
+
p(() => {
|
|
60
|
+
y && Ze();
|
|
61
|
+
}, [y, Ze]);
|
|
62
|
+
let Qe = t((e) => e.clearAllGlobalFilters), $e = t((e) => e.setGlobalFilterValues), z = e((e) => e.widgets), et = Oe(), { activePageId: B, setActivePage: V } = ge(I?.id === r ? I?.pages : void 0), H = e((e) => e.clipboardWidgetId), U = e((e) => e.clipboardAction), W = e((e) => e.clearClipboard), G = e((e) => e.selectWidget), { loading: K, error: q, fetchDashboard: J, updateDashboard: tt } = te(), { createWidget: nt, deleteWidget: rt, duplicateWidget: it, batchUpdatePositions: at, refetch: ot } = ee(B || void 0, r), { createPage: st, updatePage: ct, deletePage: lt, duplicatePage: ut, reorderPages: dt } = ie(), ft = f((e) => {
|
|
62
63
|
let t = e?.parentElement;
|
|
63
64
|
if (!e || !t) return;
|
|
64
65
|
let n = t;
|
|
@@ -77,39 +78,39 @@ var y = u(function() {
|
|
|
77
78
|
a.disconnect(), s.disconnect();
|
|
78
79
|
};
|
|
79
80
|
}, []);
|
|
80
|
-
|
|
81
|
+
p(() => {
|
|
81
82
|
if (!r) c("/dashboards");
|
|
82
|
-
else return
|
|
83
|
-
e ||
|
|
83
|
+
else return $e(he(window.location.search, "filter_")), D(!1), J(r).then((e) => {
|
|
84
|
+
e || D(!0);
|
|
84
85
|
}), () => {
|
|
85
|
-
|
|
86
|
+
L(null), Qe(), D(!1);
|
|
86
87
|
};
|
|
87
88
|
}, [
|
|
88
89
|
r,
|
|
89
90
|
c,
|
|
90
91
|
J,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]),
|
|
95
|
-
if (!
|
|
96
|
-
let e =
|
|
92
|
+
L,
|
|
93
|
+
Qe,
|
|
94
|
+
$e
|
|
95
|
+
]), p(() => {
|
|
96
|
+
if (!F) return;
|
|
97
|
+
let e = qe(), t = Je();
|
|
97
98
|
Object.entries(e).forEach(([e, t]) => {
|
|
98
|
-
|
|
99
|
-
}), t.depth > 0 && (
|
|
99
|
+
R(`ctx_${e}`, t);
|
|
100
|
+
}), t.depth > 0 && (R("__drilldown_depth", t.depth), R("__drilldown_parent", t.parent), R("__drilldown_path", t.path)), Object.keys(e).length;
|
|
100
101
|
}, [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
F,
|
|
103
|
+
qe,
|
|
104
|
+
Je,
|
|
105
|
+
R,
|
|
106
|
+
et.search
|
|
106
107
|
]);
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
if (!
|
|
108
|
+
let pt = De(ot);
|
|
109
|
+
pt.current = ot, p(() => {
|
|
110
|
+
if (!k || !r || y) return;
|
|
110
111
|
let e = null, n = () => {
|
|
111
112
|
if (typeof document < "u" && document.visibilityState !== "visible" || t.getState().viewMode === "edit") return;
|
|
112
|
-
J(r, { silent: !0 }),
|
|
113
|
+
J(r, { silent: !0 }), pt.current();
|
|
113
114
|
let n = Date.now();
|
|
114
115
|
be(e, n) && (e = n, b.refetchQueries({ include: [we] }).catch((e) => {
|
|
115
116
|
console.warn("[DashboardViewPage] Live widget data refresh failed", e);
|
|
@@ -123,15 +124,15 @@ var y = u(function() {
|
|
|
123
124
|
window.clearInterval(i), document.removeEventListener("visibilitychange", a);
|
|
124
125
|
};
|
|
125
126
|
}, [
|
|
126
|
-
|
|
127
|
+
k,
|
|
127
128
|
r,
|
|
128
129
|
y,
|
|
129
130
|
J,
|
|
130
131
|
b
|
|
131
132
|
]);
|
|
132
|
-
let
|
|
133
|
+
let mt = f(async () => {
|
|
133
134
|
if (r && !y) {
|
|
134
|
-
|
|
135
|
+
T(!0);
|
|
135
136
|
try {
|
|
136
137
|
let e = Array.from(z.values());
|
|
137
138
|
if (e.length > 0) {
|
|
@@ -139,38 +140,38 @@ var y = u(function() {
|
|
|
139
140
|
id: e.id,
|
|
140
141
|
position: e.position
|
|
141
142
|
}));
|
|
142
|
-
await
|
|
143
|
+
await at(t);
|
|
143
144
|
}
|
|
144
|
-
|
|
145
|
+
I && await tt({
|
|
145
146
|
id: r,
|
|
146
|
-
name:
|
|
147
|
-
description:
|
|
147
|
+
name: I.name,
|
|
148
|
+
description: I.description
|
|
148
149
|
});
|
|
149
150
|
} catch {} finally {
|
|
150
|
-
|
|
151
|
+
T(!1);
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
154
|
}, [
|
|
154
155
|
r,
|
|
155
156
|
y,
|
|
156
157
|
z,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
]),
|
|
158
|
+
I,
|
|
159
|
+
at,
|
|
160
|
+
tt
|
|
161
|
+
]), ht = f(() => {
|
|
161
162
|
c("/dashboards");
|
|
162
|
-
}, [c]),
|
|
163
|
+
}, [c]), gt = s(y ? void 0 : r), _t = f((e) => c(`/dashboards/${e}`), [c]), Y = f((e) => {
|
|
163
164
|
V(e);
|
|
164
|
-
}, [V]), X =
|
|
165
|
+
}, [V]), X = Ee(() => (I?.pages || []).map((e, t) => ({
|
|
165
166
|
id: e.id,
|
|
166
|
-
name: e.name ||
|
|
167
|
+
name: e.name || d("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: t + 1 }),
|
|
167
168
|
order: e.order ?? 0
|
|
168
|
-
})), [
|
|
169
|
-
|
|
169
|
+
})), [I?.pages, d]), Z = I && I.id === r ? I.name : null, Q = B || I?.pages?.[0]?.id || null;
|
|
170
|
+
p(() => {
|
|
170
171
|
if (r && Z) return xe(r, Z), () => Se(r);
|
|
171
172
|
}, [r, Z]);
|
|
172
|
-
let
|
|
173
|
-
dashboardName: Z ||
|
|
173
|
+
let vt = Ee(() => !S && C && !q && !E && !K && Z !== null ? _e({
|
|
174
|
+
dashboardName: Z || d("bigconsole.dashboards.title", "Dashboards"),
|
|
174
175
|
tabs: X.map((e) => ({
|
|
175
176
|
id: e.id,
|
|
176
177
|
label: e.name
|
|
@@ -181,17 +182,17 @@ var y = u(function() {
|
|
|
181
182
|
S,
|
|
182
183
|
C,
|
|
183
184
|
q,
|
|
184
|
-
|
|
185
|
+
E,
|
|
185
186
|
K,
|
|
186
187
|
Z,
|
|
187
188
|
X,
|
|
188
189
|
Q,
|
|
189
190
|
Y,
|
|
190
|
-
|
|
191
|
+
d
|
|
191
192
|
]);
|
|
192
|
-
|
|
193
|
-
let
|
|
194
|
-
let e = B ||
|
|
193
|
+
ze(vt);
|
|
194
|
+
let yt = f(async () => {
|
|
195
|
+
let e = B || I?.pages?.[0]?.id;
|
|
195
196
|
if (!H || !r || !e) return;
|
|
196
197
|
let t = z.get(H);
|
|
197
198
|
if (!t) {
|
|
@@ -204,13 +205,13 @@ var y = u(function() {
|
|
|
204
205
|
let n = (t.positionY ?? 0) + (t.positionHeight ?? 4);
|
|
205
206
|
return Math.max(e, n);
|
|
206
207
|
}, 0),
|
|
207
|
-
width: Math.min(t.positionWidth ?? 4,
|
|
208
|
+
width: Math.min(t.positionWidth ?? 4, I?.pages.find((t) => t.id === e)?.gridColumns ?? 12),
|
|
208
209
|
height: t.positionHeight ?? 4
|
|
209
|
-
}, i = U === "copy" ?
|
|
210
|
+
}, i = U === "copy" ? d("bigconsole.dashboards.view.widgetCopyTitle", "{{title}} (Copy)", { title: t.title }) : t.title, a = null;
|
|
210
211
|
try {
|
|
211
|
-
a = await
|
|
212
|
+
a = await it(H, n, i);
|
|
212
213
|
} catch {}
|
|
213
|
-
a ||= await
|
|
214
|
+
a ||= await nt({
|
|
214
215
|
pageId: e,
|
|
215
216
|
dashboardId: r,
|
|
216
217
|
type: t.type,
|
|
@@ -224,117 +225,117 @@ var y = u(function() {
|
|
|
224
225
|
position: n,
|
|
225
226
|
refreshInterval: t.refreshInterval ?? void 0,
|
|
226
227
|
metadata: t.metadata
|
|
227
|
-
}), a && (G(a.id), U === "cut" && await
|
|
228
|
+
}), a && (G(a.id), U === "cut" && await rt(H)), W();
|
|
228
229
|
}, [
|
|
229
230
|
H,
|
|
230
231
|
U,
|
|
231
232
|
r,
|
|
232
233
|
B,
|
|
233
|
-
|
|
234
|
+
I,
|
|
234
235
|
z,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
it,
|
|
237
|
+
nt,
|
|
238
|
+
rt,
|
|
238
239
|
G,
|
|
239
240
|
W,
|
|
240
|
-
|
|
241
|
-
]),
|
|
242
|
-
|
|
243
|
-
}, []), [
|
|
244
|
-
|
|
245
|
-
}, []),
|
|
246
|
-
|
|
247
|
-
}, []),
|
|
248
|
-
|
|
249
|
-
}, []), [
|
|
250
|
-
if (!
|
|
251
|
-
let e = (
|
|
241
|
+
d
|
|
242
|
+
]), bt = f(() => {
|
|
243
|
+
O(!0);
|
|
244
|
+
}, []), [xt, St] = m(!1), Ct = f(() => {
|
|
245
|
+
St(!0);
|
|
246
|
+
}, []), wt = f(() => {
|
|
247
|
+
St(!1);
|
|
248
|
+
}, []), Tt = f(() => {
|
|
249
|
+
O(!1);
|
|
250
|
+
}, []), [Et, $] = m(!1), Dt = f(() => $(!0), []), Ot = f(() => $(!1), []), kt = f(async () => {
|
|
251
|
+
if (!I || !r || y) return;
|
|
252
|
+
let e = (I.pages?.length || 0) + 1, t = d("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: e }), n = await st({
|
|
252
253
|
dashboardId: r,
|
|
253
254
|
name: t,
|
|
254
255
|
gridColumns: ve().defaultGridColumns
|
|
255
256
|
});
|
|
256
|
-
n && (
|
|
257
|
-
...
|
|
258
|
-
pages: [...
|
|
257
|
+
n && (L({
|
|
258
|
+
...I,
|
|
259
|
+
pages: [...I.pages || [], n]
|
|
259
260
|
}), V(n.id));
|
|
260
261
|
}, [
|
|
261
|
-
|
|
262
|
+
I,
|
|
262
263
|
r,
|
|
263
264
|
y,
|
|
264
|
-
|
|
265
|
-
|
|
265
|
+
L,
|
|
266
|
+
st,
|
|
266
267
|
V,
|
|
267
|
-
|
|
268
|
-
]),
|
|
269
|
-
|
|
268
|
+
d
|
|
269
|
+
]), At = f(async (e, t) => {
|
|
270
|
+
I && !y && await ct({
|
|
270
271
|
id: e,
|
|
271
272
|
name: t
|
|
272
|
-
}) &&
|
|
273
|
-
...
|
|
274
|
-
pages:
|
|
273
|
+
}) && L({
|
|
274
|
+
...I,
|
|
275
|
+
pages: I.pages?.map((n) => n.id === e ? {
|
|
275
276
|
...n,
|
|
276
277
|
name: t
|
|
277
278
|
} : n)
|
|
278
279
|
});
|
|
279
280
|
}, [
|
|
280
|
-
|
|
281
|
+
I,
|
|
281
282
|
y,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
]),
|
|
285
|
-
if (!
|
|
286
|
-
let t =
|
|
283
|
+
L,
|
|
284
|
+
ct
|
|
285
|
+
]), jt = f(async (e) => {
|
|
286
|
+
if (!I || !r || y) return;
|
|
287
|
+
let t = I.pages?.find((t) => t.id === e);
|
|
287
288
|
if (!t) return;
|
|
288
|
-
let n = await
|
|
289
|
-
n && (
|
|
290
|
-
...
|
|
291
|
-
pages: [...
|
|
289
|
+
let n = await ut(e, d("bigconsole.dashboards.view.pageCopyName", "{{name}} (Copy)", { name: t.name ?? "" }));
|
|
290
|
+
n && (L({
|
|
291
|
+
...I,
|
|
292
|
+
pages: [...I.pages || [], n]
|
|
292
293
|
}), V(n.id));
|
|
293
294
|
}, [
|
|
294
|
-
|
|
295
|
+
I,
|
|
295
296
|
r,
|
|
296
297
|
y,
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
L,
|
|
299
|
+
ut,
|
|
299
300
|
V,
|
|
300
|
-
|
|
301
|
-
]),
|
|
302
|
-
if (!(!
|
|
303
|
-
let t =
|
|
301
|
+
d
|
|
302
|
+
]), Mt = f(async (e) => {
|
|
303
|
+
if (!(!I || y || (I.pages?.length || 0) <= 1) && await lt(e)) {
|
|
304
|
+
let t = I.pages?.filter((t) => t.id !== e).map((e, t) => ({
|
|
304
305
|
...e,
|
|
305
306
|
order: t
|
|
306
307
|
}));
|
|
307
|
-
|
|
308
|
-
...
|
|
308
|
+
L({
|
|
309
|
+
...I,
|
|
309
310
|
pages: t
|
|
310
311
|
});
|
|
311
312
|
let n = t?.[0]?.id;
|
|
312
313
|
B === e && n && V(n, { replace: !0 });
|
|
313
314
|
}
|
|
314
315
|
}, [
|
|
315
|
-
|
|
316
|
+
I,
|
|
316
317
|
y,
|
|
317
|
-
|
|
318
|
+
L,
|
|
318
319
|
B,
|
|
319
|
-
|
|
320
|
+
lt,
|
|
320
321
|
V
|
|
321
|
-
]),
|
|
322
|
-
if (!
|
|
323
|
-
|
|
324
|
-
...
|
|
322
|
+
]), Nt = f(async (e) => {
|
|
323
|
+
if (!I || !r || y) return;
|
|
324
|
+
L({
|
|
325
|
+
...I,
|
|
325
326
|
pages: e.map((e, t) => ({
|
|
326
327
|
...e,
|
|
327
328
|
order: t
|
|
328
329
|
}))
|
|
329
330
|
});
|
|
330
331
|
let t = e.map((e) => e.id);
|
|
331
|
-
await
|
|
332
|
+
await dt(r, t);
|
|
332
333
|
}, [
|
|
333
|
-
|
|
334
|
+
I,
|
|
334
335
|
r,
|
|
335
336
|
y,
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
L,
|
|
338
|
+
dt
|
|
338
339
|
]);
|
|
339
340
|
return S ? /* @__PURE__ */ _("div", {
|
|
340
341
|
className: "flex items-center justify-center h-full",
|
|
@@ -345,7 +346,7 @@ var y = u(function() {
|
|
|
345
346
|
children: /* @__PURE__ */ _(o, {
|
|
346
347
|
headingLevel: 2,
|
|
347
348
|
tone: "danger",
|
|
348
|
-
title:
|
|
349
|
+
title: d("bigconsole.dashboards.view.errorTitle", "Error loading dashboard"),
|
|
349
350
|
description: /* @__PURE__ */ _("span", {
|
|
350
351
|
className: "break-words",
|
|
351
352
|
children: q.message
|
|
@@ -355,30 +356,30 @@ var y = u(function() {
|
|
|
355
356
|
actions: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(h, {
|
|
356
357
|
size: "sm",
|
|
357
358
|
onClick: () => J(r),
|
|
358
|
-
children:
|
|
359
|
+
children: d("bigconsole.dashboards.view.retry", "Retry")
|
|
359
360
|
}), /* @__PURE__ */ _(h, {
|
|
360
361
|
size: "sm",
|
|
361
362
|
variant: "outline",
|
|
362
363
|
onClick: () => c("/dashboards"),
|
|
363
|
-
children:
|
|
364
|
+
children: d("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
|
|
364
365
|
})] })
|
|
365
366
|
})
|
|
366
|
-
}) :
|
|
367
|
+
}) : E ? /* @__PURE__ */ _("div", {
|
|
367
368
|
className: "flex flex-col items-center justify-center h-full",
|
|
368
369
|
style: { padding: "var(--space-pagePadding)" },
|
|
369
|
-
children: /* @__PURE__ */ _(
|
|
370
|
+
children: /* @__PURE__ */ _(Ie, {
|
|
370
371
|
illustration: "empty-data",
|
|
371
|
-
title:
|
|
372
|
-
description: /* @__PURE__ */ v(g, { children: [
|
|
372
|
+
title: d("bigconsole.dashboards.view.notFoundTitle", "Dashboard not found"),
|
|
373
|
+
description: /* @__PURE__ */ v(g, { children: [d("bigconsole.dashboards.view.notFoundDescription", "The dashboard you're looking for doesn't exist or has been deleted."), /* @__PURE__ */ _("span", {
|
|
373
374
|
className: "mt-2 block font-mono text-xs text-text-muted break-all",
|
|
374
|
-
children:
|
|
375
|
+
children: d("bigconsole.dashboards.view.idLabel", "ID: {{id}}", { id: r ?? "" })
|
|
375
376
|
})] }),
|
|
376
377
|
action: /* @__PURE__ */ _(h, {
|
|
377
378
|
onClick: () => c("/dashboards"),
|
|
378
|
-
children:
|
|
379
|
+
children: d("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
|
|
379
380
|
})
|
|
380
381
|
})
|
|
381
|
-
}) : K || !
|
|
382
|
+
}) : K || !I ? /* @__PURE__ */ _("div", {
|
|
382
383
|
className: "flex items-center justify-center h-full",
|
|
383
384
|
role: "status",
|
|
384
385
|
"aria-live": "polite",
|
|
@@ -386,11 +387,11 @@ var y = u(function() {
|
|
|
386
387
|
className: "flex flex-col items-center gap-4",
|
|
387
388
|
children: [/* @__PURE__ */ _("div", { className: "animate-spin w-8 h-8 border-4 border-action-primary-bg border-t-transparent rounded-full" }), /* @__PURE__ */ _("p", {
|
|
388
389
|
className: "text-sm text-text-secondary",
|
|
389
|
-
children:
|
|
390
|
+
children: d("bigconsole.dashboards.view.loading", "Loading dashboard...")
|
|
390
391
|
})]
|
|
391
392
|
})
|
|
392
|
-
}) : /* @__PURE__ */ v(g, { children: [!y && /* @__PURE__ */ _(
|
|
393
|
-
ref:
|
|
393
|
+
}) : /* @__PURE__ */ v(g, { children: [!y && /* @__PURE__ */ _(Be, {}), /* @__PURE__ */ v("div", {
|
|
394
|
+
ref: ft,
|
|
394
395
|
className: "h-full flex flex-col overflow-hidden",
|
|
395
396
|
children: [
|
|
396
397
|
/* @__PURE__ */ _(o, {
|
|
@@ -404,143 +405,170 @@ var y = u(function() {
|
|
|
404
405
|
className: "flex flex-wrap items-center gap-control-gap",
|
|
405
406
|
children: [
|
|
406
407
|
/* @__PURE__ */ v(h, {
|
|
407
|
-
onClick:
|
|
408
|
+
onClick: ht,
|
|
408
409
|
variant: "ghost",
|
|
409
410
|
size: "sm",
|
|
410
|
-
title:
|
|
411
|
-
"aria-label":
|
|
411
|
+
title: d("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
|
|
412
|
+
"aria-label": d("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
|
|
412
413
|
className: "flex-shrink-0",
|
|
413
|
-
children: [/* @__PURE__ */ _(
|
|
414
|
+
children: [/* @__PURE__ */ _(Me, { className: "w-4 h-4 mr-2" }), d("bigconsole.dashboards.view.back", "Back")]
|
|
414
415
|
}),
|
|
415
416
|
/* @__PURE__ */ _("h1", {
|
|
416
417
|
className: "min-w-0 flex-1 truncate text-sm font-semibold text-text-primary",
|
|
417
|
-
title:
|
|
418
|
-
...Te(
|
|
419
|
-
children:
|
|
418
|
+
title: I.name,
|
|
419
|
+
...Te(I.id),
|
|
420
|
+
children: I.name
|
|
420
421
|
}),
|
|
421
|
-
!y && /* @__PURE__ */ _(
|
|
422
|
-
dashboardId:
|
|
422
|
+
!y && /* @__PURE__ */ _(fe, {
|
|
423
|
+
dashboardId: I.id,
|
|
423
424
|
enabled: !y
|
|
424
425
|
}),
|
|
425
426
|
/* @__PURE__ */ _(l, { children: /* @__PURE__ */ _("div", {
|
|
426
427
|
className: "flex-shrink-0",
|
|
427
428
|
children: /* @__PURE__ */ v(h, {
|
|
428
|
-
onClick: () =>
|
|
429
|
-
variant:
|
|
429
|
+
onClick: () => Ke((e) => !e),
|
|
430
|
+
variant: P ? "secondary" : "ghost",
|
|
430
431
|
size: "sm",
|
|
431
|
-
"aria-pressed":
|
|
432
|
+
"aria-pressed": P,
|
|
432
433
|
"data-testid": "dashboard-comments-button",
|
|
433
|
-
title:
|
|
434
|
-
"aria-label":
|
|
435
|
-
children: [/* @__PURE__ */ _(
|
|
434
|
+
title: d("bigconsole.dashboard.comments.openButton", "Console comments"),
|
|
435
|
+
"aria-label": d("bigconsole.dashboard.comments.openButton", "Console comments"),
|
|
436
|
+
children: [/* @__PURE__ */ _(Ne, { className: "w-4 h-4 mr-2" }), d("bigconsole.dashboard.comments.buttonLabel", "Comments")]
|
|
436
437
|
})
|
|
437
438
|
}) }),
|
|
438
439
|
!y && /* @__PURE__ */ _("div", {
|
|
439
440
|
className: "flex-shrink-0",
|
|
440
|
-
children: /* @__PURE__ */ _(
|
|
441
|
-
isLive:
|
|
441
|
+
children: /* @__PURE__ */ _(se, {
|
|
442
|
+
isLive: k,
|
|
442
443
|
onToggle: () => Ge((e) => !e)
|
|
443
444
|
})
|
|
444
445
|
}),
|
|
445
446
|
/* @__PURE__ */ _(l, { children: /* @__PURE__ */ _("div", {
|
|
446
447
|
className: "flex-shrink-0",
|
|
447
448
|
children: /* @__PURE__ */ v(h, {
|
|
448
|
-
onClick: () =>
|
|
449
|
+
onClick: () => N((e) => !e),
|
|
449
450
|
variant: "ghost",
|
|
450
451
|
size: "sm",
|
|
451
|
-
"aria-pressed":
|
|
452
|
-
title:
|
|
453
|
-
"aria-label":
|
|
454
|
-
|
|
452
|
+
"aria-pressed": M,
|
|
453
|
+
title: d("bigconsole.fleet.children.title", "Children"),
|
|
454
|
+
"aria-label": d("bigconsole.fleet.children.title", "Children"),
|
|
455
|
+
"data-testid": "fleet-children-toggle",
|
|
456
|
+
children: [/* @__PURE__ */ _(Pe, { className: "w-4 h-4 mr-2" }), d("bigconsole.fleet.children.title", "Children")]
|
|
457
|
+
})
|
|
458
|
+
}) }),
|
|
459
|
+
/* @__PURE__ */ _(l, { children: /* @__PURE__ */ _("div", {
|
|
460
|
+
className: "flex-shrink-0",
|
|
461
|
+
children: /* @__PURE__ */ v(h, {
|
|
462
|
+
onClick: () => j((e) => !e),
|
|
463
|
+
variant: "ghost",
|
|
464
|
+
size: "sm",
|
|
465
|
+
"aria-pressed": A,
|
|
466
|
+
title: d("bigconsole.dashboards.view.digest", "Console digest"),
|
|
467
|
+
"aria-label": d("bigconsole.dashboards.view.digest", "Console digest"),
|
|
468
|
+
children: [/* @__PURE__ */ _(Fe, { className: "w-4 h-4 mr-2" }), d("bigconsole.dashboards.view.digest", "Digest")]
|
|
455
469
|
})
|
|
456
470
|
}) })
|
|
457
471
|
]
|
|
458
472
|
})
|
|
459
473
|
}),
|
|
460
|
-
|
|
474
|
+
gt.length > 0 && !y && /* @__PURE__ */ _("div", {
|
|
461
475
|
className: "flex-shrink-0 border-b border-[var(--color-border-subtle)] bg-bg-surface px-3 py-2",
|
|
462
476
|
children: /* @__PURE__ */ _(ne, {
|
|
463
|
-
ancestors:
|
|
464
|
-
currentName:
|
|
465
|
-
onNavigate:
|
|
477
|
+
ancestors: gt,
|
|
478
|
+
currentName: I.name,
|
|
479
|
+
onNavigate: _t
|
|
466
480
|
})
|
|
467
481
|
}),
|
|
468
|
-
|
|
482
|
+
M && I && !y && /* @__PURE__ */ _("div", {
|
|
483
|
+
className: "flex-shrink-0 overflow-y-auto border-b border-[var(--color-border-subtle)] bg-bg-surface px-3 py-2 sm:px-4",
|
|
484
|
+
style: { maxHeight: "50vh" },
|
|
485
|
+
"data-testid": "fleet-children-scroll",
|
|
486
|
+
children: /* @__PURE__ */ _("div", {
|
|
487
|
+
className: "mx-auto max-w-3xl",
|
|
488
|
+
children: /* @__PURE__ */ _(re, {
|
|
489
|
+
dashboardId: I.id,
|
|
490
|
+
dashboardName: I.name,
|
|
491
|
+
onClose: () => N(!1),
|
|
492
|
+
onOpenBoard: _t
|
|
493
|
+
}, I.id)
|
|
494
|
+
})
|
|
495
|
+
}),
|
|
496
|
+
A && I && /* @__PURE__ */ _(l, { children: /* @__PURE__ */ _("div", {
|
|
469
497
|
className: "flex-shrink-0 border-b border-[var(--color-border-subtle)] bg-bg-surface px-3 py-2 sm:px-4",
|
|
470
498
|
children: /* @__PURE__ */ _("div", {
|
|
471
499
|
className: "mx-auto max-w-3xl",
|
|
472
500
|
children: /* @__PURE__ */ _(Ce, {
|
|
473
|
-
dashboardId:
|
|
474
|
-
onClose: () =>
|
|
501
|
+
dashboardId: I.id,
|
|
502
|
+
onClose: () => j(!1)
|
|
475
503
|
})
|
|
476
504
|
})
|
|
477
505
|
}) }),
|
|
478
|
-
|
|
479
|
-
currentDashboardId:
|
|
480
|
-
currentDashboardName:
|
|
481
|
-
basePath: `${
|
|
506
|
+
F && !y && /* @__PURE__ */ _(le, {
|
|
507
|
+
currentDashboardId: I.id,
|
|
508
|
+
currentDashboardName: I.name,
|
|
509
|
+
basePath: `${u}/dashboards`
|
|
482
510
|
}),
|
|
483
511
|
/* @__PURE__ */ _("div", {
|
|
484
512
|
className: "flex-1 min-w-0 overflow-hidden",
|
|
485
513
|
children: /* @__PURE__ */ _(oe, {
|
|
486
|
-
dashboardId:
|
|
487
|
-
pageId: B ||
|
|
488
|
-
title:
|
|
489
|
-
onPaste:
|
|
490
|
-
onSave: w && !y ?
|
|
491
|
-
isSaving:
|
|
492
|
-
onReview: y ? void 0 :
|
|
493
|
-
onExport:
|
|
494
|
-
onPublishTemplate:
|
|
514
|
+
dashboardId: I.id,
|
|
515
|
+
pageId: B || I.pages?.[0]?.id,
|
|
516
|
+
title: I.name,
|
|
517
|
+
onPaste: yt,
|
|
518
|
+
onSave: w && !y ? mt : void 0,
|
|
519
|
+
isSaving: Ue,
|
|
520
|
+
onReview: y ? void 0 : Dt,
|
|
521
|
+
onExport: Ve && !y ? bt : void 0,
|
|
522
|
+
onPublishTemplate: He && !y ? Ct : void 0,
|
|
495
523
|
pages: X,
|
|
496
524
|
activePageId: Q ?? void 0,
|
|
497
525
|
onPageChange: Y,
|
|
498
|
-
onPageAdd:
|
|
499
|
-
onPageRename:
|
|
500
|
-
onPageDuplicate:
|
|
501
|
-
onPageDelete:
|
|
502
|
-
onPagesReorder:
|
|
526
|
+
onPageAdd: kt,
|
|
527
|
+
onPageRename: At,
|
|
528
|
+
onPageDuplicate: jt,
|
|
529
|
+
onPageDelete: Mt,
|
|
530
|
+
onPagesReorder: Nt,
|
|
503
531
|
showPageTabs: !0
|
|
504
532
|
})
|
|
505
533
|
}),
|
|
506
|
-
/* @__PURE__ */ _(
|
|
507
|
-
open:
|
|
508
|
-
onClose:
|
|
509
|
-
dashboardId:
|
|
534
|
+
/* @__PURE__ */ _(de, {
|
|
535
|
+
open: Et && !y,
|
|
536
|
+
onClose: Ot,
|
|
537
|
+
dashboardId: I.id,
|
|
510
538
|
pages: X,
|
|
511
539
|
canFix: w && !y
|
|
512
540
|
}),
|
|
513
|
-
/* @__PURE__ */ _(
|
|
514
|
-
isOpen:
|
|
515
|
-
dashboardId:
|
|
516
|
-
dashboardName:
|
|
517
|
-
onClose:
|
|
541
|
+
/* @__PURE__ */ _(ce, {
|
|
542
|
+
isOpen: We && !y,
|
|
543
|
+
dashboardId: I.id,
|
|
544
|
+
dashboardName: I.name,
|
|
545
|
+
onClose: Tt
|
|
518
546
|
}),
|
|
519
|
-
!y && /* @__PURE__ */ _(
|
|
520
|
-
dashboardId:
|
|
521
|
-
isOpen:
|
|
522
|
-
onClose: () =>
|
|
547
|
+
!y && /* @__PURE__ */ _(pe, {
|
|
548
|
+
dashboardId: I.id,
|
|
549
|
+
isOpen: P && !y,
|
|
550
|
+
onClose: () => Ke(!1),
|
|
523
551
|
widgets: Array.from(z.values()).map((e) => ({
|
|
524
552
|
id: e.id,
|
|
525
553
|
title: e.title || e.type
|
|
526
554
|
})),
|
|
527
555
|
onSelectWidget: (e) => G(e)
|
|
528
556
|
}),
|
|
529
|
-
/* @__PURE__ */ _(
|
|
530
|
-
isOpen:
|
|
531
|
-
dashboardId:
|
|
532
|
-
dashboardName:
|
|
533
|
-
dashboardDescription:
|
|
534
|
-
onClose:
|
|
557
|
+
/* @__PURE__ */ _(ue, {
|
|
558
|
+
isOpen: xt && !y,
|
|
559
|
+
dashboardId: I.id,
|
|
560
|
+
dashboardName: I.name,
|
|
561
|
+
dashboardDescription: I.description,
|
|
562
|
+
onClose: wt
|
|
535
563
|
})
|
|
536
564
|
]
|
|
537
|
-
})] }) : /* @__PURE__ */ _(
|
|
538
|
-
title:
|
|
539
|
-
description:
|
|
565
|
+
})] }) : /* @__PURE__ */ _(Ae, {
|
|
566
|
+
title: d("bigconsole.dashboards.view.accessDeniedTitle", "Access Denied"),
|
|
567
|
+
description: d("bigconsole.dashboards.view.accessDeniedDescription", "You don't have permission to view this dashboard.")
|
|
540
568
|
});
|
|
541
|
-
}),
|
|
569
|
+
}), Be = () => (u(), null), b = d(function() {
|
|
542
570
|
let { workspaceId: e } = r();
|
|
543
|
-
return /* @__PURE__ */ _(
|
|
571
|
+
return /* @__PURE__ */ _(c, {
|
|
544
572
|
workspaceId: e,
|
|
545
573
|
children: /* @__PURE__ */ _(y, {})
|
|
546
574
|
});
|