From b2a0de7ca9d742502283da0fce615c31c7b9851d Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Sun, 8 Jun 2025 15:23:15 +0000 Subject: [PATCH] Improve visual structure and navigation on various pages Refactors page titles/descriptions into reusable PageHeader component in AIPage, AnalyticsPage, ChatPage, FinancesPage, FocusPage, SettingsPage, ThemePage, and VoicePage. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7e7c4e8-20cb-41c4-9d0e-79f48938fede Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/259ea43b-b9fd-4bd0-b9f3-f4898fd6e25c.jpg --- client/src/pages/AIPage.tsx | 10 ++++------ client/src/pages/AnalyticsPage.tsx | 8 ++++---- client/src/pages/ChatPage.tsx | 1 + client/src/pages/FinancesPage.tsx | 15 ++++++++------- client/src/pages/FocusPage.tsx | 9 +++++---- client/src/pages/SettingsPage.tsx | 11 +++++------ client/src/pages/ThemePage.tsx | 13 +++++-------- client/src/pages/VoicePage.tsx | 10 ++++------ 8 files changed, 36 insertions(+), 41 deletions(-) diff --git a/client/src/pages/AIPage.tsx b/client/src/pages/AIPage.tsx index 437c53d..1da7931 100644 --- a/client/src/pages/AIPage.tsx +++ b/client/src/pages/AIPage.tsx @@ -102,12 +102,10 @@ export default function AIPage() {
-
-

AI Assistant

-

- Chat with your AI assistant and get personalized insights -

-
+
{/* Chat Interface */} diff --git a/client/src/pages/AnalyticsPage.tsx b/client/src/pages/AnalyticsPage.tsx index d321df7..6047236 100644 --- a/client/src/pages/AnalyticsPage.tsx +++ b/client/src/pages/AnalyticsPage.tsx @@ -91,10 +91,10 @@ export default function AnalyticsPage() {
-
-

Analytics Dashboard

-

Comprehensive insights and performance metrics

-
+ diff --git a/client/src/pages/ChatPage.tsx b/client/src/pages/ChatPage.tsx index 616ce25..ed360cd 100644 --- a/client/src/pages/ChatPage.tsx +++ b/client/src/pages/ChatPage.tsx @@ -8,6 +8,7 @@ import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { Badge } from '@/components/ui/badge'; import { ScrollArea } from '@/components/ui/scroll-area'; import { Separator } from '@/components/ui/separator'; +import { PageHeader } from '@/components/ui/page-header'; import { MessageCircle, Search, diff --git a/client/src/pages/FinancesPage.tsx b/client/src/pages/FinancesPage.tsx index af18ead..d9b7abd 100644 --- a/client/src/pages/FinancesPage.tsx +++ b/client/src/pages/FinancesPage.tsx @@ -112,13 +112,10 @@ export default function FinancesPage() {
-
-
-

Finances

-

- Track your income, expenses, and financial goals -

-
+ + + + + Add Financial Record diff --git a/client/src/pages/FocusPage.tsx b/client/src/pages/FocusPage.tsx index ae0b562..9b27357 100644 --- a/client/src/pages/FocusPage.tsx +++ b/client/src/pages/FocusPage.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; +import { PageHeader } from "@/components/ui/page-header"; import { useTranslation } from "react-i18next"; import { Timer, Brain, Volume2, Shield, Target, Coffee, Zap } from "lucide-react"; import Header from "@/components/layout/Header"; @@ -17,10 +18,10 @@ export default function FocusPage() {
-
-

Focus Zone

-

Maximize your productivity with focused work sessions

-
+
diff --git a/client/src/pages/SettingsPage.tsx b/client/src/pages/SettingsPage.tsx index e527d56..9062b9e 100644 --- a/client/src/pages/SettingsPage.tsx +++ b/client/src/pages/SettingsPage.tsx @@ -11,6 +11,7 @@ import { Separator } from "@/components/ui/separator"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { LanguageSwitcher } from "@/components/LanguageSwitcher"; +import { PageHeader } from "@/components/ui/page-header"; import { useToast } from "@/hooks/use-toast"; import Sidebar from "@/components/layout/Sidebar"; import { User, Bell, Shield, Palette, Moon, Sun, Globe, Download, Trash2 } from "lucide-react"; @@ -58,12 +59,10 @@ export default function SettingsPage() {
-
-

Settings

-

- Manage your account settings and preferences -

-
+ diff --git a/client/src/pages/ThemePage.tsx b/client/src/pages/ThemePage.tsx index d0096d8..57b7e92 100644 --- a/client/src/pages/ThemePage.tsx +++ b/client/src/pages/ThemePage.tsx @@ -1,5 +1,6 @@ import { ThemeControlPanel } from "@/components/ThemeControlPanel"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { PageHeader } from "@/components/ui/page-header"; import { useTranslation } from "react-i18next"; import { Palette, Sparkles, Clock, Brain } from "lucide-react"; @@ -8,14 +9,10 @@ export default function ThemePage() { return (
-
-

- {t('theme.title', 'Adaptive Theme System')} -

-

- {t('theme.description', 'Experience a dynamic interface that adapts to your mood, activity patterns, and time of day for optimal productivity and comfort.')} -

-
+
diff --git a/client/src/pages/VoicePage.tsx b/client/src/pages/VoicePage.tsx index 6e9ffa4..67ef1ad 100644 --- a/client/src/pages/VoicePage.tsx +++ b/client/src/pages/VoicePage.tsx @@ -58,12 +58,10 @@ export default function VoicePage() {
-
-

Voice Commands

-

- Control your application using voice commands -

-
+
{/* Voice Control */}