-
Notifications
You must be signed in to change notification settings - Fork 712
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
Pause Button #1106
Pause Button #1106
Conversation
If state == paused, button should be play triangle, right? |
This is really great!! The only thing I'm not too sure about is resume-on-click... When posting #1025, the use-case I had in mind was about exploring details of several nodes without having them move around, and potentially observe state of ephemeral nodes, as those naturally attract my attention. |
I prefer active/inactive pause. In the active state (paused) it blinks. This has the benefit of drawing attention to it in case the user wonders why nothing is updating. A blinking play button in a paused state would be misleading. |
Awesome! I however think we should make the Pause state more predominant, otherwise:
|
I see, essentially pausing the topology, but keeping the freedom to explore nodes. Is that more desirable than the current implementation (freezing topology and details to show them to someone)?
This is inherently impossible/difficult to manage in the UI because the nodes may be gone by the time you explore them at which point in time a request for details would come back empty. |
The safeguards here are:
We could add more: (1) click on the background un-pauses, (2) show a confirmation dialog. Could you give this a try @2opremio and see if you get stuck in a paused mode?
We certainly dont want to undermine the utility of the product as a whole. If this button is too dangerous, we should simply close this PR. |
Branch |
True until a timestamp parameter is supported & queries can be made against a history of reports... |
@@ -357,7 +372,13 @@ export class AppStore extends Store { | |||
this.__emitChange(); | |||
break; | |||
|
|||
case ActionTypes.CLICK_PAUSE_UPDATE: | |||
updatePausedAt = new Date; |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Being able to click around is quite nice! Pros:
Cons:
Its easier to forget the topo is paused if you're off exploring details, I'd make the pause state a tiny bit more prominent, maybe bold + leave the border around the button + label when activated. I'm +1 on |
* pauses topology and details panel updates * buffers requests * un-pause plays back the buffered requests * automatically un-pauses when topology is changed, or other node is clicked (then discards buffer) Fixes #1025
2b887a6
to
d7507cf
Compare
LGTM after TAL! Button looks slick. Use case coverage:
But I think this is a good start! |
clicked (then discards buffer)
Fixes #1025