@burdenoff/microfe-bigconsole 2026.1123.3 → 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.
@@ -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 re from "../hooks/usePageOperations.js";
14
- import { useReconcileAgentTool as c } from "../components/reconcile/useReconcileAgentTool.js";
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 se, { parseUrlToGlobalFilterValues as ce } from "../hooks/useFilterUrlSync.js";
22
- import { LiveCanvasToggle as le } from "../components/dashboard/LiveCanvasToggle.js";
23
- import { ExportDashboardDialog as ue } from "../components/dashboard/ExportDashboardDialog.js";
24
- import { DrilldownBreadcrumb as de } from "../components/dashboard/DrilldownBreadcrumb.js";
25
- import { PublishToStoreDialog as fe } from "../components/dashboard/PublishToStoreDialog.js";
26
- import { DashboardReviewDialog as pe } from "../components/dashboard/DashboardReviewDialog.js";
27
- import { DashboardPresenceBar as me } from "../components/dashboard/DashboardPresenceBar.js";
28
- import { DashboardCommentsDrawer as he } from "../components/dashboard/DashboardCommentsDrawer.js";
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 u, useCallback as d, useEffect as f, useMemo as p, useRef as Ee, useState as m } from "react";
38
- import { useLocation as De, useParams as Oe } from "react-router";
39
- import { AccessDenied as ke } from "@burdenoff/fe-libs/shared/components";
40
- import { usePermissions as Ae } from "@burdenoff/fe-libs/shared/providers/shell";
41
- import { ArrowLeft as je, MessageSquare as Me, Sparkles as Ne } from "lucide-react";
42
- import { Button as h, IllustratedEmptyState as Pe } from "@burdenoff/fe-libs/ui";
43
- import { useI18n as Fe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
44
- import { useApolloClient as Ie } from "@apollo/client/react";
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 Le } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
47
+ import { useAssistantPageControls as ze } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
47
48
  // src/bigconsole/pages/DashboardViewPage.tsx
48
- var y = u(function() {
49
- let { dashboardId: r } = Oe(), c = a(), ie = i(), { t: u } = Fe(), y = ae().asOf !== null, b = Ie(), { hasPermission: x, isLoading: S } = Ae(), C = x(n.DASHBOARD_READ), w = x(n.DASHBOARD_UPDATE), ze = x(n.DASHBOARD_EXPORT), Be = x(n.DASHBOARD_PUBLISH), [Ve, He] = m(!1), [T, E] = m(!1), [Ue, We] = m(!1), [D, Ge] = m(!1), [Ke, qe] = m(!1), [O, Je] = m(!1), { isInDrilldown: k, getContextFromUrl: A, getDrilldownMetadata: j } = se(), M = t((e) => e.currentDashboard), N = t((e) => e.setCurrentDashboard), P = t((e) => e.setGlobalFilterValue), F = t((e) => e.viewMode), I = t((e) => e.setViewMode);
50
- f(() => {
51
- y && F === "edit" && I("view");
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
- F,
55
- I
55
+ Ye,
56
+ Xe
56
57
  ]);
57
- let L = e((e) => e.closeConfigPanel);
58
- f(() => {
59
- y && L();
60
- }, [y, L]);
61
- let R = t((e) => e.clearAllGlobalFilters), Ye = t((e) => e.setGlobalFilterValues), z = e((e) => e.widgets), Xe = De(), { activePageId: B, setActivePage: V } = ge(M?.id === r ? M?.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: Ze } = te(), { createWidget: Qe, deleteWidget: $e, duplicateWidget: et, batchUpdatePositions: tt, refetch: nt } = ee(B || void 0, r), { createPage: rt, updatePage: it, deletePage: at, duplicatePage: ot, reorderPages: st } = re(), ct = d((e) => {
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
- f(() => {
81
+ p(() => {
81
82
  if (!r) c("/dashboards");
82
- else return Ye(ce(window.location.search, "filter_")), E(!1), J(r).then((e) => {
83
- e || E(!0);
83
+ else return $e(he(window.location.search, "filter_")), D(!1), J(r).then((e) => {
84
+ e || D(!0);
84
85
  }), () => {
85
- N(null), R(), E(!1);
86
+ L(null), Qe(), D(!1);
86
87
  };
87
88
  }, [
88
89
  r,
89
90
  c,
90
91
  J,
91
- N,
92
- R,
93
- Ye
94
- ]), f(() => {
95
- if (!k) return;
96
- let e = A(), t = j();
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
- P(`ctx_${e}`, t);
99
- }), t.depth > 0 && (P("__drilldown_depth", t.depth), P("__drilldown_parent", t.parent), P("__drilldown_path", t.path)), Object.keys(e).length;
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
- k,
102
- A,
103
- j,
104
- P,
105
- Xe.search
102
+ F,
103
+ qe,
104
+ Je,
105
+ R,
106
+ et.search
106
107
  ]);
107
- let lt = Ee(nt);
108
- lt.current = nt, f(() => {
109
- if (!D || !r || y) return;
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 }), lt.current();
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
- D,
127
+ k,
127
128
  r,
128
129
  y,
129
130
  J,
130
131
  b
131
132
  ]);
132
- let ut = d(async () => {
133
+ let mt = f(async () => {
133
134
  if (r && !y) {
134
- He(!0);
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 tt(t);
143
+ await at(t);
143
144
  }
144
- M && await Ze({
145
+ I && await tt({
145
146
  id: r,
146
- name: M.name,
147
- description: M.description
147
+ name: I.name,
148
+ description: I.description
148
149
  });
149
150
  } catch {} finally {
150
- He(!1);
151
+ T(!1);
151
152
  }
152
153
  }
153
154
  }, [
154
155
  r,
155
156
  y,
156
157
  z,
157
- M,
158
- tt,
159
- Ze
160
- ]), dt = d(() => {
158
+ I,
159
+ at,
160
+ tt
161
+ ]), ht = f(() => {
161
162
  c("/dashboards");
162
- }, [c]), ft = s(y ? void 0 : r), pt = d((e) => c(`/dashboards/${e}`), [c]), Y = d((e) => {
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 = p(() => (M?.pages || []).map((e, t) => ({
165
+ }, [V]), X = Ee(() => (I?.pages || []).map((e, t) => ({
165
166
  id: e.id,
166
- name: e.name || u("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: t + 1 }),
167
+ name: e.name || d("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: t + 1 }),
167
168
  order: e.order ?? 0
168
- })), [M?.pages, u]), Z = M && M.id === r ? M.name : null, Q = B || M?.pages?.[0]?.id || null;
169
- f(() => {
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 mt = p(() => !S && C && !q && !T && !K && Z !== null ? _e({
173
- dashboardName: Z || u("bigconsole.dashboards.title", "Dashboards"),
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
- T,
185
+ E,
185
186
  K,
186
187
  Z,
187
188
  X,
188
189
  Q,
189
190
  Y,
190
- u
191
+ d
191
192
  ]);
192
- Le(mt);
193
- let ht = d(async () => {
194
- let e = B || M?.pages?.[0]?.id;
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, M?.pages.find((t) => t.id === e)?.gridColumns ?? 12),
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" ? u("bigconsole.dashboards.view.widgetCopyTitle", "{{title}} (Copy)", { title: t.title }) : t.title, a = null;
210
+ }, i = U === "copy" ? d("bigconsole.dashboards.view.widgetCopyTitle", "{{title}} (Copy)", { title: t.title }) : t.title, a = null;
210
211
  try {
211
- a = await et(H, n, i);
212
+ a = await it(H, n, i);
212
213
  } catch {}
213
- a ||= await Qe({
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 $e(H)), W();
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
- M,
234
+ I,
234
235
  z,
235
- et,
236
- Qe,
237
- $e,
236
+ it,
237
+ nt,
238
+ rt,
238
239
  G,
239
240
  W,
240
- u
241
- ]), gt = d(() => {
242
- We(!0);
243
- }, []), [_t, vt] = m(!1), yt = d(() => {
244
- vt(!0);
245
- }, []), bt = d(() => {
246
- vt(!1);
247
- }, []), xt = d(() => {
248
- We(!1);
249
- }, []), [St, $] = m(!1), Ct = d(() => $(!0), []), wt = d(() => $(!1), []), Tt = d(async () => {
250
- if (!M || !r || y) return;
251
- let e = (M.pages?.length || 0) + 1, t = u("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: e }), n = await rt({
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 && (N({
257
- ...M,
258
- pages: [...M.pages || [], n]
257
+ n && (L({
258
+ ...I,
259
+ pages: [...I.pages || [], n]
259
260
  }), V(n.id));
260
261
  }, [
261
- M,
262
+ I,
262
263
  r,
263
264
  y,
264
- N,
265
- rt,
265
+ L,
266
+ st,
266
267
  V,
267
- u
268
- ]), Et = d(async (e, t) => {
269
- M && !y && await it({
268
+ d
269
+ ]), At = f(async (e, t) => {
270
+ I && !y && await ct({
270
271
  id: e,
271
272
  name: t
272
- }) && N({
273
- ...M,
274
- pages: M.pages?.map((n) => n.id === e ? {
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
- M,
281
+ I,
281
282
  y,
282
- N,
283
- it
284
- ]), Dt = d(async (e) => {
285
- if (!M || !r || y) return;
286
- let t = M.pages?.find((t) => t.id === e);
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 ot(e, u("bigconsole.dashboards.view.pageCopyName", "{{name}} (Copy)", { name: t.name ?? "" }));
289
- n && (N({
290
- ...M,
291
- pages: [...M.pages || [], n]
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
- M,
295
+ I,
295
296
  r,
296
297
  y,
297
- N,
298
- ot,
298
+ L,
299
+ ut,
299
300
  V,
300
- u
301
- ]), Ot = d(async (e) => {
302
- if (!(!M || y || (M.pages?.length || 0) <= 1) && await at(e)) {
303
- let t = M.pages?.filter((t) => t.id !== e).map((e, 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
- N({
308
- ...M,
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
- M,
316
+ I,
316
317
  y,
317
- N,
318
+ L,
318
319
  B,
319
- at,
320
+ lt,
320
321
  V
321
- ]), kt = d(async (e) => {
322
- if (!M || !r || y) return;
323
- N({
324
- ...M,
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 st(r, t);
332
+ await dt(r, t);
332
333
  }, [
333
- M,
334
+ I,
334
335
  r,
335
336
  y,
336
- N,
337
- st
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: u("bigconsole.dashboards.view.errorTitle", "Error loading dashboard"),
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: u("bigconsole.dashboards.view.retry", "Retry")
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: u("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
364
+ children: d("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
364
365
  })] })
365
366
  })
366
- }) : T ? /* @__PURE__ */ _("div", {
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__ */ _(Pe, {
370
+ children: /* @__PURE__ */ _(Ie, {
370
371
  illustration: "empty-data",
371
- title: u("bigconsole.dashboards.view.notFoundTitle", "Dashboard not found"),
372
- description: /* @__PURE__ */ v(g, { children: [u("bigconsole.dashboards.view.notFoundDescription", "The dashboard you're looking for doesn't exist or has been deleted."), /* @__PURE__ */ _("span", {
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: u("bigconsole.dashboards.view.idLabel", "ID: {{id}}", { id: r ?? "" })
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: u("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
379
+ children: d("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
379
380
  })
380
381
  })
381
- }) : K || !M ? /* @__PURE__ */ _("div", {
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: u("bigconsole.dashboards.view.loading", "Loading dashboard...")
390
+ children: d("bigconsole.dashboards.view.loading", "Loading dashboard...")
390
391
  })]
391
392
  })
392
- }) : /* @__PURE__ */ v(g, { children: [!y && /* @__PURE__ */ _(Re, {}), /* @__PURE__ */ v("div", {
393
- ref: ct,
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: dt,
408
+ onClick: ht,
408
409
  variant: "ghost",
409
410
  size: "sm",
410
- title: u("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
411
- "aria-label": u("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
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__ */ _(je, { className: "w-4 h-4 mr-2" }), u("bigconsole.dashboards.view.back", "Back")]
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: M.name,
418
- ...Te(M.id),
419
- children: M.name
418
+ title: I.name,
419
+ ...Te(I.id),
420
+ children: I.name
420
421
  }),
421
- !y && /* @__PURE__ */ _(me, {
422
- dashboardId: M.id,
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: () => Je((e) => !e),
429
- variant: O ? "secondary" : "ghost",
429
+ onClick: () => Ke((e) => !e),
430
+ variant: P ? "secondary" : "ghost",
430
431
  size: "sm",
431
- "aria-pressed": O,
432
+ "aria-pressed": P,
432
433
  "data-testid": "dashboard-comments-button",
433
- title: u("bigconsole.dashboard.comments.openButton", "Console comments"),
434
- "aria-label": u("bigconsole.dashboard.comments.openButton", "Console comments"),
435
- children: [/* @__PURE__ */ _(Me, { className: "w-4 h-4 mr-2" }), u("bigconsole.dashboard.comments.buttonLabel", "Comments")]
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__ */ _(le, {
441
- isLive: D,
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: () => qe((e) => !e),
449
+ onClick: () => N((e) => !e),
449
450
  variant: "ghost",
450
451
  size: "sm",
451
- "aria-pressed": Ke,
452
- title: u("bigconsole.dashboards.view.digest", "Console digest"),
453
- "aria-label": u("bigconsole.dashboards.view.digest", "Console digest"),
454
- children: [/* @__PURE__ */ _(Ne, { className: "w-4 h-4 mr-2" }), u("bigconsole.dashboards.view.digest", "Digest")]
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
- ft.length > 0 && !y && /* @__PURE__ */ _("div", {
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: ft,
464
- currentName: M.name,
465
- onNavigate: pt
477
+ ancestors: gt,
478
+ currentName: I.name,
479
+ onNavigate: _t
466
480
  })
467
481
  }),
468
- Ke && M && /* @__PURE__ */ _(l, { children: /* @__PURE__ */ _("div", {
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: M.id,
474
- onClose: () => qe(!1)
501
+ dashboardId: I.id,
502
+ onClose: () => j(!1)
475
503
  })
476
504
  })
477
505
  }) }),
478
- k && !y && /* @__PURE__ */ _(de, {
479
- currentDashboardId: M.id,
480
- currentDashboardName: M.name,
481
- basePath: `${ie}/dashboards`
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: M.id,
487
- pageId: B || M.pages?.[0]?.id,
488
- title: M.name,
489
- onPaste: ht,
490
- onSave: w && !y ? ut : void 0,
491
- isSaving: Ve,
492
- onReview: y ? void 0 : Ct,
493
- onExport: ze && !y ? gt : void 0,
494
- onPublishTemplate: Be && !y ? yt : void 0,
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: Tt,
499
- onPageRename: Et,
500
- onPageDuplicate: Dt,
501
- onPageDelete: Ot,
502
- onPagesReorder: kt,
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__ */ _(pe, {
507
- open: St && !y,
508
- onClose: wt,
509
- dashboardId: M.id,
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__ */ _(ue, {
514
- isOpen: Ue && !y,
515
- dashboardId: M.id,
516
- dashboardName: M.name,
517
- onClose: xt
541
+ /* @__PURE__ */ _(ce, {
542
+ isOpen: We && !y,
543
+ dashboardId: I.id,
544
+ dashboardName: I.name,
545
+ onClose: Tt
518
546
  }),
519
- !y && /* @__PURE__ */ _(he, {
520
- dashboardId: M.id,
521
- isOpen: O && !y,
522
- onClose: () => Je(!1),
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__ */ _(fe, {
530
- isOpen: _t && !y,
531
- dashboardId: M.id,
532
- dashboardName: M.name,
533
- dashboardDescription: M.description,
534
- onClose: bt
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__ */ _(ke, {
538
- title: u("bigconsole.dashboards.view.accessDeniedTitle", "Access Denied"),
539
- description: u("bigconsole.dashboards.view.accessDeniedDescription", "You don't have permission to view this dashboard.")
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
- }), Re = () => (c(), null), b = u(function() {
569
+ }), Be = () => (u(), null), b = d(function() {
542
570
  let { workspaceId: e } = r();
543
- return /* @__PURE__ */ _(ie, {
571
+ return /* @__PURE__ */ _(c, {
544
572
  workspaceId: e,
545
573
  children: /* @__PURE__ */ _(y, {})
546
574
  });