diff --git a/surfsense_web/app/dashboard/[workspace_id]/playground/components/output-viewer.tsx b/surfsense_web/app/dashboard/[workspace_id]/playground/components/output-viewer.tsx index e692734d3..72262d440 100644 --- a/surfsense_web/app/dashboard/[workspace_id]/playground/components/output-viewer.tsx +++ b/surfsense_web/app/dashboard/[workspace_id]/playground/components/output-viewer.tsx @@ -3,7 +3,6 @@ import { Check, Copy, Download } from "lucide-react"; import { useMemo, useState } from "react"; import { Button } from "@/components/ui/button"; -import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Table, TableBody, @@ -12,6 +11,7 @@ import { TableHeader, TableRow, } from "@/components/ui/table"; +import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { downloadCsv, rowsToCsv } from "@/lib/playground/csv"; const MAX_TABLE_ROWS = 200; @@ -117,13 +117,7 @@ export function OutputViewer({ data, filenameBase }: { data: unknown; filenameBa
{field.description}
- )} + {field.description &&{field.description}
}Failed to load workspace API access.
@@ -84,7 +94,12 @@ export function WorkspaceApiAccessControl({ } return ( -Allow API keys to access this workspace.
diff --git a/surfsense_web/content/docs/connectors/native/meta.json b/surfsense_web/content/docs/connectors/native/meta.json index 89c8fad08..824afb980 100644 --- a/surfsense_web/content/docs/connectors/native/meta.json +++ b/surfsense_web/content/docs/connectors/native/meta.json @@ -1,5 +1,13 @@ { "title": "Native Connectors", - "pages": ["reddit", "youtube", "instagram", "tiktok", "google-maps", "google-search", "web-crawl"], + "pages": [ + "reddit", + "youtube", + "instagram", + "tiktok", + "google-maps", + "google-search", + "web-crawl" + ], "defaultOpen": false } diff --git a/surfsense_web/hooks/use-run-stream.ts b/surfsense_web/hooks/use-run-stream.ts index 6e7f9b766..5d737e059 100644 --- a/surfsense_web/hooks/use-run-stream.ts +++ b/surfsense_web/hooks/use-run-stream.ts @@ -89,17 +89,12 @@ export function useRunStream(workspaceId: number) { setState((s) => ({ ...s, latest: ev, - events: - ev.type === "run.progress" - ? [...s.events.slice(-(MAX_LOG - 1)), ev] - : s.events, + events: ev.type === "run.progress" ? [...s.events.slice(-(MAX_LOG - 1)), ev] : s.events, })); } } catch (e) { if (signal.aborted) return; - setState((s) => - s.status === "running" ? { ...s, status: "error", error: e } : s - ); + setState((s) => (s.status === "running" ? { ...s, status: "error", error: e } : s)); } }, [workspaceId, queryClient] @@ -113,12 +108,7 @@ export function useRunStream(workspaceId: number) { startedAtRef.current = Date.now(); setState({ ...INITIAL, status: "running" }); try { - const started = await scrapersApiService.runAsync( - workspaceId, - platform, - verb, - payload - ); + const started = await scrapersApiService.runAsync(workspaceId, platform, verb, payload); runIdRef.current = started.run_id; trackWeeklyUser("api_run", workspaceId); setState((s) => ({ ...s, runId: started.run_id })); diff --git a/surfsense_web/lib/apis/scrapers-api.service.ts b/surfsense_web/lib/apis/scrapers-api.service.ts index 0de3ef720..69b403d5c 100644 --- a/surfsense_web/lib/apis/scrapers-api.service.ts +++ b/surfsense_web/lib/apis/scrapers-api.service.ts @@ -1,15 +1,15 @@ import { type ListScraperRunsParams, - type ScraperRunEvent, - type StartAsyncRunResponse, listCapabilitiesResponse, listRunsResponse, + type ScraperRunEvent, + type StartAsyncRunResponse, scraperRunDetail, startAsyncRunResponse, } from "@/contracts/types/scraper.types"; +import { authenticatedFetch } from "@/lib/auth-fetch"; import { readSSEStream } from "@/lib/chat/streaming-state"; import { buildBackendUrl } from "@/lib/env-config"; -import { authenticatedFetch } from "@/lib/auth-fetch"; import { baseApiService } from "./base-api.service"; const base = (workspaceId: number | string) => `/api/v1/workspaces/${workspaceId}/scrapers`; diff --git a/surfsense_web/lib/connectors-marketing/tiktok.tsx b/surfsense_web/lib/connectors-marketing/tiktok.tsx index f245de92b..8c6bb8b01 100644 --- a/surfsense_web/lib/connectors-marketing/tiktok.tsx +++ b/surfsense_web/lib/connectors-marketing/tiktok.tsx @@ -62,7 +62,8 @@ export const tiktok: ConnectorPageContent = { extractFields: [ { label: "Videos", - description: "Caption text, canonical web URL, duration, and cover image for each TikTok video.", + description: + "Caption text, canonical web URL, duration, and cover image for each TikTok video.", }, { label: "Engagement", diff --git a/surfsense_web/lib/playground/code-snippets.selfcheck.ts b/surfsense_web/lib/playground/code-snippets.selfcheck.ts index 33cb82124..c646d1a6c 100644 --- a/surfsense_web/lib/playground/code-snippets.selfcheck.ts +++ b/surfsense_web/lib/playground/code-snippets.selfcheck.ts @@ -23,7 +23,11 @@ assert.deepEqual(payload, { query: "