diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index 4f1d6d2a7..97eb59b34 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -33,6 +33,7 @@ "AlphaOmegaRecordingInterface", "DeepLabCutInterface", "SLEAPInterface", - "FicTracDataInterface" + "FicTracDataInterface", + "AudioInterface" ] } diff --git a/schemas/json/generated/AudioInterface.json b/schemas/json/generated/AudioInterface.json new file mode 100644 index 000000000..9ffca2ef0 --- /dev/null +++ b/schemas/json/generated/AudioInterface.json @@ -0,0 +1,28 @@ +{ + "required": [], + "properties": { + "AudioInterface": { + "required": [ + "file_paths" + ], + "properties": { + "file_paths": { + "type": "array" + }, + "verbose": { + "type": "boolean", + "default": false + } + }, + "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 2bf8de71f..c42265336 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -33,6 +33,7 @@ import AlphaOmegaRecordingInterfaceSchema from "../../../../../../schemas/json/g import DeepLabCutInterfaceSchema from "../../../../../../schemas/json/generated/DeepLabCutInterface.json"; import SLEAPInterfaceSchema from "../../../../../../schemas/json/generated/SLEAPInterface.json"; import FicTracDataInterfaceSchema from "../../../../../../schemas/json/generated/FicTracDataInterface.json"; +import AudioInterfaceSchema from "../../../../../../schemas/json/generated/AudioInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -111,6 +112,7 @@ globalStateCopy.schema.source_data.properties.DeepLabCutInterface = globalStateCopy.schema.source_data.properties.SLEAPInterface = SLEAPInterfaceSchema.properties.SLEAPInterface; globalStateCopy.schema.source_data.properties.FicTracDataInterface = FicTracDataInterfaceSchema.properties.FicTracDataInterface; +globalStateCopy.schema.source_data.properties.AudioInterface = AudioInterfaceSchema.properties.AudioInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -327,3 +329,9 @@ const FicTracDataInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); FicTracDataInterfaceGlobalCopy.interfaces.interface = FicTracDataInterface; FicTracDataInterfaceGlobalCopy.schema.source_data = FicTracDataInterfaceSchema; FicTracDataInterface.args = { activePage, globalState: FicTracDataInterfaceGlobalCopy }; + +export const AudioInterface = PageTemplate.bind({}); +const AudioInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +AudioInterfaceGlobalCopy.interfaces.interface = AudioInterface; +AudioInterfaceGlobalCopy.schema.source_data = AudioInterfaceSchema; +AudioInterface.args = { activePage, globalState: AudioInterfaceGlobalCopy };