style: detail layout

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent 667751dc5f
commit 5747cae87a
23 changed files with 506 additions and 234 deletions
+4 -1
View File
@@ -7,6 +7,7 @@ export const BenchmarkStatusValueMap = {
Running: 'running',
Completed: 'completed',
Error: 'error',
Stopped: 'stopped',
Unreachable: 'unreachable'
};
@@ -16,6 +17,7 @@ export const BenchmarkStatusLabelMap = {
[BenchmarkStatusValueMap.Running]: 'Running',
[BenchmarkStatusValueMap.Completed]: 'Completed',
[BenchmarkStatusValueMap.Error]: 'Error',
[BenchmarkStatusValueMap.Stopped]: 'Stopped',
[BenchmarkStatusValueMap.Unreachable]: 'Unreachable'
};
@@ -25,7 +27,8 @@ export const BenchmarkStatus: Record<string, StatusType> = {
[BenchmarkStatusValueMap.Running]: StatusMaps.success,
[BenchmarkStatusValueMap.Completed]: StatusMaps.success,
[BenchmarkStatusValueMap.Error]: StatusMaps.error,
[BenchmarkStatusValueMap.Unreachable]: StatusMaps.error
[BenchmarkStatusValueMap.Unreachable]: StatusMaps.error,
[BenchmarkStatusValueMap.Stopped]: StatusMaps.warning
};
export const ProfileValueMap = {
+1
View File
@@ -91,6 +91,7 @@ export interface BenchmarkListItem extends FormData {
updated_at: string;
state: string;
state_message: string;
progress: number;
instance_snapshot: InstanceSnapshot;
gpu_snapshot: GPUSnapshot[];
}