1- import { Service } from '@data/containerResources' ;
1+ import { Service , formatResourcesSummary } from '@data/containerResources' ;
22import { DeploymentContextType , useDeploymentContext } from '@lib/contexts/deployment' ;
3- import { getContainerOrWorkerType , getContainerOrWorkerTypeDescription } from '@lib/deeploy-utils' ;
3+ import { getContainerOrWorkerType } from '@lib/deeploy-utils' ;
44import { applyWidthClasses } from '@lib/utils' ;
55import DraftJobsList from '@shared/jobs/drafts/DraftJobsList' ;
66import { SmallTag } from '@shared/SmallTag' ;
77import { JobType , ServiceDraftJob } from '@typedefs/deeploys' ;
88import { RiDatabase2Line } from 'react-icons/ri' ;
99
1010const widthClasses = [
11- 'min-w-[128px ]' , // alias
11+ 'min-w-[138px ]' , // alias
1212 'min-w-[80px]' , // duration
1313 'min-w-[90px]' , // targetNodes
14- 'min-w-[82px ]' , // database
14+ 'min-w-[90px ]' , // type
1515 'min-w-[310px]' , // resources
1616] ;
1717
@@ -27,7 +27,7 @@ export default function ServiceDraftJobsList({ jobs }: { jobs: ServiceDraftJob[]
2727 </ div >
2828 }
2929 tableHeader = {
30- < > { applyWidthClasses ( [ 'Alias' , 'Duration' , 'Target Nodes' , 'Database ' , 'Container Type' ] , widthClasses ) } </ >
30+ < > { applyWidthClasses ( [ 'Alias' , 'Duration' , 'Target Nodes' , 'Type ' , 'Container Type' ] , widthClasses ) } </ >
3131 }
3232 jobs = { jobs }
3333 renderJob = { ( job ) => {
@@ -50,11 +50,11 @@ export default function ServiceDraftJobsList({ jobs }: { jobs: ServiceDraftJob[]
5050 < div className = { widthClasses [ 2 ] } > { serviceJob . specifications . targetNodesCount } </ div >
5151
5252 < div className = { widthClasses [ 3 ] } >
53- < SmallTag variant = { containerOrWorkerType . notesColor } > { containerOrWorkerType . dbSystem } </ SmallTag >
53+ < SmallTag variant = { containerOrWorkerType . notesColor } > { containerOrWorkerType . serviceName } </ SmallTag >
5454 </ div >
5555
5656 < div className = { widthClasses [ 4 ] } >
57- { containerOrWorkerType . name } ({ getContainerOrWorkerTypeDescription ( containerOrWorkerType ) } )
57+ { containerOrWorkerType . name } ({ formatResourcesSummary ( containerOrWorkerType ) } )
5858 </ div >
5959 </ >
6060 ) ;
0 commit comments