+ {stackTrace}
+
+ )}
Needed columns:
+Missing columns:
Received columns:
-{data.ml_type}
, "pi pi-circle" )} + {/* Machine Learning Algorithm Section */} + {data.algorithm &&renderCardSection( + "Machine Learning Algorithm", +{data.algorithm}
, + "pi pi-cogs" + )} + {/* Model Threshold Section */} {data.model_threshold && renderCardSection( "Model's Threshold", diff --git a/renderer/components/mainPages/settings.jsx b/renderer/components/mainPages/settings.jsx index a02badfe..64bbafd8 100644 --- a/renderer/components/mainPages/settings.jsx +++ b/renderer/components/mainPages/settings.jsx @@ -68,32 +68,35 @@ const SettingsPage = ({pageId = "settings", checkJupyterIsRunning, startJupyterS } /** - * Get the settings from the main process - * if the conda path is defined in the settings, set it - * Check if the server is running and set the state + * Get the settings from the main process on mount */ useEffect(() => { + checkServer() + checkMongoIsRunning() + getJupyterStatus() ipcRenderer.invoke("get-settings").then((receivedSettings) => { console.log("received settings", receivedSettings) setSettings(receivedSettings) - if (pythonEmbedded.pythonEmbedded) { - setCondaPath(pythonEmbedded.pythonEmbedded) - } else if (receivedSettings?.condaPath) { + if (receivedSettings?.condaPath) { setCondaPath(receivedSettings?.condaPath) } if (receivedSettings?.seed) { setSeed(receivedSettings?.seed) } }) - // ipcRenderer.invoke("server-is-running").then((status) => { - // setServerIsRunning(status) - // console.log("server is running", status) - // }) - checkMongoIsRunning() - checkServer() - getJupyterStatus() }, []) + /** + * Get the settings from the main process + * if the conda path is defined in the settings, set it + * Check if the server is running and set the state + */ + useEffect(() => { + if (pythonEmbedded.pythonEmbedded && !condaPath) { + setCondaPath(pythonEmbedded.pythonEmbedded) + } + }, [pythonEmbedded]) + /** * Save the settings in the main process * @param {Object} newSettings - New settings object diff --git a/renderer/components/mainPages/superset/SupersetFrame.jsx b/renderer/components/mainPages/superset/SupersetFrame.jsx index 5dace1e0..fcafff8c 100644 --- a/renderer/components/mainPages/superset/SupersetFrame.jsx +++ b/renderer/components/mainPages/superset/SupersetFrame.jsx @@ -299,7 +299,7 @@ const SupersetDashboard = () => { }) } else if (system === "darwin") { // macOS - exec(`pkill -f superset`, (err, stdout, stderr) => { + exec(`/usr/bin/pkill -f superset`, (err, stdout, stderr) => { if (err) { console.error(err) toast.error("Error killing Superset", {autoClose: 5000}) diff --git a/renderer/styles/flow/reactFlow.css b/renderer/styles/flow/reactFlow.css index 10a7effc..48c4ffea 100644 --- a/renderer/styles/flow/reactFlow.css +++ b/renderer/styles/flow/reactFlow.css @@ -121,7 +121,6 @@ } .draggable-side-node.p-card { - background: #f3f3f3; color: #495057; box-shadow: 2px 2px 3px -1px rgb(0 0 0 / 20%), diff --git a/renderer/styles/theme.css b/renderer/styles/theme.css index 88d54a0c..5e529757 100644 --- a/renderer/styles/theme.css +++ b/renderer/styles/theme.css @@ -15,7 +15,7 @@ --button-bg: #0d6efd; --button-text: #ffffff; --button-hover: #0b5ed7; - --card-bg: #ffffff; + --card-bg: #f8f9fa; --card-border: #dee2e6; --input-bg: #ffffff; --input-border: #ced4da; @@ -105,7 +105,6 @@ label { .card-header, .p-card-header { - background-color: var(--card-bg) !important; border-bottom-color: var(--border-color) !important; color: var(--text-primary) !important; }