-
Notifications
You must be signed in to change notification settings - Fork 65
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
Quota warnings #59
Quota warnings #59
Conversation
- Toasts and notification drawer messages should include a kebab menu with options to: | ||
- View Quotas | ||
- Don't Show Me Again | ||
- Close notification |
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.
@ncameronbritt Should this last option actually be "Clear?" That's the action on the right side of the other rows and also the syntax used for the bottom action link, "Clear All."
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.
Makes sense to me. Would that be the same for toasts too?
…n-design into quota-warnings * 'master' of https://github.com/openshift/openshift-origin-design: Updating images and clarifying details based on comments Adding Deployment Details page to document new features around Environment Variables
@ncameronbritt as I mentioned, it might be beneficial to add a mockup to the "On Add to Project" section to illustrate what we want those messages to look like in the Results step, but it sounds like this is part of a follow-up story so I think this looks good! |
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.
LGTM
Quick Q! Was just talking with @spadgett about a few more drawer items & this PR came up. What happens if someone misses the toast ( perhaps looks away for a second) & the quota notification is also pushed below the fold? Its pretty important, arguably more important than other notifications. Would we want to consider a "pinned" notification concept? Somehow ensuring certain notifications stay above the fold:
Def interested in your thoughts on this. |
@benjaminapetersen Good question. I suppose you could ask the same question about any message we toast. Seems like the feedback we're getting from customers is that they really only want to see notifications in the drawer for things the are actually problems. So perhaps the way to go is to be even more selective with the kinds of things that make it to the notification drawer, so that important messages are less likely to get pushed down. Other thoughts, @openshift/team-ux-review ? |
if it's more important than others, i'd assume it wouldn't be informational :D I think that going forward we may want to think about enhancements to the drawer at a higher level, and i'd guess that sort, filter and even pinning may be part of those. Alternatively associated with this specific issue, we COULD have a separate accordion for quota warnings, if we feel that they are that important. The PF component supports this already. @ncameronbritt @beanh66 @benjaminapetersen @jeff-phillips-18 what do you think about that? |
@benjaminapetersen Toast notifications can be set to be persistent, meaning they do not auto-close the user must specifically dismiss the toast. Is that helpful in your scenario? @serenamarie125 You can have as many categories of notifications as you want, seems like it could be useful. |
I really want pinning :)
It could be more than just quota. One category for events and another for messages/alerts? |
I agree @spadgett @serenamarie125, we could easily use the accordion to delineate sections within the drawer since that functionality is already supported, but I can see a use for pinning messages in the future. Seems similar to email with starring or marking as unread. |
@spadgett we can add a design story around pinning, but I don't think we would want to push that into 3.7. I'm not sure i fully understand the use cases around it and would like some validation with users before doing something like that. Would adding a design story around that be sufficient for now? And Yes, multiple categories works. If we separate, we would then want to make sure that the View All Events link is in the appropriate accordion. I think that splitting events & messages makes a lot of sense. I'm not sure that as a user i would expect to see messages & alerts in the same "drawer". thoughts @beanh66 @ncameronbritt ? @spadgett is the latter something you would consider for 3.7? |
I have no problem with splitting up events and messages into accordion sections. It could help, but I don't think it completely solves the problem of notifications being pushed below the fold though. If there are enough messages, some are going to get pushed down regardless of whether they're split into separate categories/accordions or not. @serenamarie125 you touched on the question of whether these quota notifications should be warnings or informational. I'm happy to discuss or revisit that question, but the issue Ben brought up would apply regardless of the severity of the notification. |
Savvy users might understand the distinction between events and other types of messages, but I don't know how useful that distinction is. I would imagine that users would want to know that that there's a problem regardless whether that problem is reported as an event or by some other means. |
This is a bit tricky as we have The next version of the Events API (issue link here) and google doc for design. As it looks right now there will be both |
Yeah, I wasn't suggesting we add pinning in 3.7. Just a personal want after using the drawer. To be clear, when I say "pinning" I mean I'd like to leave the drawer open without it covering content on the page. Then I can watch events. Right now it covers too much basic information on the page to leave open all the time.
I'm hesitant to sign up for additional things for 3.7 given that we only have one more sprint and several committed cards left. Right now since the drawer is primarily showing events (and maybe a few quota warnings), I don't see it as urgent for 3.7. It's more of a problem later if we add more things to the drawer. @serenamarie125 Sound OK? |
@spadgett i take your comment on "pinning" = set the drawer into the page as if it was a sidebar on the right. |
makes sense @spadgett and oh ... @benjaminapetersen i didn't understand that as the concept of pinning, that makes sense to me now :D |
So for the purpose of the initial design here, is the current PR sufficient? Or do we want some changes |
@serenamarie125 yup wanted to clarify as I think I used the word "pin" to mean something slightly different in my first comment above. |
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 agree with all the suggestions, although some could be extremely difficult to implement. We might need to do a basic implementation using the drawer and custom messages first and then evaluate which of the other suggestions are practical / possible.
- The total percentage requested (to avoid confusion with units) and max plus units. | ||
- Information/link to help the user take action if action is needed. | ||
- Link to quota page. | ||
- Since the quota doesn't represent actual utilization, the verb "requested" should be used in the message rather than "used". |
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.
The term "request" has a very specific meaning in Kubernetes and OpenShift, so I wouldn't use it here. Compute resources have both limit and request quotas and if you use the term "requested" for limit it is going to be really confusing.
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'm not sure what the correct verb would be here since the quota doesn't actually reflect utilization. Open to suggestions here!
|
||
### At quota for compute-resource | ||
- User should be alerted via an informational message. | ||
- If the user takes an action that brings her to the quota, she should see a toast notification. |
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.
This is really hard to anticipate. I'm not sure if we'll be able to know always.
|
||
## On Add to Project | ||
- If Add to Project fails due to insufficient quota, the Results step of the wizard should give information about the quotas and suggestions to address the issue (e.g. upgrade to Pro, Add More Storage, etc) | ||
- It would be useful to know before attempting to provision (and entering config information) if add to project is going to fail due to insufficient quota. |
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.
With service catalog, this is going to be really difficult to know unfortunately.
Thanks for the review @spadgett. I'll either label some of the things you had concerns about as "Future" or just take them out. |
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.
LGTM @ncameronbritt !
cc @dtaylor113