chore: add @doist/todoist-ai

dependency to package.json
اول دفعة من التطوير
This commit is contained in:
Your Name
2026-04-03 00:28:00 +02:00
parent 314f847ece
commit efb6854741
31 changed files with 2693 additions and 91 deletions

View File

@@ -12,6 +12,7 @@ import {
FolderClock,
KeyRound,
LogOut,
PartyPopper,
ShieldCheck,
Sparkles,
Trash2,
@@ -94,6 +95,21 @@ export default function AccountPage() {
const login = useAuthStore((state) => state.login);
const register = useAuthStore((state) => state.register);
const logout = useAuthStore((state) => state.logout);
const isNewAccount = useAuthStore((state) => state.isNewAccount);
const clearNewAccount = useAuthStore((state) => state.clearNewAccount);
const credits = useAuthStore((state) => state.credits);
// Welcome celebration for new registrations
useEffect(() => {
if (isNewAccount && user) {
toast(t('account.welcomeTitle'), {
description: t('account.welcomeMessage'),
icon: <PartyPopper className="h-5 w-5 text-amber-500" />,
duration: 6000,
});
clearNewAccount();
}
}, [isNewAccount, user, t, clearNewAccount]);
const [mode, setMode] = useState<AuthMode>('login');
const [email, setEmail] = useState('');