: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: distinguish use cases from selected tools (#83882)
Fernando Gomese9aa4155298d
diff --git a/frontend/src/scenes/onboarding/self-driving/steps/ToolsStep.tsx b/frontend/src/scenes/onboarding/self-driving/steps/ToolsStep.tsxindex ed0731ef8bb0..30f614c9cfed 100644--- a/frontend/src/scenes/onboarding/self-driving/steps/ToolsStep.tsx+++ b/frontend/src/scenes/onboarding/self-driving/steps/ToolsStep.tsx@@ -63,20 +63,21 @@ export function ToolsStep({ onContinue }: { onContinue: () => void }): JSX.Eleme<p className="text-secondary text-center m-0">These tools will feed your agents after setup finishes. You can change them later in settings.</p>- <div className="flex flex-col gap-3">+ <div className="flex flex-col gap-2">{tools.map((tool) => {const iconType = tool.iconTypeconst colorVar = `var(--color-product-${iconType.replace(/_/g, '-')}-light)`+return (<divkey={tool.productKey}- className="OnboardingProductCard flex items-start gap-4 p-4 rounded-lg border"+ className="OnboardingProductCard flex items-start gap-4 px-4 rounded-lg"><div- className="size-12 shrink-0 rounded-lg flex items-center justify-center"+ className="size-8 shrink-0 rounded-lg flex items-center justify-center"style={{ background: `color-mix(in srgb, ${colorVar} 12%, transparent)` }}>- <div className="flex *:text-2xl group/colorful-product-icons colorful-product-icons-true">+ <div className="flex *:text-xl group/colorful-product-icons colorful-product-icons-true">{iconForType(iconType)}</div></div>diff --git a/frontend/src/scenes/onboarding/self-driving/steps/UseCasesStep.tsx b/frontend/src/scenes/onboarding/self-driving/steps/UseCasesStep.tsxindex 7977f2c65346..df61d5d17174 100644--- a/frontend/src/scenes/onboarding/self-driving/steps/UseCasesStep.tsx+++ b/frontend/src/scenes/onboarding/self-driving/steps/UseCasesStep.tsx@@ -1,5 +1,6 @@import { useActions } from 'kea'+import { IconArrowRight } from '@posthog/icons'import { LemonButton } from '@posthog/lemon-ui'import { iconForType } from '~/layout/panel-layout/ProjectTree/defaultTree'@@ -12,10 +13,12 @@ export function UseCasesStep({ onContinue, onSkip }: { onContinue: () => void; oreturn (<div className="flex flex-col gap-4 py-1">+ {/* Use cases */}<div className="flex flex-col gap-3">{ONBOARDING_USE_CASES.map((useCase) => {const iconType = useCase.iconconst colorVar = `var(--color-product-${iconType.replace(/_/g, '-')}-light)`+return (<buttonkey={useCase.key}@@ -25,8 +28,6 @@ export function UseCasesStep({ onContinue, onSkip }: { onContinue: () => void; oonContinue()}}className="OnboardingProductCard group flex items-center gap-4 p-4 rounded-lg border text-left cursor-pointer transition-all hover:shadow-sm"- // Tailwind can't parameterize the product color, so the hover border- // tint rides on a CSS variable the class below reads.style={{ ['--goal-color' as string]: colorVar }}data-attr={`self-driving-goal-${useCase.key}`}>@@ -38,14 +39,22 @@ export function UseCasesStep({ onContinue, onSkip }: { onContinue: () => void; o{iconForType(iconType)}</div></div>+<div className="flex-1 flex flex-col gap-1 min-w-0"><div className="font-semibold text-base">{useCase.title}</div><div className="text-sm text-secondary text-balance">{useCase.description}</div></div>++ {/* Pick button */}+ <div className="flex flex-row justify-center">+ <IconArrowRight className="text-xl" />+ </div></button>)})}</div>++ {/* Continue button */}<div className="flex justify-center"><LemonButtontype="tertiary"