Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(integrations): add per-integration landing pages and shared registry (#63871)

Rafael Audibert601f7424ae67
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index c76ba0fdd58e..e1cf10276163 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -6426,6 +6426,14 @@ snapshots:
hash: v1.k794b7964.c78db80aa95fa6ee6990de27483c09be58a2250025d7ede30d03edae433b929d.ecGZ7E8Kep7cytqUM1a_ylLvTsWewvJIKaGKDX4CO10
scenes-other-billing-product--billing-product-without-addons--light:
hash: v1.k794b7964.3455fe6bd5eb074408ff091675444e597f9c7a34d232faa0f392a3fcb4f6e021.2FmYvUHcc47NK-z0ntILzg44Any6Y947VSerITyrL6k
+ scenes-other-integration-landing-page--connected--dark:
+ hash: v1.k794b7964.c3f38cb69619148711f73cbd2358e9879a628dedce0133ddf4a55c909eb74023.TKSLIKWkZhyP9yVqCUNnOWE-phlM8jkN2hg7yhVk-x8
+ scenes-other-integration-landing-page--connected--light:
+ hash: v1.k794b7964.75ccf59d3aeba8ec4f6036dacc9812fad6ac24ebcc8988f74c0de3b4d0ae2ffb.NXnkDcwqc_lAqnRMFjZA4hgi6DiLOx_pL6TfEKmzK7s
+ scenes-other-integration-landing-page--not-connected--dark:
+ hash: v1.k794b7964.cbc1efc83f9f31ee7ed22a7da2be3ec19e7e6f6568a5b43ade5f75ee4aaccbc5.u1nKAJkTALr_RPPMm4EA68pFFF4JE03AJBqWleTvbJk
+ scenes-other-integration-landing-page--not-connected--light:
+ hash: v1.k794b7964.4647e2369579daae32034bfc8c2673e622185f0c3e46037bc6b317831487655f.i1sSGZFaLb8f7J2y6QO3Bkb3_Ul2xmRKglsiSOdKQOc
scenes-other-invitesignup--cloud--dark:
hash: v1.k794b7964.083cd7b2744570c08e0c7462cd02d0343eb0e7452e8519ec24a71b28c987af24.G7jLEfOSKD64Fa9awkHNTACr_6yIKpLKEaWFR3C3sxs
scenes-other-invitesignup--cloud--light:
diff --git a/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx b/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx
index d1bf5f80bfd0..aacc321ad47d 100644
--- a/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx
@@ -805,7 +805,7 @@ export function MenuFilterCombobox({
})
setActiveChip('all')
inputRef.current?.focus()
- }, [activeChip])
+ }, [activeChip]) // oxlint-disable-line react-hooks/exhaustive-deps
const selectionContextFor = useCallback(
(entry: MenuFilterEntry): CommitSelectionContext => {
diff --git a/frontend/src/lib/integrations/IntegrationView.tsx b/frontend/src/lib/integrations/IntegrationView.tsx
index 308e0d3eba7b..db2612bebd99 100644
--- a/frontend/src/lib/integrations/IntegrationView.tsx
+++ b/frontend/src/lib/integrations/IntegrationView.tsx
@@ -16,6 +16,7 @@ import { IntegrationScopesWarning } from 'lib/integrations/IntegrationScopesWarn
import { IntegrationType } from '~/types'
import { integrationsLogic } from './integrationsLogic'
+import { getIntegrationNameFromKind } from './utils'
export function IntegrationView({
integration,
@@ -60,13 +61,16 @@ export function IntegrationView({
</div>
)
+ const integrationName = getIntegrationNameFromKind(integration.kind)
+
return (
<div className="rounded border bg-surface-primary">
<div className="flex flex-wrap justify-between items-center p-2 gap-2">
<div className="flex gap-4 items-center ml-2">
<img
src={integration.icon_url}
- alt={`${integration.kind} integration`}
+ alt={`Integration for ${integrationName}`}
+ title={integrationName}
className="w-10 h-10 rounded"
/>
<div>
diff --git a/frontend/src/lib/utils/eventUsageLogic.ts b/frontend/src/lib/utils/eventUsageLogic.ts
index 033ef33fff91..e40c54848cc6 100644
--- a/frontend/src/lib/utils/eventUsageLogic.ts
+++ b/frontend/src/lib/utils/eventUsageLogic.ts
@@ -339,6 +339,7 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
// timing
reportTimeToSeeData: (payload: TimeToSeeDataPayload) => ({ payload }),
reportGroupTypeDetailDashboardCreated: () => ({}),
+ reportIntegrationConnectClicked: (integration: string, kind: string) => ({ integration, kind }),
reportGroupPropertyUpdated: (
action: 'added' | 'updated' | 'removed',
totalProperties: number,
@@ -1142,6 +1143,9 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportInstanceSettingChange: ({ name, value }) => {
posthog.capture('instance setting change', { name, value })
},
+ reportIntegrationConnectClicked: ({ integration, kind }) => {
+ posthog.capture('integration_connect_clicked', { integration, integration_kind: kind })
+ },
reportDashboardLoadingTime: async ({ loadingMilliseconds, dashboardId }) => {
posthog.capture('dashboard loading time', { loadingMilliseconds, dashboardId })
},
diff --git a/frontend/src/scenes/appScenes.ts b/frontend/src/scenes/appScenes.ts
index 82e044c4aafe..1cf46021c6f7 100644
--- a/frontend/src/scenes/appScenes.ts
+++ b/frontend/src/scenes/appScenes.ts
@@ -58,6 +58,7 @@ export const appScenes: Record<Scene | string, () => any> = {
[Scene.Insight]: () => import('./insights/InsightScene'),
[Scene.InsightQuickStart]: () => import('./insights/InsightQuickStart/InsightQuickStart'),
[Scene.IntegrationsRedirect]: () => import('./IntegrationsRedirect/IntegrationsRedirect'),
+ [Scene.IntegrationsLanding]: () => import('./integrations/IntegrationsLandingScene'),
[Scene.StripeConfirmInstall]: () => import('./StripeConfirmInstall/StripeConfirmInstall'),
[Scene.InviteSignup]: () => import('./authentication/invite-signup/InviteSignup'),
[Scene.LegacyPlugin]: () => import('./data-pipelines/legacy-plugins/LegacyPluginScene'),
diff --git a/frontend/src/scenes/integrations/IntegrationFullPage.stories.tsx b/frontend/src/scenes/integrations/IntegrationFullPage.stories.tsx
new file mode 100644
index 000000000000..5e68cc9f291e
--- /dev/null
+++ b/frontend/src/scenes/integrations/IntegrationFullPage.stories.tsx
@@ -0,0 +1,40 @@
+import { Meta, StoryObj } from '@storybook/react'
+
+import { mswDecorator } from '~/mocks/browser'
+import preflightJson from '~/mocks/fixtures/_preflight.json'
+import { mockIntegration } from '~/test/mocks'
+import { Realm } from '~/types'
+
+import { Slack } from './definitions'
+import { IntegrationFullPage } from './IntegrationFullPage'
+
+const meta: Meta<typeof IntegrationFullPage> = {
+ title: 'Scenes-Other/Integration landing page',
+ component: IntegrationFullPage,
+ parameters: { layout: 'fullscreen', viewMode: 'story' },
+ decorators: [
+ mswDecorator({
+ get: {
+ // slack_service.available drives whether the "Add to Slack" connect button shows
+ '/_preflight': {
+ ...preflightJson,
+ realm: Realm.Cloud,
+ slack_service: { available: true, client_id: 'test-client-id' },
+ },
+ },
+ }),
+ ],
+ render: () => <IntegrationFullPage definition={Slack} SettingsSection={Slack.SettingsSection} />,
+}
+export default meta
+
+type Story = StoryObj<typeof IntegrationFullPage>
+
+// integrationsLogic loads from the environments endpoint, not projects
+export const NotConnected: Story = {
+ decorators: [mswDecorator({ get: { '/api/environments/:id/integrations': { results: [] } } })],
+}
+
+export const Connected: Story = {
+ decorators: [mswDecorator({ get: { '/api/environments/:id/integrations': { results: [mockIntegration] } } })],
+}
diff --git a/frontend/src/scenes/integrations/IntegrationFullPage.tsx b/frontend/src/scenes/integrations/IntegrationFullPage.tsx
new file mode 100644
index 000000000000..7e123f3ffd51
--- /dev/null
+++ b/frontend/src/scenes/integrations/IntegrationFullPage.tsx
@@ -0,0 +1,122 @@
+import { useActions, useValues } from 'kea'
+
+import { IconArrowLeft, IconCheckCircle } from '@posthog/icons'
+import { LemonButton, Link, Spinner } from '@posthog/lemon-ui'
+
+import { integrationsLogic } from 'lib/integrations/integrationsLogic'
+import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
+import { urls } from 'scenes/urls'
+
+import { IntegrationDefinition, SettingsSectionComponent } from './integrationTypes'
+
+export function IntegrationFullPage({
+ definition,
+ SettingsSection,
+}: {
+ definition: IntegrationDefinition
+ SettingsSection: SettingsSectionComponent
+}): JSX.Element {
+ const { getIntegrationsByKind, integrationsLoading } = useValues(integrationsLogic)
+
+ const connected = getIntegrationsByKind([definition.kind]).length > 0
+
+ return (
+ <div className="flex flex-col items-center justify-center min-h-full w-full p-4">
+ <div className="flex flex-col items-center gap-4 max-w-160 w-full bg-surface-primary border rounded-lg overflow-hidden shadow-sm">
+ {definition.banner ? (
+ <img src={definition.banner} alt={`${definition.name} banner`} className="w-full object-cover" />
+ ) : null}
+
+ <div className="flex flex-col items-center gap-4 w-full px-8 pb-8 pt-2">
+ <div className="flex items-center justify-center w-16 h-16 rounded-lg bg-white border p-2.5">
+ <img
+ src={definition.logo}
+ alt={`${definition.name} logo`}
+ className="max-w-full max-h-full object-contain"
+ />
+ </div>
+
+ {integrationsLoading ? (
+ <Spinner className="text-2xl" />
+ ) : connected ? (
+ <ConnectedView definition={definition} />
+ ) : (
+ <ConnectView definition={definition} SettingsSection={SettingsSection} />
+ )}
+ </div>
+ </div>
+
+ <Link to={urls.projectHomepage()} className="flex items-center gap-1 mt-6 text-secondary">
+ <IconArrowLeft />
+ Back to PostHog
+ </Link>
+ </div>
+ )
+}
+
+function ConnectView({
+ definition,
+ SettingsSection,
+}: {
+ definition: IntegrationDefinition
+ SettingsSection: SettingsSectionComponent
+}): JSX.Element {
+ const { reportIntegrationConnectClicked } = useActions(eventUsageLogic)
+
+ const onConnectClick = (): void => {
+ reportIntegrationConnectClicked(definition.slug, definition.kind)
+ }
+
+ return (
+ <>
+ <div className="flex flex-col items-center gap-1 text-center">
+ <h1 className="text-2xl font-bold m-0">Connect {definition.name}</h1>
+ <p className="text-secondary m-0">{definition.subtitle}</p>
+ </div>
+
+ <div className="text-center text-sm">{definition.description}</div>
+
+ {/* onClickCapture fires before the connect button triggers its OAuth redirect */}
+ <div onClickCapture={onConnectClick}>
+ <SettingsSection next={urls.integration(definition.slug)} />
+ </div>
+
+ {definition.docsUrl ? (
+ <Link to={definition.docsUrl} target="_blank" className="text-sm">
+ Learn more
+ </Link>
+ ) : null}
+ </>
+ )
+}
+
+function ConnectedView({ definition }: { definition: IntegrationDefinition }): JSX.Element {
+ return (
+ <>
+ <IconCheckCircle className="text-success text-4xl" />
+
+ <div className="flex flex-col items-center gap-1 text-center">
+ <h1 className="text-2xl font-bold m-0">You're connected to {definition.name}</h1>
+ <p className="text-secondary m-0">Everything is set up and ready to go.</p>
+ </div>
+
+ {definition.capabilities.length > 0 ? (
+ <div className="w-full">
+ <p className="font-semibold mb-2">What you can do now</p>
+ <ul className="flex flex-col gap-1">
+ {definition.capabilities.map((capability) => (
+ <li key={capability} className="flex items-start gap-2">
+ <IconCheckCircle className="text-success mt-0.5 shrink-0" />
+ <span>{capability}</span>
+ </li>
+ ))}
+ </ul>
+ </div>
+ ) : null}
+
+ <LemonButton type="primary" to={urls.projectHomepage()}>
+ Go to PostHog
+ </LemonButton>
+ </>
+ )
+}
diff --git a/frontend/src/scenes/integrations/IntegrationsLandingScene.tsx b/frontend/src/scenes/integrations/IntegrationsLandingScene.tsx
new file mode 100644
index 000000000000..f8c8ba8626f0
--- /dev/null
+++ b/frontend/src/scenes/integrations/IntegrationsLandingScene.tsx
@@ -0,0 +1,28 @@
+import { useValues } from 'kea'
+
+import { NotFound } from 'lib/components/NotFound'
+import { SceneExport } from 'scenes/sceneTypes'
+
+import { integrationsLandingSceneLogic } from './integrationsLandingSceneLogic'
+
+export const scene: SceneExport = {
+ component: IntegrationsLandingScene,
+ logic: integrationsLandingSceneLogic,
+}
+
+export function IntegrationsLandingScene(): JSX.Element {
+ const { integration } = useValues(integrationsLandingSceneLogic)
+
+ if (!integration) {
+ return (
+ <NotFound
+ object="integration"
+ caption="This integration doesn't exist or isn't available for a landing page."
+ />
+ )
+ }
+
+ return <integration.FullPage />
+}
+
+export default IntegrationsLandingScene
diff --git a/frontend/src/scenes/settings/environment/Integrations.tsx b/frontend/src/scenes/integrations/components/Integrations.tsx
similarity index 100%
rename from frontend/src/scenes/settings/environment/Integrations.tsx
rename to frontend/src/scenes/integrations/components/Integrations.tsx
diff --git a/frontend/src/scenes/settings/environment/SlackIntegration.stories.tsx b/frontend/src/scenes/integrations/components/SlackIntegration.stories.tsx
similarity index 100%
rename from frontend/src/scenes/settings/environment/SlackIntegration.stories.tsx
rename to frontend/src/scenes/integrations/components/SlackIntegration.stories.tsx
diff --git a/frontend/src/scenes/settings/environment/SlackIntegration.tsx b/frontend/src/scenes/integrations/components/SlackIntegration.tsx
similarity index 97%
rename from frontend/src/scenes/settings/environment/SlackIntegration.tsx
rename to frontend/src/scenes/integrations/components/SlackIntegration.tsx
index ef6229cfd017..bb622e306b57 100644
--- a/frontend/src/scenes/settings/environment/SlackIntegration.tsx
+++ b/frontend/src/scenes/integrations/components/SlackIntegration.tsx
@@ -51,7 +51,7 @@ const getSlackAppManifest = (): any => ({
},
})
-export function SlackIntegration(): JSX.Element {
+export function SlackIntegration({ next }: { next?: string } = {}): JSX.Element {
const { slackIntegrations, slackAvailable } = useValues(integrationsLogic)
const { preflight, isDev } = useValues(preflightLogic)
const [showSlackInstructions, setShowSlackInstructions] = useState(false)
@@ -86,7 +86,7 @@ export function SlackIntegration(): JSX.Element {
<div>
{slackAvailable ? (
- <Link to={api.integrations.authorizeUrl({ kind: 'slack' })} disableClientSideRouting>
+ <Link to={api.integrations.authorizeUrl({ kind: 'slack', next })} disableClientSideRouting>
<img
alt="Connect to Slack workspace"
height="40"
diff --git a/frontend/src/scenes/integrations/definitions/github.tsx b/frontend/src/scenes/integrations/definitions/github.tsx
new file mode 100644
index 000000000000..059d149ff8f2
--- /dev/null
+++ b/frontend/src/scenes/integrations/definitions/github.tsx
@@ -0,0 +1,35 @@
+import { Link } from '@posthog/lemon-ui'
+
+import { ICONS } from 'lib/integrations/utils'
+import { urls } from 'scenes/urls'
+
+import { GithubIntegration } from '../components/Integrations'
+import { defineIntegration } from '../integrationDefinition'
+
+export const GitHub = defineIntegration(
+ {
+ slug: 'github',
+ kind: 'github',
+ name: 'GitHub',
+ logo: ICONS.github,
+ subtitle: 'Link code, track issues, and let PostHog ship pull requests',
+ description: (
+ <>
+ Connect GitHub to link issues and pull requests with PostHog and create issues directly from error
+ tracking. With <Link to={urls.integration('slack')}>Slack</Link> and{' '}
+ <Link to="https://posthog.com/code" target="_blank">
+ PostHog code
+ </Link>{' '}
+ connected, tag @PostHog to draft pull requests and ship code changes straight to your repositories.
+ </>
+ ),
+ capabilities: [
+ 'Let @PostHog draft pull requests and ship code changes',
+ 'Create GitHub issues from error tracking',
+ 'Link pull requests and issues to PostHog',
+ 'Attribute code changes across your repositories',
+ ],
+ docsUrl: 'https://posthog.com/docs/error-tracking/integrations',
+ },
+ GithubIntegration
+)
diff --git a/frontend/src/scenes/integrations/definitions/gitlab.tsx b/frontend/src/scenes/integrations/definitions/gitlab.tsx
new file mode 100644
index 000000000000..84889fd14570
--- /dev/null
+++ b/frontend/src/scenes/integrations/definitions/gitlab.tsx
@@ -0,0 +1,22 @@
+import { ICONS } from 'lib/integrations/utils'
+
+import { GitLabIntegration } from '../components/Integrations'
+import { defineIntegration } from '../integrationDefinition'
+
+export const GitLab = defineIntegration(
+ {
+ slug: 'gitlab',
+ kind: 'gitlab',
+ name: 'GitLab',
+ logo: ICONS.gitlab,
+ subtitle: 'Connect your GitLab projects to PostHog',
+ description: 'Connect GitLab to create and link issues directly from PostHog error tracking and replays.',
+ capabilities: [
+ 'Create GitLab issues from error tracking',
+ 'Link existing GitLab issues to PostHog',
+ 'Keep engineering work connected to product signals',
+ ],
+ docsUrl: 'https://posthog.com/docs/error-tracking/integrations',
+ },
+ GitLabIntegration
+)
diff --git a/frontend/src/scenes/integrations/definitions/index.ts b/frontend/src/scenes/integrations/definitions/index.ts
new file mode 100644
index 000000000000..696cf8be71e1
--- /dev/null
+++ b/frontend/src/scenes/integrations/definitions/index.ts
@@ -0,0 +1,14 @@
+import { Integration } from '../integrationDefinition'
+import { GitHub } from './github'
+import { GitLab } from './gitlab'
+import { Jira } from './jira'
+import { Linear } from './linear'
+import { Slack } from './slack'
+
+export { Slack, GitHub, Linear, Jira, GitLab }
+
+export const INTEGRATIONS: Integration[] = [Slack, GitHub, Linear, Jira, GitLab]
+
+export const INTEGRATIONS_BY_SLUG: Record<string, Integration> = Object.fromEntries(
+ INTEGRATIONS.map((integration) => [integration.slug, integration])
+)
diff --git a/frontend/src/scenes/integrations/definitions/jira.tsx b/frontend/src/scenes/integrations/definitions/jira.tsx
new file mode 100644
index 000000000000..59968ca565f6
--- /dev/null
+++ b/frontend/src/scenes/integrations/definitions/jira.tsx
@@ -0,0 +1,22 @@
+import { ICONS } from 'lib/integrations/utils'
+
+import { JiraIntegration } from '../components/Integrations'
+import { defineIntegration } from '../integrationDefinition'
+
+export const Jira = defineIntegration(
+ {
+ slug: 'jira',
+ kind: 'jira',
+ name: 'Jira',
+ logo: ICONS.jira,
+ subtitle: 'Create and link Jira issues from PostHog',
+ description: 'Connect Jira to create and link issues directly from PostHog error tracking and replays.',
+ capabilities: [
+ 'Create Jira issues from error tracking',
+ 'Link existing Jira issues to PostHog',
+ 'Keep your team in sync across tools',
+ ],
+ docsUrl: 'https://posthog.com/docs/error-tracking/integrations',
+ },
+ JiraIntegration
+)
diff --git a/frontend/src/scenes/integrations/definitions/linear.tsx b/frontend/src/scenes/integrations/definitions/linear.tsx
new file mode 100644
index 000000000000..7d6fcec4eab8
--- /dev/null
+++ b/frontend/src/scenes/integrations/definitions/linear.tsx
@@ -0,0 +1,22 @@
+import { ICONS } from 'lib/integrations/utils'
+
+import { LinearIntegration } from '../components/Integrations'
+import { defineIntegration } from '../integrationDefinition'
+
+export const Linear = defineIntegration(
+ {
+ slug: 'linear',
+ kind: 'linear',
+ name: 'Linear',
+ logo: ICONS.linear,
+ subtitle: 'Turn issues into Linear tickets without leaving PostHog',
+ description: 'Connect Linear to create and link issues directly from PostHog error tracking and replays.',
+ capabilities: [
+ 'Create Linear issues from error tracking',
+ 'Link existing Linear issues to PostHog',
+ 'Keep engineering work connected to product signals',
+ ],
+ docsUrl: 'https://posthog.com/docs/error-tracking/integrations',
+ },
+ LinearIntegration
+)
diff --git a/frontend/src/scenes/integrations/definitions/slack.tsx b/frontend/src/scenes/integrations/definitions/slack.tsx
new file mode 100644
index 000000000000..b24f1231b304
--- /dev/null
+++ b/frontend/src/scenes/integrations/definitions/slack.tsx
@@ -0,0 +1,26 @@
+import { ICONS } from 'lib/integrations/utils'
+
+import { SlackIntegration } from '../components/SlackIntegration'
+import { defineIntegration } from '../integrationDefinition'
+
+export const Slack = defineIntegration(
+ {
+ slug: 'slack',
+ kind: 'slack',
+ name: 'Slack',
+ logo: ICONS.slack,
+ banner: 'https://res.cloudinary.com/dmukukwp6/image/upload/slack_app_update_docs_f0c917f70a',
+ subtitle: 'Bring PostHog into Slack — from scheduled reports to an AI agent that ships code',
+ description:
+ 'Tag @PostHog in any Slack thread to draft pull requests, ship code changes, ask data questions, and run SQL — all without leaving Slack. You also get insights, dashboards, and alerts delivered straight to your channels.',
+ capabilities: [
+ 'Tag @PostHog in a thread to draft pull requests and ship code changes',
+ 'Tag @PostHog to ask data questions and run SQL',
+ 'Subscribe to insights and dashboards for scheduled reports',
+ 'Receive alerts and error-tracking notifications in your channels',
+ 'Manage feature flags, experiments, and surveys from Slack',
+ ],
+ docsUrl: 'https://posthog.com/docs/webhooks/slack',
+ },
+ SlackIntegration
+)
diff --git a/frontend/src/scenes/integrations/integrationDefinition.tsx b/frontend/src/scenes/integrations/integrationDefinition.tsx
new file mode 100644
index 000000000000..1a7aa3cc6f97
--- /dev/null
+++ b/frontend/src/scenes/integrations/integrationDefinition.tsx
@@ -0,0 +1,15 @@
+import { IntegrationFullPage } from './IntegrationFullPage'
+import { Integration, IntegrationDefinition, SettingsSectionComponent } from './integrationTypes'
+
+export type { Integration, IntegrationDefinition, SettingsSectionComponent } from './integrationTypes'
+
+export function defineIntegration(
+ definition: IntegrationDefinition,
+ SettingsSection: SettingsSectionComponent
+): Integration {
+ return {
+ ...definition,
+ SettingsSection,
+ FullPage: () => <IntegrationFullPage definition={definition} SettingsSection={SettingsSection} />,
+ }
+}
diff --git a/frontend/src/scenes/integrations/integrationTypes.ts b/frontend/src/scenes/integrations/integrationTypes.ts
new file mode 100644
index 000000000000..d67684204701
--- /dev/null
+++ b/frontend/src/scenes/integrations/integrationTypes.ts
@@ -0,0 +1,37 @@
+import { IntegrationKind } from '~/types'
+
+/** The actionable connect section, reused in both settings and the full page. */
+export type SettingsSectionComponent = (props: { next?: string }) => JSX.Element
+
+/**
+ * Pure metadata describing an integration. Deliberately holds no components so each
+ * integration is easy to reason about — components are bundled onto {@link Integration}.
+ */
+export interface IntegrationDefinition {
+ /** URL slug, e.g. 'slack'. Also the registry key. */
+ slug: string
+ /** Underlying integration kind used to detect whether it is already connected. */
+ kind: IntegrationKind
+ /** Display name, e.g. 'Slack'. */
+ name: string
+ /** Logo image src. */
+ logo: string
+ /** Optional wide banner image src, shown at the top of the landing page. */
+ banner?: string
+ /** One-line subtitle shown under the title. */
+ subtitle: string
+ /** Longer explanation of what PostHog does with this integration. */
+ description: string | JSX.Element
+ /** Bullets shown on the success screen — what the user can do once connected. */
+ capabilities: string[]
+ /** Optional documentation link. */
+ docsUrl?: string
+}
+
+/** A definition bundled with its renderable components. */
+export interface Integration extends IntegrationDefinition {
+ /** The connect/manage section embedded in settings. */
+ SettingsSection: SettingsSectionComponent
+ /** The standalone, chrome-less landing page. */
+ FullPage: () => JSX.Element
+}
diff --git a/frontend/src/scenes/integrations/integrationsLandingSceneLogic.ts b/frontend/src/scenes/integrations/integrationsLandingSceneLogic.ts
new file mode 100644
index 000000000000..0fccc95d14a5
--- /dev/null
+++ b/frontend/src/scenes/integrations/integrationsLandingSceneLogic.ts
@@ -0,0 +1,32 @@
+import { actions, kea, path, reducers, selectors } from 'kea'
+import { urlToAction } from 'kea-router'
+
+import { INTEGRATIONS_BY_SLUG } from './definitions'
+import { Integration } from './integrationDefinition'
+import type { integrationsLandingSceneLogicType } from './integrationsLandingSceneLogicType'
+
+export const integrationsLandingSceneLogic = kea<integrationsLandingSceneLogicType>([
+ path(['scenes', 'integrations', 'integrationsLandingSceneLogic']),
+ actions({
+ setSlug: (slug: string | null) => ({ slug }),
+ }),
+ reducers({
+ slug: [
+ null as string | null,
+ {
+ setSlug: (_, { slug }) => slug,
+ },
+ ],
+ }),
+ selectors({
+ integration: [
+ (s) => [s.slug],
+ (slug): Integration | null => (slug ? (INTEGRATIONS_BY_SLUG[slug] ?? null) : null),
+ ],
+ }),
+ urlToAction(({ actions }) => ({
+ '/integrations/:slug': ({ slug }) => {
+ actions.setSlug(slug ?? null)
+ },
+ })),
+])
diff --git a/frontend/src/scenes/sceneTypes.ts b/frontend/src/scenes/sceneTypes.ts
index e8674f00ba10..7c9862a543ae 100644
--- a/frontend/src/scenes/sceneTypes.ts
+++ b/frontend/src/scenes/sceneTypes.ts
@@ -81,6 +81,7 @@ export enum Scene {
Insight = 'Insight',
InsightQuickStart = 'InsightQuickStart',
IntegrationsRedirect = 'IntegrationsRedirect',
+ IntegrationsLanding = 'IntegrationsLanding',
StripeConfirmInstall = 'StripeConfirmInstall',
IngestionWarnings = 'IngestionWarnings',
InviteSignup = 'InviteSignup',
diff --git a/frontend/src/scenes/scenes.ts b/frontend/src/scenes/scenes.ts
index ece429381b07..e9af0108de52 100644
--- a/frontend/src/scenes/scenes.ts
+++ b/frontend/src/scenes/scenes.ts
@@ -275,6 +275,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
description: 'Choose the type of insight you want to create',
},
[Scene.IntegrationsRedirect]: { name: 'Integrations redirect' },
+ [Scene.IntegrationsLanding]: { name: 'Integration', layout: 'plain' },
[Scene.StripeConfirmInstall]: { name: 'Confirm Stripe install', projectBased: true },
[Scene.IngestionWarnings]: {
projectBased: true,
@@ -904,6 +905,7 @@ export const routes: Record<string, [Scene | string, string]> = {
[urls.agenticAccountMismatch()]: [Scene.AgenticAccountMismatch, 'agenticAccountMismatch'],
[urls.unsubscribe()]: [Scene.Unsubscribe, 'unsubscribe'],
[urls.integrationsRedirect(':kind')]: [Scene.IntegrationsRedirect, 'integrationsRedirect'],
+ [urls.integration(':slug')]: [Scene.IntegrationsLanding, 'integrationsLanding'],
[urls.stripeConfirmInstall()]: [Scene.StripeConfirmInstall, 'stripeConfirmInstall'],
[urls.debugQuery()]: [Scene.DebugQuery, 'debugQuery'],
[urls.debugHog()]: [Scene.DebugHog, 'debugHog'],
diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsx
index e2097b2a7762..73362b688e2f 100644
--- a/frontend/src/scenes/settings/SettingsMap.tsx
+++ b/frontend/src/scenes/settings/SettingsMap.tsx
@@ -19,6 +19,7 @@ import { FEATURE_SUPPORT } from 'lib/components/SupportedPlatforms/featureSuppor
import { OrganizationMembershipLevel } from 'lib/constants'
import { MAX_LOOKBACK_DAYS, MIN_LOOKBACK_DAYS } from 'scenes/experiments/constants'
import { DefaultMinimumDetectableEffect } from 'scenes/experiments/DefaultMinimumDetectableEffect'
+import { GitHub, Linear, Slack } from 'scenes/integrations/definitions'
import { BounceRateDurationSetting } from 'scenes/settings/environment/BounceRateDuration'
import { BounceRatePageViewModeSetting } from 'scenes/settings/environment/BounceRatePageViewMode'
import { CookielessServerHashModeSetting } from 'scenes/settings/environment/CookielessServerHashMode'
@@ -89,7 +90,6 @@ import { FeaturePreviewsComingSoon, FeaturePreviewsSettings } from './environmen
import { GroupAnalyticsConfig } from './environment/GroupAnalyticsConfig'
import { HeatmapsSettings } from './environment/HeatmapsSettings'
import { HumanFriendlyComparisonPeriodsSetting } from './environment/HumanFriendlyComparisonPeriodsSetting'
-import { GithubIntegration, LinearIntegration } from './environment/Integrations'
import { IPAllowListInfo } from './environment/IPAllowListInfo'
import { IPCapture } from './environment/IPCapture'
import { JsSnippetVersionPin } from './environment/JsSnippetVersionPin'
@@ -118,7 +118,6 @@ import {
ReplayNetworkHeadersPayloads,
} from './environment/SessionRecordingSettings'
import { SessionSummariesSettings } from './environment/SessionSummariesSettings'
-import { SlackIntegration } from './environment/SlackIntegration'
import { SurveyDefaultAppearance, SurveyEnableToggle } from './environment/SurveySettings'
import { TeamAccessControl } from './environment/TeamAccessControl'
import {
@@ -1442,7 +1441,7 @@ export const SETTINGS_MAP: SettingSection[] = [
description:
'Integrate with Slack to subscribe to insights or dashboards for regular reports to channels of your choice.',
docsUrl: 'https://posthog.com/docs/webhooks/slack',
- component: <SlackIntegration />,
+ component: <Slack.SettingsSection />,
keywords: ['slack', 'channel', 'notification', 'subscribe', 'report'],
},
{
@@ -1450,7 +1449,7 @@ export const SETTINGS_MAP: SettingSection[] = [
title: 'GitHub integration',
description: 'Connect GitHub to link issues and pull requests with PostHog insights.',
docsUrl: 'https://posthog.com/docs/error-tracking/integrations',
- component: <GithubIntegration />,
+ component: <GitHub.SettingsSection />,
keywords: ['github', 'git', 'repository', 'issue', 'pr'],
},
{
@@ -1458,7 +1457,7 @@ export const SETTINGS_MAP: SettingSection[] = [
title: 'Linear integration',
description: 'Connect Linear to create and link issues directly from PostHog.',
docsUrl: 'https://posthog.com/docs/error-tracking/integrations',
- component: <LinearIntegration />,
+ component: <Linear.SettingsSection />,
keywords: ['linear', 'issue', 'project management', 'task'],
},
{
diff --git a/frontend/src/scenes/settings/environment/ErrorTrackingIntegrations.tsx b/frontend/src/scenes/settings/environment/ErrorTrackingIntegrations.tsx
index b1e0085475a3..e01e4f8ab4cc 100644
--- a/frontend/src/scenes/settings/environment/ErrorTrackingIntegrations.tsx
+++ b/frontend/src/scenes/settings/environment/ErrorTrackingIntegrations.tsx
@@ -1,3 +1,9 @@
+import {
+ GitLabIntegration,
+ GithubIntegration,
+ JiraIntegration,
+ LinearIntegration,
+} from 'scenes/integrations/components/Integrations'
import { urls } from 'scenes/urls'
import IconGitHub from 'public/services/github.png'
@@ -5,8 +11,6 @@ import IconGitLab from 'public/services/gitlab.png'
import IconJira from 'public/services/jira.svg'
import IconLinear from 'public/services/linear.png'
-import { GitLabIntegration, GithubIntegration, JiraIntegration, LinearIntegration } from './Integrations'
-
const NEXT_URL = urls.settings('environment-error-tracking', 'error-tracking-integrations')
export function ErrorTrackingIntegrations(): JSX.Element {
diff --git a/frontend/src/scenes/settings/environment/ReplayIntegrations.tsx b/frontend/src/scenes/settings/environment/ReplayIntegrations.tsx
index f7aedee4020d..4ca90263172f 100644
--- a/frontend/src/scenes/settings/environment/ReplayIntegrations.tsx
+++ b/frontend/src/scenes/settings/environment/ReplayIntegrations.tsx
@@ -1,7 +1,11 @@
+import {
+ GithubIntegration,
+ GitLabIntegration,
+ JiraIntegration,
+ LinearIntegration,
+} from 'scenes/integrations/components/Integrations'
import { urls } from 'scenes/urls'
-import { GithubIntegration, GitLabIntegration, JiraIntegration, LinearIntegration } from './Integrations'
-
const NEXT_URL = urls.replaySettings('replay-integrations')
export function ReplayIntegrations(): JSX.Element {
diff --git a/frontend/src/scenes/urls.ts b/frontend/src/scenes/urls.ts
index 9164e02a831b..34264c0a3bff 100644
--- a/frontend/src/scenes/urls.ts
+++ b/frontend/src/scenes/urls.ts
@@ -230,6 +230,7 @@ export const urls = {
queryPerformance: (): string => '/instance/query_performance',
materializedColumns: (): string => '/data-management/materialized-columns',
unsubscribe: (): string => '/unsubscribe',
+ integration: (slug: string): string => `/integrations/${slug}`,
integrationsRedirect: (kind: string): string => `/integrations/${kind}/callback`,
stripeConfirmInstall: (): string => '/integrations/stripe/confirm-install',
shared: (token: string, exportOptions: SharingConfigurationSettings = {}): string =>