diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index 1229b4212..bfce304a0 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -19,6 +19,7 @@ "MicroManagerTiffImagingInterface", "ScanImageImagingInterface", "TiffImagingInterface", - "MiniscopeImagingInterface" + "MiniscopeImagingInterface", + "SbxImagingInterface" ] } diff --git a/schemas/json/generated/SbxImagingInterface.json b/schemas/json/generated/SbxImagingInterface.json new file mode 100644 index 000000000..d02d2c0e7 --- /dev/null +++ b/schemas/json/generated/SbxImagingInterface.json @@ -0,0 +1,32 @@ +{ + "required": [], + "properties": { + "SbxImagingInterface": { + "required": [ + "file_path" + ], + "properties": { + "file_path": { + "format": "file", + "type": "string" + }, + "sampling_frequency": { + "type": "number" + }, + "verbose": { + "type": "boolean", + "default": true + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "source.schema.json", + "title": "Source data schema", + "description": "Schema for the source data, files and directories", + "version": "0.1.0" +} diff --git a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js index 368fa4983..9ac3dd511 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -19,6 +19,7 @@ import MicroManagerTiffImagingInterfaceSchema from "../../../../../../schemas/js import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/generated/ScanImageImagingInterface.json"; import TiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/TiffImagingInterface.json"; import MiniscopeImagingInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeImagingInterface.json"; +import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -70,6 +71,8 @@ globalStateCopy.schema.source_data.properties.TiffImagingInterface = TiffImagingInterfaceSchema.properties.TiffImagingInterface; globalStateCopy.schema.source_data.properties.MiniscopeImagingInterface = MiniscopeImagingInterfaceSchema.properties.MiniscopeImagingInterface; +globalStateCopy.schema.source_data.properties.SbxImagingInterface = + SbxImagingInterfaceSchema.properties.SbxImagingInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -202,3 +205,9 @@ const MiniscopeImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalStat MiniscopeImagingInterfaceGlobalCopy.interfaces.interface = MiniscopeImagingInterface; MiniscopeImagingInterfaceGlobalCopy.schema.source_data = MiniscopeImagingInterfaceSchema; MiniscopeImagingInterface.args = { activePage, globalState: MiniscopeImagingInterfaceGlobalCopy }; + +export const SbxImagingInterface = PageTemplate.bind({}); +const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface; +SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema; +SbxImagingInterface.args = { activePage, globalState: SbxImagingInterfaceGlobalCopy };