Skip to content

Make web console alerts dismissable - #6473

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
spadgett:dismissable-alerts
Jan 4, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
spadgett:dismissable-alerts

Conversation

@spadgett

Copy link
Copy Markdown
Member

Adds a close button for each alert.

openshift_web_console

See also #6187. (I think the changes here will work with that PR.)

@spadgett

Copy link
Copy Markdown
Member Author

@jwforres PTAL
@benjaminapetersen CC

Comment thread assets/app/views/_alerts.html Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

aria-hidden true on the pficon and an sr-only span that says "Close" ?

@jwforres

Copy link
Copy Markdown
Member

sweep the code and make sure $scope.alerts is always being set to a map, I know at one point some places snuck in where it was being set to an array instead

@jwforres

Copy link
Copy Markdown
Member

otherwise LGTM

@spadgett

Copy link
Copy Markdown
Member Author

@jwforres Good catch, TaskList uses an array.

@spadgett

Copy link
Copy Markdown
Member Author

I was looking at switching to the angular-patternfly pf-notification directive, which supports dismiss, but unfortunately it requires us to switch from our own alerts to pf-notification-list everywhere. Not sure we want to do that.

@spadgett

Copy link
Copy Markdown
Member Author

@jwforres updated the close button to work with objects or arrays and added the sr-only label

@spadgett

Copy link
Copy Markdown
Member Author

[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 82aeb59

@benjaminapetersen

Copy link
Copy Markdown
Contributor

Looks like a nice/simple fix to address the main issue we have talked about with alerts. If sufficient, shall I close this PR?

@spadgett

Copy link
Copy Markdown
Member Author

Looks like a nice/simple fix to address the main issue we have talked about with alerts. If sufficient, shall I close this PR?

I still think it's a good refactor... Maybe for when we can bring in Patternfly toast notifications?

@openshift-bot

Copy link
Copy Markdown
Contributor

@jwforres jwforres added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2016
@jwforres

jwforres commented Jan 4, 2016

Copy link
Copy Markdown
Member

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/8118/) (Image: devenv-rhel7_3066)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 82aeb59

openshift-bot pushed a commit that referenced this pull request Jan 4, 2016
@openshift-bot
openshift-bot merged commit aadbacb into openshift:master Jan 4, 2016
@spadgett
spadgett deleted the dismissable-alerts branch January 5, 2016 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/web lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants