feat(menu): globalize output-format picker + tighter asset wizard

iconHelpers.js:
* Add SVG.outputProcess/outputJson/outputCsv/outputInflux icons.
* Add renderOutputFormatPicker(select, holder) shared helper.
* Add idempotent upgradeOutputFormatSelects() that scans for
  node-input-processOutputFormat / dbaseOutputFormat selects and replaces
  them with icon pickers — no per-node HTML edits required.
* Redesign SVG.upstream/atEquipment/downstream to a pump volute + sensor
  marker matching the rotatingMachine pump banner style.

menu/index.js:
* Auto-invoke upgradeOutputFormatSelects from MenuManager's initEditor
  wrapper so every node inherits the picker.

asset.js:
* Tighter chip styling: 1px border, 4px radius, 3x8 padding, no uppercase
  transform — single-line "Label: Value" instead of stacked card.
* Narrower Asset Tag input (max 200px); wizard max-width 460px.
* Restore curve preview to 220x110 (was over-compacted).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
znetsixe
2026-05-18 21:30:54 +02:00
parent 49c77f262f
commit ab481357d2
3 changed files with 179 additions and 41 deletions

View File

@@ -175,6 +175,18 @@ class MenuManager {
} catch (${type}Error) {
console.error('Error initializing ${type} menu for ${nodeName}:', ${type}Error);
}`).join('')}
// Platform-wide: upgrade output-format <select>s
// (process/dbase) to icon pickers. Idempotent — no-op
// for nodes whose HTML already wires the picker, and
// skips when the selects aren't present.
try {
if (window.EVOLV && window.EVOLV.iconHelpers && window.EVOLV.iconHelpers.upgradeOutputFormatSelects) {
window.EVOLV.iconHelpers.upgradeOutputFormatSelects();
}
} catch (outputUpgradeError) {
console.error('Error upgrading output-format selects for ${nodeName}:', outputUpgradeError);
}
} catch (editorError) {
console.error('Error in main editor initialization for ${nodeName}:', editorError);
}