Skip to content

Commit 39bdb03

Browse files
committed
feat(FR-2665): rename sidebar menu Serving → Deployments
1 parent c0a7db6 commit 39bdb03

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

react/src/hooks/useWebUIMenuItems.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const VALID_MENU_KEYS = [
8585
'summary', // alias to dashboard for backward compatibility
8686
'session',
8787
'job', // alias to session for backward compatibility
88-
'serving',
88+
'deployments',
8989
'model-store',
9090
'ai-agent',
9191
'chat',
@@ -101,7 +101,7 @@ export const VALID_MENU_KEYS = [
101101
'scheduler',
102102
'resource-policy',
103103
'reservoir',
104-
'admin-serving',
104+
'admin-deployments',
105105
'admin-dashboard',
106106
'admin-data',
107107
'project-admin-users',
@@ -126,7 +126,7 @@ const ALL_ADMIN_PAGE_KEYS: ReadonlySet<string> = new Set([
126126
'scheduler',
127127
'resource-policy',
128128
'reservoir',
129-
'admin-serving',
129+
'admin-deployments',
130130
'admin-dashboard',
131131
'admin-data',
132132
'project-admin-users',
@@ -141,13 +141,13 @@ const ALL_ADMIN_PAGE_KEYS: ReadonlySet<string> = new Set([
141141
]);
142142

143143
// Admin-category page keys reachable by a project admin (3-tier admin gating).
144-
// Project admins see Sessions, Serving, Data (vfolders) and Members within the
145-
// admin category. Other admin pages remain visible only to domain admins or
144+
// Project admins see Sessions, Deployments, Data (vfolders) and Members within
145+
// the admin category. Other admin pages remain visible only to domain admins or
146146
// superadmins. Kept as a plain array so it can be exported and reused (e.g. for
147147
// per-page route gating in follow-up PRs).
148148
export const PROJECT_ADMIN_PAGE_KEYS = [
149149
// 'admin-session',
150-
// 'admin-serving',
150+
// 'admin-deployments',
151151
// 'admin-data',
152152
'project-admin-users',
153153
] as const;
@@ -158,7 +158,7 @@ const PROJECT_ADMIN_PAGE_KEY_SET: ReadonlySet<string> = new Set(
158158

159159
// Page keys that additionally require superadmin role
160160
const SUPERADMIN_ONLY_PAGE_KEYS: ReadonlySet<string> = new Set([
161-
'admin-serving',
161+
'admin-deployments',
162162
'admin-dashboard',
163163
'admin-data',
164164
'agent',
@@ -268,10 +268,10 @@ export const useWebUIMenuItems = (props?: UseWebUIMenuItemsProps) => {
268268
'workload',
269269
),
270270
createMenuItem(
271-
'/serving',
272-
t('webui.menu.Serving'),
271+
'/deployments',
272+
t('webui.menu.Deployments'),
273273
<BAIEndpointsIcon style={{ color: token.colorPrimary }} />,
274-
'serving',
274+
'deployments',
275275
'service',
276276
),
277277
createMenuItem(
@@ -379,10 +379,12 @@ export const useWebUIMenuItems = (props?: UseWebUIMenuItemsProps) => {
379379
},
380380
isSuperAdmin && {
381381
label: (
382-
<WebUILink to="/admin-serving">{t('webui.menu.Serving')}</WebUILink>
382+
<WebUILink to="/admin-deployments">
383+
{t('webui.menu.Deployments')}
384+
</WebUILink>
383385
),
384386
icon: <BAIEndpointsIcon style={{ color: token.colorInfo }} />,
385-
key: 'admin-serving' as MenuKeys,
387+
key: 'admin-deployments' as MenuKeys,
386388
group: 'admin-operations' as AdminMenuGroupName,
387389
},
388390
{

react/src/pages/StartPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const StartPage: React.FC = () => {
208208
enableModelFolders && {
209209
id: 'modelService',
210210
rowSpan: 3,
211-
requiredMenuKey: 'serving',
211+
requiredMenuKey: 'deployments',
212212
columnSpan: 1,
213213
columnOffset: { 6: 0, 4: 0 },
214214
data: {

0 commit comments

Comments
 (0)