Fixed last minor bugs for open source 1.4

This commit is contained in:
Frikky
2024-05-22 02:03:31 +02:00
parent 714fa9fbc4
commit fda26840f8
9 changed files with 51 additions and 43 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 831 B

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

+2
View File
@@ -194,6 +194,8 @@ const App = (message, props) => {
<div style={{ minHeight: 68, maxHeight: 68, }}> <div style={{ minHeight: 68, maxHeight: 68, }}>
<Header <Header
billingInfo={{}}
notifications={notifications} notifications={notifications}
setNotifications={setNotifications} setNotifications={setNotifications}
checkLogin={checkLogin} checkLogin={checkLogin}
+1 -1
View File
@@ -574,7 +574,7 @@ const Billing = (props) => {
: null} : null}
</ul> </ul>
</div> </div>
{(highlight === true && (subscription.name === "Pay as you go" && subscription.limit <= 10000) || subscription.name === "Open Source") ? {isCloud && (highlight === true && (subscription.name === "Pay as you go" && subscription.limit <= 10000) || subscription.name === "Open Source") ?
<span> <span>
<Typography variant="body2" color="textSecondary" style={{ marginTop: 20, marginBottom: 10 }}> <Typography variant="body2" color="textSecondary" style={{ marginTop: 20, marginBottom: 10 }}>
{subscription.name.includes("Scale") ? {subscription.name.includes("Scale") ?
+42 -20
View File
@@ -444,7 +444,9 @@ const LicencePopup = (props) => {
}) })
: null} : null}
</ul> </ul>
Billing email: {selectedOrganization.org} {isCloud ?
<span>Billing email: {selectedOrganization.org}</span>
: null}
</div> </div>
<Button <Button
@@ -467,7 +469,7 @@ const LicencePopup = (props) => {
action: "bookcall_upgread_popup", action: "bookcall_upgread_popup",
label: "", label: "",
})}; })};
window.open("https://drift.me/frikky", "_blank"); window.open("https://drift.me/frikky/meeting", "_blank");
// if (isLoggedIn) { // if (isLoggedIn) {
// isLoggedInHandler() // isLoggedInHandler()
// } else { // } else {
@@ -475,7 +477,9 @@ const LicencePopup = (props) => {
// } // }
}} }}
> >
Book a call <span style={{color: "#f85a3e",}}>
Book a call
</span>
<span <span
style={{ style={{
position: "absolute", position: "absolute",
@@ -706,6 +710,10 @@ const LicencePopup = (props) => {
clientReferenceId: props.userdata.active_org.id, clientReferenceId: props.userdata.active_org.id,
} }
if (stripe === undefined || stripe === null || stripe.redirectToCheckout === undefined) {
window.open("https://shuffler.io/admin?admin_tab=billing&payment=stripe_error", "_self")
}
stripe.redirectToCheckout(checkoutObject) stripe.redirectToCheckout(checkoutObject)
.then(function (result) { .then(function (result) {
console.log("SUCCESS STRIPE?: ", result) console.log("SUCCESS STRIPE?: ", result)
@@ -764,6 +772,7 @@ const LicencePopup = (props) => {
}} }}
highlight={true} highlight={true}
/> />
{/*
<SubscriptionObject <SubscriptionObject
index={1} index={1}
globalUrl={globalUrl} globalUrl={globalUrl}
@@ -783,6 +792,7 @@ const LicencePopup = (props) => {
}} }}
highlight={false} highlight={false}
/> />
*/}
</span> </span>
: null} : null}
@@ -869,7 +879,7 @@ const LicencePopup = (props) => {
<div style={{ display: 'flex', alignItems: 'center' }}> <div style={{ display: 'flex', alignItems: 'center' }}>
<span>{defaultTaskIcon}</span> <span>{defaultTaskIcon}</span>
<Typography style={{ fontSize: 14, marginLeft: 8 }}> <Typography style={{ fontSize: 14, marginLeft: 8 }}>
{shuffleVariant === 0 ? "Multi-Tenant" : "Scalable Orborus"} {shuffleVariant === 0 ? "Multi-Tenant" : "Lightning-Fast Workflows"}
</Typography> </Typography>
</div> </div>
<Divider /> <Divider />
@@ -895,12 +905,16 @@ const LicencePopup = (props) => {
style={{ borderRadius: "0px", textTransform: "capitalize" }} style={{ borderRadius: "0px", textTransform: "capitalize" }}
onClick={() => { onClick={() => {
if (isCloud) { if (isCloud) {
ReactGA.event({ ReactGA.event({
category: "header", category: "header",
action: "viewplan_upgread_popup", action: "viewplan_upgread_popup",
label: "", label: "",
})}; })
navigate("/pricing")
navigate("/pricing")
} else {
window.open("https://shuffler.io/pricing?tab=onprem", "_blank")
}
setModalOpen(false) setModalOpen(false)
}} }}
color="primary" color="primary"
@@ -912,16 +926,24 @@ const LicencePopup = (props) => {
style={{ borderRadius: 20, width: 120, textTransform: "capitalize" }} style={{ borderRadius: 20, width: 120, textTransform: "capitalize" }}
onClick={() => { onClick={() => {
if (isCloud) { if (isCloud) {
ReactGA.event({ ReactGA.event({
category: "header", category: "header",
action: "upgread_clicks_popup", action: "upgread_clicks_popup",
label: "", label: "",
})}; })
if (isLoggedIn) {
isLoggedInHandler() if (isLoggedIn) {
} else { isLoggedInHandler()
navigate(`/register?view=pricing&message=You need to create a user to continue`) } else {
} navigate(`/register?view=pricing&message=You need to create a user to continue`)
}
} else {
if (window.drift !== undefined) {
window.drift.api.startInteraction({
interactionId: 386403,
})
}
}
}} }}
color="primary" color="primary"
> >
+5 -21
View File
@@ -66,7 +66,6 @@ const Header = (props) => {
billingInfo billingInfo
} = props; } = props;
const [HomeHoverColor, setHomeHoverColor] = useState(hoverOutColor); const [HomeHoverColor, setHomeHoverColor] = useState(hoverOutColor);
const [SoarHoverColor, setSoarHoverColor] = useState(hoverOutColor); const [SoarHoverColor, setSoarHoverColor] = useState(hoverOutColor);
const [LoginHoverColor, setLoginHoverColor] = useState(hoverOutColor); const [LoginHoverColor, setLoginHoverColor] = useState(hoverOutColor);
@@ -683,22 +682,7 @@ const Header = (props) => {
marginRight: 10, marginRight: 10,
}; };
const modalView = ( const modalView =
<>
{modalOpen && (
<div
style={{
position: "fixed",
top: 0,
left: 0,
width: "100%",
height: "100%",
backgroundColor: "rgba(0, 0, 0, 0.5)",
zIndex: 1299,
backdropFilter: "blur(5px)",
}}
></div>
)}
<Dialog <Dialog
open={modalOpen} open={modalOpen}
onClose={() => { onClose={() => {
@@ -709,7 +693,7 @@ const Header = (props) => {
color: "white", color: "white",
minWidth: 850, minWidth: 850,
minHeight: 370, minHeight: 370,
padding: 10, padding: 20,
backgroundColor: "rgba(0, 0, 0, 1)", backgroundColor: "rgba(0, 0, 0, 1)",
borderRadius: theme.palette.borderRadius, borderRadius: theme.palette.borderRadius,
}, },
@@ -746,7 +730,9 @@ const Header = (props) => {
isLoaded={isLoaded} isLoaded={isLoaded}
isLoggedIn={isLoggedIn} isLoggedIn={isLoggedIn}
globalUrl={globalUrl} globalUrl={globalUrl}
billingInfo={billingInfo} billingInfo={billingInfo}
userdata={userdata} userdata={userdata}
stripeKey={stripeKey} stripeKey={stripeKey}
setModalOpen={setModalOpen} setModalOpen={setModalOpen}
@@ -754,8 +740,6 @@ const Header = (props) => {
/> />
</div> </div>
</Dialog> </Dialog>
</>
);
// Handle top bar or something // Handle top bar or something
const defaultTop = -2 const defaultTop = -2
@@ -1247,7 +1231,7 @@ const Header = (props) => {
title={""} title={""}
placement="left" placement="left"
> >
<div style={{ display: "flex", marginLeft: 85, }}> <div style={{ display: "flex", marginLeft: 50, marginRight: 50, }}>
<AddIcon /> <AddIcon />
<span style={{ marginLeft: 8 }}> <span style={{ marginLeft: 8 }}>
Add suborgs Add suborgs
+1 -1
View File
@@ -3279,7 +3279,7 @@ const Workflows = (props) => {
<Button <Button
color="secondary" color="secondary"
style={{}} style={{}}
disabled={true} disabled={isCloud}
variant="text" variant="text"
onClick={() => { onClick={() => {
exportAllWorkflows(workflows); exportAllWorkflows(workflows);