feat(gpu-service): add status column to storage and storage-type lists

This commit is contained in:
jialin
2026-07-08 16:55:42 +08:00
committed by jialin
parent 644aba3fc2
commit 70229a9757
6 changed files with 73 additions and 29 deletions
@@ -3,21 +3,18 @@ import { StatusType } from '@/config/types';
import { icons } from '@gpustack/core-ui';
export const StoragePhaseValueMap = {
Available: 'Available',
Unavailable: 'Unavailable',
Pending: 'Pending'
Ready: 'Ready',
Deleting: 'Deleting'
};
export const StoragePhaseLabelMap: Record<string, string> = {
[StoragePhaseValueMap.Available]: 'Available',
[StoragePhaseValueMap.Unavailable]: 'Unavailable',
[StoragePhaseValueMap.Pending]: 'Pending'
[StoragePhaseValueMap.Ready]: 'Ready',
[StoragePhaseValueMap.Deleting]: 'Deleting'
};
export const status: Record<string, StatusType> = {
[StoragePhaseValueMap.Available]: StatusMaps.success,
[StoragePhaseValueMap.Unavailable]: StatusMaps.error,
[StoragePhaseValueMap.Pending]: StatusMaps.transitioning
[StoragePhaseValueMap.Ready]: StatusMaps.success,
[StoragePhaseValueMap.Deleting]: StatusMaps.warning
};
export const rowActionList = [
@@ -33,6 +33,7 @@ export interface ListItem {
};
status?: {
phase?: string | null;
phaseMessage?: string | null;
} | null;
}