From 0d5b902c264db91cf428990bddeeca0df5a5b755 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Mon, 30 Mar 2026 23:07:25 +0530 Subject: [PATCH] feat: extend Dropbox support in chat event streaming and connector naming for enhanced integration --- surfsense_backend/app/tasks/chat/stream_new_chat.py | 2 ++ surfsense_backend/app/utils/connector_naming.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/surfsense_backend/app/tasks/chat/stream_new_chat.py b/surfsense_backend/app/tasks/chat/stream_new_chat.py index 4b37cb69e..7c1e3b7ea 100644 --- a/surfsense_backend/app/tasks/chat/stream_new_chat.py +++ b/surfsense_backend/app/tasks/chat/stream_new_chat.py @@ -1025,6 +1025,8 @@ async def _stream_agent_events( "delete_google_drive_file", "create_onedrive_file", "delete_onedrive_file", + "create_dropbox_file", + "delete_dropbox_file", "create_gmail_draft", "update_gmail_draft", "send_gmail_email", diff --git a/surfsense_backend/app/utils/connector_naming.py b/surfsense_backend/app/utils/connector_naming.py index 7c72e0781..610be4a22 100644 --- a/surfsense_backend/app/utils/connector_naming.py +++ b/surfsense_backend/app/utils/connector_naming.py @@ -22,6 +22,7 @@ BASE_NAME_FOR_TYPE = { SearchSourceConnectorType.SLACK_CONNECTOR: "Slack", SearchSourceConnectorType.TEAMS_CONNECTOR: "Microsoft Teams", SearchSourceConnectorType.ONEDRIVE_CONNECTOR: "OneDrive", + SearchSourceConnectorType.DROPBOX_CONNECTOR: "Dropbox", SearchSourceConnectorType.NOTION_CONNECTOR: "Notion", SearchSourceConnectorType.LINEAR_CONNECTOR: "Linear", SearchSourceConnectorType.JIRA_CONNECTOR: "Jira", @@ -65,6 +66,9 @@ def extract_identifier_from_credentials( if connector_type == SearchSourceConnectorType.ONEDRIVE_CONNECTOR: return credentials.get("user_email") + if connector_type == SearchSourceConnectorType.DROPBOX_CONNECTOR: + return credentials.get("user_email") + if connector_type == SearchSourceConnectorType.NOTION_CONNECTOR: return credentials.get("workspace_name")