From 5e7411c2d44c8b66c27d32d6e0bf3202c7052cef Mon Sep 17 00:00:00 2001 From: sepehr Date: Sat, 16 May 2026 13:37:07 +0200 Subject: [PATCH] fix: remove shadcn deps from dashboard pages, restyle services & settings to editorial design - Profile: replace shadcn Select with native select, remove unused shadcn imports (fixes runtime crash) - Services: rewrite from shadcn Card/Badge to editorial-card design - Settings: rewrite from shadcn Card/Button/Badge to editorial-card design Co-Authored-By: Claude Opus 4.7 --- frontend/src/app/dashboard/profile/page.tsx | 33 ++-- frontend/src/app/dashboard/services/page.tsx | 150 ++++++++++--------- frontend/src/app/dashboard/settings/page.tsx | 126 ++++++++++------ 3 files changed, 167 insertions(+), 142 deletions(-) diff --git a/frontend/src/app/dashboard/profile/page.tsx b/frontend/src/app/dashboard/profile/page.tsx index 6209b03..89c4dc8 100644 --- a/frontend/src/app/dashboard/profile/page.tsx +++ b/frontend/src/app/dashboard/profile/page.tsx @@ -12,16 +12,7 @@ import { BadgeCheck, ShieldAlert, Info, Globe, Settings, Palette, Trash2, Loader2, Activity, ChevronDown, } from 'lucide-react'; -import { Button } from '@/components/ui/button'; -import { Badge } from '@/components/ui/badge'; -import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; -import { Separator } from '@/components/ui/separator'; -import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { ThemeToggle } from '@/components/ui/theme-toggle'; -import { - Select, SelectContent, SelectItem, SelectTrigger, SelectValue, -} from '@/components/ui/select'; -import { Label } from '@/components/ui/label'; import { languages } from '@/lib/api'; import { useTranslationStore } from '@/lib/store'; import { cn } from '@/lib/utils'; @@ -534,18 +525,18 @@ export default function ProfilePage() {
- + +
- - + {/* Cache */} +
+
+
+ +
+
+

+ {t('settings.cache.title')} +

+

+ {t('settings.cache.desc')} +

+
+
+ +
+
); }