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

release-20.2: ui: update styles for session details page #55889

Merged
merged 4 commits into from
Nov 10, 2020

Conversation

koorosh
Copy link
Collaborator

@koorosh koorosh commented Oct 23, 2020

Backport 4/4 commits from #55499.

/cc @cockroachdb/release


resolves #54513
depends on cockroachdb/admin-ui-components#31
depends on cockroachdb/admin-ui-components#34
depends on cockroachdb/admin-ui-components#35

Current fix is quite complex and touches a lot of places because most of the issues with styles were common for all pages (Statements, Jobs, Node Overview).
Also many style duplicates required to get rid of duplicates and unify single version of proper components to use across entire app.

It's easier to review this PR per commit. Each commit describes in details what changes were made and their purpose.

Screen Shot 2020-10-13 at 3 18 18 PM

Screen Shot 2020-10-13 at 1 43 23 PM

@koorosh koorosh requested a review from a team October 23, 2020 08:48
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@koorosh koorosh changed the base branch from release-20.2 to master October 23, 2020 17:54
@koorosh koorosh requested a review from a team October 23, 2020 17:54
@koorosh koorosh requested review from a team as code owners October 23, 2020 17:54
@koorosh koorosh requested review from miretskiy and removed request for a team October 23, 2020 17:54
@koorosh koorosh changed the base branch from master to release-20.2 October 23, 2020 17:54
@koorosh koorosh removed request for a team and miretskiy October 23, 2020 17:55
@dhartunian
Copy link
Collaborator

@koorosh this backport needs yarn-vendor version bumped I believe.

Before, Session page has filters menu which used default Antd component
and it deviated common styles.

Now, existing `Dropdown` component is extended to be used in Sessions
page with extra properties to get more flexibility for customization.
And this Dropdown is used instead.

Release note: none
Previously, "back links" from details page to main
pages had regression on styles and didn't satisfy
current designs.

Now, links by default black and have blue color on
hover only. Also styles for links inside SortedTable
component is fixed to inherit font size and font styles
from parent elements

Release note (admin-ui-change): Fix link colors for "Back" link on
Details pages (Node Overview, Jobs, Sessions, and statements
details pages.
Previously, `Pagination` component was used from Antd design system
and every page component added it's own duplicate of custom styles
on top of Antd Pagination. This introduced multiple places which
have to changed in order to unify styles across entire app.

Now, main `Pagination` component is added to `admin-ui-components`
package which is basically wrapper on top of Antd component with
custom styles. Also, all existing duplicates for styles are removed
and it avoids confusion to know which Pagination is correct one.

In addition, styles which were duplicated from StatementsPage into
SessionsPage were re-imported in it's own styles to keep single
places for changes.

Release note: none
Session details page had inconsistent styles where headers for sections
had wrong sizes, spacings between sections were larger than in designs,
and positions for action buttons (Cancel query and session buttons)
had to be placed in header section.

Now, styles are adjusted according to designs and fixed in a way to
avoid global changes. The only one global change is made to reset
`line-height` property for H1 element which were inherited from <body>
element and caused wrong text positioning.

Release note (admin ui change): adjusted styles for Session details page
@koorosh
Copy link
Collaborator Author

koorosh commented Nov 10, 2020

@koorosh this backport needs yarn-vendor version bumped I believe.

oh, nice catch! thanks!

@dhartunian dhartunian merged commit d4e6675 into cockroachdb:release-20.2 Nov 10, 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.

3 participants