Skip to content
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

Add empty state to sbd details #2387

Merged
merged 10 commits into from
Mar 7, 2024
Merged

Add empty state to sbd details #2387

merged 10 commits into from
Mar 7, 2024

Conversation

EMaksy
Copy link
Member

@EMaksy EMaksy commented Mar 6, 2024

Description

This PR will add an empty state message for the SBD Details component in the case there are no sbd devices. Instead of just rendering the title, we render a text which informs the user.

Why?

When using disk-based SDB fencing, the SBD/fencing section in the cluster details view shows the configured SBD devices and whether they are in healthy or unhealthy status.

When using diskless SBD fencing, there are no SBD devices. Therefore, the SBD/fencing section should inform the user with a message.

Demo

Before:

image

After (Check Storybook):

image

How was this tested?

Added test and story

@EMaksy EMaksy added enhancement New feature or request javascript Pull requests that update Javascript code labels Mar 6, 2024
@EMaksy EMaksy self-assigned this Mar 6, 2024
@EMaksy EMaksy force-pushed the add_sbd_fencing_empty_state branch from cf5ec46 to 4707d08 Compare March 6, 2024 15:34
Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

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

@EMaksy it looks good!
some small changes and we can merge

assets/js/pages/ClusterDetails/SBDDetails.jsx Outdated Show resolved Hide resolved
assets/js/pages/ClusterDetails/SBDDetails.test.jsx Outdated Show resolved Hide resolved
assets/js/pages/ClusterDetails/SBDDetails.test.jsx Outdated Show resolved Hide resolved
assets/js/pages/ClusterDetails/SBDDetails.test.jsx Outdated Show resolved Hide resolved
Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

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

Thank you @EMaksy
Some last things, but you can merge without other review from me

assets/js/pages/ClusterDetails/SBDDetails.test.jsx Outdated Show resolved Hide resolved
assets/js/pages/ClusterDetails/SBDDetails.test.jsx Outdated Show resolved Hide resolved
@EMaksy EMaksy force-pushed the add_sbd_fencing_empty_state branch 2 times, most recently from 74bf272 to fff75bb Compare March 6, 2024 17:07
@EMaksy EMaksy marked this pull request as ready for review March 6, 2024 17:13
@EMaksy EMaksy force-pushed the add_sbd_fencing_empty_state branch from fff75bb to 196f88f Compare March 7, 2024 08:01
Copy link
Contributor

@rtorrero rtorrero left a comment

Choose a reason for hiding this comment

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

LGTM

@EMaksy EMaksy force-pushed the add_sbd_fencing_empty_state branch 2 times, most recently from 21fd658 to 813a9cc Compare March 7, 2024 15:19
@EMaksy EMaksy merged commit d7cf257 into main Mar 7, 2024
24 checks passed
@EMaksy EMaksy deleted the add_sbd_fencing_empty_state branch March 7, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

None yet

3 participants