Authentication
0 && Object.getOwnPropertyNames(selectedAction?.selectedAuthentication).length !== 0 ? (
@@ -2049,7 +2079,7 @@ const ParsedAction = (props) => {
{
- changeDistribution(selectedAction?.selectedAuthentication)
+ changeDistribution(selectedAction?.selectedAuthentication, "auth")
}}
name="distributeAuth"
color="primary"
@@ -2428,6 +2458,7 @@ const ParsedAction = (props) => {
{setNewSelectedAction !== undefined ? (
0)}
autoHighlight
value={selectedAction}
classes={{ inputRoot: classes.inputRoot }}
@@ -2628,6 +2659,7 @@ const ParsedAction = (props) => {
label={isIntegration ? "Choose a category" : "Find Actions"}
variant="outlined"
name={`disable_autocomplete_${Math.random()}`}
+ disabled={isAgent || (selectedAction?.parent_controlled === true && workflow?.parentorg_workflow?.length > 0)}
/>
);
@@ -2645,7 +2677,7 @@ const ParsedAction = (props) => {
> {
selectedActionParameters !== undefined && selectedActionParameters !== null && Object.getOwnPropertyNames(selectedAction).length > 0 && selectedActionParameters.length > 0 ?
- {isIntegration ?
+ {isIntegration || isAgent ?
apps !== undefined && apps !== null && apps.length > 0 ?
{
@@ -2703,16 +2735,20 @@ const ParsedAction = (props) => {
+
{apps.map((app, appIndex) => {
if (app.categories === undefined || app.categories === null || app.categories.length === 0) {
return null
}
+ var newactionname = actionname.toLowerCase()
+ if (isAgent === true) {
+ newactionname = "ai"
+ }
+
var found = false
-
-
for (var key in app.categories) {
- if (app.categories[key].toLowerCase() !== actionname) {
+ if (app.categories[key].toLowerCase() !== newactionname) {
continue
}
@@ -2943,10 +2979,17 @@ const ParsedAction = (props) => {
data.variant = "STATIC_VALUE";
}
- if (isIntegration && data.name === "app_name") {
+ if ((isIntegration || isAgent) && data.name === "app_name") {
return null
}
+ /*
+ // Somehow autogenerate from the app itself
+ if (isAgent && data.name == "model") {
+ //console.log("Options: ", data.options)
+ }
+ */
+
if (data.value === "authgroup controlled") {
if (data?.name === "url" && authenticationType?.type === "oauth2-app") {
} else {
@@ -3891,11 +3934,17 @@ const ParsedAction = (props) => {
viewed_data = (viewed_data.charAt(0).toUpperCase() + viewed_data.slice(1)).replaceAll("_", " ")
+ // Check if it's selected or not and highlight
+ var selected = false
+ if (selectedActionParameters[count].value.includes(data)) {
+ selected = true
+ }
+
return (
),
},
@@ -630,7 +665,7 @@ const RuntimeDebugger = (props) => {
return
}
- submitSearch(workflowId, status, startTime, endTime, rowCursor, rowsPerPage)
+ submitSearch(workflowId, status, startTime, endTime, rowCursor, rowsPerPage, suborgWorkflowRuns)
}, [workflowId, status, startTime, endTime])
const textfieldStyle = {
@@ -679,8 +714,9 @@ const RuntimeDebugger = (props) => {
setWorkflow(e.target.value)
setWorkflowId(e.target.value.id)
+ setSuborgWorkflowRuns(false)
- submitSearch(e.target.value.id, status, startTime, endTime, rowCursor, rowsPerPage)
+ submitSearch(e.target.value.id, status, startTime, endTime, rowCursor, rowsPerPage, false)
}
const executeWorkflow = (execution) => {
@@ -773,84 +809,17 @@ const RuntimeDebugger = (props) => {
return (
-
+
-
Workflow Run Debugger {totalCount !== 0 ? ` (~${totalCount})` : ""}
-
-
-
-
- ),
- endAdornment: (
-
- {searchQuery.length > 0 && (
- setSearchQuery('')}
- />
- )}
-
-
- ),
-
- }}
- onChange={(e)=>{handleQueryChange(e)}}
- color="primary"
- placeholder="Filter by Workflow Name, Status, Execution Argument, Results.."
- id="shuffle_search_field"
- />
-
-
-
- {selectedWorkflowExecutions.length > 0 ?
+
+
Workflow Run Debugger {totalCount !== 0 ? ` (~${totalCount})` : ""}
+ {selectedWorkflowExecutions.length > 0 ?
+
+
+
+
+
+ ),
+ endAdornment: (
+
+ {searchQuery.length > 0 && (
+ setSearchQuery('')}
+ />
+ )}
+
+ Search
+
+
+ ),
+
+ }}
+ onChange={(e)=>{handleQueryChange(e)}}
+ color="primary"
+ placeholder="Filter by Workflow Name, Status, Execution Argument, Results.."
+ id="shuffle_search_field"
+ />
+
+ {userdata?.active_org?.creator_org?.length === 0 ? (
+
+ {
+ setSuborgWorkflowRuns(!suborgWorkflowRuns);
+ //set selected workflow to all workflows when switching between suborg and all workflows
+ setWorkflowId("")
+ setWorkflow({"id": "", "name": "All Workflows"})
+ setStatus("")
+ setStartTime("")
+ setEndTime("")
+ setSearchQuery("")
+ submitSearch("", "", "", "", rowCursor, rowsPerPage, !suborgWorkflowRuns)}
+ }
+ color="secondary"
+ />
+ Show workflow runs from suborgs
+
+ ) : null}
+
+