Refactor the type and task_type in Nodes
There is a type in nodes as string which needs to take specific values. The same goes for task_props.task_type and the ui_props.type whick seem to carry the same information. Use one of them and remove the other.