It looks like something within the item’s configuration is causing the item edit page to crash. I don’t see any immediate issues with the code you posted, but it’s worth checking some things quickly.
There is almost certainly an error that crops up in the browser console when you open that page. What does the error say?
Can you go to the API explorer and use the GET /items/{itemname} endpoint to retrieve the entire json definition of the item and paste that here?
OK, somehow the state description metadata configuration has been deleted. The basic state description configuration is there, but in a properly formed item, that information should also be stored where you see:
"stateDescription": {
"value": " "
}
in the item’s metadata.
You can try to just redo the metadata. From the working item detail page, click on the State Description metadata item which should take you to the dialog wizard without error. Re-enter your state description pattern and save that.
If that doesn’t work, then you will have to try and update the item json manually. That would entail copying the json you posted above. Editing it so that the stateDescrpition object under the metadata looks like this: