I've been watching this and was on the last threads.
What I notice is the investment, huge emotional investment that NS has from others heree. I think this is actually difficult for people to deal with, that she has made some very poor decisions, that these are unlawful, and the rammifications of that are very serious. As a person we can have sympathy but as a leader she gets all the brickbats and some more. That is politics for you.
There are two possibilities here, neither of which are enlightening
a) Nicola Sturgeon does not run her government competently
b) Nicola Sturgeon positively decided to introduce an unlawful policy, incompetently, defend it to the point of absurdity where it could not be represented in court without lawyers lying, and did not think of the wider context in which here actions would be considered.
Neither is good. a) says she's not up to it, b) is more sinister.