Skip to content

Commit fe7278f

Browse files
[refactor] Remove legacy manager UI support and tag from header
Removes the legacy manager UI tag from the manager header along with all related functionality: - Remove "Use Legacy UI" tag and tooltip from ManagerHeader component - Remove legacy UI i18n translation keys from all language files - Update ManagerUIState enum to only support DISABLED and NEW_UI states - Remove isLegacyManagerUI function and related service endpoints - Update openManager calls to remove legacy-specific options - Remove legacy manager commands from core commands - Update all tests to reflect the new two-state system - When server doesn't support v4, manager is now disabled instead of falling back to legacy UI This simplifies the manager architecture by removing the legacy UI fallback path entirely.
1 parent 5e625a5 commit fe7278f

File tree

18 files changed

+40
-261
lines changed

18 files changed

+40
-261
lines changed

src/components/dialog/content/LoadWorkflowWarning.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ const showInstallAllButton = computed(() => {
119119
120120
const openManager = async () => {
121121
await managerState.openManager({
122-
initialTab: ManagerTab.Missing,
123-
showToastOnLegacyError: true
122+
initialTab: ManagerTab.Missing
124123
})
125124
}
126125

src/components/helpcenter/HelpCenterMenuContent.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ const menuItems = computed<MenuItem[]>(() => {
315315
showRedDot: shouldShowManagerRedDot.value,
316316
action: async () => {
317317
await useManagerState().openManager({
318-
initialTab: ManagerTab.All,
319-
showToastOnLegacyError: false
318+
initialTab: ManagerTab.All
320319
})
321320
emit('close')
322321
}

src/components/topbar/CommandMenubar.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ const showSettings = (defaultPanel?: string) => {
139139
140140
const showManageExtensions = async () => {
141141
await managerState.openManager({
142-
initialTab: ManagerTab.All,
143-
showToastOnLegacyError: false
142+
initialTab: ManagerTab.All
144143
})
145144
}
146145

src/composables/useCoreCommands.ts

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,7 @@ export function useCoreCommands(): ComfyCommand[] {
745745
label: 'Custom Nodes Manager',
746746
versionAdded: '1.12.10',
747747
function: async () => {
748-
await useManagerState().openManager({
749-
showToastOnLegacyError: true
750-
})
748+
await useManagerState().openManager()
751749
}
752750
},
753751
{
@@ -771,8 +769,7 @@ export function useCoreCommands(): ComfyCommand[] {
771769
}
772770

773771
await managerState.openManager({
774-
initialTab: ManagerTab.UpdateAvailable,
775-
showToastOnLegacyError: false
772+
initialTab: ManagerTab.UpdateAvailable
776773
})
777774
}
778775
},
@@ -783,8 +780,7 @@ export function useCoreCommands(): ComfyCommand[] {
783780
versionAdded: '1.17.0',
784781
function: async () => {
785782
await useManagerState().openManager({
786-
initialTab: ManagerTab.Missing,
787-
showToastOnLegacyError: false
783+
initialTab: ManagerTab.Missing
788784
})
789785
}
790786
},
@@ -893,8 +889,7 @@ export function useCoreCommands(): ComfyCommand[] {
893889
label: 'Manager',
894890
function: async () => {
895891
await useManagerState().openManager({
896-
initialTab: ManagerTab.All,
897-
showToastOnLegacyError: false
892+
initialTab: ManagerTab.All
898893
})
899894
}
900895
},
@@ -954,31 +949,6 @@ export function useCoreCommands(): ComfyCommand[] {
954949
modelSelectorDialog.show()
955950
}
956951
},
957-
{
958-
id: 'Comfy.Manager.CustomNodesManager.ShowLegacyCustomNodesMenu',
959-
icon: 'pi pi-bars',
960-
label: 'Custom Nodes (Legacy)',
961-
versionAdded: '1.16.4',
962-
function: async () => {
963-
await useManagerState().openManager({
964-
legacyCommand: 'Comfy.Manager.CustomNodesManager.ToggleVisibility',
965-
showToastOnLegacyError: true,
966-
isLegacyOnly: true
967-
})
968-
}
969-
},
970-
{
971-
id: 'Comfy.Manager.ShowLegacyManagerMenu',
972-
icon: 'mdi mdi-puzzle',
973-
label: 'Manager Menu (Legacy)',
974-
versionAdded: '1.16.4',
975-
function: async () => {
976-
await useManagerState().openManager({
977-
showToastOnLegacyError: true,
978-
isLegacyOnly: true
979-
})
980-
}
981-
},
982952
{
983953
id: 'Comfy.Memory.UnloadModels',
984954
icon: 'mdi mdi-vacuum-outline',

src/locales/en/main.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@
177177
},
178178
"manager": {
179179
"title": "Custom Nodes Manager",
180-
"legacyMenuNotAvailable": "Legacy manager menu is not available, defaulting to the new manager menu.",
181-
"legacyManagerUI": "Use Legacy UI",
182-
"legacyManagerUIDescription": "To use the legacy Manager UI, start ComfyUI with --enable-manager-legacy-ui",
180+
"managerNotAvailable": "Manager is not available. Please check your settings.",
183181
"failed": "Failed",
184182
"failedToInstall": "Failed to Install",
185183
"installError": "Install Error",

src/locales/es/main.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,6 @@
633633
"installationQueue": "Cola de Instalación",
634634
"lastUpdated": "Última Actualización",
635635
"latestVersion": "Última",
636-
"legacyManagerUI": "Usar UI antigua",
637-
"legacyManagerUIDescription": "Para usar la UI antigua del Manager, inicia ComfyUI con --enable-manager-legacy-ui",
638-
"legacyMenuNotAvailable": "El menú del administrador antiguo no está disponible en esta versión de ComfyUI. Por favor, utiliza el nuevo menú del administrador en su lugar.",
639636
"license": "Licencia",
640637
"loadingVersions": "Cargando versiones...",
641638
"nightlyVersion": "Nocturna",

src/locales/fr/main.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,6 @@
633633
"installationQueue": "File d'attente d'installation",
634634
"lastUpdated": "Dernière mise à jour",
635635
"latestVersion": "Dernière",
636-
"legacyManagerUI": "Utiliser l'interface utilisateur héritée",
637-
"legacyManagerUIDescription": "Pour utiliser l'interface utilisateur de gestion héritée, démarrez ComfyUI avec --enable-manager-legacy-ui",
638-
"legacyMenuNotAvailable": "Le menu du gestionnaire de l'ancienne version n'est pas disponible dans cette version de ComfyUI. Veuillez utiliser le nouveau menu du gestionnaire à la place.",
639636
"license": "Licence",
640637
"loadingVersions": "Chargement des versions...",
641638
"nightlyVersion": "Nocturne",

src/locales/ja/main.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,6 @@
633633
"installationQueue": "インストールキュー",
634634
"lastUpdated": "最終更新日",
635635
"latestVersion": "最新",
636-
"legacyManagerUI": "レガシーUIを使用する",
637-
"legacyManagerUIDescription": "レガシーManager UIを使用するには、--enable-manager-legacy-uiを付けてComfyUIを起動してください",
638-
"legacyMenuNotAvailable": "このバージョンのComfyUIでは、レガシーマネージャーメニューは利用できません。新しいマネージャーメニューを使用してください。",
639636
"license": "ライセンス",
640637
"loadingVersions": "バージョンを読み込んでいます...",
641638
"nightlyVersion": "ナイトリー",

src/locales/ko/main.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,6 @@
633633
"installationQueue": "설치 대기열",
634634
"lastUpdated": "마지막 업데이트",
635635
"latestVersion": "최신",
636-
"legacyManagerUI": "구버전 매니저 UI 사용",
637-
"legacyManagerUIDescription": "구버전 매니저 UI를 사용하려면, ComfyUI를 --enable-manager-legacy-ui로 시작하세요",
638-
"legacyMenuNotAvailable": "이 버전의 ComfyUI에서는 구버전 매니저 메뉴를 사용할 수 없습니다. 대신 새로운 매니저 메뉴를 사용하십시오.",
639636
"license": "라이선스",
640637
"loadingVersions": "버전 로딩 중...",
641638
"nightlyVersion": "최신 테스트 버전(nightly)",

src/locales/ru/main.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,6 @@
633633
"installationQueue": "Очередь установки",
634634
"lastUpdated": "Последнее обновление",
635635
"latestVersion": "Последняя",
636-
"legacyManagerUI": "Использовать устаревший UI",
637-
"legacyManagerUIDescription": "Чтобы использовать устаревший UI менеджера, запустите ComfyUI с --enable-manager-legacy-ui",
638-
"legacyMenuNotAvailable": "Устаревшее меню менеджера недоступно в этой версии ComfyUI. Пожалуйста, используйте новое меню менеджера.",
639636
"license": "Лицензия",
640637
"loadingVersions": "Загрузка версий...",
641638
"nightlyVersion": "Ночная",

0 commit comments

Comments
 (0)