-
Notifications
You must be signed in to change notification settings - Fork 107
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
Osulacam minimize steps #659
Osulacam minimize steps #659
Conversation
…y hides the sockets with a view.
…into MinimizeSteps
This should give me a better idea of why it is failing on Travis and AppVeyor.
…ation on why it fails on Travis and AppVeyor.
… osulacam-MinimizeSteps
@@ -82,9 +103,21 @@ private void initialize() { | |||
new Image(InputStream.class.cast(icon)))); | |||
buttons.getChildren().add(0, exceptionWitnessResponderButtonFactory.create(step, "Step Error")); | |||
|
|||
if (step.getInputSockets().stream() | |||
.allMatch(inputSocket -> inputSocket.getSocketHint().getView() | |||
.equals(SocketHint.View.NONE))) { |
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 don't think this logic holds true. Does it?
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 saying if there is no user interaction in this step do not show the arrow
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.
Current coverage is 58.03% (diff: 85.93%)@@ master #659 diff @@
==========================================
Files 195 196 +1
Lines 6101 6165 +64
Methods 0 0
Messages 0 0
Branches 554 561 +7
==========================================
+ Hits 3517 3578 +61
- Misses 2420 2424 +4
+ Partials 164 163 -1
|
I added the ability to double click the arrow. On a double click it will toggle all steps. |
c8857b6
to
eb1b013
Compare
@@ -0,0 +1,14 @@ | |||
package edu.wpi.grip.ui.events; | |||
|
|||
public class SetStepsExpandedEvent { |
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.
Documentation
eb1b013
to
8ebaf29
Compare
@Inject | ||
StepController(Pipeline pipeline, | ||
InputSocketControllerFactory inputSocketControllerFactory, | ||
OutputSocketController.Factory outputSocketControllerFactory, | ||
ExceptionWitnessResponderButton.Factory exceptionWitnessResponderButtonFactory, | ||
StepDragService stepDragService, | ||
@Assisted EventBus eventBus, |
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.
Why is this assisted? This doesn't need to be assisted.
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.
Spaghetti code
b1cad27
to
a93b0fb
Compare
@Subscribe | ||
public void setExpanded(SetStepsExpandedEvent event) { | ||
expanded.set(event.isExpanded()); | ||
} |
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.
Strange way that this is written. But sure.
Maybe document that a double click will expand 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.
Why do you think it is strange?
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.
How would you write it?
a93b0fb
to
5b1e389
Compare
closes #327
closes #639
Fix-up of #639