mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
fix(manacore/web): build fixes for unified app — toast store, Svelte 5 syntax, icon imports
Add missing toast.svelte.ts store for zitare module, fix onclick|stopPropagation to Svelte 5 syntax in calendar, replace non-existent StarFill with Star weight="fill" in contacts, fix calc skins import path, add app-specific shared packages to vite config, and improve login error handling for invalid credentials. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
709e781ecd
commit
76ae64a4d6
9 changed files with 67 additions and 154 deletions
|
|
@ -23,6 +23,7 @@
|
|||
emailInvalid: string;
|
||||
passwordRequired: string;
|
||||
signInFailed: string;
|
||||
invalidCredentials?: string;
|
||||
signInSuccess: string;
|
||||
emailVerified?: string;
|
||||
emailNotVerified?: string;
|
||||
|
|
@ -68,6 +69,7 @@
|
|||
emailInvalid: 'Please enter a valid email address',
|
||||
passwordRequired: 'Password is required',
|
||||
signInFailed: 'Sign in failed',
|
||||
invalidCredentials: 'Invalid email or password',
|
||||
signInSuccess: 'Successfully signed in. Redirecting...',
|
||||
emailVerified: 'Email successfully verified! Please sign in.',
|
||||
emailNotVerified: 'Email not verified.',
|
||||
|
|
@ -308,7 +310,12 @@
|
|||
showEmailNotVerified = true;
|
||||
setError(t.emailNotVerified || 'Email not verified.', 'general');
|
||||
} else {
|
||||
setError(result.error || t.signInFailed, 'general');
|
||||
const errorMsg = (() => {
|
||||
if (result.error === 'INVALID_CREDENTIALS') return t.invalidCredentials || t.signInFailed;
|
||||
if (result.error === 'EMAIL_NOT_VERIFIED') return t.emailNotVerified || t.signInFailed;
|
||||
return result.error || t.signInFailed;
|
||||
})();
|
||||
setError(errorMsg, 'general');
|
||||
|
||||
// Detect rate limiting vs account lockout
|
||||
if (result.error?.includes('Too Many') || result.error?.includes('rate limit')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue