Issue #8049 Make WhyPaused more visible #8163
Conversation
-Need to use PureComponent to prevent infinite updates
|
I see why you've attempted a 100ms delay -- cutting down on sidebar noise is important. This PR is a really good kicking off point. A few things:
|
|
@derek-li this looks great. The 100ms is an excellent idea and seems to work on first sight – and it should still give that instant feedback feeling. Some thoughts on styling – |
|
I guess I'm summoned now :P Our spacing for secondary panes content is generally like this: .some-container {
padding: 4px 20px;
}One way to avoid vertical jumps is to use a min-height with vertical centering and making sure that min-height accommodates 2 lines. That means it might look tall and half-empty when we only show one line, though. .some-container {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 44px;
padding: 4px 20px;
} |
I like that. Its a best effort as some users might have a small enough sidebar to have text run over into 3 lines but it makes it better for most users. The jump from 2 to 1 line is not too jarring in the recording, so I'd leave that up to tweaking when we have something testable. |
|
Do we want to show an icon to represent the paused state? (We can always add that later.) |
Not sure if Took a stab at it: |
|
I'm just worried about the "pause" icon because we already use it as an action button, as in "click this pause button to pause JS execution". That could be confusing. |
I like the info icon idea. The WhyPaused component exists to explain why the debugger is paused rather than showing that the debugger is paused, so I don't agree with using stop or pause icons. |
Agreed! Sounds like we got all the bigger questions answered then. The end result might (aside from spacing, which I have not mocked up) look like this: … but I let @derek-li prototype and share what he comes up with |
|
I like this lighter yellow a lot! As for overflow, I would wrap the text. I wouldn't want to require a user play with the sidebar width just to see a full message. |
|
I'm playing with some ideas to render the whyPaused component when the end pane is collapsed, but I don't feel that any of them look great. Here's the mock-up I think works best, but I'm not satisfied. @digitarald @fvsch Any input? Also considering leaving this for another issue. |
|
@derek-li I think we should first move the WhyPaused component to the top and tweak its design, then think in follow-up bugs about maybe making it a floating UI element when the sidebar is collapsed. I opened #8181 to describe the more general UX issue and possible solutions. For the WhyPaused style, could we use the same background color as the Console's warning messages? They are defined here: |
|
Here's the current iteration. Do you guys have any input on the placement of the info icon? @fvsch why don't we want to use the Console's warning text color? |
|
@derek-li We spoke about this a bit and we're thinking one change:
We think that's the next UI to try. |
|
@darkwing Here's the latest mock-ups for light and dark modes. What are you guys thinking for the dark mode? |
|
I like Light + Dark1 (the ones without yellow). |
| return 100; | ||
| } | ||
|
|
||
| return 0; |
jasonLaster
Apr 11, 2019
Contributor
is this delay new?
is this delay new?
derek-li
Apr 11, 2019
Author
Contributor
No, I haven't changed it since creating the initial PR.
No, I haven't changed it since creating the initial PR.
|
@derek-li thanks for iterating on the tweaks, the screenshots help a lot. One guiding principle for UI decisions is to make it easy for devs to switch between devtools. The paused indicator is a strong visual clue that should not be missed (main goal for this redesign). As Chrome uses a yellow-colored paused indicator, I would default to that as well, so the version using the console warning styling (with yellow background), would be the most fitting. As I haven't seen the argumentation, I'd be happy to hear the trade offs of using a yellow background vs other options, @fvsch @darkwing ? |
|
Thank you for jumping in the discussion @digitarald ! @jasonLaster and I met with @fvsch and @derek-li met last week and I think the conclusion was that the yellow background would take focus away from the DebugLine (in the case of a breakpoint). If you prefer the yellow background be restored, we can do that as well. I'd like to get this in before it gets too stale :) |
|
Yellow background, cons:
Pros:
No strong feelings, I'm okay with both styles. |
This reverts commit e8cadee.
|
I feel we shouldn't differentiate from Chrome unless there are strong reasons to do so. |
|
Appreciate the help from everyone! |
|
@derek-li thanks for the contribution with code and design thinking. This polish will go a long way to make my debugging life and hopefully others a lot more predictable |










Fixes #8049
Summary of Changes:
Demo:

WhyPaused moved to top of the secondary pane and higher contrast
Reduced vertical jumpiness (if anybody has suggestions for different solutions I'd love to hear them)

In progress: