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: Redesign Events section on Metrics page #45668

Merged

Conversation

koorosh
Copy link
Collaborator

@koorosh koorosh commented Mar 3, 2020

Resolves: #45402

Current change is required to fit date and
event message after date format was changed.
Before, Events section had two columns and it
could not fit full date string in the second
column without wrapping to several rows what
made it not readable.

Now, instead of showing two separate columns,
date of event is displayed under event message
and both event name and date can occupy entire
width of events table.

Number of events to show on Metrics page is
decreased from 10 to 5.

Release justification: bug fixes and low-risk updates to new functionality

Screenshot 2020-03-19 at 15 13 59 1

Screenshot 2020-03-19 at 15 19 42

@koorosh koorosh requested a review from a team March 3, 2020 21:26
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@koorosh koorosh force-pushed the ui-redesign-events-section-on-metrics-page branch from 9fb0f58 to ec3aa8a Compare March 3, 2020 23:53
Current change is required to fit date and
event message after date format was changed.
Before, Events section had two columns and it
could not fit full date string in the second
column without wrapping to several rows what
made it not readable.

Now, instead of showing two separate columns,
date of event is displayed under event message
and both event name and date can occupy entire
width of events table.

Number of events to show on Metrics page is
decreased from 10 to 5.

Release note: None

Release justification: bug fixes and low-risk updates to new functionality
@koorosh koorosh force-pushed the ui-redesign-events-section-on-metrics-page branch from ec3aa8a to aed6fa3 Compare March 19, 2020 13:36
Copy link
Collaborator

@dhartunian dhartunian left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 3 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @koorosh)


pkg/ui/src/views/cluster/containers/events/events.spec.tsx, line 96 at r1 (raw file):

      const provider = makeEvent(e);
      assert.isTrue(provider.find("div.events__message > span").text().includes("created database"));
      assert.isTrue(provider.find(ToolTipWrapper).exists());

Tests looks much nicer without all the childAt! 👏

@dhartunian
Copy link
Collaborator

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 20, 2020

Build succeeded

@craig craig bot merged commit 7241972 into cockroachdb:master Mar 20, 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.

ui: absolute timestamps take multiple lines in events table
3 participants