Many minor fixes

This commit is contained in:
Frikky
2025-10-22 00:37:56 +02:00
parent d26b7779e1
commit b559fb4a72
8 changed files with 21 additions and 120 deletions
-2
View File
@@ -589,8 +589,6 @@ const AppStats = (defaultprops) => {
const handleEndTimeChange = (date) => {
setEndTime(date)
}
console.log("sync stats: ", syncStats, statistics)
const paperStyle = {
textAlign: "center",
+1 -1
View File
@@ -471,7 +471,7 @@ const EditWorkflow = (props) => {
submitLoading === true ||
(uploadedImage === null && innerWorkflow?.default_return_value?.trim()?.length === 0)
}
variant="aiButton"
variant="aiButtonGhost"
onClick={async () => {
// Track AI Generate button click
if (isCloud) {
+6 -5
View File
@@ -249,7 +249,7 @@ const LeftSideBar = ({ userdata, serverside, globalUrl, notifications, }) => {
const UpdateTabStatus = useCallback(() => {
const lastTabOpenByUser = localStorage.getItem("lastTabOpenByUser");
if ((lastTabOpenByUser === "automate" && currentPath.includes("/dashboards/automate")) || currentPath.includes("/dashboards/automate")) {
if ((lastTabOpenByUser === "automate" && currentPath.includes("/new-dashboard")) || currentPath.includes("/new-dashboard")) {
setOpenautomateTab(true);
setCurrentOpenTab("automate");
setOpenSecurityTab(false);
@@ -1230,19 +1230,19 @@ const LeftSideBar = ({ userdata, serverside, globalUrl, notifications, }) => {
onClick={(event) => {
setOpenautomateTab(true);
setOpenSecurityTab(false);
setCurrentOpenTab("usecases");
localStorage.setItem("lastTabOpenByUser", "usecases");
setCurrentOpenTab("new-dashboard");
localStorage.setItem("lastTabOpenByUser", "new-dashboard");
}}
variant="text"
style={{
...ButtonStyle,
backgroundColor: ((currentOpenTab === "automate") || (!expandLeftNav && (currentPath === "/workflows" || currentPath === "/usecases" || currentPath.includes("/search"))))? themeMode === "dark" ? darkHoverColor : lightHoverColor : "transparent",
backgroundColor: ((currentOpenTab === "new-dashboard") || (!expandLeftNav && (currentPath === "/workflows" || currentPath === "/usecases" || currentPath.includes("/search"))))? themeMode === "dark" ? darkHoverColor : lightHoverColor : "transparent",
}}
onMouseOver={(event)=>{
event.currentTarget.style.backgroundColor = themeMode === "dark" ? darkHoverColor : lightHoverColor;
}}
onMouseOut={(event)=>{
event.currentTarget.style.backgroundColor = ((currentOpenTab === "automate")|| (!expandLeftNav && (currentPath === "/workflows" || currentPath === "/usecases" || currentPath.includes("/search"))))? themeMode === "dark" ? darkHoverColor : lightHoverColor : "transparent";
event.currentTarget.style.backgroundColor = ((currentOpenTab === "new-dashboard")|| (!expandLeftNav && (currentPath === "/workflows" || currentPath === "/usecases" || currentPath.includes("/search"))))? themeMode === "dark" ? darkHoverColor : lightHoverColor : "transparent";
}}
>
<svg
@@ -1932,6 +1932,7 @@ const LeftSideBar = ({ userdata, serverside, globalUrl, notifications, }) => {
variant="outlined"
style={{marginBottom: 15, borderWidth: 2, }}
onClick={() => {
navigate("/admin?admin_tab=billingstats&ref=left_sidebar_upgrade")
if (isCloud) {
window.open("https://shuffler.io/contact?category=book_a_demo&ref=cloud", "_blank")
} else {
+6 -6
View File
@@ -61,17 +61,17 @@ const OrganizationTab = (props) => {
useEffect(() => {
if (isIntegrationPartner && isChildOrg && !isGlobalUser) {
setVisibleTabs(items.filter((item) => item !== 'Branding' && item !== 'SSO'));
}else {
} else {
if (userdata && userdata.active_org && userdata.active_org.role === 'admin') {
setVisibleTabs(items);
}else {
} else {
setVisibleTabs(items.filter((item) => item !== 'SSO'));
}
}
if (isCloud) {
setVisibleTabs(items.filter((item) => item !== 'Production Status'));
}
//if (isCloud) {
// setVisibleTabs(items.filter((item) => item !== 'Production Status'));
//}
},[isIntegrationPartner, isChildOrg, isGlobalUser, userdata, isCloud]);
useEffect(() => {
@@ -202,7 +202,7 @@ const OrganizationTab = (props) => {
key={index}
title={
((tabName === "sso")) && !(userdata?.support || userdata?.active_org?.role === "admin")
? "Your role is not admin. Please ask the admin to change your role."
? "Your role is not admin. Please ask an admin to change your role."
: ""
}
placement="right"
-2
View File
@@ -46,8 +46,6 @@ const Priority = (props) => {
if (item !== null) {
descsplit[1] = item.large_image
console.log("DESCSPLIT name: ", descsplit[0])
if (descsplit[0].includes(":default")) {
realignedSrc = true
}