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

feat New Workflows Input Parameters #105

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 77 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"upgradePackage": "react-scripts upgradePackage"
},
"dependencies": {
"@boomerang-io/carbon-addons-boomerang-react": "1.2.5",
"@boomerang-io/carbon-addons-boomerang-react": "1.4.0-beta.6",
"@boomerang-io/styles": "0.0.3",
"@boomerang-io/utils": "0.0.6",
"@carbon/charts": "^0.16.24",
Expand All @@ -46,6 +46,7 @@
"d3": "<=5.9.2",
"detect-browser": "^4.0.3",
"flagged": "^2.0.1",
"flatpickr": "^4.6.9",
"formik": "^2.1.4",
"immer": "^9.0.6",
"js-file-download": "^0.4.4",
Expand Down
64 changes: 64 additions & 0 deletions src/ApiServer/fixtures/summaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,70 @@ const summaries = [
options: null,
helperText: null,
},
{
defaultValue: "a:b,c:d",
description: "",
jsonPath: null,
key: "creatable_pair",
label: "Creatable Pair",
max: 2,
required: false,
type: "creatable-pair",
},
{
defaultValue: "bluh",
description: "",
jsonPath: null,
key: "creatable_single",
label: "Creatable Single",
max: 1,
required: false,
type: "creatable-single",
},
{
dateFormat: "Y-m-d",
defaultValue: "2021-11-08T03:00:00.000Z",
description: "",
jsonPath: null,
key: "date",
label: "Date",
required: false,
type: "date",
},
{
dateFormat: "Y-m-d",
defaultValue: "2021-11-09T03:00:00.000Z,2021-11-26T03:00:00.000Z",
description: "",
jsonPath: "",
key: "date_range",
label: "Date Range",
required: false,
type: "date-range",
},
{
description: "",
jsonPath: "",
key: "multiselect",
label: "Multi Select",
options: [
{
key: "cat",
value: "Cat",
},
{
key: "panda",
value: "Panda",
},
{
key: "dog",
value: "Dog",
},
],
required: false,
type: "multiselect",
defaultValue: "panda,dog",
defaultOptionLabel: "Panda,Dog",
},
],
description: "",
flowTeamId: "5e7cccb94bbc6e0001c51773",
Expand Down
12 changes: 12 additions & 0 deletions src/Constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ export const ExecutionStatusCopy = {
};

export const InputProperty = {
DateFormat: "dateFormat",
DefaultValue: "defaultValue",
Description: "description",
HelperText: "helperText",
Key: "key",
Label: "label",
Max: "max",
Options: "options",
Placeholder: "placeholder",
ReadOnly: "readOnly",
Expand All @@ -55,7 +57,12 @@ export const InputProperty = {

export const InputType = {
Boolean: "boolean",
CreatablePair: "creatable-pair",
CreatableSingle: "creatable-single",
Date: "date",
DateRange: "date-range",
Email: "email",
MultiSelect: "multiselect",
Number: "number",
Password: "password",
Select: "select",
Expand All @@ -71,7 +78,12 @@ export const InputType = {

export const InputTypeCopy = {
[InputType.Boolean]: "Boolean",
[InputType.CreatablePair]: "Creatable Pair",
[InputType.CreatableSingle]: "Creatable Single",
[InputType.Date]: "Date",
[InputType.DateRange]: "Date Range",
[InputType.Email]: "Email",
[InputType.MultiSelect]: "Multi Select",
[InputType.Number]: "Number",
[InputType.Password]: "Password",
[InputType.Select]: "Select",
Expand Down
Loading