mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
Active Connectors tab: - Group OAuth connectors by type (Gmail, Google Drive, etc.) - Show account count badge on grouped cards - Show most recent last indexed date across all accounts - Show non-OAuth connectors individually with active task messages All Connectors tab: - Show most recent last indexed date for OAuth connector types - Check if any account is indexing for OAuth types Accounts List View: - Remove document count from individual account cards - Back button returns to previous tab (not always All Connectors) General: - Update handleViewAccountsList to use (connectorType, connectorTitle) signature - Consistent behavior for viewing accounts from both tabs
26 lines
873 B
TypeScript
26 lines
873 B
TypeScript
// Helper function to get connector type display name
|
|
export const getConnectorTypeDisplay = (type: string): string => {
|
|
const typeMap: Record<string, string> = {
|
|
TAVILY_API: "Tavily API",
|
|
SEARXNG_API: "SearxNG",
|
|
SLACK_CONNECTOR: "Slack",
|
|
NOTION_CONNECTOR: "Notion",
|
|
GITHUB_CONNECTOR: "GitHub",
|
|
LINEAR_CONNECTOR: "Linear",
|
|
JIRA_CONNECTOR: "Jira",
|
|
DISCORD_CONNECTOR: "Discord",
|
|
LINKUP_API: "Linkup",
|
|
CONFLUENCE_CONNECTOR: "Confluence",
|
|
BOOKSTACK_CONNECTOR: "BookStack",
|
|
CLICKUP_CONNECTOR: "ClickUp",
|
|
GOOGLE_CALENDAR_CONNECTOR: "Google Calendar",
|
|
GOOGLE_GMAIL_CONNECTOR: "Google Gmail",
|
|
GOOGLE_DRIVE_CONNECTOR: "Google Drive",
|
|
AIRTABLE_CONNECTOR: "Airtable",
|
|
LUMA_CONNECTOR: "Luma",
|
|
ELASTICSEARCH_CONNECTOR: "Elasticsearch",
|
|
WEBCRAWLER_CONNECTOR: "Web Pages",
|
|
CIRCLEBACK_CONNECTOR: "Circleback",
|
|
};
|
|
return typeMap[type] || type;
|
|
};
|