Deleting oncall schedules can result in policies without rules
Problem
Deleting a schedule auto-removes corresponding policy rules. This can leave a policy without any rules.
Proposal
For a first pass, when the user deletes a schedule, we will warn them that this action may impact their escalation policies. We can do this within the existing confirmation modal by adding an additional sentence to that modal:
Are you sure you want to delete the schedule? Deleting the schedule will impact any escalation policies that are based on it.
Further, in the success message letting users know the schedule has been deleted, we can add a reminder that they need to go in and update their escalation policies:
Your schedule has been deleted. Please update any impacted escalation policies to ensure there are no gaps in your paging.
We'll also add a message on the escalation policy page letting users know that they have an empty policy. The message will be "This policy has no escalation rules," and it will display within the empty container.
These will be FE only fixes. We'll work on a more comprehensive solution as part of #334945