Skip to content

Commit

Permalink
Only show critical toasts during onboarding (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat authored Feb 26, 2024
1 parent 4d74f23 commit b20e3ce
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions frontend/src/pages/OnboardingFlow/Steps/CustomLogo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export default function CustomLogo({ setHeader, setForwardBtn, setBackBtn }) {

const logoURL = await System.fetchLogo();
_setLogo(logoURL);

showToast("Image uploaded successfully.", "success", { clear: true });
setIsDefaultLogo(false);
};

Expand All @@ -79,8 +77,6 @@ export default function CustomLogo({ setHeader, setForwardBtn, setBackBtn }) {

const logoURL = await System.fetchLogo();
_setLogo(logoURL);

showToast("Image successfully removed.", "success", { clear: true });
};

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

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

Expand Down
4 changes: 0 additions & 4 deletions frontend/src/pages/OnboardingFlow/Steps/UserSetup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ const JustMe = ({
return;
}

showToast("Password set successfully!", "success", { clear: true });

// Auto-request token with password that was just set so they
// are not redirected to login after completion.
const { token } = await System.requestToken({
Expand Down Expand Up @@ -245,9 +243,7 @@ const MyTeam = ({ setMultiUserLoginValid, myTeamSubmitRef, navigate }) => {
return;
}

showToast("Multi-user login enabled.", "success", { clear: true });
navigate(paths.onboarding.dataHandling());

// Auto-request token with credentials that was just set so they
// are not redirected to login after completion.
const { user, token } = await System.requestToken(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ export default function VectorDatabaseConnection({
showToast(`Failed to save Vector Database settings: ${error}`, "error");
return;
}
showToast("Vector Database settings saved successfully.", "success", {
clear: true,
});
navigate(paths.onboarding.customLogo());
};

Expand Down

0 comments on commit b20e3ce

Please sign in to comment.