In my case, I've come to accept it like it's something that comes and goes. I'll catch a depressive episode in the early stages, or foresee triggers and prepare accordingly: ring my psychiatrist, tell friends and family I might go through a rough patch soon, and to check in on me, and not commit to anything other than the bare minimum to survive, so if I can't make it because of depression I won't feel as guilty.
Realizing I was queer/trans/neurodivergent, and accepting myself for it instead of feeling like a freak who doesn't fit in anywhere has really helped, too.