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.

fix(desktop): move slack comment settings to the slack settings page (#82723)

Shy Altere850871f28de
diff --git a/products/desktop/packages/ui/src/features/settings/sections/NotificationsSettings.tsx b/products/desktop/packages/ui/src/features/settings/sections/NotificationsSettings.tsx
index f4162e450304..71c666ab1884 100644
--- a/products/desktop/packages/ui/src/features/settings/sections/NotificationsSettings.tsx
+++ b/products/desktop/packages/ui/src/features/settings/sections/NotificationsSettings.tsx
@@ -37,7 +37,6 @@ import {
} from "@posthog/ui/features/settings/components/SettingsCard";
import { SettingsSelect } from "@posthog/ui/features/settings/components/SettingsSelect";
import { AddCustomSoundDialog } from "@posthog/ui/features/settings/sections/AddCustomSoundDialog";
-import { SlackCommentNotificationsSettings } from "@posthog/ui/features/settings/sections/SlackCommentNotificationsSettings";
import {
type CompletionSound,
type CustomSound,
@@ -431,8 +430,6 @@ export function NotificationsSettings() {
{spokenNarrationEnabled && <VoiceSection />}
- <SlackCommentNotificationsSettings />
-
<TestSection
bus={bus}
notifications={notifications}
diff --git a/products/desktop/packages/ui/src/features/settings/sections/SlackCommentNotificationsSettings.tsx b/products/desktop/packages/ui/src/features/settings/sections/SlackCommentNotificationsSettings.tsx
index ccc46b3495c1..87ef07672c58 100644
--- a/products/desktop/packages/ui/src/features/settings/sections/SlackCommentNotificationsSettings.tsx
+++ b/products/desktop/packages/ui/src/features/settings/sections/SlackCommentNotificationsSettings.tsx
@@ -67,13 +67,9 @@ export function SlackCommentNotificationsSettings() {
);
return (
- <>
- <Text
- size="sm"
- weight="medium"
- className="mt-4 mb-1 block border-gray-6 border-t pt-4"
- >
- Slack
+ <div className="flex flex-col border-(--gray-5) border-t border-dashed pt-3">
+ <Text size="sm" weight="medium" className="mb-1 block">
+ Comment notifications
</Text>
<Text size="xs" variant="muted" className="mb-1 block">
Comment notifications can also reach you in Slack, so you hear about
@@ -119,6 +115,6 @@ export function SlackCommentNotificationsSettings() {
/>
</div>
</SettingRow>
- </>
+ </div>
);
}
diff --git a/products/desktop/packages/ui/src/features/settings/sections/SlackSettings.tsx b/products/desktop/packages/ui/src/features/settings/sections/SlackSettings.tsx
index 3caefb59b3c6..70ce2a0a4324 100644
--- a/products/desktop/packages/ui/src/features/settings/sections/SlackSettings.tsx
+++ b/products/desktop/packages/ui/src/features/settings/sections/SlackSettings.tsx
@@ -1,9 +1,11 @@
import { ArrowSquareOutIcon } from "@phosphor-icons/react";
+import { Button, Text } from "@posthog/quill";
import { useAuthStateValue } from "@posthog/ui/features/auth/store";
import { useIntegrations } from "@posthog/ui/features/integrations/useIntegrations";
+import { SlackCommentNotificationsSettings } from "@posthog/ui/features/settings/sections/SlackCommentNotificationsSettings";
+import { Tooltip } from "@posthog/ui/primitives/Tooltip";
import { openUrlInBrowser } from "@posthog/ui/utils/browser";
import { getPostHogUrl } from "@posthog/ui/utils/urls";
-import { Button, Flex, Text, Tooltip } from "@radix-ui/themes";
import { SlackInboxNotificationsSettings } from "./SlackInboxNotificationsSettings";
export function SlackSettings() {
@@ -20,7 +22,7 @@ export function SlackSettings() {
const manageButton = (
<Button
- size="1"
+ size="xs"
disabled={!slackSettingsUrl}
onClick={() => {
if (slackSettingsUrl) void openUrlInBrowser(slackSettingsUrl);
@@ -40,18 +42,20 @@ export function SlackSettings() {
);
return (
- <Flex direction="column" gap="3">
+ <div className="flex flex-col gap-3">
<Text className="text-(--gray-11) text-[13px]">
Connect Slack to PostHog to kick off tasks like pull requests directly
from Slack.
</Text>
- <Flex>{manageButtonWithTooltip}</Flex>
+ <div className="flex">{manageButtonWithTooltip}</div>
<SlackInboxNotificationsSettings
isLoading={isLoading}
showHeader={false}
/>
- </Flex>
+
+ <SlackCommentNotificationsSettings />
+ </div>
);
}