diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index 97eb59b34..c0e1073c1 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -34,6 +34,8 @@ "DeepLabCutInterface", "SLEAPInterface", "FicTracDataInterface", - "AudioInterface" + "AudioInterface", + "MiniscopeBehaviorInterface", + "EDFRecordingInterface" ] } diff --git a/schemas/json/generated/MiniscopeBehaviorInterface.json b/schemas/json/generated/MiniscopeBehaviorInterface.json new file mode 100644 index 000000000..467086c40 --- /dev/null +++ b/schemas/json/generated/MiniscopeBehaviorInterface.json @@ -0,0 +1,25 @@ +{ + "required": [], + "properties": { + "MiniscopeBehaviorInterface": { + "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 c42265336..b5e2cbebb 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -34,6 +34,7 @@ import DeepLabCutInterfaceSchema from "../../../../../../schemas/json/generated/ import SLEAPInterfaceSchema from "../../../../../../schemas/json/generated/SLEAPInterface.json"; import FicTracDataInterfaceSchema from "../../../../../../schemas/json/generated/FicTracDataInterface.json"; import AudioInterfaceSchema from "../../../../../../schemas/json/generated/AudioInterface.json"; +import MiniscopeBehaviorInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeBehaviorInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -113,6 +114,8 @@ globalStateCopy.schema.source_data.properties.SLEAPInterface = SLEAPInterfaceSch globalStateCopy.schema.source_data.properties.FicTracDataInterface = FicTracDataInterfaceSchema.properties.FicTracDataInterface; globalStateCopy.schema.source_data.properties.AudioInterface = AudioInterfaceSchema.properties.AudioInterface; +globalStateCopy.schema.source_data.properties.MiniscopeBehaviorInterface = + MiniscopeBehaviorInterfaceSchema.properties.MiniscopeBehaviorInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -335,3 +338,9 @@ const AudioInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); AudioInterfaceGlobalCopy.interfaces.interface = AudioInterface; AudioInterfaceGlobalCopy.schema.source_data = AudioInterfaceSchema; AudioInterface.args = { activePage, globalState: AudioInterfaceGlobalCopy }; + +export const MiniscopeBehaviorInterface = PageTemplate.bind({}); +const MiniscopeBehaviorInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +MiniscopeBehaviorInterfaceGlobalCopy.interfaces.interface = MiniscopeBehaviorInterface; +MiniscopeBehaviorInterfaceGlobalCopy.schema.source_data = MiniscopeBehaviorInterfaceSchema; +MiniscopeBehaviorInterface.args = { activePage, globalState: MiniscopeBehaviorInterfaceGlobalCopy };