File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/stories/results Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+
3+ import { Meta , StoryFn } from "@storybook/react" ;
4+
5+ import { ResultTablesHeader as ResultTablesHeaderComponent } from "../../view/results/ResultTablesHeader" ;
6+
7+ import "../../view/results/resultsView.css" ;
8+
9+ export default {
10+ title : "Results/Result Tables Header" ,
11+ component : ResultTablesHeaderComponent ,
12+ } as Meta < typeof ResultTablesHeaderComponent > ;
13+
14+ const Template : StoryFn < typeof ResultTablesHeaderComponent > = ( args ) => (
15+ < ResultTablesHeaderComponent { ...args } />
16+ ) ;
17+
18+ export const ResultTablesHeader = Template . bind ( { } ) ;
19+ ResultTablesHeader . args = {
20+ queryName : "test query" ,
21+ queryPath : "/a/b/c/query.ql" ,
22+ selectedTable : "#select" ,
23+ parsedResultSets : {
24+ pageNumber : 1 ,
25+ pageSize : 10 ,
26+ numPages : 2 ,
27+ numInterpretedPages : 2 ,
28+ resultSetNames : [ "#select" , "alerts" ] ,
29+ resultSet : {
30+ t : "InterpretedResultSet" ,
31+ schema : {
32+ name : "#select" ,
33+ rows : 15 ,
34+ columns : [
35+ {
36+ name : "x" ,
37+ kind : "s" ,
38+ } ,
39+ ] ,
40+ } ,
41+ name : "#select" ,
42+ interpretation : {
43+ sourceLocationPrefix : "/home/bulk-builder/bulk-builder" ,
44+ numTruncatedResults : 0 ,
45+ numTotalResults : 15 ,
46+ data : {
47+ t : "SarifInterpretationData" ,
48+ version : "2.1.0" ,
49+ runs : [ ] ,
50+ } ,
51+ } ,
52+ } ,
53+ } ,
54+ } ;
You can’t perform that action at this time.
0 commit comments