diff --git a/frontend/src/components/EditWorkflow.jsx b/frontend/src/components/EditWorkflow.jsx index f9aacdde..41bdffea 100644 --- a/frontend/src/components/EditWorkflow.jsx +++ b/frontend/src/components/EditWorkflow.jsx @@ -26,6 +26,7 @@ import { Typography, Zoom, CircularProgress, + Drawer, Dialog, DialogTitle, DialogActions, @@ -58,6 +59,7 @@ const EditWorkflow = (props) => { const { globalUrl, workflow, setWorkflow, modalOpen, setModalOpen, showUpload, usecases, setNewWorkflow, appFramework, isEditing, userdata, } = props const [_, setUpdate] = React.useState(""); // Used for rendering, don't remove + const [submitLoading, setSubmitLoading] = React.useState(false); const [showMoreClicked, setShowMoreClicked] = React.useState(false); const [innerWorkflow, setInnerWorkflow] = React.useState(workflow) @@ -144,18 +146,17 @@ const EditWorkflow = (props) => { var total_count = 0 return ( - { setModalOpen(false); }} PaperProps={{ style: { - backgroundColor: theme.palette.surfaceColor, color: "white", minWidth: isMobile ? "90%" : 550, maxWidth: isMobile ? "90%" : 550, - minHeight: 400, + minHeight: 400, //minWidth: isMobile ? "90%" : newWorkflow === true ? 1000 : 550, //maxWidth: isMobile ? "90%" : newWorkflow === true ? 1000 : 550, }, @@ -220,11 +221,11 @@ const EditWorkflow = (props) => { -
+
{ - setName(event.target.value) - }} + onChange={(event) => { + setName(event.target.value) + }} InputProps={{ style: { color: "white", @@ -261,7 +262,7 @@ const EditWorkflow = (props) => {
{ color="primary" fullWidth value={newWorkflowTags} + onChange={(chip) => { + console.log("Chip: ", chip) + //newWorkflowTags.push(chip); + setNewWorkflowTags(chip); + }} onAdd={(chip) => { newWorkflowTags.push(chip); setNewWorkflowTags(newWorkflowTags); @@ -486,41 +492,48 @@ const EditWorkflow = (props) => { -
+ ) } diff --git a/frontend/src/theme.jsx b/frontend/src/theme.jsx index e9da742d..ef91194b 100644 --- a/frontend/src/theme.jsx +++ b/frontend/src/theme.jsx @@ -17,8 +17,8 @@ const theme = createTheme(adaptV4Theme({ secondary: "rgba(255,255,255,0.7)", }, type: "dark", - surfaceColor: "#27292d", inputColor: "#383B40", + surfaceColor: "#27292d", platformColor: "#1c1c1d", backgroundColor: "#1a1a1a", borderRadius: 5, @@ -34,6 +34,7 @@ const theme = createTheme(adaptV4Theme({ borderRadius: 5, }, innerTextfieldStyle: { + // Removed since upgrading to mui 18 //color: "white", //minHeight: 50, //marginLeft: "5px", diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index c14260dd..f5ccd244 100755 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -22,6 +22,8 @@ import algoliasearch from 'algoliasearch/lite'; import { Zoom, + Fade, + Avatar, Popover, TextField, @@ -46,7 +48,6 @@ import { IconButton, Menu, Input, - Fade, FormGroup, FormControlLabel, Typography, @@ -221,9 +222,6 @@ export const triggers = [ ]; // is_valid: cloudSyncEnabled || isCloud ? true : false, -const surfaceColor = "#27292D"; -const inputColor = "#383B40"; - // http://apps.cytoscape.org/apps/yfileslayoutalgorithms cytoscape.use(edgehandles); //cytoscape.use(clipboard); @@ -5899,7 +5897,7 @@ const AngularWorkflow = (defaultprops) => { maxWidth: isMobile ? 50 : "100%", marginTop: "5px", color: "white", - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, cursor: "pointer", display: "flex", }; @@ -5912,7 +5910,7 @@ const AngularWorkflow = (defaultprops) => { maxWidth: "100%", marginTop: "5px", color: "white", - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, cursor: "pointer", display: "flex", }; @@ -6014,7 +6012,7 @@ const AngularWorkflow = (defaultprops) => { open={open} PaperProps={{ style: { - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, }, }} onClose={() => { @@ -6024,7 +6022,7 @@ const AngularWorkflow = (defaultprops) => { > { @@ -6050,7 +6048,7 @@ const AngularWorkflow = (defaultprops) => { { @@ -6259,7 +6257,7 @@ const AngularWorkflow = (defaultprops) => { - {isMobile ? null : Variables} + {isMobile ? null : Vars} } style={tabStyle} @@ -6992,10 +6990,6 @@ const AngularWorkflow = (defaultprops) => { style={{ backgroundColor: theme.palette.inputColor, borderRadius: theme.palette.borderRadius, maxWidth: leftBarSize - 20, }} InputProps={{ style: { - color: "white", - fontSize: "1em", - height: 50, - margin: 0, }, startAdornment: ( @@ -7202,18 +7196,13 @@ const AngularWorkflow = (defaultprops) => {
@@ -7254,11 +7243,13 @@ const AngularWorkflow = (defaultprops) => { delay += 75 return ( runDelay ? - + + {/**/}
-
+ {/*
*/} + :
{extraMessage} @@ -7902,16 +7893,11 @@ const AngularWorkflow = (defaultprops) => { var datafield = ( { return ( { if (data.type === "Execution Argument") { @@ -8106,7 +8092,7 @@ const AngularWorkflow = (defaultprops) => { const menuItemStyle = { color: "white", - backgroundColor: inputColor, + backgroundColor: theme.palette.inputColor, }; const conditionsModal = ( @@ -8122,7 +8108,7 @@ const AngularWorkflow = (defaultprops) => { PaperProps={{ style: { pointerEvents: "auto", - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, color: "white", minWidth: isMobile ? "90%" : 800, border: theme.palette.defaultBorder, @@ -8227,7 +8213,7 @@ const AngularWorkflow = (defaultprops) => { anchorEl={variableAnchorEl} PaperProps={{ style: { - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, }, }} onClose={() => { @@ -8460,7 +8446,7 @@ const AngularWorkflow = (defaultprops) => { maxWidth: "100%", marginTop: "5px", color: "white", - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, cursor: "pointer", display: "flex", }; @@ -8571,7 +8557,7 @@ const AngularWorkflow = (defaultprops) => { open={open} PaperProps={{ style: { - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, }, }} onClose={() => { @@ -8580,7 +8566,7 @@ const AngularWorkflow = (defaultprops) => { }} > { duplicateCondition(index); }} @@ -8589,7 +8575,7 @@ const AngularWorkflow = (defaultprops) => { {"Duplicate"} { setOpen(false); deleteCondition(index); @@ -9158,7 +9144,7 @@ const AngularWorkflow = (defaultprops) => {
{ } InputProps={{ style: { - color: "white", - height: 50, - marginLeft: "5px", - maxWidth: "95%", - fontSize: "1em", }, endAdornment: @@ -11121,17 +11040,13 @@ const AngularWorkflow = (defaultprops) => {
{ }} InputProps={{ style: { - color: "white", - marginLeft: "5px", - maxWidth: "95%", - fontSize: "1em", }, }} fullWidth @@ -11178,17 +11093,13 @@ const AngularWorkflow = (defaultprops) => {
{ }} InputProps={{ style: { - color: "white", - marginLeft: "5px", - maxWidth: "95%", - fontSize: "1em", }, }} fullWidth @@ -11213,7 +11124,7 @@ const AngularWorkflow = (defaultprops) => {
{isCloud && workflow.triggers[selectedTriggerIndex].parameters.length > 4 ? {
Name
{ Environment: {
{
{ workflow.triggers[selectedTriggerIndex].parameters[2].value.includes("email") ? ( { ].parameters[2].value.includes("sms") ? ( {
Name
{ setUpdate(Math.random()); }} style={{ - backgroundColor: inputColor, + backgroundColor: theme.palette.inputColor, color: "white", height: 50, }} @@ -12029,7 +11920,7 @@ const AngularWorkflow = (defaultprops) => { return ( {data} @@ -12071,16 +11962,11 @@ const AngularWorkflow = (defaultprops) => { { { id="execution_argument_input_field" style={theme.palette.textFieldStyle} disabled={workflow.public} - InputProps={{ - style: theme.palette.innerTextfieldStyle, - }} color="secondary" placeholder={"Execution Argument"} defaultValue={executionText} @@ -12986,11 +12864,12 @@ const AngularWorkflow = (defaultprops) => { {defaultReturn} : - + + {/**/}
{defaultReturn}
-
+
); //return null; @@ -13316,11 +13195,11 @@ const AngularWorkflow = (defaultprops) => { color: "white", marginBottom: 10, padding: 5, - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, cursor: "pointer", display: "flex", - minHeight: 40, - maxHeight: 40, + minHeight: 50, + maxHeight: 50, }; const parsedExecutionArgument = () => { @@ -13766,7 +13645,6 @@ const AngularWorkflow = (defaultprops) => { overflow: "auto", minWidth: isMobile ? "100%" : 420, maxWidth: isMobile ? "100%" : 420, - backgroundColor: "#1F2023", color: "white", fontSize: 18, zIndex: 10005, @@ -13864,7 +13742,8 @@ const AngularWorkflow = (defaultprops) => { } return ( - + + {/**/}
{
-
+
); })} ) : ( -
There are no executions yet, or they are not loaded.
+
+ + There are no executions yet, or they are not loaded. + + +
)} ) : ( -
+
{ }} />
-

Execution info

+

Details

{ style={{ backgroundColor: "rgba(255,255,255,0.6)", marginTop: 15, - marginBottom: 30, + marginBottom: 20, }} /> {executionData.results !== undefined && @@ -14241,14 +14136,14 @@ const AngularWorkflow = (defaultprops) => { executionData.status !== "FAILURE" && executionData.status !== "WAITING" && !(executionData.results === undefined || executionData.results === null || (executionData.results.length === 0 && executionData.status === "EXECUTING")) ? ( -
- { - console.log(environments, defaultEnvironmentIndex, nonskippedResults) - }} /> +
+ { + console.log(environments, defaultEnvironmentIndex, nonskippedResults) + }} /> {environments.length > 0 && defaultEnvironmentIndex < environments.length && nonskippedResults.length === 0 && environments[defaultEnvironmentIndex].Name !== "Cloud" ? - No results yet. Is Orborus running for the "{environments[defaultEnvironmentIndex].Name}" environment? Learn more. If the Workflow doesn't start within 30 seconds with Orborus running, contact support: support@shuffler.io + No results yet. Is Orborus running for the "{environments[defaultEnvironmentIndex].Name}" environment? Find out here. If the Workflow doesn't start within 30 seconds with Orborus running, contact support: support@shuffler.io : null}
@@ -14256,12 +14151,12 @@ const AngularWorkflow = (defaultprops) => {
{ - executionData.results === undefined || + executionData.results === undefined || executionData.results === null || (executionData.results.length === 0 && executionData.status === "EXECUTING") ? ( -
- +
+ {environments.length > 0 && defaultEnvironmentIndex < environments.length && nonskippedResults.length === 0 && environments[defaultEnvironmentIndex].Name !== "Cloud" ? No results yet. Is Orborus running for the "{environments[defaultEnvironmentIndex].Name}" environment? Learn more. If the Workflow doesn't start within 30 seconds with Orborus running, contact support: support@shuffler.io @@ -14755,7 +14650,7 @@ const AngularWorkflow = (defaultprops) => { PaperProps={{ style: { pointerEvents: "auto", - backgroundColor: inputColor, + backgroundColor: theme.palette.inputColor, color: "white", minWidth: isMobile ? "90%" : 650, padding: 30, @@ -15066,7 +14961,8 @@ const AngularWorkflow = (defaultprops) => {
) : ( - + + {/**/} { style={{ width: cytoscapeWidth, height: bodyHeight - appBarSize - 5, - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, }} stylesheet={cystyle} boxSelectionEnabled={true} @@ -15089,7 +14985,7 @@ const AngularWorkflow = (defaultprops) => { setCy(incy); }} /> - + )}
{executionModal} @@ -15165,7 +15061,7 @@ const AngularWorkflow = (defaultprops) => { PaperProps={{ style: { pointerEvents: "auto", - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, color: "white", border: theme.palette.defaultBorder, maxWidth: isMobile ? bodyWidth - 100 : 800, @@ -15343,7 +15239,7 @@ const AngularWorkflow = (defaultprops) => { PaperProps={{ style: { pointerEvents: "auto", - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, color: "white", border: theme.palette.defaultBorder, maxWidth: isMobile ? bodyWidth - 100 : "100%", @@ -15632,16 +15528,11 @@ const AngularWorkflow = (defaultprops) => { Name - what is this used for? { ) : ( { open={configureWorkflowModalOpen} PaperProps={{ style: { - backgroundColor: surfaceColor, color: "white", minWidth: 650, border: theme.palette.defaultBorder, @@ -15844,7 +15729,7 @@ const AngularWorkflow = (defaultprops) => { PaperProps={{ style: { pointerEvents: "auto", - backgroundColor: surfaceColor, + backgroundColor: theme.palette.surfaceColor, color: "white", minWidth: 1100, minHeight: 700, @@ -15965,7 +15850,7 @@ const AngularWorkflow = (defaultprops) => {
{ style={{ marginTop: 25, marginBottom: 25, - backgroundColor: inputColor, + backgroundColor: theme.palette.inputColor, }} /> @@ -16721,7 +16606,7 @@ const AngularWorkflow = (defaultprops) => { : null} {/*selectionOpen === true ? -
+
{ overflow: "hidden", width: "100%", color: "white", - backgroundColor: theme.palette.surfaceColor, padding: "12px 12px 0px 15px", borderRadius: 5, display: "flex", boxSizing: "border-box", position: "relative", + backgroundColor: theme.palette.surfaceColor, }; const gridContainer = {