diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod
index 9929130c..aa007e28 100644
--- a/backend/go-app/go.mod
+++ b/backend/go-app/go.mod
@@ -5,7 +5,7 @@ go 1.24.0
toolchain go1.24.3
//replace github.com/frikky/schemaless => ../../../schemaless
-//replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
+replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
//replace github.com/frikky/kin-openapi => ../../../../git/kin-openapi
diff --git a/backend/go-app/main.go b/backend/go-app/main.go
index 4e4cce58..4279e19f 100755
--- a/backend/go-app/main.go
+++ b/backend/go-app/main.go
@@ -4099,8 +4099,9 @@ func runInitEs(ctx context.Context) {
time.Sleep(30 * time.Second)
}
- // FIXME: This should ONLY run on one backend instance
+ shuffle.InitOpensearchIndexes()
+ // FIXME: This should ONLY run on one backend instance. This may cause interference.
schedules, err := shuffle.GetAllSchedules(ctx, "ALL")
if err != nil {
log.Printf("[WARNING] Failed getting schedules during service init: %s", err)
diff --git a/frontend/src/components/EditWorkflow.jsx b/frontend/src/components/EditWorkflow.jsx
index dbd8d3ea..00b9608d 100644
--- a/frontend/src/components/EditWorkflow.jsx
+++ b/frontend/src/components/EditWorkflow.jsx
@@ -63,6 +63,7 @@ import {
Add as AddIcon,
Remove as RemoveIcon,
EditNote as EditNoteIcon,
+ AutoAwesome as AutoAwesomeIcon
} from "@mui/icons-material";
const EditWorkflow = (props) => {
@@ -72,6 +73,7 @@ const EditWorkflow = (props) => {
const {themeMode, brandColor} = useContext(Context)
const theme = getTheme(themeMode, brandColor)
const [submitLoading, setSubmitLoading] = React.useState(false);
+ const [aiGenerateLoading, setAiGenerateLoading] = React.useState(false);
const [showMoreClicked, setShowMoreClicked] = React.useState(isEditing !== false ? true : false);
const [innerWorkflow, setInnerWorkflow] = React.useState(workflow)
@@ -220,7 +222,7 @@ const EditWorkflow = (props) => {
-
+
{newWorkflow ? "New" : "Editing"} Workflow
@@ -298,93 +300,316 @@ const EditWorkflow = (props) => {
paddingLeft: 30,
backgroundColor: themeMode === "dark" ? "#262626" : theme.palette.DialogStyle.backgroundColor,
}}>
-
+ )}
@@ -409,6 +634,29 @@ const EditWorkflow = (props) => {
id="Enter-Workflow-Name"
/>
+ {newWorkflow === true ?
+ {
+ innerWorkflow.default_return_value = event.target.value
+ setInnerWorkflow(innerWorkflow)
+ setUpdate(Math.random())
+ }}
+ InputProps={{
+ style: {
+ color: "white",
+ },
+ }}
+ color="primary"
+ defaultValue={innerWorkflow.default_return_value}
+ placeholder="Please describe your workflow below so the AI can generate it."
+ rows="3"
+ multiline
+ label="Description"
+ margin="dense"
+ fullWidth
+ />
+ : null}
+
{usecases !== null && usecases !== undefined && usecases.length > 0 ?
@@ -1285,7 +1533,7 @@ const EditWorkflow = (props) => {
- {newWorkflow === true ?
+ {/*newWorkflow === true ?
Relevant Workflows
@@ -1311,9 +1559,8 @@ const EditWorkflow = (props) => {
}
- : null}
-
- {/*newWorkflow === true && name.length > 2 ?
+ : null*/}
+ {/*newWorkflow === true && name.length > 2 ?
{
//toast("No Orborus necessary for environment cloud. Create and use a different environment to run executions on-premises.",)
return
}
-
+
if (
props.userdata.active_org === undefined ||
props.userdata.active_org === null
) {
return;
}
-
+
const elementName = "copy_element_shuffle";
var auth =
environment.auth === ""
? "cb5st3d3Z!3X3zaJ*Pc"
: environment.auth
-
- // Escape exclamation marks for copying
- auth = auth.replace("\\!", "!").replace(/!/g, "\\!")
-
+ // Escape exclamation marks for copying
+ auth = auth.replace("\\!", "!").replace(/!/g, "\\!")
const newUrl =
globalUrl === "https://shuffler.io"
? "https://shuffle-backend-stbuwivzoq-nw.a.run.app"
: globalUrl;
-
+
var skipPipeline = false
if (commandController.pipelines === true) {
skipPipeline = true
}
-
+
var addProxy = false
if (commandController.proxies === true) {
addProxy = true
}
-
+
if (installationTab === 1) {
return (`docker run -d \\
--restart=always \\
@@ -428,14 +426,32 @@ const EnvironmentTab = memo((props) => {
-e SHUFFLE_SWARM_CONFIG=run \\
-e SHUFFLE_LOGS_DISABLED=true \\
-e BASE_URL="${newUrl}" \\${addProxy ? `
- -e HTTPS_PROXY=IP:PORT \\` : ""}${skipPipeline ? `
- -e SHUFFLE_SKIP_PIPELINES=true \\` : ""}
+ -e HTTPS_PROXY=IP:PORT \\` : ""}${skipPipeline ? `
+ -e SHUFFLE_SKIP_PIPELINES=true \\` : ""}
ghcr.io/shuffle/shuffle-orborus:latest
`)
} else if (installationTab === 2) {
- return `https://shuffler.io/docs/configuration#kubernetes`
+ return `helm install shuffle-orborus oci://ghcr.io/shuffle/charts/shuffle \\
+ --namespace shuffle --create-namespace \\
+ --set opensearch.enabled=false \\
+ --set backend.replicaCount=0 \\
+ --set frontend.replicaCount=0 \\
+ --set 'orborus.extraEnvVars[0].name=AUTH' \\
+ --set 'orborus.extraEnvVars[0].value=${auth}' \\
+ --set 'orborus.extraEnvVars[1].name=BASE_URL' \\
+ --set 'orborus.extraEnvVars[1].value=${newUrl}' \\
+ --set 'orborus.extraEnvVars[2].name=ENVIRONMENT_NAME' \\
+ --set 'orborus.extraEnvVars[2].value=${environment.Name}' \\
+ --set 'orborus.extraEnvVars[3].name=ORG' \\
+ --set 'orborus.extraEnvVars[3].value=${environment.org_id}' \\
+ --set shuffle.org="${environment.org_id}"${addProxy ? ` \\
+ --set 'orborus.extraEnvVars[4].name=HTTPS_PROXY' \\
+ --set 'orborus.extraEnvVars[4].value=IP:PORT'` : ""}${skipPipeline ? ` \\
+ --set 'orborus.extraEnvVars[${addProxy ? 5 : 4}].name=SHUFFLE_SKIP_PIPELINES' \\
+ --set 'orborus.extraEnvVars[${addProxy ? 5 : 4}].value=true'` : ""} \\
+ --set persistence.storageClass=standard`
}
-
+
const commandData = `docker rm shuffle-orborus --force; \\\ndocker run -d \\
--restart=always \\
--name="shuffle-orborus" \\
@@ -445,12 +461,13 @@ const EnvironmentTab = memo((props) => {
-e ENVIRONMENT_NAME="${environment.Name}" \\
-e ORG="${props.userdata.active_org.id}" \\
-e BASE_URL="${newUrl}" \\${addProxy ? `
- -e HTTPS_PROXY=IP:PORT \\` : ""}${skipPipeline ? `
- -e SHUFFLE_SKIP_PIPELINES=true \\` : ""}
+ -e HTTPS_PROXY=IP:PORT \\` : ""}${skipPipeline ? `
+ -e SHUFFLE_SKIP_PIPELINES=true \\` : ""}
ghcr.io/shuffle/shuffle-orborus:latest`
-
+
return commandData
- };
+ };
+
const submitEnvironment = (data) => {
// FIXME - add some check here ROFL
@@ -1475,7 +1492,7 @@ const EnvironmentTab = memo((props) => {
{installationTab === 2 ?
- Check our Kubernetes documentation for more information on how to run Shuffle on Kubernetes. The status of the node will change when connected.
+ Simply connect to your Kubernetes cluster and run the following command:
:
@@ -1489,7 +1506,6 @@ const EnvironmentTab = memo((props) => {
"2. Run this command on the server you want to run workflows or store Pipeline data on"}
- {installationTab === 2 ? null :
{
}}
/>
-
- }
+
{installationTab === 2 ? null :
diff --git a/frontend/src/components/PartnerHeader.jsx b/frontend/src/components/PartnerHeader.jsx
index 8cb84c0a..3a6a910b 100644
--- a/frontend/src/components/PartnerHeader.jsx
+++ b/frontend/src/components/PartnerHeader.jsx
@@ -741,7 +741,7 @@ const PartnerHeader = (props) => {
{
@@ -812,7 +812,7 @@ const PartnerHeader = (props) => {
{
diff --git a/frontend/src/theme.jsx b/frontend/src/theme.jsx
index 4835e4f1..8772ff23 100644
--- a/frontend/src/theme.jsx
+++ b/frontend/src/theme.jsx
@@ -391,6 +391,78 @@ export const getTheme = (themeMode, brandColor) =>
},
},
},
+ {
+ props: { variant: 'aiButton' },
+ style: {
+ background: 'linear-gradient(90deg, #ff8544 0%, #ec517c 50%, #9c5af2 100%)',
+ color: '#ffffff',
+ borderRadius: '4px',
+ whiteSpace: "nowrap",
+ textWrap: "normal",
+ border: 'none',
+ boxShadow: 'none',
+ transition: 'all 0.2s ease-in-out',
+ '&:hover': {
+ color: '#ffffff',
+ textShadow: '0 0 1px currentColor',
+ },
+ '&:active': {
+ background: 'linear-gradient(90deg, #e6743a 0%, #d4456e 50%, #8a4de8 100%)',
+ },
+ '&:disabled': {
+ background: themeMode === "dark" ? '#494949' : '#C9C9C9',
+ color: themeMode === "dark" ? '#9E9E9E' : '#616161',
+ },
+ },
+ },
+ {
+ props: { variant: 'aiButtonGhost' },
+ style: {
+ background: 'transparent',
+ border: 'none',
+ borderRadius: '4px',
+ color: '#ffffff',
+ whiteSpace: "nowrap",
+ textWrap: "normal",
+ boxShadow: 'none',
+ transition: 'all 0.2s ease-in-out',
+ position: 'relative',
+ '&::before': {
+ content: '""',
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ right: 0,
+ bottom: 0,
+ borderRadius: '4px',
+ padding: '2px',
+ background: 'linear-gradient(90deg, #ff8544 0%, #ec517c 50%, #9c5af2 100%)',
+ mask: 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)',
+ WebkitMask: 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)',
+ maskComposite: 'exclude',
+ WebkitMaskComposite: 'xor',
+ transition: 'opacity 0.2s ease-in-out',
+ zIndex: -1,
+ },
+ '&:hover': {
+ background: 'linear-gradient(90deg, #ff8544 0%, #ec517c 50%, #9c5af2 100%)',
+ color: '#ffffff',
+ '&::before': {
+ opacity: 0,
+ },
+ },
+ '&:active': {
+ background: 'linear-gradient(90deg, #e6743a 0%, #d4456e 50%, #8a4de8 100%)',
+ },
+ '&:disabled': {
+ background: 'transparent',
+ color: themeMode === "dark" ? '#9E9E9E' : '#616161',
+ '&::before': {
+ background: themeMode === "dark" ? '#494949' : '#C9C9C9',
+ },
+ },
+ },
+ },
],
},
MuiTab: {
@@ -412,39 +484,39 @@ export const getTheme = (themeMode, brandColor) =>
MuiCssBaseline: {
styleOverrides: `
@font-face {
- font-family: 'Roboto';
+ font-family: 'Inter';
font-style: normal;
font-display: swap;
font-weight: 300;
- src: local('Roboto Light'), local('Roboto-Light');
+ src: local('Inter Light'), local('Inter-Light');
}
@font-face {
- font-family: 'Roboto';
+ font-family: 'Inter';
font-style: normal;
font-display: swap;
font-weight: 400;
- src: local('Roboto'), local('Roboto-Regular');
+ src: local('Inter Regular'), local('Inter-Regular');
}
@font-face {
- font-family: 'Roboto';
+ font-family: 'Inter';
font-style: normal;
font-display: swap;
font-weight: 500;
- src: local('Roboto Medium'), local('Roboto-Medium');
+ src: local('Inter Medium'), local('Inter-Medium');
}
@font-face {
- font-family: 'Roboto';
+ font-family: 'Inter';
font-style: normal;
font-display: swap;
font-weight: 600;
- src: local('Roboto SemiBold'), local('Roboto-SemiBold');
+ src: local('Inter SemiBold'), local('Inter-SemiBold');
}
@font-face {
- font-family: 'Roboto';
+ font-family: 'Inter';
font-style: normal;
font-display: swap;
font-weight: 700;
- src: local('Roboto Bold'), local('Roboto-Bold');
+ src: local('Inter Bold'), local('Inter-Bold');
}
`,
},
diff --git a/frontend/src/views/LoginPage.jsx b/frontend/src/views/LoginPage.jsx
index b717b9f6..d697f6f2 100755
--- a/frontend/src/views/LoginPage.jsx
+++ b/frontend/src/views/LoginPage.jsx
@@ -5,6 +5,7 @@ import { useNavigate, Link, useParams } from "react-router-dom";
import { isMobile } from "react-device-detect";
import { toast } from 'react-toastify';
import { useInterval } from "react-powerhooks";
+import ReactGA from 'react-ga4';
import VisibilityOutlinedIcon from '@mui/icons-material/VisibilityOutlined';
import VisibilityOffOutlinedIcon from '@mui/icons-material/VisibilityOffOutlined';
import {
@@ -157,7 +158,7 @@ const FreePlanCard = ({ classes }) => {
);
};
-const MarketplaceCard = ({ classes }) => {
+const MarketplaceCard = ({ classes, isCloud }) => {
const marketplaceOptions = [
{
name: "Open Source Install",
@@ -216,6 +217,15 @@ const MarketplaceCard = ({ classes }) => {
>
{
+ // Track marketplace click
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: "click_marketplace_option",
+ label: option.name,
+ });
+ }
+
if (option.valid === true) {
window.open(option.link, "_blank")
}
@@ -512,6 +522,15 @@ const LoginPage = props => {
const onSubmit = (e) => {
//toast("Testing from login page")
+ // Track form submission attempt
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: register ? "submit_login_form" : "submit_register_form",
+ label: register ? (loginWithSSO ? "SSO Login Form" : "Email Login Form") : "Email Registration Form",
+ });
+ }
+
setMessage("")
setLoginLoading(true)
e.preventDefault()
@@ -556,6 +575,14 @@ const LoginPage = props => {
setLoginLoading(false)
if (responseJson["success"] === false) {
+ // Track failed login event
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: loginWithSSO ? "login_sso_failed" : "login_failed",
+ label: loginWithSSO ? "SSO Login Failed" : "Email Login Failed",
+ });
+ }
setLoginInfo(responseJson["reason"])
} else {
if (responseJson?.region_url !== undefined && responseJson?.region_url !== null && responseJson?.region_url !== "") {
@@ -583,6 +610,14 @@ const LoginPage = props => {
return
}
+ // Track successful login event
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: loginWithSSO ? "login_sso_success" : "login_success",
+ label: loginWithSSO ? "SSO Login" : "Email Login",
+ });
+ }
setLoginInfo("Successful login! Redirecting you in 3 seconds...")
for (var key in responseJson["cookies"]) {
@@ -643,6 +678,14 @@ const LoginPage = props => {
.then(response =>
response.json().then(responseJson => {
if (responseJson["success"] === false) {
+ // Track failed registration event
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: "register_failed",
+ label: "Email Registration Failed",
+ });
+ }
setLoginInfo(responseJson["reason"])
} else {
if (responseJson["reason"] === "shuffle_account") {
@@ -659,6 +702,16 @@ const LoginPage = props => {
}
setLoginLoading(false)
+
+ // Track successful registration event
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: "register_success",
+ label: "Email Registration",
+ });
+ }
+
setLoginInfo("Successful registration! Redirecting in 3 seconds...")
@@ -707,15 +760,40 @@ const LoginPage = props => {
}
const HandleLoginWithSSO = () => {
+ // Track SSO login attempt
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: "click_sso_login",
+ label: "SSO Login Attempt",
+ });
+ }
+
setPassword("")
setLoginInfo("")
setLoginWithSSO(true)
}
var formtitle = register ? Welcome Back!
: Create your account
- var formButton = !isCloud ? "" : register ? Don’t have an account yet?
Register here
: <>
+ var formButton = !isCloud ? "" : register ? Don’t have an account yet?
{
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: "click_register_link",
+ label: "Switch to Register",
+ });
+ }
+ }}>
Register here
: <>
- Already have an account?
Login here
+ Already have an account?
{
+ if (isCloud) {
+ ReactGA.event({
+ category: "authentication",
+ action: "click_login_link",
+ label: "Switch to Login",
+ });
+ }
+ }}>
Login here
>
//Click here to Login
@@ -1025,7 +1103,7 @@ const LoginPage = props => {
OR
-
+
>
)}