-
Notifications
You must be signed in to change notification settings - Fork 667
[WIP] Add ConsoleNotification CRD #1284
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
|
[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 |
c8f8433 to
fc67ea2
Compare
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.
Any desire to validate the href?
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.
We could, but both relative and absolute links will work, so I'm not sure it's worth it?
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.
Any intention to distinguish between internal and external links ?
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.
Possibly a target option as well? If the notification is a link out to another tool, do we want the option for a new tab so as not to lose console context?
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 personally don't think the use of target="_blank" is good (see https://www.nngroup.com/articles/the-top-ten-web-design-mistakes-of-1999/), but I will add the feature if others think it worthwhile.
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.
@alimobrem, @robszumski, @openshift/team-ux-review, please chime in here.
To put a finer point on why I disagree with opening links in a new window:
- it breaks the back button (see #1)
- it's a user-hostile action. IMO, the user should decide where links open. (see #2)
That said, we open links in a new window elsewhere in the console, and providing the option to open links in a new window seems reasonable. That said, once we've added the option, it's much harder to take it away.
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.
Currently, we open all external links in a new window. I'd think we'd want these links to always open in a new window (and skip the option). I realize there's debate on this, but it would be consistent with current behavior :)
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.
Worth noting, we are not currently requiring these links be absolute. Both / and http://www.example.com are valid, so always opening in a new window isn't coupled to whether or not the link is external.
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.
We probably need some validation. At the very least, we can't accept relative URLs since the URL for every page is different (and the banner is visible on every page).
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 lost the link to the BZ when I closed bluejueans. Is having a link in that message even a customer requirement at this point?
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.
Title for accessibility? I'm sure many will be tempted to click here.
fc67ea2 to
ad8df53
Compare
|
@alimobrem, @spadgett mentioned there may be additional requirements for governmental compliance (e.g., specific color of the notification). Are you aware of any such requirements? |
2d54046 to
20fafb7
Compare
8a27cac to
a518c8f
Compare
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.
Would add the message and maybe the link as well, so user can see it though the CLI
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.
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.
@juanvallejo halp :) kidding.
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.
@rhamilto yeah I see your point but still think that it's better to see msgs in the cli then having almost empty output.
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.
Any intention to distinguish between internal and external links ?
a518c8f to
057a101
Compare
|
@rhamilto: The following tests 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. |
|
Closing in favor of #1325 |

https://jira.coreos.com/browse/CONSOLE-552
TODOS: