mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-08-25 13:16:24 +02:00
fix: Create new grouping for CRM connectors (#4776)
* Create new grouping for CRM connectors * Edit spacing
This commit is contained in:
@@ -18,13 +18,13 @@ function SourceTile({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
className={`flex
|
className={`flex
|
||||||
flex-col
|
flex-col
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
p-4
|
p-4
|
||||||
rounded-lg
|
rounded-lg
|
||||||
w-40
|
w-40
|
||||||
cursor-pointer
|
cursor-pointer
|
||||||
shadow-md
|
shadow-md
|
||||||
hover:bg-accent-background-hovered
|
hover:bg-accent-background-hovered
|
||||||
@@ -154,6 +154,8 @@ function getCategoryDescription(category: SourceCategory): string {
|
|||||||
return "Link to project management and task tracking tools.";
|
return "Link to project management and task tracking tools.";
|
||||||
case SourceCategory.CustomerSupport:
|
case SourceCategory.CustomerSupport:
|
||||||
return "Connect to customer support and helpdesk systems.";
|
return "Connect to customer support and helpdesk systems.";
|
||||||
|
case SourceCategory.CustomerRelationshipManagement:
|
||||||
|
return "Integrate with customer relationship management platforms.";
|
||||||
case SourceCategory.CodeRepository:
|
case SourceCategory.CodeRepository:
|
||||||
return "Integrate with code repositories and version control systems.";
|
return "Integrate with code repositories and version control systems.";
|
||||||
case SourceCategory.Storage:
|
case SourceCategory.Storage:
|
||||||
|
@@ -165,6 +165,7 @@ export enum SourceCategory {
|
|||||||
Storage = "Storage",
|
Storage = "Storage",
|
||||||
Wiki = "Wiki",
|
Wiki = "Wiki",
|
||||||
CustomerSupport = "Customer Support",
|
CustomerSupport = "Customer Support",
|
||||||
|
CustomerRelationshipManagement = "Customer Relationship Management",
|
||||||
Messaging = "Messaging",
|
Messaging = "Messaging",
|
||||||
ProjectManagement = "Project Management",
|
ProjectManagement = "Project Management",
|
||||||
CodeRepository = "Code Repository",
|
CodeRepository = "Code Repository",
|
||||||
|
@@ -175,7 +175,7 @@ export const SOURCE_METADATA_MAP: SourceMap = {
|
|||||||
hubspot: {
|
hubspot: {
|
||||||
icon: HubSpotIcon,
|
icon: HubSpotIcon,
|
||||||
displayName: "HubSpot",
|
displayName: "HubSpot",
|
||||||
category: SourceCategory.CustomerSupport,
|
category: SourceCategory.CustomerRelationshipManagement,
|
||||||
docs: "https://docs.onyx.app/connectors/hubspot",
|
docs: "https://docs.onyx.app/connectors/hubspot",
|
||||||
},
|
},
|
||||||
document360: {
|
document360: {
|
||||||
@@ -210,7 +210,7 @@ export const SOURCE_METADATA_MAP: SourceMap = {
|
|||||||
salesforce: {
|
salesforce: {
|
||||||
icon: SalesforceIcon,
|
icon: SalesforceIcon,
|
||||||
displayName: "Salesforce",
|
displayName: "Salesforce",
|
||||||
category: SourceCategory.CustomerSupport,
|
category: SourceCategory.CustomerRelationshipManagement,
|
||||||
docs: "https://docs.onyx.app/connectors/salesforce",
|
docs: "https://docs.onyx.app/connectors/salesforce",
|
||||||
},
|
},
|
||||||
sharepoint: {
|
sharepoint: {
|
||||||
@@ -368,7 +368,7 @@ export function getSourceMetadata(sourceType: ValidSources): SourceMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function listSourceMetadata(): SourceMetadata[] {
|
export function listSourceMetadata(): SourceMetadata[] {
|
||||||
/* This gives back all the viewable / common sources, primarily for
|
/* This gives back all the viewable / common sources, primarily for
|
||||||
display in the Add Connector page */
|
display in the Add Connector page */
|
||||||
const entries = Object.entries(SOURCE_METADATA_MAP)
|
const entries = Object.entries(SOURCE_METADATA_MAP)
|
||||||
.filter(
|
.filter(
|
||||||
|
Reference in New Issue
Block a user