diff --git a/surfsense_web/app/dashboard/[search_space_id]/chats/chats-client.tsx b/surfsense_web/app/dashboard/[search_space_id]/chats/chats-client.tsx index 4177b451a..44a2846bb 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/chats/chats-client.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/chats/chats-client.tsx @@ -1,7 +1,6 @@ "use client"; import { format } from "date-fns"; -import { AnimatePresence, motion, type Variants } from "motion/react"; import { Calendar, CheckCircle, @@ -14,6 +13,7 @@ import { Tag, Trash2, } from "lucide-react"; +import { AnimatePresence, motion, type Variants } from "motion/react"; import { useRouter, useSearchParams } from "next/navigation"; import { useEffect, useState } from "react"; import { toast } from "sonner"; diff --git a/surfsense_web/app/dashboard/[search_space_id]/connectors/(manage)/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/connectors/(manage)/page.tsx index 2520307b7..e7e195759 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/connectors/(manage)/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/connectors/(manage)/page.tsx @@ -1,8 +1,8 @@ "use client"; import { format } from "date-fns"; -import { motion } from "motion/react"; import { Calendar as CalendarIcon, Edit, Plus, RefreshCw, Trash2 } from "lucide-react"; +import { motion } from "motion/react"; import { useParams, useRouter } from "next/navigation"; import { useEffect, useState } from "react"; import { toast } from "sonner"; diff --git a/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/edit/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/edit/page.tsx index b697acdc1..75248e4d0 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/edit/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/edit/page.tsx @@ -1,7 +1,7 @@ "use client"; -import { motion } from "motion/react"; import { ArrowLeft, Check, Loader2 } from "lucide-react"; +import { motion } from "motion/react"; import { useParams, useRouter } from "next/navigation"; import { useEffect } from "react"; import { toast } from "sonner"; diff --git a/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx index bf0362464..ae8910f95 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx @@ -1,8 +1,8 @@ "use client"; import { zodResolver } from "@hookform/resolvers/zod"; -import { motion } from "motion/react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; +import { motion } from "motion/react"; import { useParams, useRouter } from "next/navigation"; import { useEffect, useState } from "react"; import { useForm } from "react-hook-form"; diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx index 7b3d7beaf..3a821b09f 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx @@ -1,7 +1,7 @@ "use client"; -import { AnimatePresence, motion, type Variants } from "motion/react"; import { CircleAlert, CircleX, Columns3, Filter, ListFilter, Trash } from "lucide-react"; +import { AnimatePresence, motion, type Variants } from "motion/react"; import React, { useMemo, useRef } from "react"; import { AlertDialog, diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx index 1317944b7..6d70a7249 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx @@ -1,7 +1,7 @@ "use client"; -import { motion } from "motion/react"; import { ChevronDown, ChevronUp, FileX } from "lucide-react"; +import { motion } from "motion/react"; import React from "react"; import { DocumentViewer } from "@/components/document-viewer"; import { Button } from "@/components/ui/button"; diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/PaginationControls.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/PaginationControls.tsx index 33d2f017a..2b7434d02 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/PaginationControls.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/PaginationControls.tsx @@ -1,7 +1,7 @@ "use client"; -import { motion } from "motion/react"; import { ChevronFirst, ChevronLast, ChevronLeft, ChevronRight } from "lucide-react"; +import { motion } from "motion/react"; import { Button } from "@/components/ui/button"; import { Label } from "@/components/ui/label"; import { Pagination, PaginationContent, PaginationItem } from "@/components/ui/pagination"; diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/page.tsx index 86e702843..b63a20367 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/page.tsx @@ -42,18 +42,11 @@ export default function DocumentsTable() { const [selectedIds, setSelectedIds] = useState>(new Set()); // Use server-side pagination and search - const { - documents, - total, - loading, - error, - fetchDocuments, - searchDocuments, - deleteDocument, - } = useDocuments(searchSpaceId, { - page: pageIndex, - pageSize: pageSize, - }); + const { documents, total, loading, error, fetchDocuments, searchDocuments, deleteDocument } = + useDocuments(searchSpaceId, { + page: pageIndex, + pageSize: pageSize, + }); // Refetch when pagination changes or when search/filters change useEffect(() => { @@ -172,7 +165,6 @@ export default function DocumentsTable() { }} /> - -
- {plans.map((plan, index) => ( - +
+ {plans.map((plan, index) => ( + {plan.isPopular && (
@@ -147,39 +149,39 @@ export function Pricing({
)}
-

{plan.name}

-
- - {isNaN(Number(plan.price)) ? ( - {isMonthly ? plan.price : plan.yearlyPrice} - ) : ( - - )} - - {plan.period && plan.period !== "Next 3 months" && ( - - / {plan.period} +

{plan.name}

+
+ + {isNaN(Number(plan.price)) ? ( + {isMonthly ? plan.price : plan.yearlyPrice} + ) : ( + + )} - )} -
+ {plan.period && plan.period !== "Next 3 months" && ( + + / {plan.period} + + )} +
-

- {isNaN(Number(plan.price)) ? "" : isMonthly ? "billed monthly" : "billed annually"} -

+

+ {isNaN(Number(plan.price)) ? "" : isMonthly ? "billed monthly" : "billed annually"} +

    {plan.features.map((feature, idx) => (