Skip to content

feat(signals): Add Slack notification config#2174

Draft
Twixes wants to merge 8 commits into
mainfrom
posthog-code/signals-inbox-slack-notifications
Draft

feat(signals): Add Slack notification config#2174
Twixes wants to merge 8 commits into
mainfrom
posthog-code/signals-inbox-slack-notifications

Conversation

@Twixes
Copy link
Copy Markdown
Member

@Twixes Twixes commented May 18, 2026

Problem

Signals inbox items previously surfaced only in-app. Users wanting a heads-up when a new item lands and they're a suggested reviewer had no way to opt in.

Even after the initial Slack notifications work landed, picking a channel still required a detour through PostHog Web — users had to leave PostHog Code to install the Slack integration, then come back. That's too much friction for what should be a one-time setup.

Changes

Screenshot 2026-05-19 at 08.52.23@2x.png

Adding Slack notifications under Inbox source settings.

What it includes:

  • Slack workspace picker (shown only when more than one Slack Integration is connected; otherwise the single workspace is implied).
  • Notification channel picker, populated from /api/environments/{teamId}/integrations/{id}/channels/ - same endpoint as Insight Alerts. Includes an explicit "Off" option.
  • Minimum priority filter (also includes an "All priorities" option).

Also, in-app Slack connect flow so users no longer have to leave PostHog Code for PostHog Web.

  • SlackIntegrationService in the main process. Mirrors the existing GitHubIntegrationService but registers a separate slack-integration deep-link key so each provider's handler stays isolated.
  • slackIntegration tRPC router.
  • The empty state in SignalSlackNotificationsSettings shows a "Connect Slack workspace" button that runs connection without redirecting to the Integrations page of Cloud settings.

Pairs with the backend changes in PostHog/posthog#58774.

How did you test this?

Ran this locally.

Publish to changelog?

no


Created with PostHog Code

Twixes added 2 commits May 18, 2026 09:51
Surfaces the new per-user Slack notification settings for the signals
inbox (workspace + channel + minimum priority) in the inbox source
settings panel. Reuses the existing /api/.../integrations/{id}/channels/
endpoint to populate the channel picker and the existing slack
Integration store, so no new auth setup is required — users connect
Slack once in PostHog Web and pick a channel here.

Pairs with the backend changes in PostHog/posthog#58774.

Generated-By: PostHog Code
Task-Id: 046d7425-f0b4-4ab4-97f8-cce0627927f0
Adds an in-app Slack connect flow so users no longer have to leave PostHog
Code for the PostHog web settings page just to wire up notifications.

Flow: clicking "Connect Slack workspace" in the inbox source settings
opens the browser to PostHog Cloud's Slack OAuth authorize endpoint with
`next=/account-connected/slack-integration?...`. PostHog Cloud completes
OAuth, creates the team-level Slack `Integration`, and redirects to a
landing page that fires a `posthog-code://slack-integration?...` deep
link back into the app. The new `SlackIntegrationService` (main process)
handles the deep link, emits a callback event, and the renderer hook
refreshes the integrations list.

Mirrors the existing `GitHubIntegrationService` so each provider's deep
link handler stays isolated. Pairs with backend changes in
PostHog/posthog#58774 that teach the `/account-connected/<kind>` page
about the new `slack-integration` kind.

Generated-By: PostHog Code
Task-Id: 046d7425-f0b4-4ab4-97f8-cce0627927f0
Twixes and others added 5 commits May 18, 2026 20:52
… channels

Switches the notification channel picker from a Radix Themes Select to the
searchable, virtualized Combobox from @posthog/quill (the same component used
by GitHubRepoPicker and BranchSelector). Workspaces commonly have hundreds of
channels — the old Select was unsearchable and rendered every option upfront.

Also rewires handleUpdateSlackNotifications to apply changes via setQueryData
optimistically, rather than waiting for the round-trip + cache invalidation.
On error, rolls back to the previous snapshot. This makes channel and
minimum-priority picks reflect immediately, and surfaces failures via toast.

Generated-By: PostHog Code
Task-Id: 046d7425-f0b4-4ab4-97f8-cce0627927f0
Extract shared debounce logic and adopt it in IssuePicker.
…ings

Debounce combobox input and query the integrations channels API so large
workspaces are searchable. Add modal-safe Quill portal handling for the
inbox configuration dialog and shared settings dropdown styling.
Replace em dashes with en dashes in inbox strings for typography consistency.
…s urls

Add githubInstallationSettingsUrl helper and connect PostHog client finish_setup
for GitHub App installation flow from notification settings.
@Twixes Twixes changed the title feat(signals): add slack notification picker in inbox source settings feat(signals): Add slack notification picker in inbox source settings May 19, 2026
@Twixes Twixes changed the title feat(signals): Add slack notification picker in inbox source settings feat(signals): Add Slack notification config May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant