How do I have a repeating item on the alert dialog so it stacks alerts

I’ve setup an alert modal with the intention of having it as a repeating item, as it’s common for a user to have more than one alert.

I’ve got most of the logic working. However the component actions that open and close the dialog, aren’t separated.

So if I have a workflow that triggers the alert to toggle open, and a delay before toggling off, then more alerts arrive, I can see the repeating items increase. However they all close when the first alerts close dialog component action is triggered.