@burdenoff/microfe-bigconsole 2026.1122.6 → 2026.1123.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 (30) hide show
  1. package/dist/bigconsole/components/fleet/FleetBadge.d.ts +12 -0
  2. package/dist/bigconsole/components/fleet/FleetBadge.js +61 -0
  3. package/dist/bigconsole/components/fleet/FleetBreadcrumb.d.ts +14 -0
  4. package/dist/bigconsole/components/fleet/FleetBreadcrumb.js +46 -0
  5. package/dist/bigconsole/components/fleet/FleetCardActions.d.ts +17 -0
  6. package/dist/bigconsole/components/fleet/FleetCardActions.js +78 -0
  7. package/dist/bigconsole/components/fleet/LinkToMasterDialog.d.ts +24 -0
  8. package/dist/bigconsole/components/fleet/LinkToMasterDialog.js +108 -0
  9. package/dist/bigconsole/hooks/useDashboardOperations.d.ts +8 -0
  10. package/dist/bigconsole/hooks/useDashboardOperations.js +2 -0
  11. package/dist/bigconsole/hooks/useFleetBoardActions.d.ts +18 -0
  12. package/dist/bigconsole/hooks/useFleetBoardActions.js +54 -0
  13. package/dist/bigconsole/hooks/useFleetBreadcrumb.d.ts +13 -0
  14. package/dist/bigconsole/hooks/useFleetBreadcrumb.js +52 -0
  15. package/dist/bigconsole/hooks/useFleetCopyTotals.d.ts +11 -0
  16. package/dist/bigconsole/hooks/useFleetCopyTotals.js +52 -0
  17. package/dist/bigconsole/hooks/useFleetLinks.d.ts +19 -0
  18. package/dist/bigconsole/hooks/useFleetLinks.js +74 -0
  19. package/dist/bigconsole/hooks/useFleetMasterSearch.d.ts +13 -0
  20. package/dist/bigconsole/hooks/useFleetMasterSearch.js +62 -0
  21. package/dist/bigconsole/pages/DashboardViewPage.js +313 -303
  22. package/dist/bigconsole/pages/DashboardsPage.js +733 -435
  23. package/dist/bigconsole/pages/InsightsPage.js +490 -425
  24. package/dist/bigconsole/utils/fleetTree.d.ts +50 -0
  25. package/dist/bigconsole/utils/fleetTree.js +64 -0
  26. package/dist/generated/global-types.d.ts +39 -7
  27. package/dist/generated/wspace-operations.d.ts +86 -0
  28. package/dist/generated/wspace-operations.js +602 -147
  29. package/dist/generated/wspace-types.d.ts +3847 -23
  30. package/package.json +1 -1
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The nested dashboards list (BOFF-15410): who follows whom, as rows.
3
+ *
4
+ * `dashboardLinks` says which master each copy follows. These helpers turn that and the (already
5
+ * filtered and sorted) dashboards list into the rows of a tree, and a board's ancestors into a breadcrumb.
6
+ * They are pure, so the rules a user sees (a board is listed once; a result is never hidden because its
7
+ * master was filtered out; a collapsed master hides what is under it) are tested without a browser.
8
+ */
9
+ /** A link as `dashboardLinks` returns it. */
10
+ export interface FleetLink {
11
+ childDashboardId: string;
12
+ masterDashboardId: string;
13
+ status: 'ACTIVE' | 'PENDING';
14
+ }
15
+ /** One row of the nested list. */
16
+ export interface FleetRow<T> {
17
+ item: T;
18
+ /** 0 for a board at the top of the list, one more for each master above it. */
19
+ depth: number;
20
+ /** The master this row sits under, or null at the top. */
21
+ parentId: string | null;
22
+ /** How many copies sit directly under it in this list. */
23
+ childCount: number;
24
+ collapsed: boolean;
25
+ }
26
+ /**
27
+ * The list as tree rows. A board sits under its master when the master is in `items`; one whose master is not
28
+ * in the list (filtered out, or not readable) is shown at the top instead, so a search result never vanishes.
29
+ * Order among siblings is the order of `items`. `collapsed` holds the ids whose copies are hidden.
30
+ *
31
+ * A loop cannot be linked, but one that reached the data anyway cannot hang the page: every board is listed
32
+ * exactly once, and the ones a loop cuts off from the top are listed there.
33
+ */
34
+ export declare function buildFleetRows<T extends {
35
+ id: string;
36
+ }>(items: readonly T[], links: readonly FleetLink[], collapsed?: ReadonlySet<string>): Array<FleetRow<T>>;
37
+ /**
38
+ * The masters above a board, from the top down, using ACTIVE links. A board that follows nothing has none.
39
+ * Stops at a loop instead of repeating.
40
+ */
41
+ export declare function ancestorIds(dashboardId: string, links: readonly FleetLink[]): string[];
42
+ /** The master a board has asked to follow and is waiting on, if any. */
43
+ export declare function pendingMasterId(dashboardId: string, links: readonly FleetLink[]): string | null;
44
+ /** How many copies follow each master (ACTIVE links), for the badge on a master. */
45
+ export declare function copyCounts(links: readonly FleetLink[]): Map<string, number>;
46
+ /**
47
+ * Every board that follows `dashboardId`, directly or through other masters (ACTIVE links). Linking a board under
48
+ * one of these would make a loop, so they are left out of the boards it can be linked to.
49
+ */
50
+ export declare function descendantIds(dashboardId: string, links: readonly FleetLink[]): Set<string>;
@@ -0,0 +1,64 @@
1
+ // src/bigconsole/utils/fleetTree.ts
2
+ function e(e) {
3
+ return new Map(e.filter((e) => e.status === "ACTIVE").map((e) => [e.childDashboardId, e.masterDashboardId]));
4
+ }
5
+ function t(t, n, r = /* @__PURE__ */ new Set()) {
6
+ let i = e(n), a = new Set(t.map((e) => e.id)), o = /* @__PURE__ */ new Map(), s = [];
7
+ for (let e of t) {
8
+ let t = i.get(e.id);
9
+ if (t && t !== e.id && a.has(t)) {
10
+ let n = o.get(t) ?? [];
11
+ n.push(e), o.set(t, n);
12
+ } else s.push(e);
13
+ }
14
+ let c = [], l = /* @__PURE__ */ new Set(), u = (e, t, n) => {
15
+ if (l.has(e.id)) return;
16
+ l.add(e.id);
17
+ let i = o.get(e.id) ?? [], a = i.length > 0 && r.has(e.id);
18
+ if (c.push({
19
+ item: e,
20
+ depth: t,
21
+ parentId: n,
22
+ childCount: i.length,
23
+ collapsed: a
24
+ }), !a) for (let n of i) u(n, t + 1, e.id);
25
+ };
26
+ for (let e of s) u(e, 0, null);
27
+ let d = /* @__PURE__ */ new Set(), f = (e) => {
28
+ if (!d.has(e.id)) {
29
+ d.add(e.id);
30
+ for (let t of o.get(e.id) ?? []) f(t);
31
+ }
32
+ };
33
+ for (let e of s) f(e);
34
+ for (let e of t) d.has(e.id) || u(e, 0, null);
35
+ return c;
36
+ }
37
+ function n(t, n) {
38
+ let r = e(n), i = [], a = /* @__PURE__ */ new Set([t]), o = r.get(t);
39
+ for (; o && !a.has(o);) i.unshift(o), a.add(o), o = r.get(o);
40
+ return i;
41
+ }
42
+ function r(e, t) {
43
+ return t.find((t) => t.status === "PENDING" && t.childDashboardId === e)?.masterDashboardId ?? null;
44
+ }
45
+ function i(e) {
46
+ let t = /* @__PURE__ */ new Map();
47
+ for (let n of e) n.status === "ACTIVE" && t.set(n.masterDashboardId, (t.get(n.masterDashboardId) ?? 0) + 1);
48
+ return t;
49
+ }
50
+ function a(e, t) {
51
+ let n = /* @__PURE__ */ new Map();
52
+ for (let e of t) {
53
+ if (e.status !== "ACTIVE") continue;
54
+ let t = n.get(e.masterDashboardId) ?? [];
55
+ t.push(e.childDashboardId), n.set(e.masterDashboardId, t);
56
+ }
57
+ let r = /* @__PURE__ */ new Set(), i = [...n.get(e) ?? []];
58
+ for (; i.length > 0;) {
59
+ let t = i.pop();
60
+ r.has(t) || t === e || (r.add(t), i.push(...n.get(t) ?? []));
61
+ }
62
+ return r;
63
+ }
64
+ export { n as ancestorIds, t as buildFleetRows, i as copyCounts, a as descendantIds, r as pendingMasterId };
@@ -5242,6 +5242,7 @@ export type DsarRequest = {
5242
5242
  __typename?: 'DSARRequest';
5243
5243
  completedAt?: Maybe<Scalars['DateTime']['output']>;
5244
5244
  createdAt: Scalars['DateTime']['output'];
5245
+ dryRun: Scalars['Boolean']['output'];
5245
5246
  dueAt: Scalars['DateTime']['output'];
5246
5247
  fanoutState?: Maybe<Scalars['JSON']['output']>;
5247
5248
  id: Scalars['ID']['output'];
@@ -7384,6 +7385,12 @@ export declare enum FeedbackCategory {
7384
7385
  ResponseTime = "RESPONSE_TIME"
7385
7386
  }
7386
7387
  export type FileDsarInput = {
7388
+ /**
7389
+ * Operator dry-run preview for ERASURE requests (BOFF-9550). When true,
7390
+ * participants report per-service counts without erasing or modifying any
7391
+ * subject data and no completion email is sent to the subject.
7392
+ */
7393
+ dryRun?: InputMaybe<Scalars['Boolean']['input']>;
7387
7394
  notes?: InputMaybe<Scalars['String']['input']>;
7388
7395
  source: Scalars['String']['input'];
7389
7396
  subjectEmail: Scalars['String']['input'];
@@ -10907,8 +10914,8 @@ export type Mutation = {
10907
10914
  /** Remove a visibility rule */
10908
10915
  removeVisibilityRule: Scalars['Boolean']['output'];
10909
10916
  /**
10910
- * Remove a workspace override, reverting to the platform default.
10911
- * RBAC is scoped to the target workspace.
10917
+ * Remove a workspace override, reverting to the platform default
10918
+ * (super_admin or service only, like setWorkspaceFeatureFlagOverride).
10912
10919
  */
10913
10920
  removeWorkspaceFeatureFlagOverride: Scalars['Boolean']['output'];
10914
10921
  /** Remove a member from a workspace */
@@ -11459,8 +11466,10 @@ export type Mutation = {
11459
11466
  setUserFeatureFlagPreference: UserFeatureFlagPreference;
11460
11467
  setUserLanguagePreference: UserLanguagePreference;
11461
11468
  /**
11462
- * Set workspace-level override for a feature flag (super admin or workspace admin).
11463
- * RBAC is scoped to the target workspace via `input.workspaceId`.
11469
+ * Set workspace-level override for a feature flag (super_admin or service only).
11470
+ * The resolver refuses every other actor type with FORBIDDEN, including workspace
11471
+ * admins: tenant-svc has no cross-layer workspace-membership check, so
11472
+ * workspace-admin support is deliberately not implemented.
11464
11473
  */
11465
11474
  setWorkspaceFeatureFlagOverride: WorkspaceFeatureFlagOverride;
11466
11475
  settleAssistantAccountBudget: AssistantBudgetReceipt;
@@ -17247,6 +17256,10 @@ export type OAuthAuthorizationRequest = {
17247
17256
  /** Name the app gave itself when it registered. Not verified unless verifiedClient is true. */
17248
17257
  clientName: Scalars['String']['output'];
17249
17258
  expiresAt: Scalars['DateTime']['output'];
17259
+ /** True for one of our own apps (the FluidGrids chat apps), configured by us rather than self-registered. */
17260
+ firstParty: Scalars['Boolean']['output'];
17261
+ /** For a chat app: the chat account being linked, as the app vouched for it. Null otherwise. */
17262
+ linkContext?: Maybe<OAuthLinkContext>;
17250
17263
  /** Product the connector will act in, e.g. fluidgrids. */
17251
17264
  product: Scalars['String']['output'];
17252
17265
  /** Host the user is sent back to after deciding. */
@@ -17284,6 +17297,16 @@ export type OAuthInput = {
17284
17297
  provider: Scalars['String']['input'];
17285
17298
  redirectUri?: InputMaybe<Scalars['String']['input']>;
17286
17299
  };
17300
+ /** The chat account a first-party chat app is linking, signed by that app. */
17301
+ export type OAuthLinkContext = {
17302
+ __typename?: 'OAuthLinkContext';
17303
+ /** slack, teams or google-chat. */
17304
+ platform: Scalars['String']['output'];
17305
+ /** The Slack workspace, Microsoft 365 organization or Google Chat space the person is in. */
17306
+ teamName: Scalars['String']['output'];
17307
+ /** The person's display name on that platform. */
17308
+ userName: Scalars['String']['output'];
17309
+ };
17287
17310
  /** Result for OIDC authorization URL generation */
17288
17311
  export type OidcAuthUrlResult = {
17289
17312
  __typename?: 'OIDCAuthUrlResult';
@@ -18309,7 +18332,7 @@ export type Plan = {
18309
18332
  */
18310
18333
  geoPricingOverrides: Array<GeoPricingOverride>;
18311
18334
  /** The unique identifier for the Plan, automatically generated as a UUID. */
18312
- id?: Maybe<Scalars['ID']['output']>;
18335
+ id: Scalars['ID']['output'];
18313
18336
  /** Indicates whether the plan is currently active. */
18314
18337
  isActive?: Maybe<Scalars['Boolean']['output']>;
18315
18338
  /**
@@ -19730,7 +19753,8 @@ export type Query = {
19730
19753
  availableAuthMethods: Array<AuthMethod>;
19731
19754
  /**
19732
19755
  * Get available preview features the user can opt-in to within a workspace.
19733
- * Returns only flags that are previewable, active, and allowed by workspace admin.
19756
+ * Returns only flags that are previewable, active, and allowed for the workspace
19757
+ * (its override, if any, permits user opt-in).
19734
19758
  *
19735
19759
  * When `productSlug` is provided (each product app shell passes its own slug),
19736
19760
  * the result is scoped to that product's previewable flags PLUS platform-wide
@@ -26340,6 +26364,12 @@ export type SendMessageInput = {
26340
26364
  recipient: Scalars['String']['input'];
26341
26365
  /** Thread ID (for threaded replies in Slack, Teams, etc.) */
26342
26366
  threadId?: InputMaybe<Scalars['String']['input']>;
26367
+ /**
26368
+ * Workspace the message is sent for (BOFF-15418). When set, a channel bound
26369
+ * to a different workspace (its inbound workspace binding) is not used, so a
26370
+ * workspace can only send through its own or an unbound channel.
26371
+ */
26372
+ workspaceId?: InputMaybe<Scalars['ID']['input']>;
26343
26373
  };
26344
26374
  export type SendRoundMessageToCandidateInput = {
26345
26375
  message: Scalars['String']['input'];
@@ -32574,7 +32604,9 @@ export type WorkspaceActivationOutcome = {
32574
32604
  };
32575
32605
  /**
32576
32606
  * Workspace-level override for a feature flag.
32577
- * Workspace admins can disable flags or control user opt-in for their workspace.
32607
+ * Turns a flag on or off for one workspace and controls whether its users may opt
32608
+ * in or out. Only a super_admin or service actor can set or remove an override;
32609
+ * workspace admins cannot.
32578
32610
  */
32579
32611
  export type WorkspaceFeatureFlagOverride = {
32580
32612
  __typename?: 'WorkspaceFeatureFlagOverride';
@@ -405,6 +405,15 @@ export type BigConsoleDashboardEmbedPolicyStatus = 'ACTIVE' | 'BROKEN' | 'DRAFT'
405
405
  export type BigConsoleDashboardEmbedTheme = 'AUTO' | 'DARK' | 'LIGHT';
406
406
  /** Dashboard layout enumeration */
407
407
  export type BigConsoleDashboardLayout = 'FLEX' | 'GRID' | 'TABS';
408
+ /** Where a board's link to its master stands */
409
+ export type BigConsoleDashboardLinkStatus =
410
+ /** The board follows its master */
411
+ 'ACTIVE'
412
+ /**
413
+ * Someone other than the board's owner asked for the link, and the owner has not
414
+ * accepted yet
415
+ */
416
+ | 'PENDING';
408
417
  /** Page layout enumeration */
409
418
  export type BigConsoleDashboardPageLayout = 'FLEX' | 'FREEFORM' | 'GRID';
410
419
  /** Share permission level */
@@ -768,6 +777,16 @@ export type BigConsoleKpiReconciliationTieScope =
768
777
  | 'NONE'
769
778
  /** The card value equals the records' total for the period. */
770
779
  | 'PERIOD';
780
+ /** Input for linking an existing board under a master */
781
+ export type BigConsoleLinkDashboardInput = {
782
+ /**
783
+ * The board that will follow the master. If the caller owns it, the link takes
784
+ * effect at once. If someone else owns it, the link waits for that owner to accept.
785
+ */
786
+ childDashboardId: string | number;
787
+ /** The master board to follow */
788
+ masterDashboardId: string | number;
789
+ };
771
790
  /** What a narrative explains. */
772
791
  export type BigConsoleNarrativeKind =
773
792
  /** An explanation of a fired alert (triggered by the alert runtime's events). */
@@ -2315,6 +2334,8 @@ export type DashboardListItemFragment = {
2315
2334
  workspaceId: string;
2316
2335
  name: string;
2317
2336
  description: string | null;
2337
+ isMaster: boolean;
2338
+ linkStatus: Types.BigConsoleDashboardLinkStatus | null;
2318
2339
  category: Types.BigConsoleDashboardCategory;
2319
2340
  isPublic: boolean | null;
2320
2341
  visibility: Types.BigConsoleDashboardVisibility;
@@ -3807,6 +3828,8 @@ export type ListDashboardsQuery = {
3807
3828
  workspaceId: string;
3808
3829
  name: string;
3809
3830
  description: string | null;
3831
+ isMaster: boolean;
3832
+ linkStatus: Types.BigConsoleDashboardLinkStatus | null;
3810
3833
  category: Types.BigConsoleDashboardCategory;
3811
3834
  isPublic: boolean | null;
3812
3835
  visibility: Types.BigConsoleDashboardVisibility;
@@ -5445,6 +5468,64 @@ export type GetFilterPresetsQuery = {
5445
5468
  updatedAt: string;
5446
5469
  }>;
5447
5470
  };
5471
+ export type DetachDashboardMutationVariables = Exact<{
5472
+ id: string | number;
5473
+ }>;
5474
+ export type DetachDashboardMutation = {
5475
+ detachDashboard: {
5476
+ id: string;
5477
+ name: string;
5478
+ isMaster: boolean;
5479
+ linkStatus: Types.BigConsoleDashboardLinkStatus | null;
5480
+ };
5481
+ };
5482
+ export type LinkDashboardToMasterMutationVariables = Exact<{
5483
+ input: Types.BigConsoleLinkDashboardInput;
5484
+ }>;
5485
+ export type LinkDashboardToMasterMutation = {
5486
+ linkDashboardToMaster: {
5487
+ id: string;
5488
+ name: string;
5489
+ isMaster: boolean;
5490
+ linkStatus: Types.BigConsoleDashboardLinkStatus | null;
5491
+ };
5492
+ };
5493
+ export type RespondToDashboardLinkMutationVariables = Exact<{
5494
+ childDashboardId: string | number;
5495
+ accept: boolean;
5496
+ }>;
5497
+ export type RespondToDashboardLinkMutation = {
5498
+ respondToDashboardLink: {
5499
+ id: string;
5500
+ name: string;
5501
+ isMaster: boolean;
5502
+ linkStatus: Types.BigConsoleDashboardLinkStatus | null;
5503
+ };
5504
+ };
5505
+ export type FleetLinksQueryVariables = Exact<{
5506
+ [key: string]: never;
5507
+ }>;
5508
+ export type FleetLinksQuery = {
5509
+ dashboardLinks: Array<{
5510
+ childDashboardId: string;
5511
+ masterDashboardId: string;
5512
+ status: Types.BigConsoleDashboardLinkStatus;
5513
+ }>;
5514
+ pendingDashboardLinks: Array<{
5515
+ childDashboardId: string;
5516
+ childName: string;
5517
+ masterName: string;
5518
+ }>;
5519
+ };
5520
+ export type FleetBoardNameQueryVariables = Exact<{
5521
+ id: string | number;
5522
+ }>;
5523
+ export type FleetBoardNameQuery = {
5524
+ getDashboard: {
5525
+ id: string;
5526
+ name: string;
5527
+ } | null;
5528
+ };
5448
5529
  export type KpiChangeExplanationFieldsFragment = {
5449
5530
  status: Types.BigConsoleKpiChangeStatus;
5450
5531
  widgetId: string;
@@ -9426,6 +9507,11 @@ export declare const UpdateFilterPresetDocument: DocumentNode<UpdateFilterPreset
9426
9507
  export declare const GetDefaultFilterPresetDocument: DocumentNode<GetDefaultFilterPresetQuery, GetDefaultFilterPresetQueryVariables>;
9427
9508
  export declare const GetFilterPresetDocument: DocumentNode<GetFilterPresetQuery, GetFilterPresetQueryVariables>;
9428
9509
  export declare const GetFilterPresetsDocument: DocumentNode<GetFilterPresetsQuery, GetFilterPresetsQueryVariables>;
9510
+ export declare const DetachDashboardDocument: DocumentNode<DetachDashboardMutation, DetachDashboardMutationVariables>;
9511
+ export declare const LinkDashboardToMasterDocument: DocumentNode<LinkDashboardToMasterMutation, LinkDashboardToMasterMutationVariables>;
9512
+ export declare const RespondToDashboardLinkDocument: DocumentNode<RespondToDashboardLinkMutation, RespondToDashboardLinkMutationVariables>;
9513
+ export declare const FleetLinksDocument: DocumentNode<FleetLinksQuery, FleetLinksQueryVariables>;
9514
+ export declare const FleetBoardNameDocument: DocumentNode<FleetBoardNameQuery, FleetBoardNameQueryVariables>;
9429
9515
  export declare const ExplainKpiChangeDocument: DocumentNode<ExplainKpiChangeQuery, ExplainKpiChangeQueryVariables>;
9430
9516
  export declare const PreviewBoardMigrationDocument: DocumentNode<PreviewBoardMigrationQuery, PreviewBoardMigrationQueryVariables>;
9431
9517
  export declare const ExplainDashboardDocument: DocumentNode<ExplainDashboardQuery, ExplainDashboardQueryVariables>;