-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Refactor Pathways
system
#717
Conversation
@@ -80,6 +81,7 @@ export default class ExerciseIntroductionView extends WebviewWrapper { | |||
} | |||
|
|||
export async function showExerciseIntroduction(exercise) { | |||
showExerciseIntroductionView(exercise); |
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.
@MiccWan
this one does not have emit
in its name, but all others do?
@@ -78,6 +79,7 @@ export default class ValueTDSimpleNode extends ValueNode { | |||
} | |||
|
|||
valueRender() { | |||
emitValueRenderAction(this.value, this.nodeId); |
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.
@MiccWan
Good rule of thumb: either place all events before or place all events after the thing happened. Don't ever switch orders on that. Since we are mostly calling emit
afterwards, let's try to make sure, we keep that order
@@ -57,10 +58,12 @@ let graphWebView; | |||
|
|||
export async function showGraphView() { | |||
await initGraphView(); | |||
emitCallGraphAction(UserActionType.CallGraphVisibilityChanged, { isShowing: true }); |
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.
order
@@ -55,11 +57,13 @@ export default class PathwaysWebView extends RichWebView { | |||
let pathwaysWebView; | |||
|
|||
export async function showPathwaysView() { | |||
emitPathwaysAction(UserActionType.PathwaysVisibilityChanged, { isShowing: true }); |
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.
order (and there is more)
PathwaysSession
that allows users to record their own projectsPDP
insidePathwaysSession
PathwaysView
#712