From 803577436fb6077c17e762c2d175b6ab4b8cf7d9 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 7 Jul 2026 23:12:08 +0530 Subject: [PATCH] refactor(playground): simplify API Playground description for clarity - Removed redundant text from the API Playground description to enhance readability. - Improved layout in FolderNode by adding dropdown state management for better user interaction. - Updated Sidebar component styles for improved visual consistency and user experience. --- .../components/playground-index.tsx | 3 +-- .../components/documents/FolderNode.tsx | 10 ++++++-- .../components/layout/ui/sidebar/Sidebar.tsx | 23 ++++++++----------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/surfsense_web/app/dashboard/[workspace_id]/playground/components/playground-index.tsx b/surfsense_web/app/dashboard/[workspace_id]/playground/components/playground-index.tsx index 80b7e841f..cf10260ad 100644 --- a/surfsense_web/app/dashboard/[workspace_id]/playground/components/playground-index.tsx +++ b/surfsense_web/app/dashboard/[workspace_id]/playground/components/playground-index.tsx @@ -23,8 +23,7 @@ export function PlaygroundIndex({ workspaceId }: { workspaceId: number }) {

API Playground

- Manually run SurfSense's platform-native APIs and inspect their output. Every run is - captured under Runs. + Manually run SurfSense's platform-native APIs and inspect their output.

diff --git a/surfsense_web/components/documents/FolderNode.tsx b/surfsense_web/components/documents/FolderNode.tsx index b46af227a..1cf74f549 100644 --- a/surfsense_web/components/documents/FolderNode.tsx +++ b/surfsense_web/components/documents/FolderNode.tsx @@ -129,6 +129,7 @@ export const FolderNode = React.memo(function FolderNode({ const rowRef = useRef(null); const [dropZone, setDropZone] = useState(null); const [isRescanning, setIsRescanning] = useState(false); + const [dropdownOpen, setDropdownOpen] = useState(false); const handleRescan = useCallback(async () => { if (isRescanning) return; @@ -349,12 +350,17 @@ export const FolderNode = React.memo(function FolderNode({ )} {!isRenaming && ( - +