mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
feat(web): add connector display definitions and enhance composer suggestion components
This commit is contained in:
parent
2d134439ec
commit
79f5e8f88c
3 changed files with 105 additions and 72 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { EnumConnectorName } from "@/contracts/enums/connector";
|
||||
import type { SearchSourceConnector } from "@/contracts/types/connector.types";
|
||||
|
||||
/**
|
||||
* Connectors that operate in real time (no background indexing).
|
||||
|
|
@ -230,6 +229,20 @@ export const COMPOSIO_CONNECTORS = [
|
|||
},
|
||||
] as const;
|
||||
|
||||
export const CONNECTOR_DISPLAY_DEFINITIONS = [
|
||||
...OAUTH_CONNECTORS,
|
||||
...CRAWLERS,
|
||||
...OTHER_CONNECTORS,
|
||||
...COMPOSIO_CONNECTORS,
|
||||
] as const;
|
||||
|
||||
export function getConnectorTitle(connectorType: string): string {
|
||||
return (
|
||||
CONNECTOR_DISPLAY_DEFINITIONS.find((connector) => connector.connectorType === connectorType)
|
||||
?.title ?? connectorType
|
||||
);
|
||||
}
|
||||
|
||||
// Composio Toolkits (available integrations via Composio)
|
||||
export const COMPOSIO_TOOLKITS = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue