feat: add confirmation dialog for relay deactivate/reactivate with explicit warnings #41
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:confirmation-dialog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Clicking "Deactivate" or "Reactivate" in the relay detail menu immediately triggered the API call with no confirmation step, creating a risk of accidental relay state changes. Users had no visibility into the consequences of deactivation.
Solution
Implemented a reusable confirmation dialog that intercepts relay state-change actions and requires explicit user confirmation before execution. The deactivation flow now displays detailed warnings about the operational impact.
Deactivation Warning Details
When a user clicks "Deactivate", they now see:
Primary message: "{Relay Name} will be taken offline immediately."
Warning details (displayed in an amber warning box):
closes #30
2c223fed65toc60139965b