From ee3a6dc45f4be9bd6f32c49b213d21e45b13b449 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 19 May 2026 18:22:30 +0530 Subject: [PATCH] refactor: enhance DesktopContent and HotkeysContent components with improved loading states, updated styling, and consistent use of separators --- .../components/DesktopContent.tsx | 75 ++++++++++++------- .../components/HotkeysContent.tsx | 27 ++++--- 2 files changed, 63 insertions(+), 39 deletions(-) diff --git a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx index 3368066c1..97debca9d 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/DesktopContent.tsx @@ -2,7 +2,6 @@ import { useEffect, useState } from "react"; import { toast } from "sonner"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Label } from "@/components/ui/label"; import { Select, @@ -11,7 +10,8 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { Spinner } from "@/components/ui/spinner"; +import { Separator } from "@/components/ui/separator"; +import { Skeleton } from "@/components/ui/skeleton"; import { Switch } from "@/components/ui/switch"; import type { SearchSpace } from "@/contracts/types/search-space.types"; import { useElectronAPI } from "@/hooks/use-platform"; @@ -77,8 +77,27 @@ export function DesktopContent() { if (loading) { return ( -
- +
+
+
+ + +
+ +
+ + + +
+
+ + +
+
+ + +
+
); } @@ -124,16 +143,16 @@ export function DesktopContent() { }; return ( -
- - - Default Search Space - +
+
+
+

Default Search Space

+

Choose which search space General Assist, Screenshot Assist, and Quick Assist use by default. - - - +

+
+
{searchSpaces.length > 0 ? (