Skip to content

fix(sdk): add a cancel button to the delete domain dialog - #2033

Merged
rohanchkrabrty merged 2 commits into
mainfrom
fix/delete-domain-cancel-button
Nov 3, 2026
Merged

rohanchkrabrty merged 2 commits into
mainfrom
fix/delete-domain-cancel-button

Conversation

@rohanchkrabrty

Copy link
Copy Markdown
Contributor

Summary

  • Add a Cancel button to the delete domain dialog on the Security page. Before this, the dialog had only the delete button, so users had to refresh the page to leave it.
  • Cancel uses AlertDialog.Close with an outline neutral Button, the same pattern as the delete organization dialog. It closes the dialog without a delete call, and it is disabled while the delete is pending.
  • Cancel stays visible while the domain loads. Only the delete button swaps for its skeleton.

The delete domain dialog had only the delete button, so users could not
go back to the security page without a refresh. Add a Cancel button that
closes the dialog, the same as the delete organization dialog. Cancel
stays visible while the domain loads and is disabled while the delete
is pending.
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
frontier Ready Ready Preview Nov 3, 2026 9:00am UTC

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 45ba87e and 1a60dd0.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • The Cancel button in the domain deletion dialog now closes the dialog when selected.

The delete domain dialog now wraps its Cancel button in AlertDialog.Close. The button is disabled while deletion is pending.

Changes: Delete domain dialog

Layer / File(s) Summary
Cancel button behavior
web/sdk/client/views/security/components/delete-domain-dialog.tsx
The Cancel button is rendered through AlertDialog.Close and is disabled while deletion is pending.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Possibly related PRs

  • raystack/frontier#2025: This PR applies the AlertDialog pattern to the delete organization dialog’s Cancel button.

Suggested reviewers: rohilsurana

Merge Risk: Minimal · previous review 45ba8

The requested cancel behavior is implemented without an established correctness or availability risk.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 8190c1f and 45ba87e.

Files selected for processing: 1
  • web/sdk/client/views/security/components/delete-domain-dialog.tsx

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@coveralls

coveralls commented Oct 30, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 41607442069

Coverage remained the same at 56.053%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 42189
Covered Lines: 23648
Line Coverage: 56.05%
Coverage Strength: 19.7 hits per line

💛 - Coveralls

@rohilsurana
rohilsurana dismissed their stale review November 3, 2026 07:38

we are anyways planning to remove the confirmation as per design.

@rohanchkrabrty
rohanchkrabrty enabled auto-merge (squash) November 3, 2026 09:00
@rohanchkrabrty
rohanchkrabrty merged commit d61c961 into main Nov 3, 2026
8 checks passed
@rohanchkrabrty
rohanchkrabrty deleted the fix/delete-domain-cancel-button branch November 3, 2026 09:05

This branch was successfully deployed

1 active deployment
Preview — 1a60dd0d Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants