-
Notifications
You must be signed in to change notification settings - Fork 391
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
adding help text loop to loading page #917
Conversation
cc @betatim who has been on a "designy" kick with me lately :-) |
The fact that the log viewer changes position is :-/ (I think it already did when the error message appeared but this GIF really drives home the point about how annoying that is.) Otherwise I like the idea. In scikit-learn/scikit-learn#11221 (comment) someone said "I think mybinder.org is broken for me", it turns out they misinterpreted the "taking longer than usual" as an error message. Maybe we can improve on that with this PR as well? |
I totally agree about the height. What do you think about: Give enough whitespace for 2 lines on a 13" laptop, set fixed width for the "taking longer to load" message so we can better-predict the vertical space that the text takes up. Then just fill in the white space if the text messages spill over, and don't use text that takes up more than 2 lines? re: the wording of taking longer than usual and people thinking it's broken. Do you think we should change that text, or change the "helpful messages" to add one about it? |
OK, a few updates. Here's the latest version (again, with sped-up messages). The following main changes:
|
This is what it currently looks like. I wanted to have a comparison nearby. Initial thought from "just woke up, dark laptop screen" Tim: is the grey/gray of the two sub messages dark enough to produce a high enough contrast? I thought it was tricky to read. We should check that. Thoughts:
I think this will be a good improvement to the UI! It also makes me think we should start the process of redesigning the UI elements taking into account all the things we learnt, features we added, and what a good UX looks like. We are on the brink of having a "messy" UI because we keep adding to it instead of designing it specifically with all the components in mind. Something for a new PR/issue. |
OK, the latest push cleans up a few things per @betatim's comments - I thought about it a bit more on the plane and I agree with you, I think having only one thing change on the page is preferable. So, here's what this does:
This way we keep the same general structure of the page, and avoid changing vertical spacing when new messages pop up. Here's a gif: (it'll be har to tell above because the GIF will loop, but trust me that the image stops changing after the "it's taking a while to start" image :-) ) |
binderhub/static/js/index.js
Outdated
return false; | ||
} | ||
|
||
// export entrypoints | ||
window.loadingMain = loadingMain; | ||
window.indexMain = indexMain; | ||
|
||
// Show the logs by default | ||
log.show(); |
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.
Yay!
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.
Just tried this locally and the log doesn't open :-(
While pondering how to fix it I replaced the "building" state handler (L174) like so:
image.onStateChange('building', function(oldState, newState, data) {
$('#phase-building').removeClass('hidden');
log.show();
});
this works and only open the log if we are building the repo, otherwise it stays closed. It is a bit weird if it takes a moment for the build to start because the log is first closed (waiting for build to start...) and then pops open. If that is too weird I'd insert the log.show()
in image.onStateChange('waiting', function(oldState, newState, data) {
which I think would open the log for everyone.
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.
Hmmm - OK, well I assumed that would be an easy fix. If it isn't working and requires debugging, can we do this in a different PR? (I can just remove this change if so) I don't think it's strictly related to the image helper rotate thingy?
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.
Sounds good to me!
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.
ok, removed in latest push! lemme know if you want me to iterate on the messages or timing or anything else!
Co-Authored-By: Tim Head <betatim@gmail.com>
Merging now. I think we can work on the messages in a new PR as well. |
This is a first pass at adding some helpful text that loops during the loading page. The goal is both to give users some information about what's currently happening, as well as to provide some interesting information about the project in general.
I think the list should never get too long - not sure exactly what that means, but this starts with a handful of messages to share with users as they wait. Over time, we can add and modify this.
Here's the text that will be updated in this PR. Note, it is sped way up just to show the messages w/o having a 60 second long gif, the actual seconds between message change is currently 4
What do people think about this pattern for sharing information?