forked from janus-idp/backstage-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(orchestrator): execute workflow page new UX (janus-idp#68)
- Loading branch information
Showing
23 changed files
with
1,088 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,13 +64,14 @@ | |
"@material-ui/core": "^4.12.4", | ||
"@material-ui/icons": "^4.11.3", | ||
"@material-ui/lab": "^4.0.0-alpha.45", | ||
"@rjsf/core": "^3.2.1", | ||
"@monaco-editor/react": "^4.6.0", | ||
"@rjsf/core-v5": "npm:@rjsf/[email protected]", | ||
"@rjsf/material-ui-v5": "npm:@rjsf/[email protected]", | ||
"@rjsf/utils": "5.7.3", | ||
"@rjsf/validator-ajv8": "5.7.3", | ||
"json-schema": "^0.4.0", | ||
"moment": "^2.29.4", | ||
"monaco-editor": "^0.39.0", | ||
"react-hook-form": "^7.45.1", | ||
"react-json-view": "^1.21.3", | ||
"react-moment": "^1.1.3", | ||
|
@@ -90,7 +91,6 @@ | |
"css-loader": "^6.5.1", | ||
"file-loader": "^5.0.2", | ||
"filemanager-webpack-plugin": "^6.1.4", | ||
"monaco-editor": "^0.39.0", | ||
"monaco-editor-webpack-plugin": "7.0.1", | ||
"monaco-yaml": "^4.0.4", | ||
"sass": "^1.54.5", | ||
|
94 changes: 94 additions & 0 deletions
94
plugins/orchestrator/src/__fixtures__/fakeWorkflowDataInputSchemaResponse.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import { WorkflowDataInputSchemaResponse } from '@janus-idp/backstage-plugin-orchestrator-common'; | ||
|
||
export const fakeDataInputSchemaReponse: WorkflowDataInputSchemaResponse = { | ||
workflowItem: { | ||
uri: 'yamlgreet.sw.yaml', | ||
definition: { | ||
id: 'yamlgreet', | ||
version: '1.0', | ||
specVersion: '0.8', | ||
name: 'Greeting workflow', | ||
description: 'YAML based greeting workflow', | ||
dataInputSchema: 'schemas/yamlgreet__main_schema.json', | ||
start: 'ChooseOnLanguage', | ||
functions: [ | ||
{ | ||
name: 'greetFunction', | ||
type: 'custom', | ||
operation: 'sysout', | ||
}, | ||
], | ||
states: [ | ||
{ | ||
name: 'ChooseOnLanguage', | ||
type: 'switch', | ||
dataConditions: [ | ||
{ | ||
condition: '${ .language == "English" }', | ||
transition: 'GreetInEnglish', | ||
}, | ||
{ | ||
condition: '${ .language == "Spanish" }', | ||
transition: 'GreetInSpanish', | ||
}, | ||
], | ||
defaultCondition: { | ||
transition: 'GreetInEnglish', | ||
}, | ||
}, | ||
{ | ||
name: 'GreetInEnglish', | ||
type: 'inject', | ||
data: { | ||
greeting: 'Hello from YAML Workflow, ', | ||
}, | ||
transition: 'GreetPerson', | ||
}, | ||
{ | ||
name: 'GreetInSpanish', | ||
type: 'inject', | ||
data: { | ||
greeting: 'Saludos desde YAML Workflow, ', | ||
}, | ||
transition: 'GreetPerson', | ||
}, | ||
{ | ||
name: 'GreetPerson', | ||
type: 'operation', | ||
actions: [ | ||
{ | ||
name: 'greetAction', | ||
functionRef: { | ||
refName: 'greetFunction', | ||
arguments: { | ||
message: '.greeting+.name', | ||
}, | ||
}, | ||
}, | ||
], | ||
end: { | ||
terminate: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
schemas: [ | ||
{ | ||
$id: 'classpath:/schemas/yamlgreet__sub_schema__Additional_input_data.json', | ||
title: 'yamlgreet: Additional input data', | ||
$schema: 'http://json-schema.org/draft-07/schema#', | ||
type: 'object', | ||
required: ['language'], | ||
properties: { | ||
language: { | ||
title: 'language', | ||
type: 'string', | ||
pattern: 'Spanish|English', | ||
description: 'Extracted from the Workflow definition', | ||
default: 'English', | ||
}, | ||
}, | ||
}, | ||
], | ||
}; |
Oops, something went wrong.