Only show critical toasts during onboarding (#810)

This commit is contained in:
Timothy Carambat 2024-02-26 13:54:22 -08:00 committed by GitHub
parent 4d74f23c82
commit b20e3ce52c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 0 additions and 15 deletions

View File

@ -58,8 +58,6 @@ export default function CustomLogo({ setHeader, setForwardBtn, setBackBtn }) {
const logoURL = await System.fetchLogo(); const logoURL = await System.fetchLogo();
_setLogo(logoURL); _setLogo(logoURL);
showToast("Image uploaded successfully.", "success", { clear: true });
setIsDefaultLogo(false); setIsDefaultLogo(false);
}; };
@ -79,8 +77,6 @@ export default function CustomLogo({ setHeader, setForwardBtn, setBackBtn }) {
const logoURL = await System.fetchLogo(); const logoURL = await System.fetchLogo();
_setLogo(logoURL); _setLogo(logoURL);
showToast("Image successfully removed.", "success", { clear: true });
}; };
return ( return (

View File

@ -95,9 +95,6 @@ export default function EmbeddingPreference({
showToast(`Failed to save embedding settings: ${error}`, "error"); showToast(`Failed to save embedding settings: ${error}`, "error");
return; return;
} }
showToast("Embedder settings saved successfully.", "success", {
clear: true,
});
navigate(paths.onboarding.vectorDatabase()); navigate(paths.onboarding.vectorDatabase());
}; };

View File

@ -180,7 +180,6 @@ export default function LLMPreference({
showToast(`Failed to save LLM settings: ${error}`, "error"); showToast(`Failed to save LLM settings: ${error}`, "error");
return; return;
} }
showToast("LLM settings saved successfully.", "success", { clear: true });
navigate(paths.onboarding.embeddingPreference()); navigate(paths.onboarding.embeddingPreference());
}; };

View File

@ -124,8 +124,6 @@ const JustMe = ({
return; return;
} }
showToast("Password set successfully!", "success", { clear: true });
// Auto-request token with password that was just set so they // Auto-request token with password that was just set so they
// are not redirected to login after completion. // are not redirected to login after completion.
const { token } = await System.requestToken({ const { token } = await System.requestToken({
@ -245,9 +243,7 @@ const MyTeam = ({ setMultiUserLoginValid, myTeamSubmitRef, navigate }) => {
return; return;
} }
showToast("Multi-user login enabled.", "success", { clear: true });
navigate(paths.onboarding.dataHandling()); navigate(paths.onboarding.dataHandling());
// Auto-request token with credentials that was just set so they // Auto-request token with credentials that was just set so they
// are not redirected to login after completion. // are not redirected to login after completion.
const { user, token } = await System.requestToken(data); const { user, token } = await System.requestToken(data);

View File

@ -133,9 +133,6 @@ export default function VectorDatabaseConnection({
showToast(`Failed to save Vector Database settings: ${error}`, "error"); showToast(`Failed to save Vector Database settings: ${error}`, "error");
return; return;
} }
showToast("Vector Database settings saved successfully.", "success", {
clear: true,
});
navigate(paths.onboarding.customLogo()); navigate(paths.onboarding.customLogo());
}; };