Support node deprecated/experimental flag (#563)

* Add deprecated field

* Hide deprecated nodes

* Add experimental node show/hide

* Add setting tooltips

* nit

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-08-20 17:00:47 -04:00
committed by GitHub
parent 269e468425
commit 9dd6da3dc2
7 changed files with 120 additions and 9 deletions

View File

@@ -147,6 +147,24 @@ export const useSettingStore = defineStore('setting', {
type: 'boolean',
defaultValue: true
})
app.ui.settings.addSetting({
id: 'Comfy.Node.ShowDeprecated',
name: 'Show deprecated nodes in search',
tooltip:
'Deprecated nodes are hidden by default in the UI, but remain functional in existing workflows that use them.',
type: 'boolean',
defaultValue: false
})
app.ui.settings.addSetting({
id: 'Comfy.Node.ShowExperimental',
name: 'Show experimental nodes in search',
tooltip:
'Experimental nodes are marked as such in the UI and may be subject to significant changes or removal in future versions. Use with caution in production workflows',
type: 'boolean',
defaultValue: true
})
},
set<K extends keyof Settings>(key: K, value: Settings[K]) {