chore: Improve signup flow, reduce the number of inputs (#13350)

- Improved design for the Chatwoot sign up page
This commit is contained in:
Pranav
2026-01-22 18:47:42 -08:00
committed by GitHub
parent 8eb6fd1bff
commit 747d451387
13 changed files with 398 additions and 448 deletions

View File

@@ -22,6 +22,21 @@ const getSSOAccountPath = ({ ssoAccountId, user }) => {
return accountPath;
};
const capitalize = str =>
str
.split(/[._-]+/)
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');
export const getCredentialsFromEmail = email => {
const [localPart, domain] = email.split('@');
const namePart = localPart.split('+')[0];
return {
fullName: capitalize(namePart),
accountName: capitalize(domain.split('.')[0]),
};
};
export const getLoginRedirectURL = ({
ssoAccountId,
ssoConversationId,