A possible enhancement for change nodes?

In another thread, @zenofmud posted a change node with 9 rules.

[
    {
        "id": "006ee02eff444905",
        "type": "change",
        "z": "e6abd9a54498ec6f",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "Tag",
                "fromt": "str",
                "to": "",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "(",
                "fromt": "str",
                "to": "{",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "tag=",
                "fromt": "str",
                "to": "\"tag\":",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "'",
                "fromt": "str",
                "to": "\"",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "value=",
                "fromt": "str",
                "to": "\"value\":",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "type=",
                "fromt": "str",
                "to": "\"type\":",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "error=",
                "fromt": "str",
                "to": "\"error\":",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "None),",
                "fromt": "str",
                "to": "\"None\"},",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "None)]",
                "fromt": "str",
                "to": "\"None\"}]",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 360,
        "y": 520,
        "wires": [
            [
                "0fdea342bae15836"
            ]
        ]
    }
]

Not unnaturally, the OP's response was "I'll have to try and work out why each rule is there"

So I suggest an option to add a comment to each rule in the change node for documenting each step.
To avoid using up more of the already crowded real estate, could comments "hide" behind a dropdown button like this?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.