On the workflow edit page, when you add a new status or edit an editing one the statusses in the "Transitions" box are not updated.
A JQuery script needs to be created to update the "Transitions" select as well. (currently you need to save the workflow first, before you can use the transitions).
This is not going to be as simple as implementing a jqueryscript that retrieves the transitions from the db again.
The biggest problem is that states are added using a boottsrap_collection formtype.
This means that any new states are not actually added to the db until the save button is pressed.
Reloading the form will remove the newly added state from the form instead of adding it to the transition selects.
The alternative is to write js code to manually keep stuff up to date.
It will be hell to keep all states and transitions ordered and synchronized correctly without introducing any weird bugs.
Another alternative is to save and reload the form when an edit has been made. It will be necessary to trigger this save and reload on every edit to prevent weird bugs. This also means that the form secretly gets saved without the user knowing it.
A new PR has been added with an updated solution. It contains only changes for this issue and
Reviewer is Marijn