-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[WIP] Add a trusted notebook indicator #1293
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
|
Thanks for doing that ! I think we want something a more subtle, likely an icon (from https://fortawesome.github.io/Font-Awesome/icons/ ?) that change depending on the state, and likely with less strength in color. My guess is that @ellisonbg and @cameronoelsen will want to make some design mocks ! Thanks ! An tip: you might be able to set the text with css using |
|
Thanks for the If anyone has some design mocks, I'll gladly update the PR accordingly. Else, I can try to come up with a better UI, but am not very good at it :) |
|
I will work with @cameronoelsen on the design side On Fri, Apr 1, 2016 at 4:37 PM, Lucas Verney notifications@github.com
Brian E. Granger |
|
Ok. Thanks! |
|
@ellisonbg @cameronoelsen News on design ? |
|
We were thinking that 1.) the design should be something that will work in both the current notebook as well as JupyterLab and 2.) it should be subtle and somehow connect to the actual document being run (hence why the alert is at the very top of the notebook document before the user starts running the cells). It seemed that when we put the untrusted symbol and text in the toolbar, it gets confused with either the kernel that is running or whether the document was autosaved or not. Seeing that "trusted" means that the user has run all of the cells in the document, we could either have this "untrusted notification" be only dismissable (no buttons, only clickable to dismiss) or let the user decide if they either want to dismiss it or trust it on the spot (action buttons that are similar to the dialogs that are being built in JupyterLab). Untrust notification with action buttons (dismiss and trust)Untrust notification with only dismiss on click |
|
I personally am leaning towards the notification only being dismissable without the buttons (since it is smaller and doesn't require user input). Also, this notification will stay at the top of the document until the cells are run and "trusted" |
|
all-gray might be a little too subtle for untrusted |
|
I definitely think it shouldn't have the trust button - it makes it too easy to trust a notebook without really understanding what that means. It looks like a dialog, and we know that users seeing a dialog typically just click the first thing they see that looks like it will make it go away. |
Agreed. |
|
@Carreau @takluyver Do you guys like the placement of the dialog box in the top left of the document instead of the toolbar? |
Not sure about that. All grey seem fine to me. Though: |
|
@Carreau Here is the notification on the righthand side, good point! |
|
Or if we have it on the lefthand side, is there a way to have the content of the notebook fall under the dialog? I like it on the left only because it aligning with most of the content in the toolbar |
I'm not sure. I'm a bit concerned that it will feel like unnecessary clutter. When you scroll the notebook, does it scroll too, or float wherever you are? Also, I think it should have an |
|
@takluyver It will definitely stay in place at the top and not float as you scroll, I think when a user loads up the document and sees it, it doesn't have to get more in the way while scrolling. Trying out adding an information icon to see how that looks, should have it posted soon |
|
Last one looks nice to me |
|
I think this is converging. I like the last one, but my only comment is
On Fri, Apr 8, 2016 at 4:07 PM, Min RK notifications@github.com wrote:
Brian E. Granger |
|
I like the last one. As @minrk I think light grey might be too subtle? Concerning @cameronoelsen remark that on the left it would be aligned, is there a reason for the toolbar to be slightly shifted to the right with respect to the notebook content? (or is it an illusion) |
|
@ellisonbg I think this one looks more natural. Adding the information icon inside the circle and the spacing and alignment between everything helped a lot with putting pertinent information closer to each other. What do you think? |
|
@cameronoelsen Thanks for the double check! |
|
@cameronoelsen Concerning your latest screenshot, I think it is a bit hard to distinguish between the exclamation point (not clickable) and the information button (which is clickable). Isn't it a bit misleading? And, if the alignment issue can be easily fixed, what about putting the notification on the left hand side? (not sure it is way better though) |
|
@Phyks Does this change help with that confusion of which one is actionable vs. not? |
|
Also, @Phyks I like the notification at the top left of the document more so too, but @Carreau made a good point that most user notebook titles are aligned left at the top of the document and having the notification on the left hand side will most likely cover a good amount of notebooks with titles there. But, if there is a way to make the content of the document to start underneath of the notification or if this issues doesn't affect as many users as we are thinking, I definitely think the left is where to place it since it aligns with the toolbar content. |
|
I think this last version works pretty well. I know the grey isn't too On Tue, Apr 12, 2016 at 4:03 PM, Cameron Oelsen notifications@github.com
Brian E. Granger |
We don't need to have only the icon clickable, the all notification can, so I would just remove the Also, dumb question, we already have a notification area, which is meant for notification, notification that can be sticky. Why not use it ? |
|
@cameronoelsen 👍 for your last design! |
|
@Carreau What does the notification area / individual notifications look like in the notebook? |
|
Trying to revive this one. @ellisonbg there is already most of the code ready, could this be iterated on by your students, to get something in ? it would be nice to have @Phyks code integrated. Thanks. |
|
Ok, i'm going to bump that to 4.3, and we'll move forward even if we don't get the design perfectly. I'll try to get to it next week. |
|
I'd be willing to implement whatever design spec we've agreed upon. It looks like consensus is currently #1293 (comment). Requirements:
@Carreau Do we currently have a notification/alert component that I could use to implement this? We have Bootstrap's alert which offers the same functionality but different presentation. |
No we don't have anything specific, just the notification widgets/notification are, but they are in the toolbar. I don't think we should dismiss the notification on click,we might just want to pop-up a longer dialog that explain what untrusted means. |
|
From the experience with my own little trusted notebook indicator here, I would like to add, that it is useful to have a persistent indication if the notebook is trusted. |
|
@Carreau I just saw your comment about the notifiction area. This seems like a good solution given that's how other notifications (such as kernel error) are presented. I will share a quick implementation of this... |
|
See #1658 for an implementation using the notebook's notification widgets. |
|
Merged #1658 (comment) |










This pull request adds a "trusted notebook" indicator, as discussed in #1146.
Currently, the implementation is to put a "Notebook is trusted" / "Notebook is untrusted" sentence in the menubar on top of the screen.
Still, UI is not really good at the moment and can be discussed further (hence the "WIP" tag). For instance, displaying a notification explaining what is an untrusted notebook upon opening an untrusted notebook could be a good idea IMO.
Trusted notebook UI:

Untrusted notebook UI:
