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: Node List view redesign #43552

Merged
merged 21 commits into from
Jan 21, 2020
Merged

Conversation

koorosh
Copy link
Collaborator

@koorosh koorosh commented Dec 26, 2019

Changes for node list mostly related to the usage of the Table component from And design system.
Following reusable components are added:

  • Table: is a styled wrapper for and design table component
  • TableSection: responsible for displaying table header and footer and allowing expand/collapse section with a table.
  • Tooltip: also a styled wrapper around ant design Tooltip component

The layout of Cluster Overview page is changed to improve correct behavior for fixed and UI elements and those which have to be scrollable.

Cluster Overview section header is removed to comply with the next changes related to the redesign of Navigation panel and adding a separate section with section name.

Screenshot 2019-12-30 at 10 17 19

Screenshot 2019-12-30 at 10 17 30

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@koorosh koorosh marked this pull request as ready for review December 30, 2019 14:05
@koorosh koorosh requested a review from a team December 30, 2019 14:05
@knz
Copy link
Contributor

knz commented Jan 3, 2020

@koorosh this change is awesome. However this is a large-ish project and it partially overlaps with some other release plans we may have.

@piyush-singh can you look at the description of the proposed approach above? I think it solves many woes we have seen reported throughout the last year. I do not recall whether we already had plans to redesign this and/or where these other plans are being executed. If you think the contributor's proposal is acceptable, please let us know.

@piyush-singh
Copy link

@knz this PR was actually opened by one of our contractors on the Observability team! We're coordinating updates to the UI :)

- Adjust ant Table component styles to provided designs
- Predefine default props of Table component

Release note: None
- Dead and Live nodes tables are merged into the single table
- Nodes Overview component is not responsible for saving sorting state of the
 tables so this functionality is removed (has to be implemented in Table component).
- NodeList and DecommissionedNodeList components receive prepared `dataSource` to be
consumed by Table component. It allows reduce computations on component rerender.

Release note: None
- Node Overview page doesn't display entire list of decommissioned nodes.
Instead, only 5 most recent decommissioned nodes are shown.

Release note: None
- Display live and dead nodes in the single table which are grouped by regions.
- Redesign Cluster Overview page, clean up inline styles and enhance elements structure
to avoid unnecessary nested elements.

Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
- Do not display nested tree structure if all nodes are located in single region.
- Display tooltip for node status column.
- Align numeric values by right side in the table columns.
- Show "No data to display" as default message in case empty table.

Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
- TableSection component serves as a container which allows
collapse/expand its content

Release note: None
- TableSection component is a wrapper around a table that is responsible for
 displaying table header, footer, and collapsing/expanding section content.
- TableSection component preserves collapsed state in sessionStore. It depends
on TableSection id property which has to be unique.
- Link on Decommissioned nodes history is disabled until the actual route and page
are added.

Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
- Change colors for .warning and .alert classes to comply with new designs.
- Adjust used font-family and colors of elements.

Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
Release note: None
Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
…ed in single region

Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
- Added Select component which is a wrapper on top of
ant.design Select component.
- Moved inline styles to dedicated classes for both Map and Node List layouts.

Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
Release note: None
Release note (admin ui change): Redesign Cluster Overview page (cockroachdb#42923)
Current component is implemented partially and serves as
starting point to extend Button component according to
design system requirements.
Only 'flat' type and sizing options are implemented.

Release note: None
…tory

OutsideEventHandler component is required for Dropdown component in design system and
so it is moved to the same directory to keep all dependencies together.

Release note: None
Dropdown component implements basic functionality to
show/hide overlay.

Release note: None
… Map)

Redesign of Nodes List view includes change of Node view switcher. Current
changes reuse Dropdown component and adjust layout styles.

Release note: None
@koorosh
Copy link
Collaborator Author

koorosh commented Jan 13, 2020

PR is extended with following changes:
Node List / Node Map switcher has to be redesigned according to design-system styles.

  • Button, and Dropdown components are added to design-system;


const { isCollapsed } = this.state;

return (
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't see any usage that renders this collapse section. Is that forthcoming?

@dhartunian
Copy link
Collaborator

bors r+

craig bot pushed a commit that referenced this pull request Jan 21, 2020
42924: RFC: easier hash sharded indexes r=ajwerner a=aayushshah15

This RFC proposes to provide better user experience when creating hash
sharded indexes, in order to alleviate single range hotspots in
sequential workloads.

This PR accompanies #42922 which implements the ideas described in the
RFC.

Release note: None

43552: ui: Node List view redesign r=dhartunian a=Koorosh

Changes for node list mostly related to the usage of the Table component from And design system.
Following reusable components are added:
- Table: is a styled wrapper for and design table component
- TableSection: responsible for displaying table header and footer and allowing expand/collapse section with a table.
- Tooltip: also a styled wrapper around ant design Tooltip component

The layout of Cluster Overview page is changed to improve correct behavior for fixed and UI elements and those which have to be scrollable.

Cluster Overview section header is removed to comply with the next changes related to the redesign of Navigation panel and adding a separate section with section name.

<img width="1435" alt="Screenshot 2019-12-30 at 10 17 19" src="https://user-images.githubusercontent.com/3106437/71573645-aad62c80-2aed-11ea-8021-fce7643e3428.png">


<img width="1435" alt="Screenshot 2019-12-30 at 10 17 30" src="https://user-images.githubusercontent.com/3106437/71573644-aad62c80-2aed-11ea-864f-25272f8edda8.png">


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

craig bot commented Jan 21, 2020

Build succeeded

@craig craig bot merged commit fd843f6 into cockroachdb:master Jan 21, 2020
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

5 participants