-
Notifications
You must be signed in to change notification settings - Fork 1.1k
improvement: Confirm remove domain dialog #871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughUpdates ConfirmationDialog prop type to replace "secondary" with "outline". Refactors CustomDomain removal to use a ConfirmationDialog instead of window.confirm, adds dialog state management, tooltips, icons, and integrates loading/cleanup, while preserving subscription gating and success/error toasts with refresh. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant CD as CustomDomain component
participant D as ConfirmationDialog
participant S as Subscription/Env Checks
participant API as Remove Domain API
participant UI as Toast/Router
U->>CD: Click Remove (verified domain)
CD->>D: Open confirmation dialog
D-->>U: Show dialog (icon + description)
U->>D: Confirm
D->>CD: onConfirm
CD->>S: Validate subscribed / not dev
alt Allowed
CD->>API: removeDomain(orgCustomDomain)
API-->>CD: Success/Failure
alt Success
CD->>UI: Show success toast + refresh
else Failure
CD->>UI: Show error toast
end
else Blocked
CD->>UI: Show upgrade/modal notice
end
CD->>D: Close dialog (reset state)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~18 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR:
Summary by CodeRabbit
New Features
Style
UX Improvements