I see it as she had ambivalent feelings for you, then met someone physically close to her. Ironically, you did ultimately find her annoying with her mixed messages and telling you she is seeing someone else.
I think you left it in a good place with her to work together again. I’m sorry, as I relate to how these things really hurt.