Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 78e35a2

Browse files
posthog[bot]PostHog Code
andauthored
feat(inbox): Rename Conversations to Support and add product docs links (#1802)
Co-authored-by: PostHog Code <code@posthog.com>
1 parent e87785f commit 78e35a2

2 files changed

Lines changed: 62 additions & 2 deletions

File tree

‎apps/code/src/renderer/features/inbox/components/SignalSourceToggles.tsx‎

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ interface SignalSourceToggleCardProps {
4444
loading?: boolean;
4545
statusSection?: React.ReactNode;
4646
syncStatus?: string | null;
47+
docsUrl?: string;
48+
docsLabel?: string;
4749
}
4850

4951
function syncStatusLabel(status: string | null | undefined): {
@@ -76,6 +78,8 @@ const SignalSourceToggleCard = memo(function SignalSourceToggleCard({
7678
loading,
7779
statusSection,
7880
syncStatus,
81+
docsUrl,
82+
docsLabel,
7983
}: SignalSourceToggleCardProps) {
8084
const statusInfo = checked ? syncStatusLabel(syncStatus) : null;
8185

@@ -118,6 +122,30 @@ const SignalSourceToggleCard = memo(function SignalSourceToggleCard({
118122
<Text size="1" style={{ color: "var(--gray-11)" }}>
119123
{description}
120124
</Text>
125+
{docsUrl && (
126+
<Text size="1" style={{ color: "var(--gray-11)" }}>
127+
<a
128+
href={docsUrl}
129+
target="_blank"
130+
rel="noopener noreferrer"
131+
onClick={(e) => {
132+
e.stopPropagation();
133+
e.preventDefault();
134+
window.open(docsUrl, "_blank", "noopener");
135+
}}
136+
style={{
137+
color: "var(--accent-11)",
138+
textDecoration: "none",
139+
display: "inline-flex",
140+
alignItems: "center",
141+
gap: "4px",
142+
}}
143+
>
144+
Learn about {docsLabel ?? label}
145+
<ArrowSquareOutIcon size={11} />
146+
</a>
147+
</Text>
148+
)}
121149
</Flex>
122150
</Flex>
123151
{loading ? (
@@ -185,6 +213,32 @@ export const EvaluationsSection = memo(function EvaluationsSection({
185213
<Text size="1" style={{ color: "var(--gray-11)" }}>
186214
Monitor how your AI features are performing
187215
</Text>
216+
<Text size="1" style={{ color: "var(--gray-11)" }}>
217+
<a
218+
href="https://posthog.com/docs/llm-analytics"
219+
target="_blank"
220+
rel="noopener noreferrer"
221+
onClick={(e) => {
222+
e.stopPropagation();
223+
e.preventDefault();
224+
window.open(
225+
"https://posthog.com/docs/llm-analytics",
226+
"_blank",
227+
"noopener",
228+
);
229+
}}
230+
style={{
231+
color: "var(--accent-11)",
232+
textDecoration: "none",
233+
display: "inline-flex",
234+
alignItems: "center",
235+
gap: "4px",
236+
}}
237+
>
238+
Learn about LLM Analytics
239+
<ArrowSquareOutIcon size={11} />
240+
</a>
241+
</Text>
188242
</Flex>
189243
</Flex>
190244
<Button
@@ -296,14 +350,18 @@ export function SignalSourceToggles({
296350
onCheckedChange={toggleErrorTracking}
297351
disabled={disabled}
298352
syncStatus={sourceStates?.error_tracking?.syncStatus}
353+
docsUrl="https://posthog.com/docs/error-tracking"
354+
docsLabel="Error Tracking"
299355
/>
300356
<SignalSourceToggleCard
301357
icon={<ChatsIcon size={20} />}
302-
label="Conversations"
358+
label="Support"
303359
description="Turn support conversations into signals"
304360
checked={value.conversations}
305361
onCheckedChange={toggleConversations}
306362
disabled={disabled}
363+
docsUrl="https://posthog.com/docs/support"
364+
docsLabel="Support"
307365
/>
308366
<SignalSourceToggleCard
309367
icon={<VideoIcon size={20} />}
@@ -313,6 +371,8 @@ export function SignalSourceToggles({
313371
checked={value.session_replay}
314372
onCheckedChange={toggleSessionReplay}
315373
disabled={disabled}
374+
docsUrl="https://posthog.com/docs/session-replay"
375+
docsLabel="Session Replay"
316376
statusSection={
317377
value.session_replay ? (
318378
<SourceRunningIndicator

‎apps/code/src/renderer/features/inbox/hooks/useSignalSourceManager.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const SOURCE_LABELS: Record<keyof SignalSourceValues, string> = {
4141
github: "GitHub Issues",
4242
linear: "Linear Issues",
4343
zendesk: "Zendesk Tickets",
44-
conversations: "PostHog Conversations",
44+
conversations: "PostHog Support",
4545
};
4646

4747
const DATA_WAREHOUSE_SOURCES: Record<

0 commit comments

Comments
 (0)