Skip to content

Commit 182c2f3

Browse files
committed
Add variant analysis header to view
1 parent e5376b3 commit 182c2f3

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://jestjs.io/docs/configuration
44
*/
55

6-
export default {
6+
module.exports = {
77
// All imported modules in your tests should be mocked automatically
88
// automock: false,
99

extensions/ql-vscode/src/view/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"noImplicitReturns": true,
1414
"noFallthroughCasesInSwitch": true,
1515
"experimentalDecorators": true,
16-
"esModuleInterop": true
16+
"skipLibCheck": true
1717
},
1818
"exclude": ["node_modules"]
1919
}
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
import * as React from 'react';
2+
import { VariantAnalysisStatus } from '../../remote-queries/shared/variant-analysis';
3+
import { VariantAnalysisContainer } from './VariantAnalysisContainer';
4+
import { VariantAnalysisHeader } from './VariantAnalysisHeader';
25

36
export function VariantAnalysis(): JSX.Element {
4-
return <span>Hello!</span>;
7+
return (
8+
<VariantAnalysisContainer>
9+
<VariantAnalysisHeader
10+
queryName="Example query"
11+
queryFileName="example.ql"
12+
status={VariantAnalysisStatus.InProgress}
13+
onOpenQueryClick={() => void 0}
14+
onViewQueryClick={() => void 0}
15+
onStopQueryClick={() => void 0}
16+
onCopyRepositoryListClick={() => void 0}
17+
onExportResultsClick={() => void 0}
18+
/>
19+
</VariantAnalysisContainer>
20+
);
521
}

extensions/ql-vscode/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"moduleResolution": "node",
1111
"sourceMap": true,
1212
"rootDir": "src",
13+
"skipLibCheck": true,
1314
"strictNullChecks": true,
1415
"noFallthroughCasesInSwitch": true,
1516
"preserveWatchOutput": true,
@@ -19,6 +20,6 @@
1920
"noUnusedLocals": true,
2021
"noUnusedParameters": true
2122
},
22-
"include": ["src/**/*.ts", "jest.config.ts"],
23+
"include": ["src/**/*.ts"],
2324
"exclude": ["node_modules", "test", "**/view"]
2425
}

0 commit comments

Comments
 (0)