@wakastellar/ui 2.1.2 → 2.3.0
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/blocks/apm-overview/index.d.ts +58 -0
- package/dist/blocks/cicd-builder/index.d.ts +47 -0
- package/dist/blocks/cloud-cost-dashboard/index.d.ts +49 -0
- package/dist/blocks/container-orchestrator/index.d.ts +63 -0
- package/dist/blocks/database-admin/index.d.ts +84 -0
- package/dist/blocks/gitops-sync-status/index.d.ts +45 -0
- package/dist/blocks/incident-manager/index.d.ts +44 -0
- package/dist/blocks/index.d.ts +10 -0
- package/dist/blocks/infrastructure-map/index.d.ts +32 -0
- package/dist/blocks/on-call-schedule/index.d.ts +43 -0
- package/dist/blocks/release-notes/index.d.ts +49 -0
- package/dist/components/index.d.ts +19 -0
- package/dist/components/waka-alert-panel/index.d.ts +45 -0
- package/dist/components/waka-artifact-list/index.d.ts +32 -0
- package/dist/components/waka-build-matrix/index.d.ts +36 -0
- package/dist/components/waka-config-comparator/index.d.ts +37 -0
- package/dist/components/waka-container-list/index.d.ts +51 -0
- package/dist/components/waka-database-card/index.d.ts +46 -0
- package/dist/components/waka-dependency-tree/index.d.ts +38 -0
- package/dist/components/waka-env-var-editor/index.d.ts +30 -0
- package/dist/components/waka-feature-flag-row/index.d.ts +45 -0
- package/dist/components/waka-kubernetes-overview/index.d.ts +98 -0
- package/dist/components/waka-log-viewer/index.d.ts +38 -0
- package/dist/components/waka-migration-list/index.d.ts +36 -0
- package/dist/components/waka-pod-card/index.d.ts +73 -0
- package/dist/components/waka-query-explain/index.d.ts +48 -0
- package/dist/components/waka-secret-card/index.d.ts +43 -0
- package/dist/components/waka-security-scan-result/index.d.ts +45 -0
- package/dist/components/waka-service-graph/index.d.ts +44 -0
- package/dist/components/waka-test-report/index.d.ts +60 -0
- package/dist/components/waka-trace-viewer/index.d.ts +36 -0
- package/dist/index.cjs.js +239 -194
- package/dist/index.es.js +45560 -35791
- package/package.json +1 -1
- package/src/blocks/apm-overview/index.tsx +672 -0
- package/src/blocks/cicd-builder/index.tsx +738 -0
- package/src/blocks/cloud-cost-dashboard/index.tsx +597 -0
- package/src/blocks/container-orchestrator/index.tsx +729 -0
- package/src/blocks/database-admin/index.tsx +679 -0
- package/src/blocks/gitops-sync-status/index.tsx +557 -0
- package/src/blocks/incident-manager/index.tsx +586 -0
- package/src/blocks/index.ts +119 -0
- package/src/blocks/infrastructure-map/index.tsx +638 -0
- package/src/blocks/on-call-schedule/index.tsx +615 -0
- package/src/blocks/release-notes/index.tsx +643 -0
- package/src/components/index.ts +189 -0
- package/src/components/waka-alert-panel/index.tsx +493 -0
- package/src/components/waka-artifact-list/index.tsx +416 -0
- package/src/components/waka-build-matrix/index.tsx +396 -0
- package/src/components/waka-config-comparator/index.tsx +416 -0
- package/src/components/waka-container-list/index.tsx +475 -0
- package/src/components/waka-database-card/index.tsx +473 -0
- package/src/components/waka-dependency-tree/index.tsx +542 -0
- package/src/components/waka-env-var-editor/index.tsx +417 -0
- package/src/components/waka-feature-flag-row/index.tsx +386 -0
- package/src/components/waka-kubernetes-overview/index.tsx +536 -0
- package/src/components/waka-log-viewer/index.tsx +386 -0
- package/src/components/waka-migration-list/index.tsx +487 -0
- package/src/components/waka-pod-card/index.tsx +528 -0
- package/src/components/waka-query-explain/index.tsx +657 -0
- package/src/components/waka-secret-card/index.tsx +371 -0
- package/src/components/waka-security-scan-result/index.tsx +473 -0
- package/src/components/waka-service-graph/index.tsx +445 -0
- package/src/components/waka-test-report/index.tsx +469 -0
- package/src/components/waka-trace-viewer/index.tsx +490 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type ServiceHealth = "healthy" | "degraded" | "unhealthy" | "unknown";
|
|
2
|
+
export type ServiceType = "api" | "database" | "cache" | "queue" | "gateway" | "external";
|
|
3
|
+
export interface ServiceNode {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: ServiceType;
|
|
7
|
+
health: ServiceHealth;
|
|
8
|
+
namespace?: string;
|
|
9
|
+
version?: string;
|
|
10
|
+
replicas?: number;
|
|
11
|
+
requestsPerSec?: number;
|
|
12
|
+
errorRate?: number;
|
|
13
|
+
latencyP50?: number;
|
|
14
|
+
latencyP99?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ServiceConnection {
|
|
17
|
+
source: string;
|
|
18
|
+
target: string;
|
|
19
|
+
protocol?: string;
|
|
20
|
+
requestsPerSec?: number;
|
|
21
|
+
errorRate?: number;
|
|
22
|
+
latency?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface WakaServiceGraphProps {
|
|
25
|
+
/** List of services */
|
|
26
|
+
services: ServiceNode[];
|
|
27
|
+
/** List of connections between services */
|
|
28
|
+
connections: ServiceConnection[];
|
|
29
|
+
/** Selected service ID */
|
|
30
|
+
selectedService?: string;
|
|
31
|
+
/** Callback when clicking on a service */
|
|
32
|
+
onServiceClick?: (service: ServiceNode) => void;
|
|
33
|
+
/** Callback when clicking on a connection */
|
|
34
|
+
onConnectionClick?: (connection: ServiceConnection) => void;
|
|
35
|
+
/** Callback when refreshing */
|
|
36
|
+
onRefresh?: () => void;
|
|
37
|
+
/** Show metrics on nodes */
|
|
38
|
+
showMetrics?: boolean;
|
|
39
|
+
/** Custom class name */
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function WakaServiceGraph({ services, connections, selectedService, onServiceClick, onConnectionClick, onRefresh, showMetrics, className, }: WakaServiceGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const defaultServices: ServiceNode[];
|
|
44
|
+
export declare const defaultConnections: ServiceConnection[];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type TestStatus = "passed" | "failed" | "skipped" | "pending";
|
|
2
|
+
export interface TestCase {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
status: TestStatus;
|
|
6
|
+
duration: number;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
stackTrace?: string;
|
|
9
|
+
file?: string;
|
|
10
|
+
line?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface TestSuite {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
file?: string;
|
|
16
|
+
tests: TestCase[];
|
|
17
|
+
duration: number;
|
|
18
|
+
timestamp?: Date;
|
|
19
|
+
}
|
|
20
|
+
export interface CoverageReport {
|
|
21
|
+
lines: {
|
|
22
|
+
covered: number;
|
|
23
|
+
total: number;
|
|
24
|
+
percentage: number;
|
|
25
|
+
};
|
|
26
|
+
branches: {
|
|
27
|
+
covered: number;
|
|
28
|
+
total: number;
|
|
29
|
+
percentage: number;
|
|
30
|
+
};
|
|
31
|
+
functions: {
|
|
32
|
+
covered: number;
|
|
33
|
+
total: number;
|
|
34
|
+
percentage: number;
|
|
35
|
+
};
|
|
36
|
+
statements: {
|
|
37
|
+
covered: number;
|
|
38
|
+
total: number;
|
|
39
|
+
percentage: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface WakaTestReportProps {
|
|
43
|
+
/** Test suites */
|
|
44
|
+
suites: TestSuite[];
|
|
45
|
+
/** Coverage report */
|
|
46
|
+
coverage?: CoverageReport;
|
|
47
|
+
/** Title */
|
|
48
|
+
title?: string;
|
|
49
|
+
/** Callback when clicking on a test */
|
|
50
|
+
onTestClick?: (test: TestCase) => void;
|
|
51
|
+
/** Callback when viewing test file */
|
|
52
|
+
onViewFile?: (file: string, line?: number) => void;
|
|
53
|
+
/** Show only failed tests */
|
|
54
|
+
showFailedOnly?: boolean;
|
|
55
|
+
/** Custom class name */
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare function WakaTestReport({ suites, coverage, title, onTestClick, onViewFile, showFailedOnly, className, }: WakaTestReportProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare const defaultTestSuites: TestSuite[];
|
|
60
|
+
export declare const defaultCoverage: CoverageReport;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type SpanStatus = "ok" | "error" | "unset";
|
|
2
|
+
export interface TraceSpan {
|
|
3
|
+
id: string;
|
|
4
|
+
traceId: string;
|
|
5
|
+
parentId?: string;
|
|
6
|
+
operationName: string;
|
|
7
|
+
serviceName: string;
|
|
8
|
+
startTime: number;
|
|
9
|
+
duration: number;
|
|
10
|
+
status: SpanStatus;
|
|
11
|
+
tags?: Record<string, string | number | boolean>;
|
|
12
|
+
logs?: Array<{
|
|
13
|
+
timestamp: number;
|
|
14
|
+
message: string;
|
|
15
|
+
level?: "info" | "warn" | "error";
|
|
16
|
+
}>;
|
|
17
|
+
children?: TraceSpan[];
|
|
18
|
+
}
|
|
19
|
+
export interface WakaTraceViewerProps {
|
|
20
|
+
/** Root spans of the trace */
|
|
21
|
+
spans: TraceSpan[];
|
|
22
|
+
/** Trace ID */
|
|
23
|
+
traceId?: string;
|
|
24
|
+
/** Total trace duration */
|
|
25
|
+
totalDuration?: number;
|
|
26
|
+
/** Callback when clicking on a span */
|
|
27
|
+
onSpanClick?: (span: TraceSpan) => void;
|
|
28
|
+
/** Callback when copying trace ID */
|
|
29
|
+
onCopyTraceId?: (traceId: string) => void;
|
|
30
|
+
/** Show service colors */
|
|
31
|
+
showServiceColors?: boolean;
|
|
32
|
+
/** Custom class name */
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function WakaTraceViewer({ spans, traceId, totalDuration: propTotalDuration, onSpanClick, onCopyTraceId, showServiceColors, className, }: WakaTraceViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const defaultTraceSpans: TraceSpan[];
|