-
Notifications
You must be signed in to change notification settings - Fork 667
[WIP] Add ConsoleNotification CRD that can appear above, below, or above and below the page with option to dismiss #1325
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
|
Will the notification background color be configurable as well? The classification banner looks great, but it's probably best to not keep the standard green success banner notification directly under it as green generally denotes Unclassified content. If that color could be made blue like the oauth message, it wouldn't conflict with any network banner color. |
|
Hey @mbach04, the green banner is another custom message with different options. It's not a standard console notification. Background color is configurable. |
91c2af2 to
d7dff1d
Compare
d7dff1d to
4569aa1
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c1c7cdc to
1f1dcee
Compare
912c856 to
798eb0e
Compare
9c494d8 to
35804c4
Compare
35804c4 to
a21b247
Compare
6907ff8 to
4d1df51
Compare
4d1df51 to
e6c6468
Compare
e6c6468 to
ebb485d
Compare
|
@rhamilto: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@rhamilto: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| type: string | ||
| description: Absolute URL for the link | ||
| pattern: '^http(s)?://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$' | ||
| opensNewWindow: |
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.
Let's remove this and make these always open in a new window.
| <p className="co-global-notification__text"> | ||
| {notification.spec.text} {_.get(notification.spec, ['link', 'href']) | ||
| && <a href={notification.spec.link.href} | ||
| target={notification.spec.link.opensNewWindow ? '_blank' : null} |
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.
Add rel="noopener nofollow"
|
Closing in favor of #1542 |
Differs from #1542 in that there is a dismiss option.
TODOS:
extensions/console-notification.crd.yamlfrom PR as it will live in the console operator