mental health history will mean nothing at all in a divorce case, unless there has been some form of neglect or abuse of the children (i work in mental health so know what i am talking about). this does not mean that poor functioning whilst mentally unwell will mean it is taken as either of those things - that is a normal part of having a mental health issue. if the kids are happy, healthy and are not 'of concern' to social services at the momeent, she has nothing to worry about. her hubby/ex may use her mental health issues to fling some horseshit to get his own way, but any judge worth their salt (and that is most) will see straight through it and see him for what he is doing.......so please tell your friend she has nothing to worry about. being a risk to herself because her hormones wee very squiffy is not the same thing as being a risk to older children when there are no problems in the present - she took meds, did therapy and grew as a person, so i suspect there will be little concern, but she needs to be aware it may be discussed, and plan towards what she can say about this period in her life.
even if her hubby cares for her in some way (e.g. sorts out her medication) it does not mena she is tied to him for life. the mental health team or gp she sees will have to sort out how that will be managed by someone else if she is not able to do that. principally, as long as the risk to the children is minimal; there will not be any signs of current abuse/neglect' and there is not a good probability of it happening in the future, then she does not need to fret about this. plan for discussing it, plan for needing support and talk about what is happening - that is what will matter. the more honest she is abut her needs, the better.