Skip to content

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

Open
rohanchkrabrty wants to merge 1 commit into
mainfrom
fix/delete-domain-cancel-button
Open

rohanchkrabrty wants to merge 1 commit 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 Oct 30, 2026 6:40am UTC

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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.

📝 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.

Priority: Low

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 · up to 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

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

Comment @coderabbitai help to get the list of available commands.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 41015375773

Coverage remained the same at 55.992%

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: 42145
Covered Lines: 23598
Line Coverage: 55.99%
Coverage Strength: 19.68 hits per line

💛 - Coveralls

This branch was successfully deployed

1 active deployment
Preview — 45ba87ed Deployed Oct 30, 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.

2 participants