@@ -4,7 +4,14 @@ import { FeedbackComponent } from "../src";
44import { data , entityTypes , data2 , data3 , entityTypes2 } from "./test-data" ;
55import h from "@macrostrat/hyper" ;
66
7- function FeedbackInterface ( { data, types, allowOverlap, matchLinks, view } ) {
7+ function FeedbackInterface ( {
8+ data,
9+ types,
10+ allowOverlap,
11+ matchLinks,
12+ view,
13+ autoSelect,
14+ } ) {
815 const { entities = [ ] , paragraph_text, model, model_run, source_text } = data ;
916
1017 return h ( FeedbackComponent , {
@@ -17,6 +24,7 @@ function FeedbackInterface({ data, types, allowOverlap, matchLinks, view }) {
1724 allowOverlap,
1825 view,
1926 matchLinks,
27+ autoSelect,
2028 } ) ;
2129}
2230// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
@@ -77,6 +85,21 @@ export const ViewOnly: StoryObj<{}> = {
7785 } ,
7886} ;
7987
88+ export const AutoSelect : StoryObj < { } > = {
89+ args : {
90+ data,
91+ types : entityTypes ,
92+ matchLinks : {
93+ lithology : `${ lexURL } /lithology` ,
94+ strat_name : `${ lexURL } /strat-names` ,
95+ lith_att : `${ lexURL } /lith-atts` ,
96+ concept : `${ lexURL } /strat-name-concepts` ,
97+ interval : `${ lexURL } /intervals` ,
98+ } ,
99+ autoSelect : [ "sandstone" , "structure" ] ,
100+ } ,
101+ } ;
102+
80103export const TestData2 : StoryObj < { } > = {
81104 args : {
82105 data : data2 ,
0 commit comments