- Notifications
You must be signed in to change notification settings - Fork39
Feature/solution actions#38
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
f9660fd
add editor solution actions
ShMcK3a172c5
setup load solution from client to server
ShMcK139eafb
add ui error boundary
ShMcK14fa26e
handle error when storage changed
ShMcK3e3a38d
run test following solution load
ShMcK6bf73c9
hide loadSolution on load
ShMcKFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
18 changes: 6 additions & 12 deletionssrc/actions/solutionActions.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
import * as G from 'typings/graphql' | ||
import * as vscode from 'vscode' | ||
import * as git from '../services/git' | ||
import setupActions from './setupActions' | ||
const solutionActions = async (workspaceRoot: vscode.WorkspaceFolder, stepActions: G.StepActions): Promise<void> => { | ||
await git.clear() | ||
return setupActions(workspaceRoot, stepActions) | ||
} | ||
export default solutionActions |
4 changes: 3 additions & 1 deletionsrc/channel/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionsrc/channel/state/Progress.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletionstypings/graphql.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletionsweb-app/src/App.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import * as React from 'react' | ||
import { ApolloProvider } from '@apollo/react-hooks' | ||
import ErrorBoundary from './components/ErrorBoundary' | ||
import client from './services/apollo' | ||
import Routes from './Routes' | ||
const App = () => ( | ||
<ErrorBoundary> | ||
<ApolloProvider client={client}> | ||
<Routes /> | ||
</ApolloProvider> | ||
</ErrorBoundary> | ||
) | ||
export default App |
23 changes: 23 additions & 0 deletionsweb-app/src/components/ErrorBoundary/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react' | ||
class ErrorBoundary extends React.Component { | ||
public state = { hasError: false } | ||
public componentDidCatch(error: Error, info: any) { | ||
// Display fallback UI | ||
this.setState({ hasError: true }) | ||
// You can also log the error to an error reporting service | ||
console.error(error) | ||
console.log(info) | ||
} | ||
public render() { | ||
if (this.state.hasError) { | ||
// You can render any custom fallback UI | ||
return <h1>Something went wrong.</h1> | ||
} | ||
return this.props.children | ||
} | ||
} | ||
export default ErrorBoundary |
20 changes: 17 additions & 3 deletionsweb-app/src/containers/Tutorial/StagePage/Stage/StepDescription/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletionsweb-app/src/containers/Tutorial/StagePage/Stage/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletionweb-app/src/containers/Tutorial/StagePage/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletionsweb-app/src/services/state/actions/editor.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionweb-app/src/services/state/machine.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.