-
Notifications
You must be signed in to change notification settings - Fork 232
Incorporation of UI animation effects for deployment transitions on the overview #1402
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
Conversation
Nice work, @sg00dwin! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few initial comments. I'd like @rhamilto help looking at the CSS
app/styles/_overview.less
Outdated
} | ||
} | ||
.expanded-section { | ||
margin-top: 20px; | ||
> .row > [class^=col-] { | ||
margin-bottom: 10px; | ||
@media (min-width: @screen-lg-min) { | ||
// aligns columns with metrics | ||
&:nth-child(2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd really like to avoid nth-child
and instead give a class to the item that needs it.
app/styles/_overview.less
Outdated
@@ -284,6 +304,12 @@ | |||
.nav-tabs > li.active > a .build-count { | |||
color: #4d5258; | |||
} | |||
@media (min-width: @screen-xs-min) { | |||
// metrics are displayed next to donut so remove tab |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused: can we just remove the metrics tab from the markup?
app/styles/_overview.less
Outdated
@@ -346,7 +372,7 @@ | |||
margin: 0 20px 10px; | |||
} | |||
overview-list-row + overview-list-row .list-pf-item.active { | |||
// avoid double borders when list-pf-item is open | |||
// avoid double borders when list-pf-item is open |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation
}"> | ||
<div ng-if="row.state.breakpoint !== 'xs'" class="overview-pod-template" ng-class="{ | ||
'ng-enter': row.previous, | ||
'hidden-sm hidden-md': row.previous && row.state.breakpoint >= 'md' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>= 'md'
won't work since they're strings. You need to test each breakpoint individually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this to be !== 'lg'
, but the other way looked to be working for me. :)
|
||
<div class="overview-deployment-donut" ng-class="{ | ||
'ng-enter': row.previous, | ||
'stacked-template': row.state.breakpoint >= 'md' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>= 'md'
won't work
848f42e
to
1c8454f
Compare
PR updated |
1c8454f
to
c195d37
Compare
c195d37
to
d8c6a7b
Compare
[test] |
@spadgett pr rebased. ptal |
app/styles/_overview.less
Outdated
} | ||
} | ||
} | ||
.overview-animation-block { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I would love to see rules alphabetized by selector.
app/styles/_overview.less
Outdated
@@ -225,6 +249,7 @@ | |||
} | |||
.list-pf-container { | |||
display: block; // so that .word-break() will work in IE | |||
overflow: hidden; // so animation offsets are hidden |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d8c6a7b
to
60ba41a
Compare
Test failure is a flake
|
6e257ad
to
45bb9d1
Compare
…verview. The row-expanded-top contains the overview-pod-template and animation-block, which will contain metrics if active, and the overview-deployment-donut. During deployment the previous and current deployment donut charts are grouped and either slideIn from the left or slideDown at mobile widths. At >992 because of space constraints the pod-template and metrics fade out and hidden to allow for both donuts and arrow, and fade in when complete. As the previous-donut scales down and removed it fades out. - Markup structure is controlled by flexbox and 50% widths - Metrics are only beneath a tab when >480 - Networking and builds sections using col-md-6 to match 50% widths above
45bb9d1
to
fad6740
Compare
Evaluated for origin web console test up to fad6740 |
Origin Web Console Test Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1237/) (Base Commit: 9143df0) |
[merge] |
Evaluated for origin web console merge up to fad6740 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1242/) (Base Commit: b5de937) |
The
.row-expanded-top
contains the pod template and animation block..overview-animation-block
contains metrics if active, and the overview-deployment-donut. During deployment the previous and current deployment donut charts are grouped and either slideIn from the left or slideDown at mobile widths. At >992 because of space constraints the pod-template and metrics fade out and hidden to allow for both donuts and arrow, and fade in when complete. As the previous-donut scales down and removed it fades out.Issues
[] at the start of animation, scale arrows and directional arrow display briefly before the row.previous donut chart is displayed.
[] at the end of the deployment, the pod-template and metrics nodes appear before the previous deployment donut is removed causing some position jumping.
Screen recording with source code of both issues
metrics
pod-tempate