From 82203adf9b648b418fbbec63ddd7790734457de3 Mon Sep 17 00:00:00 2001 From: luxiang Date: Mon, 30 Mar 2026 21:28:24 +0800 Subject: [PATCH 1/3] ENH: add worker details for deploy progress --- .../components/launchModelDrawer.js | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js b/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js index d6d66b6a9e..239d57b2ea 100644 --- a/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js +++ b/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js @@ -196,6 +196,8 @@ const LaunchModelDrawer = ({ return Object.entries(obj).map(([key, value]) => ({ key, value })) } + const getReplicaWorkerAddress = (replica) => replica?.worker_address || '—' + const restoreNGPU = (value) => { if (value === null) return 'CPU' if (value === 'auto') { @@ -1258,14 +1260,28 @@ const LaunchModelDrawer = ({ sx={{ display: 'flex', justifyContent: 'space-between', - alignItems: 'center', + alignItems: 'flex-start', mb: 0.5, + gap: 1.5, }} > - - {t('modelReplicaDetails.replica')}{' '} - {replica.replica_id}: - + + + {t('modelReplicaDetails.replica')}{' '} + {replica.replica_id}: + + + {getReplicaWorkerAddress(replica)} + + Date: Mon, 30 Mar 2026 21:53:06 +0800 Subject: [PATCH 2/3] fix --- .../components/launchModelDrawer.js | 48 ++++++++++++++++--- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js b/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js index 239d57b2ea..5d8fc7a4b6 100644 --- a/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js +++ b/xinference/ui/web/ui/src/scenes/launch_model/components/launchModelDrawer.js @@ -1250,7 +1250,10 @@ const LaunchModelDrawer = ({ title={ isShowCancel ? ( - + {t('launchModel.launchProgress')}: {replicaStatuses.length > 0 ? ( @@ -1260,22 +1263,27 @@ const LaunchModelDrawer = ({ sx={{ display: 'flex', justifyContent: 'space-between', - alignItems: 'flex-start', - mb: 0.5, + alignItems: 'center', + mb: 0.75, gap: 1.5, }} > - + {t('modelReplicaDetails.replica')}{' '} {replica.replica_id}: @@ -1292,12 +1300,20 @@ const LaunchModelDrawer = ({ : 'default' } size="small" - sx={{ height: 20, fontSize: '0.7rem' }} + sx={{ + height: 22, + fontSize: '0.7rem', + fontWeight: 600, + '&.MuiChip-colorDefault': { + bgcolor: 'rgba(255, 255, 255, 0.14)', + color: '#fff', + }, + }} /> )) ) : ( - + {t('launchModel.initializing')} )} @@ -1308,6 +1324,24 @@ const LaunchModelDrawer = ({ } placement="top" arrow + slotProps={{ + tooltip: { + sx: { + bgcolor: 'rgba(17, 24, 39, 0.96)', + color: '#fff', + border: '1px solid rgba(255, 255, 255, 0.12)', + boxShadow: 6, + px: 1.5, + py: 1.25, + maxWidth: 360, + }, + }, + arrow: { + sx: { + color: 'rgba(17, 24, 39, 0.96)', + }, + }, + }} >