Skip to content

Commit b98cefc

Browse files
authored
feat(data-warehouse): wire Intercom and HubSpot into the self-driving inbox
Add Intercom and HubSpot as inbox source toggles. Both are OAuth sources, but that needs no bespoke UI: the generic DynamicSourceSetup renders their connect form's oauth field, and the generic integration flow starter (separate PR) launches the OAuth flow by kind. So this is the same one-registry-entry change as any credential source — two entries in EXTERNAL_INBOX_SOURCES plus the SourceProduct/analytics unions and icons.
1 parent 380c385 commit b98cefc

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

packages/shared/src/inbox-types.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,24 @@ export const EXTERNAL_INBOX_SOURCES = [
198198
recordKind: "ticket",
199199
setup: "dynamic",
200200
},
201+
{
202+
product: "hubspot",
203+
label: "HubSpot",
204+
description: TICKET,
205+
dwSourceType: "Hubspot",
206+
requiredTables: ["tickets"],
207+
recordKind: "ticket",
208+
setup: "dynamic",
209+
},
210+
{
211+
product: "intercom",
212+
label: "Intercom",
213+
description: CONVERSATION,
214+
dwSourceType: "Intercom",
215+
requiredTables: ["conversations"],
216+
recordKind: "ticket",
217+
setup: "dynamic",
218+
},
201219
{
202220
product: "kustomer",
203221
label: "Kustomer",

packages/ui/src/features/inbox/components/utils/source-product-icons.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,6 @@ export const SOURCE_PRODUCT_META: Partial<
176176
color: "var(--amber-9)",
177177
label: "Judge.me",
178178
},
179+
intercom: { Icon: ChatsIcon, color: "var(--blue-9)", label: "Intercom" },
180+
hubspot: { Icon: LifebuoyIcon, color: "var(--orange-9)", label: "HubSpot" },
179181
};

0 commit comments

Comments
 (0)