I agree with all of that.
I'll just add that, as in so many things, CA is quite odd here. From what I've been able to find, the statute only says that de facto parents have the right to attend hearings. It does not specifically grant them the right to visitation, but visitation can (and is) sometimes granted to de facto parents.
That's unlike some other states where the statute allows for de facto parent visitation, but unless you have stone tablets from Mt. Sinai, you probably won't get it.
That is just one example of why a local attorney is important. On things like de facto parent rights, it varies quite a bit from judge to judge and is not completely controlled by statute.