Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(web): migrate auth toast calls to ui toast (#33744)
yyhef9803f8b98b
diff --git a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsxindex a0aa86e35ba..6a4e71f574b 100644--- a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx@@ -4,7 +4,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import Countdown from '@/app/components/signin/countdown'import { useLocale } from '@/context/i18n'@@ -24,16 +24,16 @@ export default function CheckCode() {const verify = async () => {try {if (!code.trim()) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.emptyCode', { ns: 'login' }),+ title: t('checkCode.emptyCode', { ns: 'login' }),})return}if (!/\d{6}/.test(code)) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.invalidCode', { ns: 'login' }),+ title: t('checkCode.invalidCode', { ns: 'login' }),})return}diff --git a/web/app/(shareLayout)/webapp-reset-password/page.tsx b/web/app/(shareLayout)/webapp-reset-password/page.tsxindex 3763e0bb2a8..08a42478aa5 100644--- a/web/app/(shareLayout)/webapp-reset-password/page.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/page.tsx@@ -5,7 +5,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { COUNT_DOWN_KEY, COUNT_DOWN_TIME_MS } from '@/app/components/signin/countdown'import { emailRegex } from '@/config'import { useLocale } from '@/context/i18n'@@ -27,14 +27,14 @@ export default function CheckCode() {const handleGetEMailVerificationCode = async () => {try {if (!email) {- Toast.notify({ type: 'error', message: t('error.emailEmpty', { ns: 'login' }) })+ toast.add({ type: 'error', title: t('error.emailEmpty', { ns: 'login' }) })return}if (!emailRegex.test(email)) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.emailInValid', { ns: 'login' }),+ title: t('error.emailInValid', { ns: 'login' }),})return}@@ -48,15 +48,15 @@ export default function CheckCode() {router.push(`/webapp-reset-password/check-code?${params.toString()}`)}else if (res.code === 'account_not_found') {- Toast.notify({+ toast.add({type: 'error',- message: t('error.registrationNotAllowed', { ns: 'login' }),+ title: t('error.registrationNotAllowed', { ns: 'login' }),})}else {- Toast.notify({+ toast.add({type: 'error',- message: res.data,+ title: res.data,})}}diff --git a/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx b/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsxindex 1a97f6440b8..22d2d22879a 100644--- a/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/set-password/page.tsx@@ -5,7 +5,7 @@ import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { validPassword } from '@/config'import { useRouter, useSearchParams } from '@/next/navigation'import { changeWebAppPasswordWithToken } from '@/service/common'@@ -24,9 +24,9 @@ const ChangePasswordForm = () => {const [showConfirmPassword, setShowConfirmPassword] = useState(false)const showErrorMessage = useCallback((message: string) => {- Toast.notify({+ toast.add({type: 'error',- message,+ title: message,})}, [])diff --git a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx b/web/app/(shareLayout)/webapp-signin/check-code/page.tsxindex 81b7c1b9a62..603369a858f 100644--- a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx+++ b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx@@ -5,7 +5,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import Countdown from '@/app/components/signin/countdown'import { useLocale } from '@/context/i18n'import { useWebAppStore } from '@/context/web-app-context'@@ -43,23 +43,23 @@ export default function CheckCode() {try {const appCode = getAppCodeFromRedirectUrl()if (!code.trim()) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.emptyCode', { ns: 'login' }),+ title: t('checkCode.emptyCode', { ns: 'login' }),})return}if (!/\d{6}/.test(code)) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.invalidCode', { ns: 'login' }),+ title: t('checkCode.invalidCode', { ns: 'login' }),})return}if (!redirectUrl || !appCode) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.redirectUrlMissing', { ns: 'login' }),+ title: t('error.redirectUrlMissing', { ns: 'login' }),})return}diff --git a/web/app/(shareLayout)/webapp-signin/components/external-member-sso-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/external-member-sso-auth.tsxindex 391479c8709..b7fb7036e87 100644--- a/web/app/(shareLayout)/webapp-signin/components/external-member-sso-auth.tsx+++ b/web/app/(shareLayout)/webapp-signin/components/external-member-sso-auth.tsx@@ -3,7 +3,7 @@ import * as React from 'react'import { useCallback, useEffect } from 'react'import AppUnavailable from '@/app/components/base/app-unavailable'import Loading from '@/app/components/base/loading'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { useGlobalPublicStore } from '@/context/global-public-context'import { useRouter, useSearchParams } from '@/next/navigation'import { fetchWebOAuth2SSOUrl, fetchWebOIDCSSOUrl, fetchWebSAMLSSOUrl } from '@/service/share'@@ -17,9 +17,9 @@ const ExternalMemberSSOAuth = () => {const redirectUrl = searchParams.get('redirect_url')const showErrorToast = (message: string) => {- Toast.notify({+ toast.add({type: 'error',- message,+ title: message,})}diff --git a/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsxindex b3505497843..7a20713e05d 100644--- a/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx+++ b/web/app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx@@ -3,7 +3,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { COUNT_DOWN_KEY, COUNT_DOWN_TIME_MS } from '@/app/components/signin/countdown'import { emailRegex } from '@/config'import { useLocale } from '@/context/i18n'@@ -22,14 +22,14 @@ export default function MailAndCodeAuth() {const handleGetEMailVerificationCode = async () => {try {if (!email) {- Toast.notify({ type: 'error', message: t('error.emailEmpty', { ns: 'login' }) })+ toast.add({ type: 'error', title: t('error.emailEmpty', { ns: 'login' }) })return}if (!emailRegex.test(email)) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.emailInValid', { ns: 'login' }),+ title: t('error.emailInValid', { ns: 'login' }),})return}diff --git a/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsxindex 87419438e3f..bbc4cc8efd5 100644--- a/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx+++ b/web/app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { emailRegex } from '@/config'import { useLocale } from '@/context/i18n'import { useWebAppStore } from '@/context/web-app-context'@@ -46,25 +46,25 @@ export default function MailAndPasswordAuth({ isEmailSetup }: MailAndPasswordAutconst appCode = getAppCodeFromRedirectUrl()const handleEmailPasswordLogin = async () => {if (!email) {- Toast.notify({ type: 'error', message: t('error.emailEmpty', { ns: 'login' }) })+ toast.add({ type: 'error', title: t('error.emailEmpty', { ns: 'login' }) })return}if (!emailRegex.test(email)) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.emailInValid', { ns: 'login' }),+ title: t('error.emailInValid', { ns: 'login' }),})return}if (!password?.trim()) {- Toast.notify({ type: 'error', message: t('error.passwordEmpty', { ns: 'login' }) })+ toast.add({ type: 'error', title: t('error.passwordEmpty', { ns: 'login' }) })return}if (!redirectUrl || !appCode) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.redirectUrlMissing', { ns: 'login' }),+ title: t('error.redirectUrlMissing', { ns: 'login' }),})return}@@ -94,15 +94,15 @@ export default function MailAndPasswordAuth({ isEmailSetup }: MailAndPasswordAutrouter.replace(decodeURIComponent(redirectUrl))}else {- Toast.notify({+ toast.add({type: 'error',- message: res.data,+ title: res.data,})}}catch (e: any) {if (e.code === 'authentication_failed')- Toast.notify({ type: 'error', message: e.message })+ toast.add({ type: 'error', title: e.message })}finally {setIsLoading(false)diff --git a/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx b/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsxindex 79d67dde5c5..fd12c2060f3 100644--- a/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx+++ b/web/app/(shareLayout)/webapp-signin/components/sso-auth.tsx@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import { Lock01 } from '@/app/components/base/icons/src/vender/solid/security'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { useRouter, useSearchParams } from '@/next/navigation'import { fetchMembersOAuth2SSOUrl, fetchMembersOIDCSSOUrl, fetchMembersSAMLSSOUrl } from '@/service/share'import { SSOProtocol } from '@/types/feature'@@ -37,9 +37,9 @@ const SSOAuth: FC<SSOAuthProps> = ({const handleSSOLogin = () => {const appCode = getAppCodeFromRedirectUrl()if (!redirectUrl || !appCode) {- Toast.notify({+ toast.add({type: 'error',- message: 'invalid redirect URL or app code',+ title: t('error.invalidRedirectUrlOrAppCode', { ns: 'login' }),})return}@@ -66,9 +66,9 @@ const SSOAuth: FC<SSOAuthProps> = ({})}else {- Toast.notify({+ toast.add({type: 'error',- message: 'invalid SSO protocol',+ title: t('error.invalidSSOProtocol', { ns: 'login' }),})setIsLoading(false)}diff --git a/web/app/forgot-password/ChangePasswordForm.tsx b/web/app/forgot-password/ChangePasswordForm.tsxindex 00f61cab2c5..e586148d9ee 100644--- a/web/app/forgot-password/ChangePasswordForm.tsx+++ b/web/app/forgot-password/ChangePasswordForm.tsx@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Loading from '@/app/components/base/loading'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { validPassword } from '@/config'import { useSearchParams } from '@/next/navigation'import { changePasswordWithToken } from '@/service/common'@@ -29,9 +29,9 @@ const ChangePasswordForm = () => {const [showSuccess, setShowSuccess] = useState(false)const showErrorMessage = useCallback((message: string) => {- Toast.notify({+ toast.add({type: 'error',- message,+ title: message,})}, [])diff --git a/web/app/reset-password/check-code/page.tsx b/web/app/reset-password/check-code/page.tsxindex aac73b8e7d4..e4a630ab11b 100644--- a/web/app/reset-password/check-code/page.tsx+++ b/web/app/reset-password/check-code/page.tsx@@ -4,7 +4,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import Countdown from '@/app/components/signin/countdown'import { useLocale } from '@/context/i18n'import { useRouter, useSearchParams } from '@/next/navigation'@@ -23,16 +23,16 @@ export default function CheckCode() {const verify = async () => {try {if (!code.trim()) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.emptyCode', { ns: 'login' }),+ title: t('checkCode.emptyCode', { ns: 'login' }),})return}if (!/\d{6}/.test(code)) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.invalidCode', { ns: 'login' }),+ title: t('checkCode.invalidCode', { ns: 'login' }),})return}diff --git a/web/app/reset-password/page.tsx b/web/app/reset-password/page.tsxindex af9dc544a6f..03ec54434bc 100644--- a/web/app/reset-password/page.tsx+++ b/web/app/reset-password/page.tsx@@ -5,7 +5,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { emailRegex } from '@/config'import { useLocale } from '@/context/i18n'import useDocumentTitle from '@/hooks/use-document-title'@@ -26,14 +26,14 @@ export default function CheckCode() {const handleGetEMailVerificationCode = async () => {try {if (!email) {- Toast.notify({ type: 'error', message: t('error.emailEmpty', { ns: 'login' }) })+ toast.add({ type: 'error', title: t('error.emailEmpty', { ns: 'login' }) })return}if (!emailRegex.test(email)) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.emailInValid', { ns: 'login' }),+ title: t('error.emailInValid', { ns: 'login' }),})return}@@ -47,9 +47,9 @@ export default function CheckCode() {router.push(`/reset-password/check-code?${params.toString()}`)}else {- Toast.notify({+ toast.add({type: 'error',- message: res.data,+ title: res.data,})}}diff --git a/web/app/reset-password/set-password/page.tsx b/web/app/reset-password/set-password/page.tsxindex e187bb28cbd..26c301d1df6 100644--- a/web/app/reset-password/set-password/page.tsx+++ b/web/app/reset-password/set-password/page.tsx@@ -5,7 +5,7 @@ import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { validPassword } from '@/config'import { useRouter, useSearchParams } from '@/next/navigation'import { changePasswordWithToken } from '@/service/common'@@ -24,9 +24,9 @@ const ChangePasswordForm = () => {const [showConfirmPassword, setShowConfirmPassword] = useState(false)const showErrorMessage = useCallback((message: string) => {- Toast.notify({+ toast.add({type: 'error',- message,+ title: message,})}, [])diff --git a/web/app/signin/check-code/page.tsx b/web/app/signin/check-code/page.tsxindex dfd346e5021..650c4018047 100644--- a/web/app/signin/check-code/page.tsx+++ b/web/app/signin/check-code/page.tsx@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next'import { trackEvent } from '@/app/components/base/amplitude'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import Countdown from '@/app/components/signin/countdown'import { useLocale } from '@/context/i18n'@@ -31,16 +31,16 @@ export default function CheckCode() {const verify = async () => {try {if (!code.trim()) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.emptyCode', { ns: 'login' }),+ title: t('checkCode.emptyCode', { ns: 'login' }),})return}if (!/\d{6}/.test(code)) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.invalidCode', { ns: 'login' }),+ title: t('checkCode.invalidCode', { ns: 'login' }),})return}diff --git a/web/app/signin/components/mail-and-code-auth.tsx b/web/app/signin/components/mail-and-code-auth.tsxindex 86fc0db36be..e3acc0e4ba9 100644--- a/web/app/signin/components/mail-and-code-auth.tsx+++ b/web/app/signin/components/mail-and-code-auth.tsx@@ -3,7 +3,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { COUNT_DOWN_KEY, COUNT_DOWN_TIME_MS } from '@/app/components/signin/countdown'import { emailRegex } from '@/config'import { useLocale } from '@/context/i18n'@@ -26,14 +26,14 @@ export default function MailAndCodeAuth({ isInvite }: MailAndCodeAuthProps) {const handleGetEMailVerificationCode = async () => {try {if (!email) {- Toast.notify({ type: 'error', message: t('error.emailEmpty', { ns: 'login' }) })+ toast.add({ type: 'error', title: t('error.emailEmpty', { ns: 'login' }) })return}if (!emailRegex.test(email)) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.emailInValid', { ns: 'login' }),+ title: t('error.emailInValid', { ns: 'login' }),})return}diff --git a/web/app/signin/components/sso-auth.tsx b/web/app/signin/components/sso-auth.tsxindex 904403ab2c8..a7bc4136650 100644--- a/web/app/signin/components/sso-auth.tsx+++ b/web/app/signin/components/sso-auth.tsx@@ -4,7 +4,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import { Lock01 } from '@/app/components/base/icons/src/vender/solid/security'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { useRouter, useSearchParams } from '@/next/navigation'import { getUserOAuth2SSOUrl, getUserOIDCSSOUrl, getUserSAMLSSOUrl } from '@/service/sso'import { SSOProtocol } from '@/types/feature'@@ -49,9 +49,9 @@ const SSOAuth: FC<SSOAuthProps> = ({})}else {- Toast.notify({+ toast.add({type: 'error',- message: 'invalid SSO protocol',+ title: t('error.invalidSSOProtocol', { ns: 'login' }),})setIsLoading(false)}diff --git a/web/app/signin/normal-form.tsx b/web/app/signin/normal-form.tsxindex 1916dd6d1cb..fa0d3c80789 100644--- a/web/app/signin/normal-form.tsx+++ b/web/app/signin/normal-form.tsx@@ -2,7 +2,7 @@ import { RiContractLine, RiDoorLockLine, RiErrorWarningFill } from '@remixicon/rimport * as React from 'react'import { useCallback, useEffect, useState } from 'react'import { useTranslation } from 'react-i18next'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { IS_CE_EDITION } from '@/config'import { useGlobalPublicStore } from '@/context/global-public-context'import Link from '@/next/link'@@ -48,9 +48,9 @@ const NormalForm = () => {}if (message) {- Toast.notify({+ toast.add({type: 'error',- message,+ title: message,})}setAllMethodsAreDisabled(!systemFeatures.enable_social_oauth_login && !systemFeatures.enable_email_code_login && !systemFeatures.enable_email_password_login && !systemFeatures.sso_enforced_for_signin)diff --git a/web/app/signup/check-code/page.tsx b/web/app/signup/check-code/page.tsxindex 00abc280f80..f4cc272e5aa 100644--- a/web/app/signup/check-code/page.tsx+++ b/web/app/signup/check-code/page.tsx@@ -5,7 +5,7 @@ import { useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import Countdown from '@/app/components/signin/countdown'import { useLocale } from '@/context/i18n'import { useRouter, useSearchParams } from '@/next/navigation'@@ -26,16 +26,16 @@ export default function CheckCode() {const verify = async () => {try {if (!code.trim()) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.emptyCode', { ns: 'login' }),+ title: t('checkCode.emptyCode', { ns: 'login' }),})return}if (!/\d{6}/.test(code)) {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.invalidCode', { ns: 'login' }),+ title: t('checkCode.invalidCode', { ns: 'login' }),})return}@@ -47,9 +47,9 @@ export default function CheckCode() {router.push(`/signup/set-password?${params.toString()}`)}else {- Toast.notify({+ toast.add({type: 'error',- message: t('checkCode.invalidCode', { ns: 'login' }),+ title: t('checkCode.invalidCode', { ns: 'login' }),})}}diff --git a/web/app/signup/components/input-mail.tsx b/web/app/signup/components/input-mail.tsxindex d6c4b95ce34..3f262029657 100644--- a/web/app/signup/components/input-mail.tsx+++ b/web/app/signup/components/input-mail.tsx@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import Split from '@/app/signin/split'import { emailRegex } from '@/config'import { useGlobalPublicStore } from '@/context/global-public-context'@@ -30,13 +30,13 @@ export default function Form({returnif (!email) {- Toast.notify({ type: 'error', message: t('error.emailEmpty', { ns: 'login' }) })+ toast.add({ type: 'error', title: t('error.emailEmpty', { ns: 'login' }) })return}if (!emailRegex.test(email)) {- Toast.notify({+ toast.add({type: 'error',- message: t('error.emailInValid', { ns: 'login' }),+ title: t('error.emailInValid', { ns: 'login' }),})return}diff --git a/web/app/signup/set-password/page.tsx b/web/app/signup/set-password/page.tsxindex c38fe688031..42ffb0843db 100644--- a/web/app/signup/set-password/page.tsx+++ b/web/app/signup/set-password/page.tsx@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next'import { trackEvent } from '@/app/components/base/amplitude'import Button from '@/app/components/base/button'import Input from '@/app/components/base/input'-import Toast from '@/app/components/base/toast'+import { toast } from '@/app/components/base/ui/toast'import { validPassword } from '@/config'import { useRouter, useSearchParams } from '@/next/navigation'import { useMailRegister } from '@/service/use-common'@@ -37,9 +37,9 @@ const ChangePasswordForm = () => {const { mutateAsync: register, isPending } = useMailRegister()const showErrorMessage = useCallback((message: string) => {- Toast.notify({+ toast.add({type: 'error',- message,+ title: message,})}, [])@@ -82,9 +82,9 @@ const ChangePasswordForm = () => {})Cookies.remove('utm_info') // Clean up: remove utm_info cookie- Toast.notify({+ toast.add({type: 'success',- message: t('api.actionSuccess', { ns: 'common' }),+ title: t('api.actionSuccess', { ns: 'common' }),})router.replace('/apps')}diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.jsonindex fdf2b43e928..218ff717217 100644--- a/web/eslint-suppressions.json+++ b/web/eslint-suppressions.json@@ -189,9 +189,6 @@}},"app/(shareLayout)/webapp-reset-password/check-code/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 4}@@ -205,46 +202,26 @@}},"app/(shareLayout)/webapp-reset-password/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 4}},"app/(shareLayout)/webapp-reset-password/set-password/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 6}},"app/(shareLayout)/webapp-signin/check-code/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 4}},- "app/(shareLayout)/webapp-signin/components/external-member-sso-auth.tsx": {- "no-restricted-imports": {- "count": 1- }- },"app/(shareLayout)/webapp-signin/components/mail-and-code-auth.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 1}},"app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 2},@@ -252,11 +229,6 @@"count": 2}},- "app/(shareLayout)/webapp-signin/components/sso-auth.tsx": {- "no-restricted-imports": {- "count": 1- }- },"app/(shareLayout)/webapp-signin/layout.tsx": {"tailwindcss/enforce-consistent-class-order": {"count": 1@@ -9277,11 +9249,6 @@"count": 5}},- "app/forgot-password/ChangePasswordForm.tsx": {- "no-restricted-imports": {- "count": 1- }- },"app/forgot-password/ForgotPasswordForm.spec.tsx": {"ts/no-explicit-any": {"count": 5@@ -9306,9 +9273,6 @@}},"app/reset-password/check-code/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 4}@@ -9322,17 +9286,11 @@}},"app/reset-password/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 4}},"app/reset-password/set-password/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 6}@@ -9342,15 +9300,7 @@"count": 1}},- "app/signin/check-code/page.tsx": {- "no-restricted-imports": {- "count": 1- }- },"app/signin/components/mail-and-code-auth.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 1}@@ -9360,11 +9310,6 @@"count": 1}},- "app/signin/components/sso-auth.tsx": {- "no-restricted-imports": {- "count": 1- }- },"app/signin/invite-settings/page.tsx": {"no-restricted-imports": {"count": 2@@ -9378,11 +9323,6 @@"count": 1}},- "app/signin/normal-form.tsx": {- "no-restricted-imports": {- "count": 1- }- },"app/signin/one-more-step.tsx": {"no-restricted-imports": {"count": 3@@ -9395,17 +9335,11 @@}},"app/signup/check-code/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 4}},"app/signup/components/input-mail.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 4}@@ -9424,9 +9358,6 @@}},"app/signup/set-password/page.tsx": {- "no-restricted-imports": {- "count": 1- },"tailwindcss/enforce-consistent-class-order": {"count": 5}diff --git a/web/i18n/en-US/login.json b/web/i18n/en-US/login.jsonindex 8a3bf04ac90..ec474aa4fb6 100644--- a/web/i18n/en-US/login.json+++ b/web/i18n/en-US/login.json@@ -35,6 +35,8 @@"error.emailEmpty": "Email address is required","error.emailInValid": "Please enter a valid email address","error.invalidEmailOrPassword": "Invalid email or password.",+ "error.invalidRedirectUrlOrAppCode": "Invalid redirect URL or app code",+ "error.invalidSSOProtocol": "Invalid SSO protocol","error.nameEmpty": "Name is required","error.passwordEmpty": "Password is required","error.passwordInvalid": "Password must contain letters and numbers, and the length must be greater than 8",