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

ui: Decommissioned node history page - fix follow up issues #44205

Conversation

koorosh
Copy link
Collaborator

@koorosh koorosh commented Jan 22, 2020

Decommissioned Node History table has been redesigned according to the design system styles.

  • It doesn't use Sorted Table now, and was replaced by Table component.

Fixes for: #43881

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@koorosh koorosh changed the title Ui decommissioned node history page fix issues ui: Decommissioned node history page - fix follow up issues Jan 22, 2020
@koorosh koorosh marked this pull request as ready for review January 22, 2020 11:12
@koorosh koorosh requested a review from a team January 22, 2020 11:12
@dhartunian
Copy link
Collaborator

@koorosh can you rebase on master so we can see with new sidebar?

@@ -52,7 +52,11 @@ class DecommissionedNodeHistory extends React.Component<DecommissionedNodeHistor
{
key: "id",
title: "ID",
sorter: true,
sorter: (a, b) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you extract these sorter functions and give them names like sortByNodeID etc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

};

// DecommissionedNodeList displays 5 most recent nodes.
const data = _.chain(decommissionedStatuses)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we limiting to 5? I don't see that here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

- Updated design was reused to look the same as tables on Cluster Overview page
- Pagination buttons are aligned by center
- Added empty table state with proper message

Release note (admin ui change): Decommissioned Node History view changed
Apply correct sorting comparator function for Node Id and Decommissioned on
columns.

Release note: None
@koorosh koorosh force-pushed the ui-decommissioned-node-history-page--fix-issues branch from b48770c to 9295a0f Compare February 5, 2020 16:18
@dhartunian
Copy link
Collaborator

bors r+

craig bot pushed a commit that referenced this pull request Feb 11, 2020
44205: ui: Decommissioned node history page - fix follow up issues r=dhartunian a=koorosh

Decommissioned Node History table has been redesigned according to the design system styles.
- It doesn't use Sorted Table now, and was replaced by Table component.

Fixes for: #43881

Co-authored-by: Andrii Vorobiov <and.vorobiov@gmail.com>
@craig
Copy link
Contributor

craig bot commented Feb 11, 2020

Build succeeded

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.

None yet

3 participants