From 1bf7f116d6c0f79651e2a33538f7c5db540dadd7 Mon Sep 17 00:00:00 2001
From: "DESKTOP-RTLN3BA\\$punk"
Date: Thu, 25 Jun 2026 20:20:26 -0700
Subject: [PATCH] chore: linting
---
.../new-chat/[[...chat_id]]/page.tsx | 20 +++++--------------
.../components/ApiKeyContent.tsx | 8 ++++----
.../new-chat/document-mention-picker.tsx | 2 +-
.../public-chat-snapshots-manager.tsx | 4 +---
4 files changed, 11 insertions(+), 23 deletions(-)
diff --git a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
index 953ab47e6..9c3a7c617 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
@@ -22,8 +22,8 @@ import {
setTargetCommentIdAtom,
} from "@/atoms/chat/current-thread.atom";
import {
- type MentionedDocumentInfo,
deriveMentionedPayload,
+ type MentionedDocumentInfo,
mentionedDocumentsAtom,
messageDocumentsMapAtom,
submittedMentionsAtom,
@@ -215,12 +215,7 @@ const MentionedDocumentInfoSchema = z.object({
title: z.string(),
document_type: z.string().optional(),
kind: z
- .union([
- z.literal("doc"),
- z.literal("folder"),
- z.literal("connector"),
- z.literal("thread"),
- ])
+ .union([z.literal("doc"), z.literal("folder"), z.literal("connector"), z.literal("thread")])
.optional()
.default("doc"),
connector_type: z.string().optional(),
@@ -1179,13 +1174,9 @@ export default function NewChatPage() {
client_platform: selection.client_platform,
local_filesystem_mounts: selection.local_filesystem_mounts,
messages: messageHistory,
- mentioned_document_ids: hasDocumentIds
- ? mentionPayload.document_ids
- : undefined,
+ mentioned_document_ids: hasDocumentIds ? mentionPayload.document_ids : undefined,
mentioned_folder_ids: hasFolderIds ? mentionPayload.folder_ids : undefined,
- mentioned_connector_ids: hasConnectorIds
- ? mentionPayload.connector_ids
- : undefined,
+ mentioned_connector_ids: hasConnectorIds ? mentionPayload.connector_ids : undefined,
mentioned_connectors: hasConnectorIds ? mentionPayload.connectors : undefined,
mentioned_thread_ids: hasThreadIds ? mentionPayload.thread_ids : undefined,
// Full mention metadata so the backend can persist a
@@ -2093,8 +2084,7 @@ export default function NewChatPage() {
mentioned_connector_ids:
regenerateConnectors.length > 0 ? regenerateConnectors.map((d) => d.id) : undefined,
mentioned_connectors: regenerateConnectors.length > 0 ? regenerateConnectors : undefined,
- mentioned_thread_ids:
- regenerateThreadIds.length > 0 ? regenerateThreadIds : undefined,
+ mentioned_thread_ids: regenerateThreadIds.length > 0 ? regenerateThreadIds : undefined,
// Full mention metadata for the regenerate-specific
// source list. Only meaningful for edit (the BE only
// re-persists a user row when ``user_query`` is set);
diff --git a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/ApiKeyContent.tsx b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/ApiKeyContent.tsx
index 9946f244f..8f0af894f 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/ApiKeyContent.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/ApiKeyContent.tsx
@@ -134,7 +134,9 @@ export function ApiKeyContent() {
Expires: {expiresAt ? expiresAt.toLocaleDateString() : "Never"} ยท Last used:{" "}
- {token.last_used_at ? new Date(token.last_used_at).toLocaleString() : "Never"}
+ {token.last_used_at
+ ? new Date(token.last_used_at).toLocaleString()
+ : "Never"}
@@ -153,9 +155,7 @@ export function ApiKeyContent() {
})}
) : (
-
- No API keys yet.
-
+ No API keys yet.
)}