: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
fix(aio): keep the evaluation save button on screen while scrolling (#87713)
Bernat Torresee826f7570c7
diff --git a/frontend/src/layout/scenes/components/SceneStickyBar.tsx b/frontend/src/layout/scenes/components/SceneStickyBar.tsxindex 6a3f30fa7285..60f90b15e47c 100644--- a/frontend/src/layout/scenes/components/SceneStickyBar.tsx+++ b/frontend/src/layout/scenes/components/SceneStickyBar.tsx@@ -17,7 +17,9 @@ export function SceneStickyBar({<divclassName={cn('scene-sticky-bar @2xl/main-content:sticky z-20 bg-primary @2xl/main-content:top-[34px] space-y-2 py-2 -mx-4 px-4 rounded-t-xl',- !hasSceneTitleSection && '@2xl/main-content:top-0',+ // Without a scene title section the bar pins itself. Sticky offsets start inside the+ // scroll container's padding, so pull it up by that padding to stop content showing above.+ !hasSceneTitleSection && '@2xl/main-content:-top-4',className,showBorderBottom && 'border-b')}diff --git a/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsx b/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsxindex 51cb437333a2..1b756207c2c0 100644--- a/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsx+++ b/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsx@@ -27,6 +27,7 @@ import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { SceneExport } from 'scenes/sceneTypes'import { SceneBreadcrumbBackButton } from '~/layout/scenes/components/SceneBreadcrumbs'+import { SceneStickyBar } from '~/layout/scenes/components/SceneStickyBar'import { InsightVizNode, NodeKind } from '~/queries/schema/schema-general'import { urls } from '~/scenes/urls'import { AccessControlLevel, AccessControlResourceType, ChartDisplayType, HogQLMathType } from '~/types'@@ -275,9 +276,11 @@ export function AIObservabilityEvaluation(): JSX.Element {<div className="space-y-6"><SceneBreadcrumbBackButton />{/* Header */}- <div className="flex justify-between items-start pb-4 border-b">- <div className="space-y-2">- <h1 className="text-2xl font-semibold">{isNewEvaluation ? 'New evaluation' : evaluation.name}</h1>+ <SceneStickyBar hasSceneTitleSection={false} className="flex justify-between items-start gap-2 space-y-0">+ <div className="space-y-2 min-w-0">+ <h1 className="text-2xl font-semibold break-words">+ {isNewEvaluation ? 'New evaluation' : evaluation.name}+ </h1><div className="flex items-center gap-2">{isNewEvaluation ? (<LemonTag type="primary">New</LemonTag>@@ -297,7 +300,7 @@ export function AIObservabilityEvaluation(): JSX.Element {)}</div></div>- <div className="flex gap-2">+ <div className="flex gap-2 shrink-0">{trendInsightUrl ? (<LemonButtontype="secondary"@@ -339,7 +342,7 @@ export function AIObservabilityEvaluation(): JSX.Element {</AccessControlAction>)}</div>- </div>+ </SceneStickyBar>{evaluation.status === 'error' && (<LemonBanner type="error">