From 195dbc5fc0589728d9c538ca8bb9db71fd531017 Mon Sep 17 00:00:00 2001
From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com>
Date: Sun, 8 Mar 2026 21:17:45 +0530
Subject: [PATCH] chore: ran linting
---
.../layout/ui/sidebar/NavSection.tsx | 24 ++++++++++++-------
.../hooks/use-documents-processing.ts | 4 +++-
2 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/surfsense_web/components/layout/ui/sidebar/NavSection.tsx b/surfsense_web/components/layout/ui/sidebar/NavSection.tsx
index 2ab1e6148..0e3decd82 100644
--- a/surfsense_web/components/layout/ui/sidebar/NavSection.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/NavSection.tsx
@@ -37,7 +37,11 @@ function StatusBadge({ status }: { status: NavItem["statusIndicator"] }) {
return null;
}
-function StatusIcon({ status, FallbackIcon, className }: {
+function StatusIcon({
+ status,
+ FallbackIcon,
+ className,
+}: {
status: NavItem["statusIndicator"];
FallbackIcon: NavItem["icon"];
className?: string;
@@ -46,10 +50,18 @@ function StatusIcon({ status, FallbackIcon, className }: {
return ;
}
if (status === "success") {
- return ;
+ return (
+
+ );
}
if (status === "error") {
- return ;
+ return (
+
+ );
}
return ;
}
@@ -113,11 +125,7 @@ export function NavSection({ items, onItemClick, isCollapsed = false }: NavSecti
)}
{...joyrideAttr}
>
-
+
{item.title}
{item.badge && (
diff --git a/surfsense_web/hooks/use-documents-processing.ts b/surfsense_web/hooks/use-documents-processing.ts
index f7a09c36a..bb9901e64 100644
--- a/surfsense_web/hooks/use-documents-processing.ts
+++ b/surfsense_web/hooks/use-documents-processing.ts
@@ -97,7 +97,9 @@ export function useDocumentsProcessing(searchSpaceId: number | null): DocumentsP
}
liveQuery.subscribe(
- (result: { rows: Array<{ processing_count: number | string; failed_count: number | string }> }) => {
+ (result: {
+ rows: Array<{ processing_count: number | string; failed_count: number | string }>;
+ }) => {
if (!mounted || !result.rows?.[0]) return;
const processingCount = Number(result.rows[0].processing_count) || 0;