7 Commits
Author SHA1 Message Date
Austin Mroz af63cca7bc Remove old deprecation code.
ComfyUI now has native support for marking nodes as deprecated or
experimental, so the much of the code here no longer serves a purpose.

Zombie code for hiding nodes has been removed and this code now only
exists to display a text label on the node of a specific color.

This removes excessive console spam about deprecation in the reading of
setting values.
2025-03-12 17:46:07 -05:00
Austin Mroz 92d0845f32 Fix js nodes not having filter applied.
The workaround for filter being overwritten by applying to late for
refreshComboInNodes was to apply the filter with beforeRegisterNodeDef,
but that doesn't apply no js nodes inverted the issue of nodes being
hidden. A setup call has been added to ensure js nodes have the default
filter applied
2024-07-03 00:02:46 -05:00
Jedrzej Kosinski de6a56f1db Made use of deprecated/experimental .js features, made settings menu names consistent 2024-07-02 01:10:08 -05:00
Austin Mroz 275e95147f Feature batch, refresh fix take 2
Added color option to set the color of the warning text

When the warning text is an empty string, the widget has 0 height,
effectively hiding it.

Added a warn type as well as options for including nodes of type
'deprecated' or 'experimental' in search anyways. If a widget does not
have an assigned type, it defaults to deprecated.

Actually fix nodes being hidden on refresh. The last attempt was merely
nothing ever being hidden because of a syntax error preventing teh
script from loading. This implementation takes the rather more heavy
handed approach of applying at beforeRegisterNodeDef and setting up the
global filter option at init. This makes it marginally more likely to
interfere with other plugins that attempt to modify app.graph.filter, so
added safety has been included elsewhere in the code.

Added example usage to to Inject PIA as to demonstrate how it might be
used for an experimental node.
2024-07-01 20:25:39 -05:00
Austin Mroz 05fa069814 Fix nodes being hidden on "Refresh" button 2024-06-25 02:02:24 -05:00
Austin Mroz b215cf1f8f Disable serialization of ADEWARN 2024-06-22 14:00:48 -05:00
Austin Mroz 8f01cedddb Implement JS to hide nodes from search
Implements a new ADEWARN widget which displays red warning text on a
node. Nodes which have an ADEWARN widget are hidden from the searchbox
2024-06-21 15:46:40 -05:00