Skip to content

feat(cluster member): add disable reason for evacuate & restore buttons#1980

Open
kimanhou wants to merge 1 commit intocanonical:mainfrom
kimanhou:WD-36298-cluster-member-disabled-reason
Open

feat(cluster member): add disable reason for evacuate & restore buttons#1980
kimanhou wants to merge 1 commit intocanonical:mainfrom
kimanhou:WD-36298-cluster-member-disabled-reason

Conversation

@kimanhou
Copy link
Copy Markdown
Contributor

Done

  • Cluster member: add disabled reason for Evacuate and Restore buttons

QA

  1. Run the LXD-UI:
  2. Perform the following QA steps:
    • In a cluster with multiple nodes, go to Clustering > Members. Hover on the Evacuate and Restore buttons when they are disabled. You should get a valid reason.

Screenshots

Screencast.from.2026-04-28.10-58-15.mp4

Signed-off-by: Kim Anh Nguyen <4783194+kimanhou@users.noreply.github.com>
@webteam-app
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@Kxiru Kxiru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA LGTM! Just text fixes remaining over button specificity. I suggest using getByRole('button', { name: 'Evacuate cluster member' }).

Copy link
Copy Markdown
Contributor

@Kxiru Kxiru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA LGTM! Just text fixes remaining over button specificity. I suggest using getByRole('button', { name: 'Evacuate cluster member' }).

Copy link
Copy Markdown
Collaborator

@edlerd edlerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests need to be adjusted as well. Two suggestions to improve the copy slightly.

return "Evacuating cluster member...";
}
if (member.status !== "Online") {
return "Only online members can be evacuated";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return "Only online members can be evacuated";
return "Member must be online to evacuate";

return "Restoring cluster member...";
}
if (member.status !== "Evacuated") {
return "Only evacuated members can be restored";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return "Only evacuated members can be restored";
return "Member must be evacuated to restore";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants