From 26955439f42946b90550ffca2b0da7d155f42c6e Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Tue, 19 Dec 2023 11:14:19 -0500 Subject: [PATCH] 19675: Use detailsattribute to display instance type properties similar to resources panel Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- .../instance-types-panel.tsx | 55 ++++++++++--------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/services/workbench2/src/views/instance-types-panel/instance-types-panel.tsx b/services/workbench2/src/views/instance-types-panel/instance-types-panel.tsx index 3a6247b624..5afdd6296e 100644 --- a/services/workbench2/src/views/instance-types-panel/instance-types-panel.tsx +++ b/services/workbench2/src/views/instance-types-panel/instance-types-panel.tsx @@ -11,6 +11,7 @@ import { connect } from 'react-redux'; import { ClusterConfigJSON } from 'common/config'; import { NotFoundView } from 'views/not-found-panel/not-found-panel'; import { formatCWLResourceSize, formatCost, formatFileSize } from 'common/formatters'; +import { DetailsAttribute } from 'components/details-attribute/details-attribute'; type CssRules = 'root' | 'instanceType'; @@ -61,35 +62,35 @@ export const InstanceTypesPanel = withStyles(styles)(connect(mapStateToProps)( {instanceKey} - - Provider type: {instanceType.ProviderType} - - - Price: {formatCost(instanceType.Price)} - - - Cores: {instanceType.VCPUs} - - - Max RAM request: {formatCWLResourceSize(ramRequest)} ({formatFileSize(ramRequest)}) - - - Max disk request: {formatCWLResourceSize(diskRequest)} ({formatFileSize(diskRequest)}) - - - Preemptible: {instanceType.Preemptible.toString()} - + + + + + + + + + + + + + + + + + + {instanceType.CUDA && instanceType.CUDA.DeviceCount > 0 ? <> - - CUDA GPUs: {instanceType.CUDA.DeviceCount} - - - Hardware capability: {instanceType.CUDA.HardwareCapability} - - - Driver version: {instanceType.CUDA.DriverVersion} - + + + + + + + + + : <> } -- 2.30.2