@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.
Files changed (109) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/fleet/FleetChildrenPanel.d.ts +4 -0
  29. package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +174 -184
  30. package/dist/bigconsole/components/fleet/FleetCopySection.d.ts +13 -0
  31. package/dist/bigconsole/components/fleet/FleetCopySection.js +266 -0
  32. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  33. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  34. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  35. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  36. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  37. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  38. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  39. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  40. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  41. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  42. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  43. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  44. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  45. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  46. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  47. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  48. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  49. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  50. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  51. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  52. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  53. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  54. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  56. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  57. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  58. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  59. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  60. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  61. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  62. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  63. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  64. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  65. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  66. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  67. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  68. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  69. package/dist/bigconsole/hooks/useFleetBreadcrumb.d.ts +8 -1
  70. package/dist/bigconsole/hooks/useFleetBreadcrumb.js +4 -1
  71. package/dist/bigconsole/hooks/useFleetChildren.d.ts +2 -0
  72. package/dist/bigconsole/hooks/useFleetChildren.js +10 -6
  73. package/dist/bigconsole/hooks/useFleetCopyActions.d.ts +23 -0
  74. package/dist/bigconsole/hooks/useFleetCopyActions.js +74 -0
  75. package/dist/bigconsole/hooks/useFleetFlags.d.ts +16 -0
  76. package/dist/bigconsole/hooks/useFleetFlags.js +79 -0
  77. package/dist/bigconsole/hooks/useOwnerBoundRun.d.ts +33 -0
  78. package/dist/bigconsole/hooks/useOwnerBoundRun.js +41 -0
  79. package/dist/bigconsole/pages/AdminPage.js +147 -146
  80. package/dist/bigconsole/pages/DashboardViewPage.js +292 -287
  81. package/dist/bigconsole/pages/DashboardsPage.js +647 -864
  82. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  83. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  84. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  85. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  86. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  87. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  88. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  89. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  90. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  91. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  92. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  93. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  94. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  95. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  96. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  97. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  98. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  99. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  100. package/dist/bigconsole/utils/fleetFlags.d.ts +22 -0
  101. package/dist/bigconsole/utils/fleetFlags.js +40 -0
  102. package/dist/bigconsole/utils/fleetTree.d.ts +9 -0
  103. package/dist/bigconsole/utils/fleetTree.js +5 -1
  104. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  105. package/dist/bigconsole/utils/statusTone.js +44 -0
  106. package/dist/generated/wspace-operations.d.ts +101 -0
  107. package/dist/generated/wspace-operations.js +609 -90
  108. package/dist/generated/wspace-types.js +6 -4
  109. package/package.json +4 -4
@@ -0,0 +1,79 @@
1
+ import "../context/index.js";
2
+ import { useBigConsole as e } from "../context/BigConsoleContext.js";
3
+ import { FleetWidgetFlagsDocument as t } from "../../generated/wspace-operations.js";
4
+ import { openFlags as n } from "../utils/fleetFlags.js";
5
+ import { useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
6
+ import { useApolloClient as c } from "@apollo/client/react";
7
+ // src/bigconsole/hooks/useFleetFlags.ts
8
+ var l = [], u = 100, d = 50;
9
+ function f(f, p) {
10
+ let { workspaceId: m, currentUser: h } = e(), g = c(), _ = `${m ?? ""}:${h?.id ?? ""}:${f ?? ""}`, [v, y] = s({
11
+ key: "",
12
+ flags: l,
13
+ error: null
14
+ }), [b, x] = s(p && !!f), S = o(_), C = o(0);
15
+ a(() => (S.current = _, () => {
16
+ S.current = "", C.current += 1;
17
+ }), [_]);
18
+ let w = r(async () => {
19
+ if (!f) return;
20
+ let e = ++C.current, r = () => S.current === _ && C.current === e;
21
+ try {
22
+ x(!0);
23
+ let e = [];
24
+ for (let n = 0; n < d; n += 1) {
25
+ let r = (await g.query({
26
+ query: t,
27
+ variables: {
28
+ dashboardId: f,
29
+ offset: n * u
30
+ },
31
+ fetchPolicy: "no-cache",
32
+ errorPolicy: "none",
33
+ context: {
34
+ requiredWorkspaceAuth: !0,
35
+ requiredWorkspaceId: m,
36
+ queryDeduplication: !1
37
+ }
38
+ })).data?.dashboardWidgetFlags ?? [];
39
+ if (e.push(...r), r.length < u) break;
40
+ }
41
+ let i = n(e).map((e) => ({
42
+ id: e.id,
43
+ widgetId: e.widgetId,
44
+ widgetTitle: e.widgetTitle,
45
+ type: e.type,
46
+ changedFields: e.changedFields
47
+ }));
48
+ r() && y({
49
+ key: _,
50
+ flags: i,
51
+ error: null
52
+ });
53
+ } catch (e) {
54
+ r() && y({
55
+ key: _,
56
+ flags: l,
57
+ error: e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load the flags")
58
+ });
59
+ } finally {
60
+ r() && x(!1);
61
+ }
62
+ }, [
63
+ g,
64
+ f,
65
+ _,
66
+ m
67
+ ]);
68
+ i(() => {
69
+ p && w();
70
+ }, [p, w]);
71
+ let T = v.key === _;
72
+ return {
73
+ loading: b || p && !T,
74
+ error: T ? v.error : null,
75
+ flags: T ? v.flags : l,
76
+ refetch: w
77
+ };
78
+ }
79
+ export { f as useFleetFlags };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * useOwnerBoundRun (BOFF-15410)
3
+ *
4
+ * Runs an action of a fleet panel, then shows its outcome, then reads the board again, in a way that cannot
5
+ * leak across boards, workspaces or accounts:
6
+ *
7
+ * - the outcome is shown only if the panel is still on the owner (board, workspace and account) the action
8
+ * started for, so an answer that arrives after the person moved on is dropped before it touches any state;
9
+ * - a failed re-read is not a failed action: the action already happened, and the read reports its own failure;
10
+ * - `acting` stays true until the re-read is done, not only until the action returns, so a second click cannot
11
+ * start a second action in the gap.
12
+ *
13
+ * When the owner changes, `onOwnerChange` lets the panel drop the state that belonged to the previous one.
14
+ *
15
+ * Two sections of one panel can share a lock (`useActionLock`), so an action in one holds the buttons of the
16
+ * other: a board that is both a copy and a master must not start a push while a restore is still running.
17
+ * A run that finishes after the panel went away is dropped too: it must not touch a board the person left.
18
+ */
19
+ /** The state of an action lock: which owner has an action running, or null. */
20
+ export type ActionLock = readonly [string | null, (owner: string | null) => void];
21
+ /** One lock for the sections of a panel to share. */
22
+ export declare function useActionLock(): ActionLock;
23
+ interface UseOwnerBoundRunResult {
24
+ acting: boolean;
25
+ /**
26
+ * Notes the owner now and returns a check that stays true only while the panel is still on it. Call it before
27
+ * anything that waits (a confirmation prompt), and check after: the person may have left in the meantime.
28
+ */
29
+ begin: () => () => boolean;
30
+ run: <T>(action: () => Promise<T>, onSuccess: (value: T) => void, onError: (err: unknown) => void) => Promise<void>;
31
+ }
32
+ export declare function useOwnerBoundRun(owner: string, afterwards: () => Promise<void>, onOwnerChange: () => void, lock?: ActionLock): UseOwnerBoundRunResult;
33
+ export {};
@@ -0,0 +1,41 @@
1
+ import { useCallback as e, useEffect as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
2
+ // src/bigconsole/hooks/useOwnerBoundRun.ts
3
+ function a() {
4
+ return i(null);
5
+ }
6
+ function o(a, o, s, c) {
7
+ let l = i(null), [u, d] = c ?? l, f = r(!0), p = r(a), m = r(s);
8
+ n(() => {
9
+ m.current = s;
10
+ }, [s]), t(() => (f.current = !0, () => {
11
+ f.current = !1;
12
+ }), []), t(() => {
13
+ p.current !== a && (p.current = a, m.current());
14
+ }, [a]);
15
+ let h = e(async (e, t, n) => {
16
+ let r = p.current, i = () => !f.current || p.current !== r;
17
+ d(r);
18
+ try {
19
+ let r;
20
+ try {
21
+ r = await e();
22
+ } catch (e) {
23
+ i() || n(e);
24
+ return;
25
+ }
26
+ if (i()) return;
27
+ t(r), await o();
28
+ } finally {
29
+ i() || d(null);
30
+ }
31
+ }, [o, d]), g = e(() => {
32
+ let e = p.current;
33
+ return () => f.current && p.current === e;
34
+ }, []);
35
+ return {
36
+ acting: u === a,
37
+ begin: g,
38
+ run: h
39
+ };
40
+ }
41
+ export { a as useActionLock, o as useOwnerBoundRun };