@burdenoff/microfe-bigconsole 2026.1119.6 → 2026.1119.8
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/embed/widgets/ChartEmbed.js +70 -66
- package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +21 -0
- package/dist/bigconsole/components/insights/GeneratedFormattingReview.js +90 -44
- package/dist/bigconsole/components/settings/WidgetCatalogSection.d.ts +3 -0
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +207 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +1 -0
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +5 -1
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +4 -1
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +53 -45
- package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +5 -1
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +4 -1
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +13 -11
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.js +58 -29
- package/dist/bigconsole/components/widgets/chart/charts/types.d.ts +8 -1
- package/dist/bigconsole/components/widgets/chart/referenceLineDraft.js +26 -23
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.d.ts +41 -0
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +80 -44
- package/dist/bigconsole/constants/backendErrors.js +2 -0
- package/dist/bigconsole/hooks/useWidgetTypeCatalog.d.ts +14 -0
- package/dist/bigconsole/hooks/useWidgetTypeCatalog.js +79 -0
- package/dist/bigconsole/pages/InsightsPage.js +458 -451
- package/dist/bigconsole/pages/SettingsPage.js +198 -196
- package/dist/bigconsole/types/index.d.ts +8 -0
- package/dist/bigconsole/utils/pipelineExecutionTimeline.d.ts +13 -1
- package/dist/bigconsole/utils/pipelineExecutionTimeline.js +26 -3
- package/dist/bigconsole/utils/widgetCatalog.d.ts +42 -0
- package/dist/bigconsole/utils/widgetCatalog.js +15 -0
- package/dist/constants/permissions.d.ts +2 -1
- package/dist/constants/permissions.js +1 -0
- package/dist/generated/global-operations.d.ts +45 -6
- package/dist/generated/global-types.d.ts +5839 -804
- package/dist/generated/wspace-operations.d.ts +85 -0
- package/dist/generated/wspace-operations.js +329 -30
- package/dist/generated/wspace-types.d.ts +1339 -6
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ export interface ChartReferenceLine {
|
|
|
20
20
|
color?: import('../components/widgets/utils/conditionalFormat').SemanticIntent;
|
|
21
21
|
/** Dashed stroke for lines. */
|
|
22
22
|
dashed?: boolean;
|
|
23
|
+
/** Per-category threshold `value` away from this row field (BOFF-10145). */
|
|
24
|
+
relativeTo?: import('../components/widgets/utils/conditionalFormat').ConditionalComparison;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Per-series descriptor for combo / dual-axis charts. Lets a single chart mix
|
|
@@ -1229,6 +1231,12 @@ export interface PipelineStageResult {
|
|
|
1229
1231
|
id: string;
|
|
1230
1232
|
stageId: string;
|
|
1231
1233
|
stageName: string | null;
|
|
1234
|
+
/**
|
|
1235
|
+
* 0-based order the stage ran in within the execution (BOFF-10074). Absent
|
|
1236
|
+
* on results cached before the field existed; the timeline then falls back
|
|
1237
|
+
* to the pipeline's configured stage order.
|
|
1238
|
+
*/
|
|
1239
|
+
position?: number | null;
|
|
1232
1240
|
status: StageExecutionStatus;
|
|
1233
1241
|
executionTimeMs: number;
|
|
1234
1242
|
output: unknown | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PipelineExecution, PipelineExecutionStatus, PipelineStage, StageExecutionStatus } from '../types';
|
|
1
|
+
import { PipelineExecution, PipelineExecutionStatus, PipelineStage, PipelineStageResult, StageExecutionStatus } from '../types';
|
|
2
2
|
/** Visual tone shared by run and stage statuses. */
|
|
3
3
|
export type ExecutionTone = 'success' | 'danger' | 'warning' | 'info' | 'neutral';
|
|
4
4
|
export interface StageTimelineRow {
|
|
@@ -43,5 +43,17 @@ export declare function formatDurationMs(ms: number | null | undefined): string;
|
|
|
43
43
|
* viewer themselves so the caller can render a translated "You".
|
|
44
44
|
*/
|
|
45
45
|
export declare function triggeredByLabel(executedBy: string, currentActorId: string | null | undefined): string | null;
|
|
46
|
+
/**
|
|
47
|
+
* A run's stage results in the order the stages ran (BOFF-10074).
|
|
48
|
+
*
|
|
49
|
+
* The backend records each result's 0-based `position`; when every result has
|
|
50
|
+
* a distinct one, it decides the order. Otherwise (results from a backend or
|
|
51
|
+
* cache without the field, or legacy rows with tied positions) each result is
|
|
52
|
+
* placed by the configured position of its stage, matched by stage id or, when
|
|
53
|
+
* the stages were since replaced, by a unique stage name. Results that match no
|
|
54
|
+
* stage keep their relative order after the matched ones. The sort is stable,
|
|
55
|
+
* so equal keys keep the order the server returned.
|
|
56
|
+
*/
|
|
57
|
+
export declare function orderStageResults(results: readonly PipelineStageResult[], stages: readonly PipelineStage[] | null | undefined): PipelineStageResult[];
|
|
46
58
|
/** Build the waterfall rows for one run against the pipeline's current stages. */
|
|
47
59
|
export declare function buildStageTimeline(execution: PipelineExecution, stages: readonly PipelineStage[] | null | undefined): StageTimeline;
|
|
@@ -53,8 +53,31 @@ function u(e, t) {
|
|
|
53
53
|
function d(e, t, n) {
|
|
54
54
|
return e.stageName || t?.parserName || `Stage ${n}`;
|
|
55
55
|
}
|
|
56
|
-
function f(e
|
|
57
|
-
let
|
|
56
|
+
function f(e) {
|
|
57
|
+
let t = /* @__PURE__ */ new Set();
|
|
58
|
+
for (let n of e) {
|
|
59
|
+
let e = n.position;
|
|
60
|
+
if (e == null || !Number.isFinite(e) || t.has(e)) return !1;
|
|
61
|
+
t.add(e);
|
|
62
|
+
}
|
|
63
|
+
return !0;
|
|
64
|
+
}
|
|
65
|
+
function p(e, t) {
|
|
66
|
+
let n = e.map((e, t) => ({
|
|
67
|
+
result: e,
|
|
68
|
+
index: t
|
|
69
|
+
}));
|
|
70
|
+
if (f(e)) return n.sort((e, t) => (e.result.position ?? 0) - (t.result.position ?? 0) || e.index - t.index).map(({ result: e }) => e);
|
|
71
|
+
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
72
|
+
for (let e of t ?? []) r.set(e.id, e.position), e.parserName && i.set(e.parserName, i.has(e.parserName) ? null : e.position);
|
|
73
|
+
let a = (e) => r.get(e.stageId) ?? (e.stageName ? i.get(e.stageName) : void 0) ?? Infinity;
|
|
74
|
+
return n.map((e) => ({
|
|
75
|
+
...e,
|
|
76
|
+
rank: a(e.result)
|
|
77
|
+
})).sort((e, t) => e.rank === t.rank ? e.index - t.index : e.rank < t.rank ? -1 : 1).map(({ result: e }) => e);
|
|
78
|
+
}
|
|
79
|
+
function m(e, t) {
|
|
80
|
+
let r = new Map((t ?? []).map((e) => [e.id, e])), a = p(e.stageResults ?? [], t), o = a.map((e) => e.executionTimeMs != null && Number.isFinite(e.executionTimeMs) && e.executionTimeMs > 0 ? e.executionTimeMs : 0), s = o.reduce((e, t) => e + t, 0), c = {
|
|
58
81
|
success: 0,
|
|
59
82
|
skipped: 0,
|
|
60
83
|
failed: 0,
|
|
@@ -83,4 +106,4 @@ function f(e, t) {
|
|
|
83
106
|
counts: c
|
|
84
107
|
};
|
|
85
108
|
}
|
|
86
|
-
export {
|
|
109
|
+
export { m as buildStageTimeline, l as formatDurationMs, o as orderExecutionsForPipeline, p as orderStageResults, s as pickSelectedExecution, c as runDurationMs, r as runStatusTone, i as stageStatusTone, u as triggeredByLabel };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure helpers for the Settings "Widget catalog" section (BOFF-10151).
|
|
3
|
+
*
|
|
4
|
+
* The backend `widgetTypeCatalog` query returns every store/custom widget type
|
|
5
|
+
* the workspace may see with its installation state. These helpers decide what
|
|
6
|
+
* an owner can do with each row, so the section component stays declarative and
|
|
7
|
+
* the rules stay unit-testable.
|
|
8
|
+
*/
|
|
9
|
+
/** One catalog row, as returned by `widgetTypeCatalog`. */
|
|
10
|
+
export interface WidgetCatalogRow {
|
|
11
|
+
widgetType: string;
|
|
12
|
+
widgetVersion: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string | null;
|
|
15
|
+
author?: string | null;
|
|
16
|
+
category?: string | null;
|
|
17
|
+
publishType: string;
|
|
18
|
+
status: string;
|
|
19
|
+
isLatest: boolean;
|
|
20
|
+
installedInWorkspace: boolean;
|
|
21
|
+
selfInstallable: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* What the row's action cell offers:
|
|
25
|
+
* - `install` — an AVAILABLE type the caller may self-install (CUSTOM types);
|
|
26
|
+
* - `uninstall` — an installed CUSTOM type (any status, so a DEPRECATED or
|
|
27
|
+
* DISABLED type can still be removed cleanly);
|
|
28
|
+
* - `store` — a STORE type, installed or not: it is installed, billed and
|
|
29
|
+
* removed through the Store, so the row links there;
|
|
30
|
+
* - `none` — not installed and not installable (e.g. a DEPRECATED type).
|
|
31
|
+
*/
|
|
32
|
+
export type WidgetCatalogAction = 'install' | 'uninstall' | 'store' | 'none';
|
|
33
|
+
export declare function widgetCatalogAction(row: WidgetCatalogRow): WidgetCatalogAction;
|
|
34
|
+
/** DEPRECATED and DISABLED rows are shown greyed out. */
|
|
35
|
+
export declare function isWidgetCatalogRowMuted(row: Pick<WidgetCatalogRow, 'status'>): boolean;
|
|
36
|
+
/** Stable identity for a row (type + version is the registry's natural key). */
|
|
37
|
+
export declare function widgetCatalogRowKey(row: Pick<WidgetCatalogRow, 'widgetType' | 'widgetVersion'>): string;
|
|
38
|
+
/**
|
|
39
|
+
* Display order: installed rows first, then AVAILABLE before DEPRECATED before
|
|
40
|
+
* DISABLED, then by name and newest version first.
|
|
41
|
+
*/
|
|
42
|
+
export declare function sortWidgetCatalogRows<T extends WidgetCatalogRow>(rows: readonly T[]): T[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/bigconsole/utils/widgetCatalog.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.publishType === "STORE" ? "store" : e.installedInWorkspace ? "uninstall" : e.selfInstallable ? "install" : "none";
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return e.status !== "AVAILABLE";
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return `${e.widgetType}@${e.widgetVersion}`;
|
|
10
|
+
}
|
|
11
|
+
function r(e) {
|
|
12
|
+
let t = (e) => e === "AVAILABLE" ? 0 : e === "DEPRECATED" ? 1 : 2;
|
|
13
|
+
return [...e].sort((e, n) => Number(n.installedInWorkspace) - Number(e.installedInWorkspace) || t(e.status) - t(n.status) || e.name.localeCompare(n.name) || n.widgetVersion.localeCompare(e.widgetVersion, void 0, { numeric: !0 }));
|
|
14
|
+
}
|
|
15
|
+
export { t as isWidgetCatalogRowMuted, r as sortWidgetCatalogRows, e as widgetCatalogAction, n as widgetCatalogRowKey };
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* - bigconsole-pipeline: read, create, update, delete, execute, test
|
|
32
32
|
* - bigconsole-prompt: read, create, update, delete
|
|
33
33
|
* - bigconsole-workflow: read, create, update, delete, execute
|
|
34
|
-
* - bigconsole-widget: read, create, update, delete
|
|
34
|
+
* - bigconsole-widget: read, create, update, delete, manage_widget_types
|
|
35
35
|
* - bigconsole-widget-action: read, create, update, delete, execute
|
|
36
36
|
* - bigconsole-event-log: read, execute
|
|
37
37
|
* - bigconsole-webhook: read, create, update, delete, test
|
|
@@ -101,6 +101,7 @@ export declare const BIGCONSOLE_PERMISSIONS: {
|
|
|
101
101
|
readonly WIDGET_CREATE: "bigconsole-widget:create";
|
|
102
102
|
readonly WIDGET_UPDATE: "bigconsole-widget:update";
|
|
103
103
|
readonly WIDGET_DELETE: "bigconsole-widget:delete";
|
|
104
|
+
readonly WIDGET_MANAGE_TYPES: "bigconsole-widget:manage_widget_types";
|
|
104
105
|
readonly WIDGET_ACTION_READ: "bigconsole-widget-action:read";
|
|
105
106
|
readonly WIDGET_ACTION_CREATE: "bigconsole-widget-action:create";
|
|
106
107
|
readonly WIDGET_ACTION_UPDATE: "bigconsole-widget-action:update";
|
|
@@ -64,6 +64,7 @@ var e = {
|
|
|
64
64
|
WIDGET_CREATE: "bigconsole-widget:create",
|
|
65
65
|
WIDGET_UPDATE: "bigconsole-widget:update",
|
|
66
66
|
WIDGET_DELETE: "bigconsole-widget:delete",
|
|
67
|
+
WIDGET_MANAGE_TYPES: "bigconsole-widget:manage_widget_types",
|
|
67
68
|
WIDGET_ACTION_READ: "bigconsole-widget-action:read",
|
|
68
69
|
WIDGET_ACTION_CREATE: "bigconsole-widget-action:create",
|
|
69
70
|
WIDGET_ACTION_UPDATE: "bigconsole-widget-action:update",
|
|
@@ -27,7 +27,10 @@ export type CreateApplicationInput = {
|
|
|
27
27
|
appId?: string | number | null | undefined;
|
|
28
28
|
appType: AppType;
|
|
29
29
|
category?: string | null | undefined;
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Which products this item is compatible with (e.g. "fluidgrids", "workspaces").
|
|
32
|
+
* Stored in manifest.compatibility.products and extracted to the store on publish.
|
|
33
|
+
*/
|
|
31
34
|
compatibleProducts?: Array<string> | null | undefined;
|
|
32
35
|
description?: string | null | undefined;
|
|
33
36
|
developerOrganizationId?: string | number | null | undefined;
|
|
@@ -55,21 +58,41 @@ export type CreateApplicationVersionInput = {
|
|
|
55
58
|
manifest?: Record<string, unknown> | null | undefined;
|
|
56
59
|
maxPlatformVersion?: string | null | undefined;
|
|
57
60
|
minPlatformVersion?: string | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* wspace-files-svc File id of the uploaded package, captured with packageUrl
|
|
63
|
+
* at upload time. Fresh download URLs are minted by the canonical file owner
|
|
64
|
+
* from it (BOFF-5311). The File must be ACTIVE and uploaded by the caller; it
|
|
65
|
+
* is verified with files-svc, and derived from a files-bucket packageUrl when
|
|
66
|
+
* omitted (BOFF-11221).
|
|
67
|
+
*/
|
|
68
|
+
packageFileId?: string | null | undefined;
|
|
58
69
|
packageHash?: string | null | undefined;
|
|
59
70
|
packageSize?: string | null | undefined;
|
|
60
71
|
packageUrl?: string | null | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Workspace that owns the files-svc File referenced by packageFileId.
|
|
74
|
+
* Required together with packageFileId for the files-svc download-URL path.
|
|
75
|
+
*/
|
|
76
|
+
packageWorkspaceId?: string | null | undefined;
|
|
61
77
|
releaseNotes?: string | null | undefined;
|
|
62
78
|
requiredScopes?: Array<string> | null | undefined;
|
|
63
79
|
version: string;
|
|
64
80
|
};
|
|
65
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* DIGITAL orgs publish Applications to the store; PHYSICAL orgs list physical
|
|
83
|
+
* goods via the seller portal. Not user-selectable — fixed at creation by which
|
|
84
|
+
* flow provisioned the org. See BOFF-7285.
|
|
85
|
+
*/
|
|
66
86
|
export type DeveloperOrgKind = 'DIGITAL' | 'PHYSICAL';
|
|
67
87
|
export type DeveloperOrgRole = 'ADMIN' | 'DEVELOPER' | 'OWNER' | 'VIEWER';
|
|
68
88
|
export type PricingModel = 'FREE' | 'PAID_ONETIME' | 'SUBSCRIPTION';
|
|
69
89
|
export type ProductNature = 'DIGITAL' | 'PHYSICAL';
|
|
70
90
|
export type ProductStatus = 'ARCHIVED' | 'DEPRECATED' | 'DRAFT' | 'PENDING_REVIEW' | 'PUBLISHED' | 'REJECTED' | 'UNLISTED';
|
|
71
91
|
export type ProductType = 'ACCESSORY' | 'AGENT' | 'APP' | 'APPAREL' | 'BOOK' | 'BOTAPP' | 'COLLECTIBLE' | 'COMPONENT' | 'CONSOLE' | 'CONSUMABLE' | 'DASHBOARD' | 'DATASINK' | 'EQUIPMENT' | 'EXTENSION' | 'HARDWARE' | 'INTEGRATION' | 'MERCHANDISE' | 'NODE' | 'PARSER' | 'PLUGIN' | 'TEMPLATE' | 'THEME' | 'VIBEMODULE' | 'WIDGET' | 'WORKFLOW';
|
|
72
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Unified filter input for browsing/searching store products.
|
|
94
|
+
* All filters combine with AND logic - search is treated as a filter.
|
|
95
|
+
*/
|
|
73
96
|
export type StoreFilterInput = {
|
|
74
97
|
/** Filter by author name (partial match) */
|
|
75
98
|
authorName?: string | null | undefined;
|
|
@@ -79,7 +102,10 @@ export type StoreFilterInput = {
|
|
|
79
102
|
categories?: Array<string> | null | undefined;
|
|
80
103
|
/** Filter by exact category match (e.g., "Customer Support", "Notification") */
|
|
81
104
|
category?: string | null | undefined;
|
|
82
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* Filter by compatible product (e.g., "workspaces", "fluidgrids", "bigconsole")
|
|
107
|
+
* Products must be compatible with this product.
|
|
108
|
+
*/
|
|
83
109
|
compatibleWith?: string | null | undefined;
|
|
84
110
|
/** Filter only featured products */
|
|
85
111
|
featured?: boolean | null | undefined;
|
|
@@ -109,11 +135,24 @@ export type StoreFilterInput = {
|
|
|
109
135
|
publisherId?: string | null | undefined;
|
|
110
136
|
/** Filter products that require shipping */
|
|
111
137
|
requiresShipping?: boolean | null | undefined;
|
|
112
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* Full-text search query. Searches across:
|
|
140
|
+
* - name (highest priority)
|
|
141
|
+
* - description
|
|
142
|
+
* - tags
|
|
143
|
+
* - authorName, category (lowest priority)
|
|
144
|
+
* Uses PostgreSQL tsvector with weighted ranking.
|
|
145
|
+
*/
|
|
113
146
|
search?: string | null | undefined;
|
|
114
147
|
/** Filter by product status (defaults to PUBLISHED for consumer queries) */
|
|
115
148
|
status?: ProductStatus | null | undefined;
|
|
116
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* Filter by type-specific subtype.
|
|
151
|
+
* Examples:
|
|
152
|
+
* - For AGENT: "task_automation", "conversational", "research"
|
|
153
|
+
* - For NODE: "action", "trigger", "integration", "ai"
|
|
154
|
+
* - For WIDGET: "chart", "metric", "table", "map"
|
|
155
|
+
*/
|
|
117
156
|
subType?: string | null | undefined;
|
|
118
157
|
/** Filter by multiple subtypes (OR within this filter) */
|
|
119
158
|
subTypes?: Array<string> | null | undefined;
|