humainflow-web/src/app/shared/nodes/generic-node
Lucio Lelii fc541c12ef Offer "Use default" only where a field declares one
The control was derived from the field being optional, which put it on nearly
every field in every dialog. It now comes from the schema's
x-ui-defaults-when-empty, which the server sets per field: "you may leave this
blank" and "leaving this blank means something specific" are different claims,
and only the second is worth a control.

Two rules still sit above the declaration. A field the current state requires
offers nothing - clearing it would go towards a default that does not exist - and
a checkbox is excluded, because false is a value, not an absence.

Sampling parameters a provider does not apply are no longer offered either. All
five were shown to every provider and the unsupported ones were dropped at run
time, reported in a warning on an execution that had already happened. The filter
is shared by the two editing surfaces so they cannot drift, and it keeps every
knob whenever the answer is not knowable - no provider chosen, one the server does
not list, a capability call that failed - because a knob wrongly hidden cannot be
set at all, which is worse than one that does nothing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 11:52:55 +02:00
..
generic-node.css Add the SPDX licence header to every source file 2026-09-16 12:10:18 +02:00
generic-node.html Add the SPDX licence header to every source file 2026-09-16 12:10:18 +02:00
generic-node.spec.ts Offer "Use default" only where a field declares one 2026-09-18 11:52:55 +02:00
generic-node.ts Offer "Use default" only where a field declares one 2026-09-18 11:52:55 +02:00