diff --git a/surfsense_backend/app/agents/new_chat/tools/notion/create_page.py b/surfsense_backend/app/agents/new_chat/tools/notion/create_page.py index 3d4b84ee0..ce00025a4 100644 --- a/surfsense_backend/app/agents/new_chat/tools/notion/create_page.py +++ b/surfsense_backend/app/agents/new_chat/tools/notion/create_page.py @@ -107,8 +107,12 @@ def create_create_notion_page_tool( } ) - decisions_raw = approval.get("decisions", []) if isinstance(approval, dict) else [] - decisions = decisions_raw if isinstance(decisions_raw, list) else [decisions_raw] + decisions_raw = ( + approval.get("decisions", []) if isinstance(approval, dict) else [] + ) + decisions = ( + decisions_raw if isinstance(decisions_raw, list) else [decisions_raw] + ) decisions = [d for d in decisions if isinstance(d, dict)] if not decisions: logger.warning("No approval decision received") diff --git a/surfsense_backend/app/agents/new_chat/tools/notion/delete_page.py b/surfsense_backend/app/agents/new_chat/tools/notion/delete_page.py index c07de407e..065a4f9d4 100644 --- a/surfsense_backend/app/agents/new_chat/tools/notion/delete_page.py +++ b/surfsense_backend/app/agents/new_chat/tools/notion/delete_page.py @@ -119,8 +119,12 @@ def create_delete_notion_page_tool( } ) - decisions_raw = approval.get("decisions", []) if isinstance(approval, dict) else [] - decisions = decisions_raw if isinstance(decisions_raw, list) else [decisions_raw] + decisions_raw = ( + approval.get("decisions", []) if isinstance(approval, dict) else [] + ) + decisions = ( + decisions_raw if isinstance(decisions_raw, list) else [decisions_raw] + ) decisions = [d for d in decisions if isinstance(d, dict)] if not decisions: logger.warning("No approval decision received") diff --git a/surfsense_backend/app/agents/new_chat/tools/notion/update_page.py b/surfsense_backend/app/agents/new_chat/tools/notion/update_page.py index 17a9aa6db..7a58f3aad 100644 --- a/surfsense_backend/app/agents/new_chat/tools/notion/update_page.py +++ b/surfsense_backend/app/agents/new_chat/tools/notion/update_page.py @@ -128,8 +128,12 @@ def create_update_notion_page_tool( } ) - decisions_raw = approval.get("decisions", []) if isinstance(approval, dict) else [] - decisions = decisions_raw if isinstance(decisions_raw, list) else [decisions_raw] + decisions_raw = ( + approval.get("decisions", []) if isinstance(approval, dict) else [] + ) + decisions = ( + decisions_raw if isinstance(decisions_raw, list) else [decisions_raw] + ) decisions = [d for d in decisions if isinstance(d, dict)] if not decisions: logger.warning("No approval decision received") diff --git a/surfsense_backend/app/app.py b/surfsense_backend/app/app.py index dd15a74d4..72475e3a7 100644 --- a/surfsense_backend/app/app.py +++ b/surfsense_backend/app/app.py @@ -189,7 +189,7 @@ async def lifespan(app: FastAPI): # doesn't block startup indefinitely and make the container unresponsive) try: await asyncio.wait_for(seed_surfsense_docs(), timeout=120) - except asyncio.TimeoutError: + except TimeoutError: logging.getLogger(__name__).warning( "Surfsense docs seeding timed out after 120s — skipping. " "Docs will be indexed on the next restart." diff --git a/surfsense_web/components/homepage/hero-section.tsx b/surfsense_web/components/homepage/hero-section.tsx index 0aea85e5f..426e6c043 100644 --- a/surfsense_web/components/homepage/hero-section.tsx +++ b/surfsense_web/components/homepage/hero-section.tsx @@ -2,7 +2,8 @@ import { useFeatureFlagVariantKey } from "@posthog/react"; import { AnimatePresence, motion } from "motion/react"; import Link from "next/link"; -import React, { useEffect, useRef, useState } from "react"; +import type React from "react"; +import { useEffect, useRef, useState } from "react"; import Balancer from "react-wrap-balancer"; import { WalkthroughScroll } from "@/components/ui/walkthrough-scroll"; import { AUTH_TYPE, BACKEND_URL } from "@/lib/env-config"; diff --git a/surfsense_web/lib/announcements/announcements-data.ts b/surfsense_web/lib/announcements/announcements-data.ts index ae607823a..f9a22581a 100644 --- a/surfsense_web/lib/announcements/announcements-data.ts +++ b/surfsense_web/lib/announcements/announcements-data.ts @@ -12,8 +12,7 @@ export const announcements: Announcement[] = [ { id: "announcement-1", title: "Introducing Announcements", - description: - "All major announcements will be posted here.", + description: "All major announcements will be posted here.", category: "feature", date: "2026-02-17T00:00:00Z", isImportant: true,