@elevasis/ui 1.19.0 → 1.20.1
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/api/index.js +2 -2
- package/dist/auth/index.js +3 -3
- package/dist/charts/index.css +14 -0
- package/dist/charts/index.js +8 -6
- package/dist/{chunk-7ATCF6UL.js → chunk-3DIU726S.js} +11 -4
- package/dist/chunk-4SY4EQSK.js +68 -0
- package/dist/{chunk-2Z7LYTIX.js → chunk-AQ5MQDSS.js} +30 -17
- package/dist/chunk-AWMZCYKH.js +639 -0
- package/dist/{chunk-BVNAC4SQ.js → chunk-C7AD6N23.js} +38 -48
- package/dist/{chunk-ZFCG5SHW.js → chunk-COTI2QPO.js} +1 -1
- package/dist/{chunk-WAPZN2U3.js → chunk-EMN755L5.js} +7 -41
- package/dist/{chunk-LBY7FVFD.js → chunk-ERVB3QJQ.js} +31 -715
- package/dist/chunk-GBMNCNHX.js +105 -0
- package/dist/{chunk-MBZDE6UT.js → chunk-IOKL7BKE.js} +9 -1
- package/dist/{chunk-35UWYH2A.js → chunk-JFRG2JJE.js} +8 -2
- package/dist/chunk-JIABC3AE.js +2622 -0
- package/dist/chunk-JZEXFQ6N.js +671 -0
- package/dist/chunk-LGKLC5MG.js +44 -0
- package/dist/chunk-MG3NF7QL.js +63 -0
- package/dist/{chunk-KBLGVZBD.js → chunk-NNKKBSJN.js} +2 -22
- package/dist/{chunk-JNBHUCKW.js → chunk-NVOCKXUQ.js} +1 -1
- package/dist/chunk-OFAXUZPZ.js +2411 -0
- package/dist/chunk-PDHTXPSF.js +12 -0
- package/dist/chunk-QJ2S46NI.js +23 -0
- package/dist/{chunk-NUULWBAD.js → chunk-R3R367QY.js} +1 -1
- package/dist/{chunk-UANJP5P7.js → chunk-R7WLWGPO.js} +5 -5
- package/dist/{chunk-CC3SDRIF.js → chunk-RWQIFKMJ.js} +1 -1
- package/dist/chunk-UMFPUM7Q.js +1281 -0
- package/dist/{chunk-KNJKCD73.js → chunk-VLTVZXP6.js} +4 -4
- package/dist/chunk-WWEMNIHW.js +37 -0
- package/dist/{chunk-UTWJZEOJ.js → chunk-XOTN3X3Z.js} +3 -3
- package/dist/components/index.css +14 -0
- package/dist/components/index.d.ts +41 -7
- package/dist/components/index.js +564 -5023
- package/dist/components/navigation/index.js +2 -63
- package/dist/features/auth/index.css +579 -0
- package/dist/features/auth/index.d.ts +2557 -0
- package/dist/features/auth/index.js +125 -0
- package/dist/features/dashboard/index.css +579 -0
- package/dist/features/dashboard/index.d.ts +244 -0
- package/dist/features/dashboard/index.js +650 -0
- package/dist/features/monitoring/index.css +579 -0
- package/dist/features/monitoring/index.d.ts +121 -0
- package/dist/features/monitoring/index.js +538 -0
- package/dist/features/operations/index.css +14 -0
- package/dist/features/operations/index.d.ts +1675 -2
- package/dist/features/operations/index.js +2148 -28
- package/dist/features/settings/index.css +579 -0
- package/dist/features/settings/index.d.ts +2589 -0
- package/dist/features/settings/index.js +1437 -0
- package/dist/hooks/index.css +14 -0
- package/dist/hooks/index.d.ts +29 -11
- package/dist/hooks/index.js +13 -13
- package/dist/hooks/published.css +14 -0
- package/dist/hooks/published.d.ts +29 -11
- package/dist/hooks/published.js +12 -12
- package/dist/index.css +14 -0
- package/dist/index.d.ts +41 -12
- package/dist/index.js +15 -15
- package/dist/initialization/index.js +2 -2
- package/dist/layout/index.d.ts +7 -1
- package/dist/layout/index.js +7 -5
- package/dist/organization/index.js +2 -2
- package/dist/provider/index.css +14 -0
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.js +10 -10
- package/dist/provider/published.d.ts +1 -1
- package/dist/provider/published.js +6 -6
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/__tests__/getPreset.test.d.ts +2 -0
- package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +1 -0
- package/dist/theme/presets/__tests__/getPreset.test.js +92 -0
- package/dist/theme/presets/cyber-volt.d.ts +12 -0
- package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
- package/dist/theme/presets/cyber-volt.js +70 -0
- package/dist/theme/presets/regal.d.ts +8 -0
- package/dist/theme/presets/regal.d.ts.map +1 -0
- package/dist/theme/presets/regal.js +69 -0
- package/dist/theme/presets/rose-gold.d.ts +12 -0
- package/dist/theme/presets/rose-gold.d.ts.map +1 -0
- package/dist/theme/presets/rose-gold.js +76 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.ts +12 -1
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +80 -0
- package/dist/zustand/index.js +105 -0
- package/package.json +55 -4
- package/dist/chunk-2YW3LDFT.js +0 -1542
- package/dist/theme/presets/cyber-void.d.ts +0 -12
- package/dist/theme/presets/cyber-void.d.ts.map +0 -1
- package/dist/theme/presets/cyber-void.js +0 -75
- package/dist/{chunk-DVKEEY5J.js → chunk-TUXTSEAF.js} +1 -1
- package/dist/{chunk-U2522LSW.js → chunk-V7XHGJQZ.js} +1 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Time range selector for dashboard metrics
|
|
6
|
+
*/
|
|
7
|
+
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
8
|
+
/**
|
|
9
|
+
* Execution health metrics response
|
|
10
|
+
* Success rate, P95 duration, execution counts, and trend data
|
|
11
|
+
* trendData includes executionCount for throughput visualization (eliminates separate API call)
|
|
12
|
+
*/
|
|
13
|
+
interface ExecutionHealthMetrics {
|
|
14
|
+
successRate: number;
|
|
15
|
+
p95Duration: number;
|
|
16
|
+
totalExecutions: number;
|
|
17
|
+
trendData: Array<{
|
|
18
|
+
time: string;
|
|
19
|
+
rate: number;
|
|
20
|
+
successCount: number;
|
|
21
|
+
errorCount: number;
|
|
22
|
+
warningCount: number;
|
|
23
|
+
executionCount: number;
|
|
24
|
+
}>;
|
|
25
|
+
statusCounts: {
|
|
26
|
+
success: number;
|
|
27
|
+
failed: number;
|
|
28
|
+
pending: number;
|
|
29
|
+
warning: number;
|
|
30
|
+
};
|
|
31
|
+
peakPeriod: string;
|
|
32
|
+
granularity: 'hour' | 'day';
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Business impact metrics response
|
|
36
|
+
* ROI, labor savings, and cost analysis
|
|
37
|
+
*/
|
|
38
|
+
interface BusinessImpactMetrics {
|
|
39
|
+
totalSavingsUsd: number;
|
|
40
|
+
totalCostUsd: number;
|
|
41
|
+
netSavingsUsd: number;
|
|
42
|
+
roi: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Cost breakdown metrics response
|
|
46
|
+
* Per-resource cost analysis
|
|
47
|
+
*/
|
|
48
|
+
interface CostBreakdownMetrics {
|
|
49
|
+
resources: Array<{
|
|
50
|
+
resourceId: string;
|
|
51
|
+
totalCostUsd: number;
|
|
52
|
+
executionCount: number;
|
|
53
|
+
avgCostUsd: number;
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Dashboard metrics response
|
|
58
|
+
* Aggregates core observability metrics in a single response
|
|
59
|
+
* Note: Throughput data is now included in executionHealth.trendData.executionCount
|
|
60
|
+
*/
|
|
61
|
+
interface DashboardMetrics {
|
|
62
|
+
executionHealth: ExecutionHealthMetrics;
|
|
63
|
+
costBreakdown: CostBreakdownMetrics;
|
|
64
|
+
businessImpact: BusinessImpactMetrics;
|
|
65
|
+
/** ISO timestamp of the currently active deployment, or null if none */
|
|
66
|
+
activeDeploymentDate: string | null;
|
|
67
|
+
/** Deployment version of the active deployment, or null if none */
|
|
68
|
+
activeDeploymentVersion: string | null;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Summary of executions for a single resource
|
|
72
|
+
* Used by RecentExecutionsByResource dashboard component
|
|
73
|
+
*/
|
|
74
|
+
interface ResourceExecutionSummary {
|
|
75
|
+
resourceId: string;
|
|
76
|
+
resourceType: string;
|
|
77
|
+
resourceName: string | null;
|
|
78
|
+
lastExecution: string;
|
|
79
|
+
totalExecutions: number;
|
|
80
|
+
successCount: number;
|
|
81
|
+
failureCount: number;
|
|
82
|
+
warningCount: number;
|
|
83
|
+
successRate: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Resource Registry type definitions
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Environment/deployment status for resources
|
|
92
|
+
*/
|
|
93
|
+
type ResourceStatus = 'dev' | 'prod';
|
|
94
|
+
/**
|
|
95
|
+
* All resource types in the platform
|
|
96
|
+
* Used as the discriminator field in ResourceDefinition
|
|
97
|
+
*/
|
|
98
|
+
type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
|
|
99
|
+
/**
|
|
100
|
+
* Base interface for ALL platform resources
|
|
101
|
+
* Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
|
|
102
|
+
*/
|
|
103
|
+
interface ResourceDefinition {
|
|
104
|
+
/** Unique resource identifier */
|
|
105
|
+
resourceId: string;
|
|
106
|
+
/** Display name */
|
|
107
|
+
name: string;
|
|
108
|
+
/** Purpose and functionality description */
|
|
109
|
+
description: string;
|
|
110
|
+
/** Version for change tracking and evolution */
|
|
111
|
+
version: string;
|
|
112
|
+
/** Resource type discriminator */
|
|
113
|
+
type: ResourceType;
|
|
114
|
+
/** Environment/deployment status */
|
|
115
|
+
status: ResourceStatus;
|
|
116
|
+
/** Domain tags for filtering and organization */
|
|
117
|
+
domains?: ResourceDomain[];
|
|
118
|
+
/** Whether the agent supports multi-turn sessions (agents only) */
|
|
119
|
+
sessionCapable?: boolean;
|
|
120
|
+
/** Whether the resource is local (monorepo) or remote (externally deployed) */
|
|
121
|
+
origin?: 'local' | 'remote';
|
|
122
|
+
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
123
|
+
archived?: boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Standard Domain Definitions
|
|
128
|
+
* Centralized domain constants and definitions for all organization resources.
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
declare const DOMAINS: {
|
|
132
|
+
readonly INBOUND_PIPELINE: "inbound-pipeline";
|
|
133
|
+
readonly LEAD_GEN_PIPELINE: "lead-gen-pipeline";
|
|
134
|
+
readonly SUPPORT: "support";
|
|
135
|
+
readonly CLIENT_SUPPORT: "client-support";
|
|
136
|
+
readonly DELIVERY: "delivery";
|
|
137
|
+
readonly OPERATIONS: "operations";
|
|
138
|
+
readonly FINANCE: "finance";
|
|
139
|
+
readonly EXECUTIVE: "executive";
|
|
140
|
+
readonly INSTANTLY: "instantly";
|
|
141
|
+
readonly TESTING: "testing";
|
|
142
|
+
readonly INTERNAL: "internal";
|
|
143
|
+
readonly INTEGRATION: "integration";
|
|
144
|
+
readonly UTILITY: "utility";
|
|
145
|
+
readonly DIAGNOSTIC: "diagnostic";
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* ResourceDomain - Strongly typed domain identifier
|
|
149
|
+
* Use this type for all domain references to ensure compile-time validation.
|
|
150
|
+
*/
|
|
151
|
+
type ResourceDomain = (typeof DOMAINS)[keyof typeof DOMAINS];
|
|
152
|
+
|
|
153
|
+
interface DashboardProps {
|
|
154
|
+
/**
|
|
155
|
+
* Active time range for all metrics queries.
|
|
156
|
+
*/
|
|
157
|
+
timeRange: TimeRange;
|
|
158
|
+
/**
|
|
159
|
+
* Business-impact metrics computed by the CC wrapper.
|
|
160
|
+
* Stays CC-local per decision lock #4.
|
|
161
|
+
* TODO(Wave 2): thread to HeroStatsRow once the CC wrapper wires it through.
|
|
162
|
+
*/
|
|
163
|
+
businessImpact?: ReturnType<() => {
|
|
164
|
+
data: BusinessImpactMetrics | undefined;
|
|
165
|
+
isLoading: boolean;
|
|
166
|
+
}>;
|
|
167
|
+
/**
|
|
168
|
+
* Cost breakdown metrics computed by the CC wrapper.
|
|
169
|
+
* Stays CC-local per decision lock #4.
|
|
170
|
+
* TODO(Wave 2): thread to HeroStatsRow once the CC wrapper wires it through.
|
|
171
|
+
*/
|
|
172
|
+
costBreakdown?: ReturnType<() => {
|
|
173
|
+
data: CostBreakdownMetrics | undefined;
|
|
174
|
+
isLoading: boolean;
|
|
175
|
+
}>;
|
|
176
|
+
/**
|
|
177
|
+
* Called when the user clicks a resource card.
|
|
178
|
+
*/
|
|
179
|
+
onResourceClick?: (params: {
|
|
180
|
+
resourceId: string;
|
|
181
|
+
resourceType?: string;
|
|
182
|
+
}) => void;
|
|
183
|
+
/**
|
|
184
|
+
* Called when the user wants to drill into the unresolved errors view.
|
|
185
|
+
*/
|
|
186
|
+
onErrorsNavigate?: () => void;
|
|
187
|
+
/**
|
|
188
|
+
* Called when the user wants to navigate to the command queue.
|
|
189
|
+
* Minor refinement over locked props shape — OperationalOverview has this link target.
|
|
190
|
+
*/
|
|
191
|
+
onCommandQueueNavigate?: () => void;
|
|
192
|
+
/**
|
|
193
|
+
* Called when the user wants to navigate to the task scheduler.
|
|
194
|
+
* Minor refinement over locked props shape — OperationalOverview has this link target.
|
|
195
|
+
*/
|
|
196
|
+
onScheduledTasksNavigate?: () => void;
|
|
197
|
+
/**
|
|
198
|
+
* Custom render function for the execution trend chart.
|
|
199
|
+
* The wrapper owns the chart implementation (CC uses its monitoring-local CombinedTrendChart).
|
|
200
|
+
* Receives executionHealth data, loading state, and error from useDashboardMetrics.
|
|
201
|
+
* If omitted, the trend chart section is not rendered.
|
|
202
|
+
*/
|
|
203
|
+
renderTrendChart?: (data: DashboardMetrics['executionHealth'] | undefined, isLoading: boolean, error?: Error) => ReactNode;
|
|
204
|
+
}
|
|
205
|
+
declare function Dashboard({ timeRange, onResourceClick, onErrorsNavigate, onCommandQueueNavigate, onScheduledTasksNavigate, renderTrendChart }: DashboardProps): react_jsx_runtime.JSX.Element;
|
|
206
|
+
|
|
207
|
+
interface DisplayResource {
|
|
208
|
+
resourceId: string;
|
|
209
|
+
name: string;
|
|
210
|
+
type: string;
|
|
211
|
+
status: string;
|
|
212
|
+
active: boolean;
|
|
213
|
+
execution?: ResourceExecutionSummary;
|
|
214
|
+
}
|
|
215
|
+
interface ResourceOverviewProps {
|
|
216
|
+
recentExecutions?: ResourceExecutionSummary[];
|
|
217
|
+
allResources?: {
|
|
218
|
+
workflows: ResourceDefinition[];
|
|
219
|
+
agents: ResourceDefinition[];
|
|
220
|
+
};
|
|
221
|
+
isLoading: boolean;
|
|
222
|
+
limit?: number;
|
|
223
|
+
onResourceClick?: (resource: DisplayResource) => void;
|
|
224
|
+
}
|
|
225
|
+
declare function ResourceOverview({ recentExecutions, allResources, isLoading, limit, onResourceClick }: ResourceOverviewProps): react_jsx_runtime.JSX.Element;
|
|
226
|
+
|
|
227
|
+
interface RecentExecutionsByResourceProps {
|
|
228
|
+
timeRange: TimeRange;
|
|
229
|
+
limit?: number;
|
|
230
|
+
onResourceClick?: (params: {
|
|
231
|
+
resourceType: string;
|
|
232
|
+
resourceId: string;
|
|
233
|
+
}) => void;
|
|
234
|
+
}
|
|
235
|
+
declare function RecentExecutionsByResource({ timeRange, limit, onResourceClick }: RecentExecutionsByResourceProps): react_jsx_runtime.JSX.Element;
|
|
236
|
+
|
|
237
|
+
interface UnresolvedErrorsTeaserProps {
|
|
238
|
+
timeRange: TimeRange;
|
|
239
|
+
onNavigateToAllErrors?: () => void;
|
|
240
|
+
}
|
|
241
|
+
declare function UnresolvedErrorsTeaser({ timeRange, onNavigateToAllErrors }: UnresolvedErrorsTeaserProps): react_jsx_runtime.JSX.Element;
|
|
242
|
+
|
|
243
|
+
export { Dashboard, RecentExecutionsByResource, ResourceOverview, UnresolvedErrorsTeaser };
|
|
244
|
+
export type { DashboardProps, DisplayResource, RecentExecutionsByResourceProps, ResourceOverviewProps, UnresolvedErrorsTeaserProps };
|