boomerang-io / community

The Boomerang community, roadmap, planning, and architecture repository. The central place for information on joining, contributing, and governance.
https://useboomerang.io
Apache License 2.0
11 stars 0 forks source link

UI + Workflow + Engine - Review Params + Config elements #421

Open tlawrie opened 10 months ago

tlawrie commented 10 months ago

Map the types better

In the ParameterUtil class, everything maps to text. We need to use the InputType in the front end to map to the param types

export const InputType = Object.freeze({
Boolean: "boolean",
Email: "email",
Number: "number",
Password: "password",
Select: "select",
TextArea: "textarea",
Text: "text",
TextEditor: "texteditor",
TextEditorJs: "texteditor::javascript",
TextEditorText: "texteditor::text",
TextEditorShell: "texteditor::shell",
TextEditorYaml: "texteditor::yaml",
URL: "url",
});

Combine the elements

We currently have Params and Config as two separate elements, one for the UI and one for the system. We could potentially merge them into one with

Params: [{
  name:
  description
  type
  defaultValue
  config: {
    .. ui config ..
  }
}]