@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for showing what a push to copies did (BOFF-15410): the tone of a copy's state, and the counts the
|
|
3
|
+
* panel shows. Pure, so they are tested without a browser.
|
|
4
|
+
*/
|
|
5
|
+
export type PushCopyState = 'APPLIED' | 'BLOCKED' | 'INCOMPATIBLE' | 'NOT_SELECTED';
|
|
6
|
+
export type PushTone = 'success' | 'warning' | 'error' | 'muted';
|
|
7
|
+
/** How a copy's state is drawn: a copy that took the push is calm, one that was skipped or cannot take it is not. */
|
|
8
|
+
export declare function pushTone(state: PushCopyState | string): PushTone;
|
|
9
|
+
export interface PushCopyCounts {
|
|
10
|
+
applied: number;
|
|
11
|
+
blocked: number;
|
|
12
|
+
incompatible: number;
|
|
13
|
+
notSelected: number;
|
|
14
|
+
}
|
|
15
|
+
/** How many copies ended in each state, for the line above the per-copy rows. */
|
|
16
|
+
export declare function countPushStates(copies: ReadonlyArray<{
|
|
17
|
+
state: PushCopyState | string;
|
|
18
|
+
}>): PushCopyCounts;
|
|
19
|
+
/** A push has nothing to do when no copy would receive or update a widget and none would be flagged. */
|
|
20
|
+
export declare function pushIsEmpty(result: {
|
|
21
|
+
widgetsAdded: number;
|
|
22
|
+
widgetsUpdated: number;
|
|
23
|
+
flagsRaised: number;
|
|
24
|
+
}): boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/bigconsole/utils/fleetPush.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
switch (e) {
|
|
4
|
+
case "APPLIED": return "success";
|
|
5
|
+
case "BLOCKED": return "warning";
|
|
6
|
+
case "INCOMPATIBLE": return "error";
|
|
7
|
+
default: return "muted";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function t(e) {
|
|
11
|
+
let t = {
|
|
12
|
+
applied: 0,
|
|
13
|
+
blocked: 0,
|
|
14
|
+
incompatible: 0,
|
|
15
|
+
notSelected: 0
|
|
16
|
+
};
|
|
17
|
+
for (let n of e) n.state === "APPLIED" ? t.applied += 1 : n.state === "BLOCKED" ? t.blocked += 1 : n.state === "INCOMPATIBLE" ? t.incompatible += 1 : t.notSelected += 1;
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
function n(e) {
|
|
21
|
+
return e.widgetsAdded === 0 && e.widgetsUpdated === 0 && e.flagsRaised === 0;
|
|
22
|
+
}
|
|
23
|
+
export { t as countPushStates, n as pushIsEmpty, e as pushTone };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/bigconsole/utils/legacyChartRows.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (typeof e != "object" || !e) return !1;
|
|
4
|
+
let { name: t, data: n } = e;
|
|
5
|
+
return typeof t == "string" && Array.isArray(n);
|
|
6
|
+
}
|
|
7
|
+
function t(t) {
|
|
8
|
+
if (typeof t != "object" || !t || Array.isArray(t)) return !1;
|
|
9
|
+
let { labels: n, datasets: r } = t;
|
|
10
|
+
return Array.isArray(n) && Array.isArray(r) && r.every(e);
|
|
11
|
+
}
|
|
12
|
+
function n(e) {
|
|
13
|
+
return t(e) ? e.labels.map((t, n) => {
|
|
14
|
+
let r = { name: t };
|
|
15
|
+
for (let t of e.datasets) r[t.name.toLowerCase()] = t.data[n];
|
|
16
|
+
return r;
|
|
17
|
+
}) : null;
|
|
18
|
+
}
|
|
19
|
+
export { n as legacyChartToRows };
|
|
@@ -282,6 +282,13 @@ export type BigConsoleCreateGlobalFilterInput = {
|
|
|
282
282
|
/** Filter type */
|
|
283
283
|
type: BigConsoleFilterType;
|
|
284
284
|
};
|
|
285
|
+
/** Input for creating a new board that follows a master */
|
|
286
|
+
export type BigConsoleCreateLinkedCopyInput = {
|
|
287
|
+
/** The master board to copy and follow */
|
|
288
|
+
masterDashboardId: string | number;
|
|
289
|
+
/** Name of the new board */
|
|
290
|
+
name: string;
|
|
291
|
+
};
|
|
285
292
|
/** Input for creating a widget action inline (during widget creation) */
|
|
286
293
|
export type BigConsoleCreateWidgetActionInlineInput = {
|
|
287
294
|
/** Confirmation dialog configuration */
|
|
@@ -813,6 +820,37 @@ export type BigConsoleNarrativeTrigger =
|
|
|
813
820
|
| 'MANUAL'
|
|
814
821
|
/** A FluidGrids scheduled workflow invoked the console digest. */
|
|
815
822
|
| 'SCHEDULED';
|
|
823
|
+
/** Where one copy stands after a push, or in a preview of one */
|
|
824
|
+
export type BigConsolePushCopyState =
|
|
825
|
+
/** The copy received the widgets it lacked, or already had them all */
|
|
826
|
+
'APPLIED'
|
|
827
|
+
/** Never reached: a board above it did not take the push. The result names that board. */
|
|
828
|
+
| 'BLOCKED'
|
|
829
|
+
/**
|
|
830
|
+
* A widget the copy would receive cannot work, so the copy received nothing. The
|
|
831
|
+
* reason says why.
|
|
832
|
+
*/
|
|
833
|
+
| 'INCOMPATIBLE'
|
|
834
|
+
/** Not one of the copies chosen for the push */
|
|
835
|
+
| 'NOT_SELECTED';
|
|
836
|
+
/** How far a push of a master's widgets reaches */
|
|
837
|
+
export type BigConsolePushScope =
|
|
838
|
+
/** The direct copies, and the copies of those copies, level by level */
|
|
839
|
+
'ALL_UNDER'
|
|
840
|
+
/** Only the master's direct copies */
|
|
841
|
+
| 'DIRECT_COPIES';
|
|
842
|
+
/** Input for pushing a master's widgets to its copies */
|
|
843
|
+
export type BigConsolePushToCopiesInput = {
|
|
844
|
+
/**
|
|
845
|
+
* Direct copies to push to. Leave out to push to all of them. With ALL_UNDER, the
|
|
846
|
+
* copies of a chosen copy follow it.
|
|
847
|
+
*/
|
|
848
|
+
copyIds?: Array<string | number> | null | undefined;
|
|
849
|
+
/** The master whose widgets are pushed. The caller must be able to write to it. */
|
|
850
|
+
masterDashboardId: string | number;
|
|
851
|
+
/** How far the push reaches. Defaults to the direct copies only. */
|
|
852
|
+
scope?: BigConsolePushScope | null | undefined;
|
|
853
|
+
};
|
|
816
854
|
/**
|
|
817
855
|
* Access a query grant gives to one declared field. A field the grant does not list
|
|
818
856
|
* stays outside the viewer's schema (omitted).
|
|
@@ -5468,6 +5506,38 @@ export type GetFilterPresetsQuery = {
|
|
|
5468
5506
|
updatedAt: string;
|
|
5469
5507
|
}>;
|
|
5470
5508
|
};
|
|
5509
|
+
export type FleetPushResultFragment = {
|
|
5510
|
+
preview: boolean;
|
|
5511
|
+
scope: Types.BigConsolePushScope;
|
|
5512
|
+
appliedCount: number;
|
|
5513
|
+
widgetsAdded: number;
|
|
5514
|
+
widgetsUpdated: number;
|
|
5515
|
+
flagsRaised: number;
|
|
5516
|
+
copies: Array<{
|
|
5517
|
+
dashboardId: string;
|
|
5518
|
+
name: string | null;
|
|
5519
|
+
level: number;
|
|
5520
|
+
state: Types.BigConsolePushCopyState;
|
|
5521
|
+
widgetCount: number;
|
|
5522
|
+
widgetsUpdated: number;
|
|
5523
|
+
flagsRaised: number;
|
|
5524
|
+
reasonCode: string | null;
|
|
5525
|
+
reason: string | null;
|
|
5526
|
+
blockedByDashboardId: string | null;
|
|
5527
|
+
blockedByName: string | null;
|
|
5528
|
+
}>;
|
|
5529
|
+
};
|
|
5530
|
+
export type CreateLinkedCopyMutationVariables = Exact<{
|
|
5531
|
+
input: Types.BigConsoleCreateLinkedCopyInput;
|
|
5532
|
+
}>;
|
|
5533
|
+
export type CreateLinkedCopyMutation = {
|
|
5534
|
+
createLinkedCopy: {
|
|
5535
|
+
id: string;
|
|
5536
|
+
name: string;
|
|
5537
|
+
isMaster: boolean;
|
|
5538
|
+
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5539
|
+
};
|
|
5540
|
+
};
|
|
5471
5541
|
export type DetachDashboardMutationVariables = Exact<{
|
|
5472
5542
|
id: string | number;
|
|
5473
5543
|
}>;
|
|
@@ -5490,6 +5560,32 @@ export type LinkDashboardToMasterMutation = {
|
|
|
5490
5560
|
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5491
5561
|
};
|
|
5492
5562
|
};
|
|
5563
|
+
export type PushToCopiesMutationVariables = Exact<{
|
|
5564
|
+
input: Types.BigConsolePushToCopiesInput;
|
|
5565
|
+
}>;
|
|
5566
|
+
export type PushToCopiesMutation = {
|
|
5567
|
+
pushToCopies: {
|
|
5568
|
+
preview: boolean;
|
|
5569
|
+
scope: Types.BigConsolePushScope;
|
|
5570
|
+
appliedCount: number;
|
|
5571
|
+
widgetsAdded: number;
|
|
5572
|
+
widgetsUpdated: number;
|
|
5573
|
+
flagsRaised: number;
|
|
5574
|
+
copies: Array<{
|
|
5575
|
+
dashboardId: string;
|
|
5576
|
+
name: string | null;
|
|
5577
|
+
level: number;
|
|
5578
|
+
state: Types.BigConsolePushCopyState;
|
|
5579
|
+
widgetCount: number;
|
|
5580
|
+
widgetsUpdated: number;
|
|
5581
|
+
flagsRaised: number;
|
|
5582
|
+
reasonCode: string | null;
|
|
5583
|
+
reason: string | null;
|
|
5584
|
+
blockedByDashboardId: string | null;
|
|
5585
|
+
blockedByName: string | null;
|
|
5586
|
+
}>;
|
|
5587
|
+
};
|
|
5588
|
+
};
|
|
5493
5589
|
export type RespondToDashboardLinkMutationVariables = Exact<{
|
|
5494
5590
|
childDashboardId: string | number;
|
|
5495
5591
|
accept: boolean;
|
|
@@ -5502,6 +5598,28 @@ export type RespondToDashboardLinkMutation = {
|
|
|
5502
5598
|
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5503
5599
|
};
|
|
5504
5600
|
};
|
|
5601
|
+
export type SetDashboardAsMasterMutationVariables = Exact<{
|
|
5602
|
+
id: string | number;
|
|
5603
|
+
}>;
|
|
5604
|
+
export type SetDashboardAsMasterMutation = {
|
|
5605
|
+
setDashboardAsMaster: {
|
|
5606
|
+
id: string;
|
|
5607
|
+
name: string;
|
|
5608
|
+
isMaster: boolean;
|
|
5609
|
+
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5610
|
+
};
|
|
5611
|
+
};
|
|
5612
|
+
export type UnsetDashboardAsMasterMutationVariables = Exact<{
|
|
5613
|
+
id: string | number;
|
|
5614
|
+
}>;
|
|
5615
|
+
export type UnsetDashboardAsMasterMutation = {
|
|
5616
|
+
unsetDashboardAsMaster: {
|
|
5617
|
+
id: string;
|
|
5618
|
+
name: string;
|
|
5619
|
+
isMaster: boolean;
|
|
5620
|
+
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5621
|
+
};
|
|
5622
|
+
};
|
|
5505
5623
|
export type FleetLinksQueryVariables = Exact<{
|
|
5506
5624
|
[key: string]: never;
|
|
5507
5625
|
}>;
|
|
@@ -5526,6 +5644,66 @@ export type FleetBoardNameQuery = {
|
|
|
5526
5644
|
name: string;
|
|
5527
5645
|
} | null;
|
|
5528
5646
|
};
|
|
5647
|
+
export type FleetBoardStateQueryVariables = Exact<{
|
|
5648
|
+
id: string | number;
|
|
5649
|
+
}>;
|
|
5650
|
+
export type FleetBoardStateQuery = {
|
|
5651
|
+
getDashboard: {
|
|
5652
|
+
id: string;
|
|
5653
|
+
name: string;
|
|
5654
|
+
isMaster: boolean;
|
|
5655
|
+
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5656
|
+
} | null;
|
|
5657
|
+
};
|
|
5658
|
+
export type FleetChildrenQueryVariables = Exact<{
|
|
5659
|
+
masterDashboardId: string | number;
|
|
5660
|
+
}>;
|
|
5661
|
+
export type FleetChildrenQuery = {
|
|
5662
|
+
dashboardChildren: {
|
|
5663
|
+
masterDashboardId: string;
|
|
5664
|
+
total: number;
|
|
5665
|
+
active: number;
|
|
5666
|
+
pending: number;
|
|
5667
|
+
behind: number;
|
|
5668
|
+
hiddenCount: number;
|
|
5669
|
+
children: Array<{
|
|
5670
|
+
dashboardId: string;
|
|
5671
|
+
name: string;
|
|
5672
|
+
ownerId: string;
|
|
5673
|
+
isMaster: boolean;
|
|
5674
|
+
linkStatus: Types.BigConsoleDashboardLinkStatus;
|
|
5675
|
+
behindMaster: boolean;
|
|
5676
|
+
missingWidgetCount: number | null;
|
|
5677
|
+
openFlagCount: number;
|
|
5678
|
+
}>;
|
|
5679
|
+
};
|
|
5680
|
+
};
|
|
5681
|
+
export type PreviewPushToCopiesQueryVariables = Exact<{
|
|
5682
|
+
input: Types.BigConsolePushToCopiesInput;
|
|
5683
|
+
}>;
|
|
5684
|
+
export type PreviewPushToCopiesQuery = {
|
|
5685
|
+
previewPushToCopies: {
|
|
5686
|
+
preview: boolean;
|
|
5687
|
+
scope: Types.BigConsolePushScope;
|
|
5688
|
+
appliedCount: number;
|
|
5689
|
+
widgetsAdded: number;
|
|
5690
|
+
widgetsUpdated: number;
|
|
5691
|
+
flagsRaised: number;
|
|
5692
|
+
copies: Array<{
|
|
5693
|
+
dashboardId: string;
|
|
5694
|
+
name: string | null;
|
|
5695
|
+
level: number;
|
|
5696
|
+
state: Types.BigConsolePushCopyState;
|
|
5697
|
+
widgetCount: number;
|
|
5698
|
+
widgetsUpdated: number;
|
|
5699
|
+
flagsRaised: number;
|
|
5700
|
+
reasonCode: string | null;
|
|
5701
|
+
reason: string | null;
|
|
5702
|
+
blockedByDashboardId: string | null;
|
|
5703
|
+
blockedByName: string | null;
|
|
5704
|
+
}>;
|
|
5705
|
+
};
|
|
5706
|
+
};
|
|
5529
5707
|
export type KpiChangeExplanationFieldsFragment = {
|
|
5530
5708
|
status: Types.BigConsoleKpiChangeStatus;
|
|
5531
5709
|
widgetId: string;
|
|
@@ -9357,6 +9535,7 @@ export declare const DataSinkPageInfoFieldsFragmentDoc: DocumentNode<DataSinkPag
|
|
|
9357
9535
|
export declare const QueryRelationFieldsFragmentDoc: DocumentNode<QueryRelationFieldsFragment, unknown>;
|
|
9358
9536
|
export declare const QueryGrantFieldsFragmentDoc: DocumentNode<QueryGrantFieldsFragment, unknown>;
|
|
9359
9537
|
export declare const FilterPresetFieldsFragmentDoc: DocumentNode<FilterPresetFieldsFragment, unknown>;
|
|
9538
|
+
export declare const FleetPushResultFragmentDoc: DocumentNode<FleetPushResultFragment, unknown>;
|
|
9360
9539
|
export declare const KpiChangeFindingFieldsFragmentDoc: DocumentNode<KpiChangeFindingFieldsFragment, unknown>;
|
|
9361
9540
|
export declare const KpiChangeExplanationFieldsFragmentDoc: DocumentNode<KpiChangeExplanationFieldsFragment, unknown>;
|
|
9362
9541
|
export declare const NarrativeFieldsFragmentDoc: DocumentNode<NarrativeFieldsFragment, unknown>;
|
|
@@ -9507,11 +9686,18 @@ export declare const UpdateFilterPresetDocument: DocumentNode<UpdateFilterPreset
|
|
|
9507
9686
|
export declare const GetDefaultFilterPresetDocument: DocumentNode<GetDefaultFilterPresetQuery, GetDefaultFilterPresetQueryVariables>;
|
|
9508
9687
|
export declare const GetFilterPresetDocument: DocumentNode<GetFilterPresetQuery, GetFilterPresetQueryVariables>;
|
|
9509
9688
|
export declare const GetFilterPresetsDocument: DocumentNode<GetFilterPresetsQuery, GetFilterPresetsQueryVariables>;
|
|
9689
|
+
export declare const CreateLinkedCopyDocument: DocumentNode<CreateLinkedCopyMutation, CreateLinkedCopyMutationVariables>;
|
|
9510
9690
|
export declare const DetachDashboardDocument: DocumentNode<DetachDashboardMutation, DetachDashboardMutationVariables>;
|
|
9511
9691
|
export declare const LinkDashboardToMasterDocument: DocumentNode<LinkDashboardToMasterMutation, LinkDashboardToMasterMutationVariables>;
|
|
9692
|
+
export declare const PushToCopiesDocument: DocumentNode<PushToCopiesMutation, PushToCopiesMutationVariables>;
|
|
9512
9693
|
export declare const RespondToDashboardLinkDocument: DocumentNode<RespondToDashboardLinkMutation, RespondToDashboardLinkMutationVariables>;
|
|
9694
|
+
export declare const SetDashboardAsMasterDocument: DocumentNode<SetDashboardAsMasterMutation, SetDashboardAsMasterMutationVariables>;
|
|
9695
|
+
export declare const UnsetDashboardAsMasterDocument: DocumentNode<UnsetDashboardAsMasterMutation, UnsetDashboardAsMasterMutationVariables>;
|
|
9513
9696
|
export declare const FleetLinksDocument: DocumentNode<FleetLinksQuery, FleetLinksQueryVariables>;
|
|
9514
9697
|
export declare const FleetBoardNameDocument: DocumentNode<FleetBoardNameQuery, FleetBoardNameQueryVariables>;
|
|
9698
|
+
export declare const FleetBoardStateDocument: DocumentNode<FleetBoardStateQuery, FleetBoardStateQueryVariables>;
|
|
9699
|
+
export declare const FleetChildrenDocument: DocumentNode<FleetChildrenQuery, FleetChildrenQueryVariables>;
|
|
9700
|
+
export declare const PreviewPushToCopiesDocument: DocumentNode<PreviewPushToCopiesQuery, PreviewPushToCopiesQueryVariables>;
|
|
9515
9701
|
export declare const ExplainKpiChangeDocument: DocumentNode<ExplainKpiChangeQuery, ExplainKpiChangeQueryVariables>;
|
|
9516
9702
|
export declare const PreviewBoardMigrationDocument: DocumentNode<PreviewBoardMigrationQuery, PreviewBoardMigrationQueryVariables>;
|
|
9517
9703
|
export declare const ExplainDashboardDocument: DocumentNode<ExplainDashboardQuery, ExplainDashboardQueryVariables>;
|