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

Notification panel transitions and visual enhancements #1997

Merged
merged 1 commit into from
Sep 6, 2017

Conversation

sg00dwin
Copy link
Member

@sg00dwin sg00dwin commented Sep 1, 2017

Update to PatternFly 3.27.1

Fixes #1993

screen shot 2017-09-01 at 11 49 37 am

screen shot 2017-08-31 at 9 42 57 am

@spadgett spadgett requested a review from rhamilto September 1, 2017 17:34
@sg00dwin
Copy link
Member Author

sg00dwin commented Sep 1, 2017

@beanh66 @serenamarie125
@spadgett @rhamilto

At expanded view, long notification messages can grow quite tall. I explored stacking the message beneath the title to give it space to expand. And improve readability. Any objections?

screen shot 2017-09-01 at 11 56 58 am

screen shot 2017-09-01 at 12 24 22 pm

// TODO: hack to eliminate side-to-side wobble
// There is a hard-coded <h4> that wraps the header:
// - https://github.com/patternfly/angular-patternfly/issues/539
// I'm putting quite a bit of markup inside the header,
// need to tinker to eliminate this rule.
overflow: hidden;
overflow:hidden;
font-size: @font-size-h4;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: alpha

@@ -87,6 +87,12 @@
@media(max-width: @screen-xs-max) {
padding: 10px 15px 10px 5px;
}
.badge {
Copy link
Member

@rhamilto rhamilto Sep 1, 2017

Choose a reason for hiding this comment

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

I had absolutely positioned .badge in one of my PRs. It looks like it got rebased away. :( Can we redo the absolute positioning? Otherwise the width of the nav item changes with the coming and going of the badge.

Copy link
Member

@rhamilto rhamilto Sep 1, 2017

Choose a reason for hiding this comment

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

Nevermind. The changes are in master. But perhaps you should combine the two rules so they're not in two different files?

background-color: @color-pf-blue-300;
border: 2px solid @navbar-os-bg-color;
width: 12px;
height: 12px;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: alpha

padding: 10px 10px 10px 42px;
.text-muted;
}
.drawer-pf-notification-info {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: alpha

font-weight: normal;
.word-break();
}
.drawer-pf-notification-info {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: alpha

@serenamarie125
Copy link

serenamarie125 commented Sep 1, 2017

@sg00dwin this looks much better IMO!

@sg00dwin
Copy link
Member Author

sg00dwin commented Sep 1, 2017

changes updated

@@ -31,6 +42,9 @@ notification-drawer-wrapper {
}
}
}
.drawer-pf-close, .drawer-pf-toggle-expand {
padding: 2px 10px;
}
Copy link
Member

Choose a reason for hiding this comment

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

We should give feedback to patternfly on things like this. Shouldn't have to be overriding these settings.

Choose a reason for hiding this comment

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

@sg00dwin why are we doing this? Agree that we shouldn't be overriding things. If we need PF to change something let me know. If they cannot do it in time, then we can override with a plan to change later.

Copy link
Member

Choose a reason for hiding this comment

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

@jeff-phillips-18 @serenamarie125 Makes sense. For context, @sg00dwin added a few pixels of extra padding between the icon and the edge of the drawer.

@sg00dwin It might just be easier to remove this.

Before:

openshift web console 2017-09-01 14-40-35

After:

openshift web console 2017-09-01 14-45-18

Copy link
Member Author

Choose a reason for hiding this comment

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

Felt the click target as too small, 5px padding between icon and edge.
I'll revert and suggest issue upstream.

before
screen shot 2017-09-01 at 2 45 35 pm

after
screen shot 2017-09-01 at 2 46 28 pm

Copy link
Member

Choose a reason for hiding this comment

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

We should give feedback to patternfly on things like this. Shouldn't have to be overriding these settings.

While I don't disagree, sometimes it's infinitely easier just to fix a problem in the code that you control.

Choose a reason for hiding this comment

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

Totally agree that what you have done looks much better!

I do think that if we take those liberties, please call them out so that UX can review and we can make a plan get them into PatternFly for consistency :D Understand your point @rhamilto but when our customers are dealing with a portfolio of products, everyone doing their own things just causes further issues.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 prob agree to both...temp fix here then ensure an issue upstream to track/migrate it.

.nav-item-iconic .badge {
background-color: @color-pf-blue-300;
border: 2px solid @navbar-os-bg-color;
height: 12px;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this should be straying from the Patternfly design, @openshift/team-ux-review ?

Copy link
Member

Choose a reason for hiding this comment

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

@sg00dwin What is the before and after on this change?

If @openshift/team-ux-review agrees it's better, we could look at contributing it upstream in Patternfly.

Choose a reason for hiding this comment

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

@sg00dwin again, why are we doing this? Was this suggested by @jhaines?

If there's a good reason, let's get this into PF. LOTS of products are using the notification drawer, we want this to be consistent if it's indeed something that improves the component.

Copy link
Member Author

Choose a reason for hiding this comment

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

discussed with rhamilto, done to improve identification of unread notification.
Will revert

before
screen shot 2017-09-01 at 2 42 11 pm

after
screen shot 2017-09-01 at 2 41 18 pm

Copy link
Member

@spadgett spadgett Sep 1, 2017

Choose a reason for hiding this comment

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

@serenamarie125 Opinion? I think the badge stands out better with the black around it. Let us know, and we can add submit this in Patternfly.

Before:

openshift web console 2017-09-01 14-48-41

After:

openshift web console 2017-09-01 14-47-54

Copy link
Member

Choose a reason for hiding this comment

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

I think it's worth noting the inspiration for the border around the badge came from Github.

Copy link

@serenamarie125 serenamarie125 Sep 1, 2017

Choose a reason for hiding this comment

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

again, imo @sg00dwin @rhamilto I think your proposal looks great, and i did immediately recognize that it was consistent with GitHub.

If you all are willing to put up a PR in PatternFly, i think that would be terrific!

Update to PatternFly 3.27.1
Copy link
Contributor

@benjaminapetersen benjaminapetersen left a comment

Choose a reason for hiding this comment

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

Much improved readability. Also like the fade in effect, and the positioning from top matches heading in both desktop & mobile. Now if my PR would just merge that would bump pf & get rid of the expand icon @ mobile. 🙂

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.

LGTM

@sg00dwin has removed the two items we talked about from this PR with plans to submit to Patternfly

@spadgett
Copy link
Member

spadgett commented Sep 6, 2017

@jeff-phillips-18 @rhamilto Another look?

@rhamilto
Copy link
Member

rhamilto commented Sep 6, 2017

[merge]

@spadgett
Copy link
Member

spadgett commented Sep 6, 2017

Flake #2016

[merge][severity: bug]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 15e836f

@openshift-bot
Copy link

openshift-bot commented Sep 6, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/126/) (Base Commit: 73c7420) (PR Branch Commit: 15e836f) (Extended Tests: bug)

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.

7 participants