-
Enable Citations
+
+ Enable Citations
+
Include [citation:id] references to source documents
diff --git a/surfsense_web/components/ui/drawer.tsx b/surfsense_web/components/ui/drawer.tsx
index 81733487d..015d6ac07 100644
--- a/surfsense_web/components/ui/drawer.tsx
+++ b/surfsense_web/components/ui/drawer.tsx
@@ -9,12 +9,7 @@ function Drawer({
shouldScaleBackground = true,
...props
}: React.ComponentProps
) {
- return (
-
- );
+ return ;
}
Drawer.displayName = "Drawer";
@@ -62,42 +57,20 @@ function DrawerContent({
}
DrawerContent.displayName = "DrawerContent";
-function DrawerHeader({
- className,
- ...props
-}: React.HTMLAttributes) {
- return (
-
- );
+function DrawerHeader({ className, ...props }: React.HTMLAttributes) {
+ return ;
}
DrawerHeader.displayName = "DrawerHeader";
-function DrawerFooter({
- className,
- ...props
-}: React.HTMLAttributes) {
- return (
-
- );
+function DrawerFooter({ className, ...props }: React.HTMLAttributes) {
+ return ;
}
DrawerFooter.displayName = "DrawerFooter";
-function DrawerTitle({
- className,
- ...props
-}: React.ComponentProps) {
+function DrawerTitle({ className, ...props }: React.ComponentProps) {
return (
);
@@ -119,7 +92,10 @@ DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
function DrawerHandle({ className, ...props }: React.HTMLAttributes) {
return (
-
+
);
}
DrawerHandle.displayName = "DrawerHandle";
@@ -137,4 +113,3 @@ export {
DrawerDescription,
DrawerHandle,
};
-
diff --git a/surfsense_web/components/ui/spinner.tsx b/surfsense_web/components/ui/spinner.tsx
index eeed30a8a..22d190afa 100644
--- a/surfsense_web/components/ui/spinner.tsx
+++ b/surfsense_web/components/ui/spinner.tsx
@@ -1,34 +1,33 @@
import { cn } from "@/lib/utils";
interface SpinnerProps {
- /** Size of the spinner */
- size?: "xs" | "sm" | "md" | "lg" | "xl";
- /** Whether to hide the track behind the spinner arc */
- hideTrack?: boolean;
- /** Additional classes to apply */
- className?: string;
+ /** Size of the spinner */
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
+ /** Whether to hide the track behind the spinner arc */
+ hideTrack?: boolean;
+ /** Additional classes to apply */
+ className?: string;
}
const sizeClasses = {
- xs: "h-3 w-3 border-[1.5px]",
- sm: "h-4 w-4 border-2",
- md: "h-6 w-6 border-2",
- lg: "h-8 w-8 border-[3px]",
- xl: "h-10 w-10 border-4",
+ xs: "h-3 w-3 border-[1.5px]",
+ sm: "h-4 w-4 border-2",
+ md: "h-6 w-6 border-2",
+ lg: "h-8 w-8 border-[3px]",
+ xl: "h-10 w-10 border-4",
};
export function Spinner({ size = "md", hideTrack = false, className }: SpinnerProps) {
- return (
-
- );
+ return (
+
+ );
}
-
diff --git a/surfsense_web/contracts/types/inbox.types.ts b/surfsense_web/contracts/types/inbox.types.ts
index 515ba5864..c1627ebee 100644
--- a/surfsense_web/contracts/types/inbox.types.ts
+++ b/surfsense_web/contracts/types/inbox.types.ts
@@ -146,4 +146,3 @@ export type InboxItem = z.infer;
export type ConnectorIndexingInboxItem = z.infer;
export type DocumentProcessingInboxItem = z.infer;
export type NewMentionInboxItem = z.infer;
-
diff --git a/surfsense_web/hooks/use-inbox.ts b/surfsense_web/hooks/use-inbox.ts
index bd4a6ee35..7ce33ac9a 100644
--- a/surfsense_web/hooks/use-inbox.ts
+++ b/surfsense_web/hooks/use-inbox.ts
@@ -190,9 +190,7 @@ export function useInbox(
ORDER BY created_at DESC
LIMIT ${PAGE_SIZE}`;
- const params = typeFilter
- ? [userId, searchSpaceId, typeFilter]
- : [userId, searchSpaceId];
+ const params = typeFilter ? [userId, searchSpaceId, typeFilter] : [userId, searchSpaceId];
const db = client.db as any;
@@ -310,10 +308,7 @@ export function useInbox(
AND read = false
AND created_at > '${cutoff}'`;
- const result = await client.db.query<{ count: number }>(query, [
- userId,
- searchSpaceId,
- ]);
+ const result = await client.db.query<{ count: number }>(query, [userId, searchSpaceId]);
if (mounted && result.rows?.[0]) {
setTotalUnreadCount(Number(result.rows[0].count) || 0);
}