@burdenoff/microfe-bigconsole 2026.1124.1 → 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/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/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/DashboardViewPage.js +290 -287
- package/dist/bigconsole/pages/DashboardsPage.js +13 -13
- 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/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 +1 -1
|
@@ -335,23 +335,23 @@ var bt = "bf-bigconsole-dashboards-view", xt = "bf-bigconsole-dashboards-nested"
|
|
|
335
335
|
g
|
|
336
336
|
]), Yn = d(async (e, t) => {
|
|
337
337
|
t?.stopPropagation();
|
|
338
|
-
let n = g("bigconsole.fleet.detach.confirm", "\"{{name}}\" will keep a plain copy of everything and stop following its master. Detach it?", { name: e.name }),
|
|
338
|
+
let n = H.current, r = () => H.current !== n, i = g("bigconsole.fleet.detach.confirm", "\"{{name}}\" will keep a plain copy of everything and stop following its master. Detach it?", { name: e.name }), a = await c({
|
|
339
339
|
title: g("bigconsole.fleet.detach.title", "Detach from master?"),
|
|
340
|
-
message:
|
|
340
|
+
message: i,
|
|
341
341
|
okButtonTitle: g("bigconsole.fleet.detach.ok", "Detach"),
|
|
342
342
|
cancelButtonTitle: g("bigconsole.fleet.link.cancel", "Cancel")
|
|
343
343
|
});
|
|
344
|
-
if (
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
344
|
+
if ((a === null ? window.confirm(i) : a) && !r()) {
|
|
345
|
+
F(!0);
|
|
346
|
+
try {
|
|
347
|
+
if (await Kt(e.id), await Promise.all([j(), P()]), r()) return;
|
|
348
|
+
U(g("bigconsole.fleet.notice.detached", "\"{{name}}\" no longer follows a master.", { name: e.name }));
|
|
349
|
+
} catch (e) {
|
|
350
|
+
if (r()) return;
|
|
351
|
+
U(e instanceof Error && e.message ? e.message : g("bigconsole.fleet.error.detach", "The board could not be detached."));
|
|
352
|
+
} finally {
|
|
353
|
+
r() || F(!1);
|
|
354
|
+
}
|
|
355
355
|
}
|
|
356
356
|
}, [
|
|
357
357
|
Kt,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for the flags on a linked copy and for restoring it (BOFF-15410). Pure, so they are tested without a
|
|
3
|
+
* browser.
|
|
4
|
+
*/
|
|
5
|
+
export type FlagType = 'MASTER_CHANGED' | 'MASTER_REMOVED';
|
|
6
|
+
export type FlagAnswer = 'ACCEPTED_MASTER' | 'KEPT_LOCAL' | 'REMOVED';
|
|
7
|
+
/** The wording for one changed part. A part this build does not know is shown as the server named it. */
|
|
8
|
+
export declare function changedFieldLabel(field: string): {
|
|
9
|
+
key: string;
|
|
10
|
+
fallback: string;
|
|
11
|
+
} | null;
|
|
12
|
+
/** The answers a flag allows: taking the master's version is not possible when the master removed the widget. */
|
|
13
|
+
export declare function allowedAnswers(type: FlagType | string): FlagAnswer[];
|
|
14
|
+
/** The flags still waiting for the owner. The server returns resolved ones too, newest first. */
|
|
15
|
+
export declare function openFlags<T extends {
|
|
16
|
+
status: string;
|
|
17
|
+
}>(flags: readonly T[]): T[];
|
|
18
|
+
/** Restoring does nothing when no edited widget would go back, none would come back, and the board has no change. */
|
|
19
|
+
export declare function restoreIsEmpty(counts: {
|
|
20
|
+
widgetsRestored: number;
|
|
21
|
+
widgetsBroughtBack: number;
|
|
22
|
+
}): boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// src/bigconsole/utils/fleetFlags.ts
|
|
2
|
+
var e = {
|
|
3
|
+
title: {
|
|
4
|
+
key: "bigconsole.fleet.flags.field.title",
|
|
5
|
+
fallback: "title"
|
|
6
|
+
},
|
|
7
|
+
config: {
|
|
8
|
+
key: "bigconsole.fleet.flags.field.config",
|
|
9
|
+
fallback: "settings"
|
|
10
|
+
},
|
|
11
|
+
drilldown: {
|
|
12
|
+
key: "bigconsole.fleet.flags.field.drilldown",
|
|
13
|
+
fallback: "drilldown"
|
|
14
|
+
},
|
|
15
|
+
translations: {
|
|
16
|
+
key: "bigconsole.fleet.flags.field.translations",
|
|
17
|
+
fallback: "translations"
|
|
18
|
+
},
|
|
19
|
+
actions: {
|
|
20
|
+
key: "bigconsole.fleet.flags.field.actions",
|
|
21
|
+
fallback: "actions"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
function t(t) {
|
|
25
|
+
return e[t] ?? null;
|
|
26
|
+
}
|
|
27
|
+
function n(e) {
|
|
28
|
+
return e === "MASTER_REMOVED" ? ["KEPT_LOCAL", "REMOVED"] : [
|
|
29
|
+
"ACCEPTED_MASTER",
|
|
30
|
+
"KEPT_LOCAL",
|
|
31
|
+
"REMOVED"
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
function r(e) {
|
|
35
|
+
return e.filter((e) => e.status === "OPEN");
|
|
36
|
+
}
|
|
37
|
+
function i(e) {
|
|
38
|
+
return e.widgetsRestored === 0 && e.widgetsBroughtBack === 0;
|
|
39
|
+
}
|
|
40
|
+
export { n as allowedAnswers, t as changedFieldLabel, r as openFlags, i as restoreIsEmpty };
|
|
@@ -48,3 +48,12 @@ export declare function copyCounts(links: readonly FleetLink[]): Map<string, num
|
|
|
48
48
|
* one of these would make a loop, so they are left out of the boards it can be linked to.
|
|
49
49
|
*/
|
|
50
50
|
export declare function descendantIds(dashboardId: string, links: readonly FleetLink[]): Set<string>;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the board a board directly follows, for the panel. The breadcrumb drops masters the caller cannot
|
|
53
|
+
* read, so its last name is the direct master only when that is the one the link names; otherwise it is a master
|
|
54
|
+
* higher up, and naming it would be wrong.
|
|
55
|
+
*/
|
|
56
|
+
export declare function directMasterName(ancestors: ReadonlyArray<{
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
}>, directMasterId: string | null): string | null;
|
|
@@ -61,4 +61,8 @@ function a(e, t) {
|
|
|
61
61
|
}
|
|
62
62
|
return r;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
function o(e, t) {
|
|
65
|
+
let n = e[e.length - 1];
|
|
66
|
+
return n && t !== null && n.id === t ? n.name : null;
|
|
67
|
+
}
|
|
68
|
+
export { n as ancestorIds, t as buildFleetRows, i as copyCounts, a as descendantIds, o as directMasterName, r as pendingMasterId };
|
|
@@ -896,6 +896,13 @@ export type BigConsoleRateDashboardTemplateInput = {
|
|
|
896
896
|
/** Template ID */
|
|
897
897
|
templateId: string | number;
|
|
898
898
|
};
|
|
899
|
+
/** Something a restore or a promote could not carry over exactly. */
|
|
900
|
+
export type BigConsoleRestoreNoticeCode =
|
|
901
|
+
/**
|
|
902
|
+
* The widget's drilldown led to a page the other board does not have, so it now opens
|
|
903
|
+
* that board's default page
|
|
904
|
+
*/
|
|
905
|
+
'DRILLDOWN_PAGE_MISSING';
|
|
899
906
|
/** Input for sharing a dashboard */
|
|
900
907
|
export type BigConsoleShareDashboardInput = {
|
|
901
908
|
/** Dashboard ID to share */
|
|
@@ -1244,6 +1251,35 @@ export type BigConsoleWidgetEventStatus =
|
|
|
1244
1251
|
| 'PROCESSING'
|
|
1245
1252
|
/** Retrying delivery after failure */
|
|
1246
1253
|
| 'RETRYING';
|
|
1254
|
+
/** What the owner can answer a flag with. Leaving a flag open is not answering it. */
|
|
1255
|
+
export type BigConsoleWidgetFlagAnswer =
|
|
1256
|
+
/** Take the master's version. Not available when the master removed the widget. */
|
|
1257
|
+
'ACCEPTED_MASTER'
|
|
1258
|
+
/** Keep the widget as the copy's own. The master never flags it again. */
|
|
1259
|
+
| 'KEPT_LOCAL'
|
|
1260
|
+
/** Remove the widget from the copy. A push does not give it back. */
|
|
1261
|
+
| 'REMOVED';
|
|
1262
|
+
/** How a flag ended */
|
|
1263
|
+
export type BigConsoleWidgetFlagResolution =
|
|
1264
|
+
/** The copy's widget went back to the master's version */
|
|
1265
|
+
'ACCEPTED_MASTER'
|
|
1266
|
+
/** The widget became the copy's own: the master no longer flags it */
|
|
1267
|
+
| 'KEPT_LOCAL'
|
|
1268
|
+
/** The copy stopped following its master */
|
|
1269
|
+
| 'LINK_ENDED'
|
|
1270
|
+
/** The master went back to the version the copy already had */
|
|
1271
|
+
| 'MASTER_REVERTED'
|
|
1272
|
+
/** The copy's widget was removed */
|
|
1273
|
+
| 'REMOVED'
|
|
1274
|
+
/** The master removed the widget, so that flag replaced this one */
|
|
1275
|
+
| 'SUPERSEDED';
|
|
1276
|
+
export type BigConsoleWidgetFlagStatus = 'OPEN' | 'RESOLVED';
|
|
1277
|
+
/** What a flag is about */
|
|
1278
|
+
export type BigConsoleWidgetFlagType =
|
|
1279
|
+
/** The master changed a widget the copy's owner had edited too. The owner's version stays. */
|
|
1280
|
+
'MASTER_CHANGED'
|
|
1281
|
+
/** The master removed a widget the copy still has. It stays on the copy. */
|
|
1282
|
+
| 'MASTER_REMOVED';
|
|
1247
1283
|
/** HTTP method for webhooks - v2.0 */
|
|
1248
1284
|
export type BigConsoleWidgetHttpMethod = 'DELETE' | 'GET' | 'PATCH' | 'POST' | 'PUT';
|
|
1249
1285
|
/** Widget position input - Fixed Grid (legacy v1.2) */
|
|
@@ -5586,6 +5622,25 @@ export type PushToCopiesMutation = {
|
|
|
5586
5622
|
}>;
|
|
5587
5623
|
};
|
|
5588
5624
|
};
|
|
5625
|
+
export type ResolveWidgetFlagMutationVariables = Exact<{
|
|
5626
|
+
flagId: string | number;
|
|
5627
|
+
answer: Types.BigConsoleWidgetFlagAnswer;
|
|
5628
|
+
}>;
|
|
5629
|
+
export type ResolveWidgetFlagMutation = {
|
|
5630
|
+
resolveWidgetFlag: {
|
|
5631
|
+
flag: {
|
|
5632
|
+
id: string;
|
|
5633
|
+
status: Types.BigConsoleWidgetFlagStatus;
|
|
5634
|
+
resolution: Types.BigConsoleWidgetFlagResolution | null;
|
|
5635
|
+
widgetTitle: string;
|
|
5636
|
+
};
|
|
5637
|
+
notices: Array<{
|
|
5638
|
+
code: Types.BigConsoleRestoreNoticeCode;
|
|
5639
|
+
pageName: string;
|
|
5640
|
+
widgetId: string;
|
|
5641
|
+
}>;
|
|
5642
|
+
};
|
|
5643
|
+
};
|
|
5589
5644
|
export type RespondToDashboardLinkMutationVariables = Exact<{
|
|
5590
5645
|
childDashboardId: string | number;
|
|
5591
5646
|
accept: boolean;
|
|
@@ -5598,6 +5653,22 @@ export type RespondToDashboardLinkMutation = {
|
|
|
5598
5653
|
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5599
5654
|
};
|
|
5600
5655
|
};
|
|
5656
|
+
export type RestoreDashboardToOriginalMutationVariables = Exact<{
|
|
5657
|
+
dashboardId: string | number;
|
|
5658
|
+
}>;
|
|
5659
|
+
export type RestoreDashboardToOriginalMutation = {
|
|
5660
|
+
restoreDashboardToOriginal: {
|
|
5661
|
+
dashboardId: string;
|
|
5662
|
+
widgetsRestored: number;
|
|
5663
|
+
widgetsBroughtBack: number;
|
|
5664
|
+
localWidgetsKept: number;
|
|
5665
|
+
notices: Array<{
|
|
5666
|
+
code: Types.BigConsoleRestoreNoticeCode;
|
|
5667
|
+
pageName: string;
|
|
5668
|
+
widgetId: string;
|
|
5669
|
+
}>;
|
|
5670
|
+
};
|
|
5671
|
+
};
|
|
5601
5672
|
export type SetDashboardAsMasterMutationVariables = Exact<{
|
|
5602
5673
|
id: string | number;
|
|
5603
5674
|
}>;
|
|
@@ -5678,6 +5749,21 @@ export type FleetChildrenQuery = {
|
|
|
5678
5749
|
}>;
|
|
5679
5750
|
};
|
|
5680
5751
|
};
|
|
5752
|
+
export type FleetWidgetFlagsQueryVariables = Exact<{
|
|
5753
|
+
dashboardId: string | number;
|
|
5754
|
+
offset?: number | null | undefined;
|
|
5755
|
+
}>;
|
|
5756
|
+
export type FleetWidgetFlagsQuery = {
|
|
5757
|
+
dashboardWidgetFlags: Array<{
|
|
5758
|
+
id: string;
|
|
5759
|
+
widgetId: string;
|
|
5760
|
+
widgetTitle: string;
|
|
5761
|
+
type: Types.BigConsoleWidgetFlagType;
|
|
5762
|
+
status: Types.BigConsoleWidgetFlagStatus;
|
|
5763
|
+
changedFields: Array<string>;
|
|
5764
|
+
createdAt: string;
|
|
5765
|
+
}>;
|
|
5766
|
+
};
|
|
5681
5767
|
export type PreviewPushToCopiesQueryVariables = Exact<{
|
|
5682
5768
|
input: Types.BigConsolePushToCopiesInput;
|
|
5683
5769
|
}>;
|
|
@@ -5704,6 +5790,17 @@ export type PreviewPushToCopiesQuery = {
|
|
|
5704
5790
|
}>;
|
|
5705
5791
|
};
|
|
5706
5792
|
};
|
|
5793
|
+
export type PreviewRestoreDashboardToOriginalQueryVariables = Exact<{
|
|
5794
|
+
dashboardId: string | number;
|
|
5795
|
+
}>;
|
|
5796
|
+
export type PreviewRestoreDashboardToOriginalQuery = {
|
|
5797
|
+
previewRestoreDashboardToOriginal: {
|
|
5798
|
+
dashboardId: string;
|
|
5799
|
+
widgetsRestored: number;
|
|
5800
|
+
widgetsBroughtBack: number;
|
|
5801
|
+
localWidgetsKept: number;
|
|
5802
|
+
};
|
|
5803
|
+
};
|
|
5707
5804
|
export type KpiChangeExplanationFieldsFragment = {
|
|
5708
5805
|
status: Types.BigConsoleKpiChangeStatus;
|
|
5709
5806
|
widgetId: string;
|
|
@@ -9690,14 +9787,18 @@ export declare const CreateLinkedCopyDocument: DocumentNode<CreateLinkedCopyMuta
|
|
|
9690
9787
|
export declare const DetachDashboardDocument: DocumentNode<DetachDashboardMutation, DetachDashboardMutationVariables>;
|
|
9691
9788
|
export declare const LinkDashboardToMasterDocument: DocumentNode<LinkDashboardToMasterMutation, LinkDashboardToMasterMutationVariables>;
|
|
9692
9789
|
export declare const PushToCopiesDocument: DocumentNode<PushToCopiesMutation, PushToCopiesMutationVariables>;
|
|
9790
|
+
export declare const ResolveWidgetFlagDocument: DocumentNode<ResolveWidgetFlagMutation, ResolveWidgetFlagMutationVariables>;
|
|
9693
9791
|
export declare const RespondToDashboardLinkDocument: DocumentNode<RespondToDashboardLinkMutation, RespondToDashboardLinkMutationVariables>;
|
|
9792
|
+
export declare const RestoreDashboardToOriginalDocument: DocumentNode<RestoreDashboardToOriginalMutation, RestoreDashboardToOriginalMutationVariables>;
|
|
9694
9793
|
export declare const SetDashboardAsMasterDocument: DocumentNode<SetDashboardAsMasterMutation, SetDashboardAsMasterMutationVariables>;
|
|
9695
9794
|
export declare const UnsetDashboardAsMasterDocument: DocumentNode<UnsetDashboardAsMasterMutation, UnsetDashboardAsMasterMutationVariables>;
|
|
9696
9795
|
export declare const FleetLinksDocument: DocumentNode<FleetLinksQuery, FleetLinksQueryVariables>;
|
|
9697
9796
|
export declare const FleetBoardNameDocument: DocumentNode<FleetBoardNameQuery, FleetBoardNameQueryVariables>;
|
|
9698
9797
|
export declare const FleetBoardStateDocument: DocumentNode<FleetBoardStateQuery, FleetBoardStateQueryVariables>;
|
|
9699
9798
|
export declare const FleetChildrenDocument: DocumentNode<FleetChildrenQuery, FleetChildrenQueryVariables>;
|
|
9799
|
+
export declare const FleetWidgetFlagsDocument: DocumentNode<FleetWidgetFlagsQuery, FleetWidgetFlagsQueryVariables>;
|
|
9700
9800
|
export declare const PreviewPushToCopiesDocument: DocumentNode<PreviewPushToCopiesQuery, PreviewPushToCopiesQueryVariables>;
|
|
9801
|
+
export declare const PreviewRestoreDashboardToOriginalDocument: DocumentNode<PreviewRestoreDashboardToOriginalQuery, PreviewRestoreDashboardToOriginalQueryVariables>;
|
|
9701
9802
|
export declare const ExplainKpiChangeDocument: DocumentNode<ExplainKpiChangeQuery, ExplainKpiChangeQueryVariables>;
|
|
9702
9803
|
export declare const PreviewBoardMigrationDocument: DocumentNode<PreviewBoardMigrationQuery, PreviewBoardMigrationQueryVariables>;
|
|
9703
9804
|
export declare const ExplainDashboardDocument: DocumentNode<ExplainDashboardQuery, ExplainDashboardQueryVariables>;
|