Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
366c550
migrate manager menu items
christian-byrne Apr 9, 2025
2aed31a
Update locales [skip ci]
invalid-email-address Apr 9, 2025
1f41367
switch to v2 manager API endpoints
christian-byrne Apr 9, 2025
363a46b
re-arrange menu items
christian-byrne Apr 11, 2025
5867103
await promises. update settings schema
christian-byrne Apr 14, 2025
7c14b26
move legacy option to startup arg
christian-byrne Apr 14, 2025
d3a629c
Add banner indicating how to use legacy manager UI
christian-byrne Apr 14, 2025
3c8adf4
Update locales [skip ci]
invalid-email-address Apr 14, 2025
eee3b74
add "Check for Updates", "Install Missing" menu items
christian-byrne Apr 14, 2025
dc2a470
Update locales [skip ci]
invalid-email-address Apr 14, 2025
05ec65f
use correct response shape
christian-byrne Apr 14, 2025
3862d78
improve command names
christian-byrne Apr 14, 2025
4a67a83
dont show missing nodes button in legacy manager mode
christian-byrne Apr 15, 2025
ced03ce
[Update to v2 API] update WS done message
christian-byrne Apr 15, 2025
7725b87
Update locales [skip ci]
invalid-email-address Apr 26, 2025
b348669
[manager] Update type definitions and schemas for menu items migration
christian-byrne Jun 13, 2025
f241b7f
[manager] Update core services for new manager API
christian-byrne Jun 13, 2025
ba1d067
[manager] Update composables and state management
christian-byrne Jun 13, 2025
b683a81
[manager] Update UI components for new manager interface
christian-byrne Jun 13, 2025
39ad018
[manager] Update tests for new manager API
christian-byrne Jun 13, 2025
5e43715
[manager] Fix test failures and missing type definitions
christian-byrne Jun 14, 2025
4249fe7
fix rebase errors
christian-byrne Jun 21, 2025
0f9d1f8
Update locales [skip ci]
invalid-email-address Jun 21, 2025
60e2f14
[Manager] Filter task queue and history by client id (#4241)
christian-byrne Jun 21, 2025
096e0c9
fix failed task tab state binding
christian-byrne Jun 22, 2025
8fbd076
[Manager] Fix: failed tasks logs not correctly partitioned in UI (#4242)
christian-byrne Jun 22, 2025
0f7e3f7
[tests] Update useServerLogs test to handle task-started events
christian-byrne Jun 22, 2025
dc85896
fix: logs stops listening after 1st of multiple queue tasks
christian-byrne Jun 23, 2025
a83a7fa
remove the temporary check for legacy custom node version of manager
christian-byrne Jun 23, 2025
babe324
[tests] Update useServerLogs test after log subscription change
christian-byrne Jun 23, 2025
558cfcc
[Manager] Add update all button functionality
viva-jinyi Jun 24, 2025
1cb94ca
[Manager] “Restarting” state after clicking restart button (#4269)
viva-jinyi Jun 26, 2025
7073c9d
fix rebase error
christian-byrne Jul 11, 2025
2e2647d
Update locales [skip ci]
invalid-email-address Jul 11, 2025
730b278
[test] Update PackVersionBadge test to use role selector instead of B…
viva-jinyi Jul 11, 2025
c28d451
migrate manager menu items
christian-byrne Apr 9, 2025
588bd99
Update locales [skip ci]
invalid-email-address Apr 9, 2025
de6ed34
switch to v2 manager API endpoints
christian-byrne Apr 9, 2025
54a0981
re-arrange menu items
christian-byrne Apr 11, 2025
eb5c49f
await promises. update settings schema
christian-byrne Apr 14, 2025
aba2e5e
move legacy option to startup arg
christian-byrne Apr 14, 2025
f8953a8
Add banner indicating how to use legacy manager UI
christian-byrne Apr 14, 2025
e780e1d
Update locales [skip ci]
invalid-email-address Apr 14, 2025
b01056e
add "Check for Updates", "Install Missing" menu items
christian-byrne Apr 14, 2025
bdd1230
Update locales [skip ci]
invalid-email-address Apr 14, 2025
1aee434
use correct response shape
christian-byrne Apr 14, 2025
f1610db
improve command names
christian-byrne Apr 14, 2025
4f94707
dont show missing nodes button in legacy manager mode
christian-byrne Apr 15, 2025
8075db4
[Update to v2 API] update WS done message
christian-byrne Apr 15, 2025
3fdbc28
Restore lost work from manager/menu-items-migration feature branch
christian-byrne Aug 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move legacy option to startup arg
  • Loading branch information
christian-byrne committed Jul 19, 2025
commit aba2e5edfc8dfebc57a60377c4a3a3231acaaf9c
23 changes: 21 additions & 2 deletions src/composables/useCoreCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { t } from '@/i18n'
import { api } from '@/scripts/api'
import { app } from '@/scripts/app'
import { addFluxKontextGroupNode } from '@/scripts/fluxKontextEditNode'
import { useComfyManagerService } from '@/services/comfyManagerService'
import { useDialogService } from '@/services/dialogService'
import { useLitegraphService } from '@/services/litegraphService'
import { useWorkflowService } from '@/services/workflowService'
Expand Down Expand Up @@ -665,8 +666,26 @@ export function useCoreCommands(): ComfyCommand[] {
icon: 'pi pi-objects-column',
label: 'Custom Nodes (Beta)',
versionAdded: '1.12.10',
function: () => {
dialogService.toggleManagerDialog()
function: async () => {
const isLegacyManagerUI =
await useComfyManagerService().isLegacyManagerUI()
if (isLegacyManagerUI) {
try {
await useCommandStore().execute(
'Comfy.Manager.Menu.ToggleVisibility' // This command is registered by legacy manager FE extension
)
} catch (error) {
useToastStore().add({
severity: 'error',
summary: t('g.error'),
detail: t('manager.legacyMenuNotAvailable'),
life: 3000
})
dialogService.showManagerDialog()
}
} else {
dialogService.showManagerDialog()
}
}
},
{
Expand Down
9 changes: 1 addition & 8 deletions src/constants/coreMenuCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ export const CORE_MENU_COMMANDS = [
],
[['Edit'], ['Comfy.ClearWorkflow']],
[['Edit'], ['Comfy.OpenClipspace']],
[
['Manager'],
[
'Comfy.Manager.CustomNodesManager.ShowCustomNodesMenu',
'Comfy.Manager.ShowLegacyManagerMenu',
'Comfy.Manager.CustomNodesManager.ShowLegacyCustomNodesMenu'
]
],
[['Manager'], ['Comfy.Manager.CustomNodesManager.ShowCustomNodesMenu']],
[
['Help'],
[
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
},
"manager": {
"title": "Custom Nodes Manager",
"legacyMenuNotAvailable": "Legacy manager menu is not available in this version of ComfyUI. Please use the new manager menu instead.",
"legacyMenuNotAvailable": "Legacy manager menu is not available, defaulting to the new manager menu.",
"failed": "Failed ({count})",
"noNodesFound": "No nodes found",
"noNodesFoundDescription": "The pack's nodes either could not be parsed, or the pack is a frontend extension only and doesn't have any nodes.",
Expand Down
15 changes: 13 additions & 2 deletions src/services/comfyManagerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ enum ManagerRoute {
GET_NODES = 'v2/customnode/getmappings',
GET_PACKS = 'v2/customnode/getlist',
IMPORT_FAIL_INFO = 'v2/customnode/import_fail_info',
REBOOT = 'v2/manager/reboot'
REBOOT = 'v2/manager/reboot',
IS_LEGACY_MANAGER_UI = 'v2/manager/is_legacy_manager_ui'
}

const managerApiClient = axios.create({
Expand Down Expand Up @@ -247,6 +248,15 @@ export const useComfyManagerService = () => {
)
}

const isLegacyManagerUI = async (signal?: AbortSignal) => {
const errorContext = 'Checking if user set Manager to use the legacy UI'

return executeRequest<boolean>(
() => managerApiClient.get(ManagerRoute.IS_LEGACY_MANAGER_UI, { signal }),
{ errorContext }
)
}

return {
// State
isLoading,
Expand All @@ -268,6 +278,7 @@ export const useComfyManagerService = () => {
updateAllPacks,

// System operations
rebootComfyUI
rebootComfyUI,
isLegacyManagerUI
}
}