Skip to content

Conversation

luizhf42
Copy link
Member

This pull request updates the user account deletion flow to provide clearer instructions and restrictions, especially for Community and Enterprise deployments. It introduces a warning dialog for users on these editions, disables account deletion if the user owns namespaces, and adds tests to ensure the new dialogs work as expected.

  • Added a new UserDeleteWarning dialog that informs users on Community editions that accounts must be deleted via CLI, and on Enterprise editions that deletion must be performed via the Admin Console. This dialog is shown instead of the regular deletion dialog when the user is not in a Cloud instance.
  • Updated the UserDelete dialog to prevent account deletion if the user has owned namespaces, displaying a warning and disabling the confirm button in that case. The dialog now dynamically changes its description and error handling based on the user's namespace ownership.
  • Added a new test file UserDeleteWarning.spec.ts to verify that the correct instructions and CLI command are shown for Community and Enterprise editions.

@luizhf42 luizhf42 self-assigned this Oct 10, 2025
@luizhf42 luizhf42 requested a review from a team as a code owner October 10, 2025 20:59
@luizhf42 luizhf42 added kind/bug Something isn't working area/ui kind/refactor labels Oct 10, 2025
@gustavosbarreto gustavosbarreto merged commit 3ae0b0b into master Oct 13, 2025
8 checks passed
@gustavosbarreto gustavosbarreto deleted the fix/user-delete branch October 13, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants