diff --git a/surfsense_backend/app/proprietary/platforms/amazon/fetch.py b/surfsense_backend/app/proprietary/platforms/amazon/fetch.py
index 9d4b44539..2593fcd48 100644
--- a/surfsense_backend/app/proprietary/platforms/amazon/fetch.py
+++ b/surfsense_backend/app/proprietary/platforms/amazon/fetch.py
@@ -232,9 +232,7 @@ async def resolve_shortlink(
url: str, *, country: str | None = None, accept_language: str | None = None
) -> str | None:
"""Follow a shortened Amazon URL and return its final destination."""
- result = await fetch_page(
- url, country=country, accept_language=accept_language
- )
+ result = await fetch_page(url, country=country, accept_language=accept_language)
return result.url if result is not None and result.status == 200 else None
diff --git a/surfsense_backend/app/proprietary/platforms/amazon/parsers.py b/surfsense_backend/app/proprietary/platforms/amazon/parsers.py
index 4e8f1f487..4ee722637 100644
--- a/surfsense_backend/app/proprietary/platforms/amazon/parsers.py
+++ b/surfsense_backend/app/proprietary/platforms/amazon/parsers.py
@@ -92,9 +92,7 @@ def _float(value: str | None) -> float | None:
grouping = "." if decimal == "," else ","
token = token.replace(grouping, "").replace(decimal, ".")
elif (
- token.count(",") == 1
- and "." not in token
- and len(token.rsplit(",", 1)[1]) <= 2
+ token.count(",") == 1 and "." not in token and len(token.rsplit(",", 1)[1]) <= 2
):
token = token.replace(",", ".")
else:
diff --git a/surfsense_backend/app/utils/proxy/__init__.py b/surfsense_backend/app/utils/proxy/__init__.py
index 34d33f35d..48fb222c5 100644
--- a/surfsense_backend/app/utils/proxy/__init__.py
+++ b/surfsense_backend/app/utils/proxy/__init__.py
@@ -20,9 +20,7 @@ def get_geo_proxy_url(country: str | None = None) -> str | None:
return get_active_provider().get_geo_proxy_url(country)
-def get_sticky_proxy_url(
- session_id: str, country: str | None = None
-) -> str | None:
+def get_sticky_proxy_url(session_id: str, country: str | None = None) -> str | None:
"""Proxy URL pinned to a stable vendor session when supported."""
return get_active_provider().get_sticky_proxy_url(session_id, country)
diff --git a/surfsense_backend/tests/unit/platforms/amazon/test_parsers.py b/surfsense_backend/tests/unit/platforms/amazon/test_parsers.py
index 16570abd4..e09bbaf54 100644
--- a/surfsense_backend/tests/unit/platforms/amazon/test_parsers.py
+++ b/surfsense_backend/tests/unit/platforms/amazon/test_parsers.py
@@ -58,8 +58,12 @@ def test_block_detection_handles_waf_header_and_body_markers():
200,
{"X-Amzn-Waf-Action": "challenge"},
)
- assert is_blocked("", 200)
- assert is_blocked('', 200)
+ assert is_blocked(
+ "", 200
+ )
+ assert is_blocked(
+ '', 200
+ )
def test_float_handles_us_and_eu_price_formats():
diff --git a/surfsense_web/components/assistant-ui/image.tsx b/surfsense_web/components/assistant-ui/image.tsx
index 6cba01c50..a82b532cf 100644
--- a/surfsense_web/components/assistant-ui/image.tsx
+++ b/surfsense_web/components/assistant-ui/image.tsx
@@ -233,4 +233,4 @@ Image.Preview = ImagePreview;
Image.Filename = ImageFilename;
Image.Zoom = ImageZoom;
-export { Image, ImageRoot, ImagePreview, ImageFilename, ImageZoom, imageVariants };
+export { Image, ImageFilename, ImagePreview, ImageRoot, ImageZoom, imageVariants };
diff --git a/surfsense_web/components/new-chat/composer-suggestion-popup.tsx b/surfsense_web/components/new-chat/composer-suggestion-popup.tsx
index 7a30f487b..e5450ff4c 100644
--- a/surfsense_web/components/new-chat/composer-suggestion-popup.tsx
+++ b/surfsense_web/components/new-chat/composer-suggestion-popup.tsx
@@ -181,13 +181,13 @@ function ComposerSuggestionSkeleton({
}
export {
- ComposerSuggestionPopoverContent,
- ComposerSuggestionList,
ComposerSuggestionGroup,
ComposerSuggestionGroupHeading,
ComposerSuggestionHeader,
ComposerSuggestionItem,
- ComposerSuggestionSeparator,
+ ComposerSuggestionList,
ComposerSuggestionMessage,
+ ComposerSuggestionPopoverContent,
+ ComposerSuggestionSeparator,
ComposerSuggestionSkeleton,
};
diff --git a/surfsense_web/components/tool-ui/generate-image.tsx b/surfsense_web/components/tool-ui/generate-image.tsx
index f077dcdad..7fab2bf40 100644
--- a/surfsense_web/components/tool-ui/generate-image.tsx
+++ b/surfsense_web/components/tool-ui/generate-image.tsx
@@ -135,8 +135,8 @@ export const GenerateImageToolUI = ({
};
export {
- GenerateImageArgsSchema,
- GenerateImageResultSchema,
type GenerateImageArgs,
+ GenerateImageArgsSchema,
type GenerateImageResult,
+ GenerateImageResultSchema,
};
diff --git a/surfsense_web/components/tool-ui/sandbox-execute.tsx b/surfsense_web/components/tool-ui/sandbox-execute.tsx
index 2bac3e1ca..cda4bd21f 100644
--- a/surfsense_web/components/tool-ui/sandbox-execute.tsx
+++ b/surfsense_web/components/tool-ui/sandbox-execute.tsx
@@ -418,4 +418,4 @@ export const SandboxExecuteToolUI = ({
return ;
};
-export { ExecuteArgsSchema, ExecuteResultSchema, type ExecuteArgs, type ExecuteResult };
+export { type ExecuteArgs, ExecuteArgsSchema, type ExecuteResult, ExecuteResultSchema };
diff --git a/surfsense_web/components/tool-ui/user-memory.tsx b/surfsense_web/components/tool-ui/user-memory.tsx
index f7c446806..0c8a0030d 100644
--- a/surfsense_web/components/tool-ui/user-memory.tsx
+++ b/surfsense_web/components/tool-ui/user-memory.tsx
@@ -90,8 +90,8 @@ export const UpdateMemoryToolUI = ({
// ============================================================================
export {
- UpdateMemoryArgsSchema,
- UpdateMemoryResultSchema,
type UpdateMemoryArgs,
+ UpdateMemoryArgsSchema,
type UpdateMemoryResult,
+ UpdateMemoryResultSchema,
};
diff --git a/surfsense_web/components/tool-ui/write-todos.tsx b/surfsense_web/components/tool-ui/write-todos.tsx
index 104cbcf44..53c9083d8 100644
--- a/surfsense_web/components/tool-ui/write-todos.tsx
+++ b/surfsense_web/components/tool-ui/write-todos.tsx
@@ -157,4 +157,4 @@ export const WriteTodosToolUI = ({
);
};
-export { WriteTodosSchema, type WriteTodosData };
+export { type WriteTodosData, WriteTodosSchema };
diff --git a/surfsense_web/components/ui/accordion.tsx b/surfsense_web/components/ui/accordion.tsx
index 51ac3e849..e4c64ef83 100644
--- a/surfsense_web/components/ui/accordion.tsx
+++ b/surfsense_web/components/ui/accordion.tsx
@@ -61,4 +61,4 @@ function AccordionContent({
);
}
-export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
+export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
diff --git a/surfsense_web/components/ui/alert-dialog.tsx b/surfsense_web/components/ui/alert-dialog.tsx
index 4db90020f..f3ffc88ef 100644
--- a/surfsense_web/components/ui/alert-dialog.tsx
+++ b/surfsense_web/components/ui/alert-dialog.tsx
@@ -121,14 +121,14 @@ function AlertDialogCancel({
export {
AlertDialog,
- AlertDialogPortal,
- AlertDialogOverlay,
- AlertDialogTrigger,
- AlertDialogContent,
- AlertDialogHeader,
- AlertDialogFooter,
- AlertDialogTitle,
- AlertDialogDescription,
AlertDialogAction,
AlertDialogCancel,
+ AlertDialogContent,
+ AlertDialogDescription,
+ AlertDialogFooter,
+ AlertDialogHeader,
+ AlertDialogOverlay,
+ AlertDialogPortal,
+ AlertDialogTitle,
+ AlertDialogTrigger,
};
diff --git a/surfsense_web/components/ui/alert.tsx b/surfsense_web/components/ui/alert.tsx
index 2d777db67..39123888e 100644
--- a/surfsense_web/components/ui/alert.tsx
+++ b/surfsense_web/components/ui/alert.tsx
@@ -59,4 +59,4 @@ function AlertDescription({ className, ...props }: React.ComponentProps<"div">)
);
}
-export { Alert, AlertTitle, AlertDescription };
+export { Alert, AlertDescription, AlertTitle };
diff --git a/surfsense_web/components/ui/animated-tabs.tsx b/surfsense_web/components/ui/animated-tabs.tsx
index 7bc12821f..333c6d8ce 100644
--- a/surfsense_web/components/ui/animated-tabs.tsx
+++ b/surfsense_web/components/ui/animated-tabs.tsx
@@ -556,4 +556,4 @@ const TabsContent = forwardRef<
});
TabsContent.displayName = "TabsContent";
-export { Tabs, TabsList, TabsTrigger, TabsContent };
+export { Tabs, TabsContent, TabsList, TabsTrigger };
diff --git a/surfsense_web/components/ui/avatar.tsx b/surfsense_web/components/ui/avatar.tsx
index 984a66e8c..e0314c53d 100644
--- a/surfsense_web/components/ui/avatar.tsx
+++ b/surfsense_web/components/ui/avatar.tsx
@@ -55,4 +55,4 @@ function AvatarGroupCount({ className, ...props }: React.ComponentProps<"span">)
);
}
-export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount };
+export { Avatar, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
diff --git a/surfsense_web/components/ui/card.tsx b/surfsense_web/components/ui/card.tsx
index babb851b0..408aa5552 100644
--- a/surfsense_web/components/ui/card.tsx
+++ b/surfsense_web/components/ui/card.tsx
@@ -52,4 +52,4 @@ const CardFooter = React.forwardRef;
}
-export { Collapsible, CollapsibleTrigger, CollapsibleContent };
+export { Collapsible, CollapsibleContent, CollapsibleTrigger };
diff --git a/surfsense_web/components/ui/command.tsx b/surfsense_web/components/ui/command.tsx
index 034dbab5e..9cf82113b 100644
--- a/surfsense_web/components/ui/command.tsx
+++ b/surfsense_web/components/ui/command.tsx
@@ -150,11 +150,11 @@ function CommandShortcut({ className, ...props }: React.ComponentProps<"span">)
export {
Command,
CommandDialog,
- CommandInput,
- CommandList,
CommandEmpty,
CommandGroup,
+ CommandInput,
CommandItem,
- CommandShortcut,
+ CommandList,
CommandSeparator,
+ CommandShortcut,
};
diff --git a/surfsense_web/components/ui/context-menu.tsx b/surfsense_web/components/ui/context-menu.tsx
index 8fa7c6d1a..f24e547f5 100644
--- a/surfsense_web/components/ui/context-menu.tsx
+++ b/surfsense_web/components/ui/context-menu.tsx
@@ -207,18 +207,18 @@ function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span
export {
ContextMenu,
- ContextMenuTrigger,
- ContextMenuContent,
- ContextMenuItem,
ContextMenuCheckboxItem,
- ContextMenuRadioItem,
+ ContextMenuContent,
+ ContextMenuGroup,
+ ContextMenuItem,
ContextMenuLabel,
+ ContextMenuPortal,
+ ContextMenuRadioGroup,
+ ContextMenuRadioItem,
ContextMenuSeparator,
ContextMenuShortcut,
- ContextMenuGroup,
- ContextMenuPortal,
ContextMenuSub,
ContextMenuSubContent,
ContextMenuSubTrigger,
- ContextMenuRadioGroup,
+ ContextMenuTrigger,
};
diff --git a/surfsense_web/components/ui/dialog.tsx b/surfsense_web/components/ui/dialog.tsx
index 90c8bf538..a897379c3 100644
--- a/surfsense_web/components/ui/dialog.tsx
+++ b/surfsense_web/components/ui/dialog.tsx
@@ -92,13 +92,13 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName;
export {
Dialog,
- DialogPortal,
- DialogOverlay,
DialogClose,
- DialogTrigger,
DialogContent,
- DialogHeader,
- DialogFooter,
- DialogTitle,
DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogOverlay,
+ DialogPortal,
+ DialogTitle,
+ DialogTrigger,
};
diff --git a/surfsense_web/components/ui/drawer.tsx b/surfsense_web/components/ui/drawer.tsx
index d02996d96..cbb5a471b 100644
--- a/surfsense_web/components/ui/drawer.tsx
+++ b/surfsense_web/components/ui/drawer.tsx
@@ -102,14 +102,14 @@ DrawerHandle.displayName = "DrawerHandle";
export {
Drawer,
- DrawerPortal,
- DrawerOverlay,
- DrawerTrigger,
DrawerClose,
DrawerContent,
- DrawerHeader,
- DrawerFooter,
- DrawerTitle,
DrawerDescription,
+ DrawerFooter,
DrawerHandle,
+ DrawerHeader,
+ DrawerOverlay,
+ DrawerPortal,
+ DrawerTitle,
+ DrawerTrigger,
};
diff --git a/surfsense_web/components/ui/dropdown-menu.tsx b/surfsense_web/components/ui/dropdown-menu.tsx
index 421bcfcd2..666cda0fc 100644
--- a/surfsense_web/components/ui/dropdown-menu.tsx
+++ b/surfsense_web/components/ui/dropdown-menu.tsx
@@ -211,18 +211,18 @@ function DropdownMenuSubContent({
export {
DropdownMenu,
- DropdownMenuPortal,
- DropdownMenuTrigger,
+ DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuGroup,
- DropdownMenuLabel,
DropdownMenuItem,
- DropdownMenuCheckboxItem,
+ DropdownMenuLabel,
+ DropdownMenuPortal,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuSub,
- DropdownMenuSubTrigger,
DropdownMenuSubContent,
+ DropdownMenuSubTrigger,
+ DropdownMenuTrigger,
};
diff --git a/surfsense_web/components/ui/empty.tsx b/surfsense_web/components/ui/empty.tsx
index 79145502f..a4c610ce4 100644
--- a/surfsense_web/components/ui/empty.tsx
+++ b/surfsense_web/components/ui/empty.tsx
@@ -91,4 +91,4 @@ function EmptyContent({ className, ...props }: React.ComponentProps<"div">) {
);
}
-export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia };
+export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
diff --git a/surfsense_web/components/ui/expanded-gif-overlay.tsx b/surfsense_web/components/ui/expanded-gif-overlay.tsx
index 532ba1d32..33b40facf 100644
--- a/surfsense_web/components/ui/expanded-gif-overlay.tsx
+++ b/surfsense_web/components/ui/expanded-gif-overlay.tsx
@@ -91,4 +91,4 @@ const ExpandedGifOverlay = ExpandedMediaOverlay;
/** @deprecated Use useExpandedMedia instead */
const useExpandedGif = useExpandedMedia;
-export { ExpandedMediaOverlay, useExpandedMedia, ExpandedGifOverlay, useExpandedGif };
+export { ExpandedGifOverlay, ExpandedMediaOverlay, useExpandedGif, useExpandedMedia };
diff --git a/surfsense_web/components/ui/form.tsx b/surfsense_web/components/ui/form.tsx
index 55f003445..2093a523c 100644
--- a/surfsense_web/components/ui/form.tsx
+++ b/surfsense_web/components/ui/form.tsx
@@ -140,12 +140,12 @@ function FormMessage({ className, ...props }: React.ComponentProps<"p">) {
}
export {
- useFormField,
Form,
- FormItem,
- FormLabel,
FormControl,
FormDescription,
- FormMessage,
FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+ useFormField,
};
diff --git a/surfsense_web/components/ui/pagination.tsx b/surfsense_web/components/ui/pagination.tsx
index d8cb16cc1..613992d37 100644
--- a/surfsense_web/components/ui/pagination.tsx
+++ b/surfsense_web/components/ui/pagination.tsx
@@ -96,9 +96,9 @@ function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span"
export {
Pagination,
PaginationContent,
- PaginationLink,
- PaginationItem,
- PaginationPrevious,
- PaginationNext,
PaginationEllipsis,
+ PaginationItem,
+ PaginationLink,
+ PaginationNext,
+ PaginationPrevious,
};
diff --git a/surfsense_web/components/ui/popover.tsx b/surfsense_web/components/ui/popover.tsx
index 0d2759543..b3b92542d 100644
--- a/surfsense_web/components/ui/popover.tsx
+++ b/surfsense_web/components/ui/popover.tsx
@@ -39,4 +39,4 @@ function PopoverAnchor({ ...props }: React.ComponentProps;
}
-export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
+export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
diff --git a/surfsense_web/components/ui/sheet.tsx b/surfsense_web/components/ui/sheet.tsx
index 6ba22350e..58eb54965 100644
--- a/surfsense_web/components/ui/sheet.tsx
+++ b/surfsense_web/components/ui/sheet.tsx
@@ -122,11 +122,11 @@ function SheetDescription({
export {
Sheet,
- SheetTrigger,
SheetClose,
SheetContent,
- SheetHeader,
- SheetFooter,
- SheetTitle,
SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetTitle,
+ SheetTrigger,
};
diff --git a/surfsense_web/components/ui/table.tsx b/surfsense_web/components/ui/table.tsx
index f88d2f592..fa170ec86 100644
--- a/surfsense_web/components/ui/table.tsx
+++ b/surfsense_web/components/ui/table.tsx
@@ -89,4 +89,4 @@ function TableCaption({ className, ...props }: React.ComponentProps<"caption">)
);
}
-export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
+export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
diff --git a/surfsense_web/components/ui/tabs.tsx b/surfsense_web/components/ui/tabs.tsx
index 693e246f4..5d5911129 100644
--- a/surfsense_web/components/ui/tabs.tsx
+++ b/surfsense_web/components/ui/tabs.tsx
@@ -52,4 +52,4 @@ const TabsContent = React.forwardRef<
));
TabsContent.displayName = TabsPrimitive.Content.displayName;
-export { Tabs, TabsList, TabsTrigger, TabsContent };
+export { Tabs, TabsContent, TabsList, TabsTrigger };
diff --git a/surfsense_web/components/ui/tooltip.tsx b/surfsense_web/components/ui/tooltip.tsx
index 4253c50d4..b21d5f005 100644
--- a/surfsense_web/components/ui/tooltip.tsx
+++ b/surfsense_web/components/ui/tooltip.tsx
@@ -82,4 +82,4 @@ function TooltipContent({
);
}
-export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
+export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
diff --git a/surfsense_web/lib/apis/connectors-api.service.ts b/surfsense_web/lib/apis/connectors-api.service.ts
index 51bcde5a8..6cc45826f 100644
--- a/surfsense_web/lib/apis/connectors-api.service.ts
+++ b/surfsense_web/lib/apis/connectors-api.service.ts
@@ -426,6 +426,6 @@ export interface ObsidianStats {
last_sync_at: string | null;
}
-export type { SlackChannel, DiscordChannel };
+export type { DiscordChannel, SlackChannel };
export const connectorsApiService = new ConnectorsApiService();
diff --git a/surfsense_web/svgr.d.ts b/surfsense_web/svgr.d.ts
index ada7f47c5..2486ffa48 100644
--- a/surfsense_web/svgr.d.ts
+++ b/surfsense_web/svgr.d.ts
@@ -1,5 +1,6 @@
declare module "*.svg" {
import type { FC, SVGProps } from "react";
+
const content: FC>;
export default content;
}