mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-28 21:49:40 +02:00
feat: streamline Composio connector configurations and enhance UI interactions
- Refactored Composio connector configuration components to improve modularity and maintainability. - Simplified the ComposioCalendarConfig, ComposioGmailConfig, and ComposioDriveConfig components by removing unnecessary state management and UI elements. - Added functionality to remove selected folders and files in the Google Drive and Composio Drive configurations, enhancing user experience. - Updated connector display names for better clarity in the UI. - Improved the overall structure of the connector edit view for better readability and usability.
This commit is contained in:
parent
1343fabeee
commit
12f45e1bd3
8 changed files with 88 additions and 390 deletions
|
|
@ -344,13 +344,16 @@ async def composio_callback(
|
|||
|
||||
try:
|
||||
# Generate a unique, user-friendly connector name
|
||||
connector_name = await generate_unique_connector_name(
|
||||
# Pass just toolkit_name (without "(Composio)") to avoid redundancy
|
||||
base_name = await generate_unique_connector_name(
|
||||
session,
|
||||
connector_type,
|
||||
space_id,
|
||||
user_id,
|
||||
f"{toolkit_name} (Composio)",
|
||||
toolkit_name,
|
||||
)
|
||||
# Append "(Composio)" suffix for identification
|
||||
connector_name = f"{base_name} (Composio)"
|
||||
|
||||
db_connector = SearchSourceConnector(
|
||||
name=connector_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue