Skip to content

Commit c82ec02

Browse files
committed
Also tweak SignalSourceToggles badges
1 parent ba0288e commit c82ec02

1 file changed

Lines changed: 19 additions & 20 deletions

File tree

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

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import {
88
VideoIcon,
99
} from "@phosphor-icons/react";
1010
import {
11+
Badge,
1112
Box,
1213
Button,
1314
Flex,
1415
Link,
1516
Spinner,
1617
Switch,
1718
Text,
19+
Tooltip,
1820
} from "@radix-ui/themes";
1921
import type { Evaluation } from "@renderer/api/posthogClient";
2022
import { memo, useCallback } from "react";
@@ -93,13 +95,12 @@ const SignalSourceToggleCard = memo(function SignalSourceToggleCard({
9395
) : requiresSetup ? (
9496
<Button
9597
size="1"
96-
variant="soft"
9798
onClick={(e) => {
9899
e.stopPropagation();
99100
onSetup?.();
100101
}}
101102
>
102-
Connect
103+
Enable
103104
</Button>
104105
) : (
105106
<Switch
@@ -184,16 +185,16 @@ export const EvaluationsSection = memo(function EvaluationsSection({
184185
>
185186
PostHog LLM Analytics
186187
</Text>
187-
<span
188-
className="shrink-0 rounded-sm px-1 py-px text-[9px] uppercase tracking-wider"
189-
style={{
190-
color: "var(--blue-11)",
191-
backgroundColor: "var(--blue-3)",
192-
border: "1px solid var(--blue-6)",
193-
}}
194-
>
195-
Internal
196-
</span>
188+
<Tooltip content="This is only visible to staff users of PostHog">
189+
<Badge
190+
color="blue"
191+
size="1"
192+
variant="surface"
193+
className="!py-0 !text-[9px] !leading-tight uppercase"
194+
>
195+
Internal
196+
</Badge>
197+
</Tooltip>
197198
</Flex>
198199
<Text size="1" style={{ color: "var(--gray-11)" }}>
199200
Ongoing evaluation of how your AI features are performing based on
@@ -299,16 +300,14 @@ export function SignalSourceToggles({
299300
icon={<VideoIcon size={20} />}
300301
label="PostHog Session Replay"
301302
labelSuffix={
302-
<span
303-
className="shrink-0 rounded-sm px-1 py-px text-[9px] uppercase tracking-wider"
304-
style={{
305-
color: "var(--orange-11)",
306-
backgroundColor: "var(--orange-3)",
307-
border: "1px solid var(--orange-6)",
308-
}}
303+
<Badge
304+
color="orange"
305+
size="1"
306+
variant="surface"
307+
className="!py-0 !text-[9px] !leading-tight uppercase"
309308
>
310309
Alpha
311-
</span>
310+
</Badge>
312311
}
313312
description="Analyze session recordings and event data for UX issues"
314313
checked={value.session_replay}

0 commit comments

Comments
 (0)