Skip to content

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

Merged
merged 1 commit into from
Apr 18, 2017

Conversation

sg00dwin
Copy link
Member

@sg00dwin sg00dwin commented Apr 6, 2017

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.

  • 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

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

@sg00dwin
Copy link
Member Author

sg00dwin commented Apr 6, 2017

@jwforres @spadgett @rhamilto

@rhamilto
Copy link
Member

rhamilto commented Apr 7, 2017

Nice work, @sg00dwin!

@spadgett
Copy link
Member

This change centers the donut when it was previously right-aligned. Is that intentional?

Before:

screen shot 2017-04-10 at 1 15 10 pm

After:

screen shot 2017-04-10 at 1 15 03 pm

Copy link
Member

@spadgett spadgett left a 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

}
}
.expanded-section {
margin-top: 20px;
> .row > [class^=col-] {
margin-bottom: 10px;
@media (min-width: @screen-lg-min) {
// aligns columns with metrics
&:nth-child(2) {
Copy link
Member

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.

@@ -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
Copy link
Member

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?

@@ -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
Copy link
Member

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'
Copy link
Member

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.

Copy link
Member Author

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'
Copy link
Member

Choose a reason for hiding this comment

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

>= 'md' won't work

@spadgett spadgett requested a review from rhamilto April 10, 2017 17:22
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 10, 2017
@sg00dwin sg00dwin force-pushed the animation-overview branch 4 times, most recently from 848f42e to 1c8454f Compare April 11, 2017 20:28
@sg00dwin
Copy link
Member Author

PR updated

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 11, 2017
@sg00dwin sg00dwin force-pushed the animation-overview branch from 1c8454f to c195d37 Compare April 12, 2017 14:56
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 12, 2017
@sg00dwin sg00dwin force-pushed the animation-overview branch from c195d37 to d8c6a7b Compare April 13, 2017 18:10
@sg00dwin
Copy link
Member Author

[test]

@sg00dwin
Copy link
Member Author

@spadgett pr rebased. ptal

@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Apr 13, 2017
}
}
}
.overview-animation-block {
Copy link
Member

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.

@@ -225,6 +249,7 @@
}
.list-pf-container {
display: block; // so that .word-break() will work in IE
overflow: hidden; // so animation offsets are hidden
Copy link
Member

Choose a reason for hiding this comment

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

Results in the donut tooltip being clipped. :(

screen shot 2017-04-17 at 9 25 00 am

@sg00dwin sg00dwin force-pushed the animation-overview branch from d8c6a7b to 60ba41a Compare April 17, 2017 16:02
@spadgett
Copy link
Member

Test failure is a flake

Running "add-redirect-uri" task
oc --server https://localhost:8443 patch oauthclient/openshift-web-console -p {"redirectURIs":["https://localhost:9000/"]}
>> Error: The connection to the server localhost:8443 was refused - did you specify the right host or port?

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 17, 2017
@sg00dwin sg00dwin force-pushed the animation-overview branch 2 times, most recently from 6e257ad to 45bb9d1 Compare April 17, 2017 18:24
…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
@sg00dwin sg00dwin force-pushed the animation-overview branch from 45bb9d1 to fad6740 Compare April 17, 2017 18:48
@sg00dwin
Copy link
Member Author

@rhamilto @spadgett updated pr

@openshift-bot
Copy link

Evaluated for origin web console test up to fad6740

@openshift-bot
Copy link

Origin Web Console Test Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1237/) (Base Commit: 9143df0)

@spadgett
Copy link
Member

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to fad6740

@openshift-bot
Copy link

openshift-bot commented Apr 18, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1242/) (Base Commit: b5de937)

@openshift-bot openshift-bot merged commit 82ed883 into openshift:master Apr 18, 2017
@sg00dwin sg00dwin deleted the animation-overview branch April 18, 2017 16:30
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.

4 participants