Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should support composite GUI configuration #9

Closed
seveibar opened this issue Mar 6, 2020 · 1 comment
Closed

Should support composite GUI configuration #9

seveibar opened this issue Mar 6, 2020 · 1 comment

Comments

@seveibar
Copy link
Collaborator

seveibar commented Mar 6, 2020

There should be a recursive GUI configuration for composite type tasks. The following story would show a basic interface...

import React from "react"

import { storiesOf } from "@storybook/react"
import { action } from "@storybook/addon-actions"

import CompositeConfiguration from "./"

storiesOf("CompositeConfiguration", module).add("Basic", () => (
  <CompositeConfiguration
    onSaveTaskOutputItem={action("CompositeConfiguration")}
    interface={{
      type: "composite",
      fields: [
         {
             "fieldName": "Field 1",
             "interface": { "type": "image_segmentation"}
          }, 
          {
             "fieldName": "Field 2",
             "interface": { "type": "audio_transcription"}
          }, 
      ]
      description: "This is an **audio transcription** description."
    }}
  />
))
  • I'm not sure what taskData or taskOutput is supposed to look like, other than the keys of each taskOutput should be the field name e.g. taskOutput[0]["Field 1"] is the output from Field 1.
@seveibar
Copy link
Collaborator Author

seveibar commented Apr 3, 2020

@puskuruk fixed this at some point

@seveibar seveibar closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant