diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index 5e5c29d4e..1229b4212 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -18,6 +18,7 @@ "BrukerTiffMultiPlaneImagingInterface", "MicroManagerTiffImagingInterface", "ScanImageImagingInterface", - "TiffImagingInterface" + "TiffImagingInterface", + "MiniscopeImagingInterface" ] } diff --git a/schemas/json/generated/MiniscopeImagingInterface.json b/schemas/json/generated/MiniscopeImagingInterface.json new file mode 100644 index 000000000..33171beb5 --- /dev/null +++ b/schemas/json/generated/MiniscopeImagingInterface.json @@ -0,0 +1,25 @@ +{ + "required": [], + "properties": { + "MiniscopeImagingInterface": { + "required": [ + "folder_path" + ], + "properties": { + "folder_path": { + "format": "directory", + "type": "string" + } + }, + "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 51a994993..368fa4983 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -18,6 +18,7 @@ import BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schema import MicroManagerTiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/MicroManagerTiffImagingInterface.json"; import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/generated/ScanImageImagingInterface.json"; import TiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/TiffImagingInterface.json"; +import MiniscopeImagingInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeImagingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -67,6 +68,8 @@ globalStateCopy.schema.source_data.properties.ScanImageImagingInterface = ScanImageImagingInterfaceSchema.properties.ScanImageImagingInterface; globalStateCopy.schema.source_data.properties.TiffImagingInterface = TiffImagingInterfaceSchema.properties.TiffImagingInterface; +globalStateCopy.schema.source_data.properties.MiniscopeImagingInterface = + MiniscopeImagingInterfaceSchema.properties.MiniscopeImagingInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -193,3 +196,9 @@ const TiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); TiffImagingInterfaceGlobalCopy.interfaces.interface = TiffImagingInterface; TiffImagingInterfaceGlobalCopy.schema.source_data = TiffImagingInterfaceSchema; TiffImagingInterface.args = { activePage, globalState: TiffImagingInterfaceGlobalCopy }; + +export const MiniscopeImagingInterface = PageTemplate.bind({}); +const MiniscopeImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +MiniscopeImagingInterfaceGlobalCopy.interfaces.interface = MiniscopeImagingInterface; +MiniscopeImagingInterfaceGlobalCopy.schema.source_data = MiniscopeImagingInterfaceSchema; +MiniscopeImagingInterface.args = { activePage, globalState: MiniscopeImagingInterfaceGlobalCopy };