First, let's look at how the candle/Casita/gifts react to Mirabel's emotional state.
When Mirabel is emotionally devistated and feels seperate from her whole family after Antonio's gift was given, is when the cracks start.
When Mirabel is freaked out about the prophecy at dinner, suddenly cracks appear, and powers start freaking out.
When she bonds with her sister and they hug, the candle shines brighter than ever!
When Mirabel and her Abuela are fighting and her Abuela is basically singling her out of the whole family, Mirabel finally breaks ands her emotions pour out of her, that's when the Casita is destroyed.
And at the end, when they've reconciled. Once everyone is happy and is all