"use client"; import { useAuth } from "@/hooks/use-auth"; import { useEffect, useState } from "react"; import MoneyMindDashboard from "@/components/moneymind-dashboard"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { SetupChecklist } from "@/components/setup-checklist"; import { TrendingUp, TrendingDown, DollarSign, PiggyBank, Target, CreditCard, Plus, Eye, ArrowUpRight, ArrowDownRight, } from "lucide-react"; export default function Home() { const { user, isAuthenticated, isLoading: authLoading, login } = useAuth(); // Bypass diagnostics check to always show dashboard when authenticated const isAuthReady = true; const loading = false; const [showSetup, setShowSetup] = useState(false); useEffect(() => { if (user && isAuthReady) { setShowSetup(false); } }, [user, isAuthReady]); if (authLoading || loading) { return (
{[...Array(4)].map((_, i) => (
))}
); } if (!isAuthenticated) { // Show landing page for non-authenticated users return (

MoneyMind

Personal Finance Management Made Simple

Transform your financial data into actionable insights with AI-powered analytics

Smart Tracking

Automatically categorize transactions and track spending patterns

Advanced Analytics

Visual dashboards with trends, forecasts, and financial insights

Goal Planning

Set and track financial goals with progress monitoring

Budget Management

Create budgets and receive alerts for spending thresholds

{isAuthReady ? ( ) : ( )}
); } if (showSetup) { // Show setup page for users who need to configure their accounts return (

Welcome to MoneyMind

Let's get you set up to start tracking your finances

); } // Show the full MoneyMind dashboard for authenticated users with data return ; }