+
Details
{
e.preventDefault()
e.stopPropagation()
- window.open(`/admin?admin_tab=priorities&workflow=${executionData.workflow.id}&execution_id=${executionData.execution_id}`, "_blank")
+ window.open(`/admin?admin_tab=notifications&workflow=${executionData.workflow.id}&execution_id=${executionData.execution_id}`, "_blank")
}}
/>
@@ -20190,7 +20308,7 @@ const releaseToConnectLabel = "Release to Connect"
}
if (stringjson.includes("kms/")) {
- return "KMS authentication most likely failed. Check your notifications for more details on this page: /admin?admin_tab=priorities. If you need help with KMS, please contact support@shuffler.io"
+ return "KMS authentication most likely failed. Check your notifications for more details on this page: /admin?admin_tab=notifications. If you need help with KMS, please contact support@shuffler.io"
}
if (stringjson.includes("invalidurl")) {
@@ -20208,7 +20326,7 @@ const releaseToConnectLabel = "Release to Connect"
}
if (isCloud && stringjson.toLowerCase().includes("timeout error")) {
- return "Run this workflow in a local environment to increase the timeout. Go to https://shuffler.io/admin?tab=locationsto create an environment to connect to"
+ return "Run this workflow in a local environment to increase the timeout. Go to https://shuffler.io/admin?tab=locations to create an environment to connect to"
}
if (stringjson.toLowerCase().includes("invalid header")) {
@@ -20218,7 +20336,7 @@ const releaseToConnectLabel = "Release to Connect"
if (stringjson.includes("connectionerror")) {
if (stringjson.includes("kms")) {
- return "KMS authentication most likely failed (2). Check your notifications for more details on this page: /admin?admin_tab=priorities&kms=true. If you need help with KMS, please contact support@shuffler.io"
+ return "KMS authentication most likely failed (2). Check your notifications for more details on this page: /admin?admin_tab=notifications&kms=true. If you need help with KMS, please contact support@shuffler.io"
}
return "The URL is incorrect, or Shuffle can't reach it. Set up a Shuffle Environment in the same VLAN, or whitelist Shuffle's IPs."
@@ -20696,6 +20814,7 @@ const releaseToConnectLabel = "Release to Connect"
setExpansionModalOpen={setCodeEditorModalOpen}
setEditorData={setEditorData}
setAiQueryModalOpen={setAiQueryModalOpen}
+ fixExample={fixExample}
/>
@@ -22583,6 +22702,8 @@ const releaseToConnectLabel = "Release to Connect"
changeActionParameterCodeMirror={changeActionParameterCodeMirror}
activeDialog={activeDialog}
setActiveDialog={setActiveDialog}
+ environment={selectedActionEnvironment}
+
setAiQueryModalOpen={setAiQueryModalOpen}
/>
diff --git a/frontend/src/views/ApiExplorerWrapper.jsx b/frontend/src/views/ApiExplorerWrapper.jsx
index 8de63fb9..197e0d08 100644
--- a/frontend/src/views/ApiExplorerWrapper.jsx
+++ b/frontend/src/views/ApiExplorerWrapper.jsx
@@ -101,8 +101,8 @@ const ApiExplorerWrapper = (props) => {
}, [selectedAppData, openapi])
useEffect(() => {
+ getAppData(appid)
if (appid !== undefined && appid !== null && appid.length !== 0) {
- getAppData(appid)
HandleGetLocations()
}
@@ -157,13 +157,17 @@ const ApiExplorerWrapper = (props) => {
}
if (!found) {
- toast.error("Failed to get app data or App doesn't exist (1). Redirecting..");
+ toast.error(`Failed to get API data for '${appname}' (1). Contact support@shuffler.io if this persists.`, {
+ "autoClose": 10000,
+ })
setTimeout(()=>{
navigate("/search?tab=apps");
},3000)
}
} else {
- toast.error("Failed to get app data or App doesn't exist (2). Redirecting..");
+ toast.error(`Failed to get API data for '${appname}' (2). Contact support@shuffler.io if this persists.`, {
+ "autoClose": 10000,
+ })
setTimeout(()=>{
navigate("/search?tab=apps");
},3000)
@@ -177,6 +181,11 @@ const ApiExplorerWrapper = (props) => {
// Fetch data when appid is available
const getAppData = useCallback((appid) => {
if (appid === undefined || appid === null || appid.length === 0) {
+ toast.error("No API data to load (4). Please contact support@shuffler.io if this persists.")
+
+ setTimeout(() => {
+ navigate("/search?tab=apps")
+ }, 3000)
return
}
@@ -197,9 +206,9 @@ const ApiExplorerWrapper = (props) => {
.then((response) => {
if (response.status !== 200) {
toast.error("Failed to get app data or App doesn't exist (3). Redirecting..");
- setTimeout(()=>{
- navigate("/search?tab=apps");
- },3000)
+ setTimeout(() => {
+ navigate("/search?tab=apps")
+ }, 3000)
return;
}
return response.json();
@@ -1790,7 +1799,7 @@ const Wrapper = ({children, isLoaded,isLoggedIn})=>{
return(
-
+
{children}
)
diff --git a/frontend/src/views/Docs.jsx b/frontend/src/views/Docs.jsx
index 84be501b..0af12280 100755
--- a/frontend/src/views/Docs.jsx
+++ b/frontend/src/views/Docs.jsx
@@ -383,6 +383,7 @@ const Docs = (defaultprops) => {
if (hash.includes('?')) {
hash = hash.split('?')[0]
}
+
if (hash) {
const element = document.getElementById(hash.toLowerCase())
if (element) {
@@ -526,7 +527,7 @@ const Docs = (defaultprops) => {
backgroundColor: theme.palette.inputColor,
padding: 15,
borderRadius: theme.palette?.borderRadius,
- marginBottom: 30,
+ marginBottom: 25,
display: "flex",
}}
>
@@ -618,7 +619,8 @@ const Docs = (defaultprops) => {
@@ -664,6 +666,8 @@ const Docs = (defaultprops) => {
minHeight: "93vh",
maxHeight: "93vh",
marginTop: 70,
+ maxWidth: 250,
+ overflow: "hidden",
}
const fetchDocList = () => {
@@ -705,8 +709,7 @@ const Docs = (defaultprops) => {
// Find
![]()
tags and translate them into ![]() format
const imgRegex = /
{
fetchDocs(props.match.params.key);
}
- // const parseElementScroll = () => {
- // const offset = 45;
- // var parent = document.getElementById("markdown_wrapper_outer");
- // if (parent !== null) {
- // //console.log("IN PARENT")
- // var elements = parent.getElementsByTagName("h2");
- //
- // const name = window.location.hash
- // .slice(1, window.location.hash.length)
- // .toLowerCase()
- // .split("%20")
- // .join(" ")
- // .split("_")
- // .join(" ")
- // .split("-")
- // .join(" ")
- // .split("?")[0]
- //
- // //console.log(name)
- // var found = false;
- // for (var key in elements) {
- // const element = elements[key];
- // if (element.innerHTML === undefined) {
- // continue;
- // }
- //
- // // Fix location..
- // if (element.innerHTML.toLowerCase() === name) {
- // //console.log(element.offsetTop)
- // element.scrollIntoView({ behavior: "smooth" });
- // //element.scrollTo({
- // // top: element.offsetTop+offset,
- // // behavior: "smooth"
- // //})
- // found = true;
- // //element.scrollTo({
- // // top: element.offsetTop-100,
- // // behavior: "smooth"
- // //})
- // }
- // }
- //
- // // H#
- // if (!found) {
- // elements = parent.getElementsByTagName("h3");
- // //console.log("NAMe: ", name)
- // found = false;
- // for (key in elements) {
- // const element = elements[key];
- // if (element.innerHTML === undefined) {
- // continue;
- // }
- //
- // // Fix location..
- // if (element.innerHTML.toLowerCase() === name) {
- // element.scrollIntoView({ behavior: "smooth" });
- // //element.scrollTo({
- // // top: element.offsetTop-offset,
- // // behavior: "smooth"
- // //})
- // found = true;
- // //element.scrollTo({
- // // top: element.offsetTop-100,
- // // behavior: "smooth"
- // //})
- // }
- // }
- // }
- // }
- // //console.log(element)
- //
- // //console.log("NAME: ", name)
- // //console.log(document.body.innerHTML)
- // // parent = document.getElementById(parent);
- //
- // //var descendants = parent.getElementsByTagName(tagname);
- //
- // // this.scrollDiv.current.scrollIntoView({ behavior: 'smooth' });
- //
- // //$(".parent").find("h2:contains('Statistics')").parent();
- // };
-
const markdownStyle = {
color: "rgba(255, 255, 255, 0.90)",
overflow: "hidden",
@@ -872,7 +793,7 @@ const Docs = (defaultprops) => {
maxWidth: "100%",
minWidth: "100%",
overflow: "hidden",
- fontSize: isMobile ? "1.3rem" : "1.1rem",
+ fontSize: isMobile ? "1.3rem" : "0.8rem",
};
const alertNote = {
@@ -1084,25 +1005,23 @@ const Docs = (defaultprops) => {
{tocLines.length > 0 ?
(
-
Table Of Content
+
Table of Content
) : null}