: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(error-tracking): stop sticky filters bar covering the ingestion banner (#79266)
Catalin9f336c1d363f
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex a761cedb1eb8..987ce5e9148f 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -5894,6 +5894,14 @@ snapshots:hash: v1.k794b7964.f474d0d6caf49e7b9a4cfd469546ab9de031039030fb9da704293bc40d87e69a.WxsvGwytEdwdnq8_Ywy_dgGBBYoSYCX9hX72AB42bgsscenes-app-errortracking--list-page--light:hash: v1.k794b7964.ad6d0860ada2d1b6cbc4e90d860ca13fff5c180a2bd92d54854f218bce0dfcea.CPjj6CCtZT3ksfs5hOnAfq01VQ4xG-vNX4B1AY-CahQ+ scenes-app-errortracking--list-page-with-ingestion-warning--dark:+ hash: v1.k794b7964.d0cc1ad39fb4d2101a7a5ee733f369f3edfba581b6e1644061beefa170622731.eS38wQuq5nOMAkMEskk-x6F5fup7EQTlXqsZJN5cP0w+ scenes-app-errortracking--list-page-with-ingestion-warning--light:+ hash: v1.k794b7964.9c648f1a516ab70ef799c6b654307dd8536e091176730df8a3ad6117f60a6172.JV2er-WBZWw0kT8-L5H4NV7V0TPdTzOabmeR7rWDPic+ scenes-app-errortracking--list-page-with-source-maps-banner--dark:+ hash: v1.k794b7964.75e6c2741dfe10d612b5ebfba86bd7f9f0a8fc0836ee33ba4b324b18db3f4248.6pl5Tn_T-S9dXtYACltccR4oPl2X_lOfEyg0GXH5Hpc+ scenes-app-errortracking--list-page-with-source-maps-banner--light:+ hash: v1.k794b7964.f10e31beaea75632de5d0fb3611c527d9e1c523c347bc3091d18c542fdf81743.W31jW6d-fZfXWZB7sJkDPgRcx2L4-j1CQxqWEX4PtIgscenes-app-events--event-explorer--dark:hash: v1.k794b7964.37b0783b0099a978beace09a9e97c9c24b4efd25eab561f7873494c40912f607.lhExCd9bHbFLYiVjEsoqKRUpnpYEv4pf0TAllwFc8jUscenes-app-events--event-explorer--light:diff --git a/products/error_tracking/frontend/ErrorTracking.stories.tsx b/products/error_tracking/frontend/ErrorTracking.stories.tsxindex 75ca453512af..69baf4c68865 100644--- a/products/error_tracking/frontend/ErrorTracking.stories.tsx+++ b/products/error_tracking/frontend/ErrorTracking.stories.tsx@@ -1,6 +1,11 @@+import { MOCK_DEFAULT_TEAM } from 'lib/api.mock'+import { Meta, StoryObj } from '@storybook/react'+import { useActions } from 'kea'+import { useLayoutEffect, useState } from 'react'import { App } from 'scenes/App'+import { teamLogic } from 'scenes/teamLogic'import { urls } from 'scenes/urls'import { mswDecorator } from '~/mocks/browser'@@ -173,6 +178,68 @@ export default metatype Story = StoryObj<{}>export const ListPage: Story = {}++// An unresolved source maps recommendation renders the wizard banner above the+// issue list without the sticky filters bar overlapping its bottom edge+export const ListPageWithSourceMapsBanner: Story = {+ decorators: [+ mswDecorator({+ get: {+ 'api/environments/:team_id/error_tracking/recommendations': () => [+ 200,+ {+ results: [+ {+ id: 'source-maps-recommendation',+ type: 'source_maps',+ completed: false,+ status: 'ready',+ computed_at: '2024-07-08T00:00:00Z',+ dismissed_at: null,+ created_at: '2024-07-08T00:00:00Z',+ updated_at: '2024-07-08T00:00:00Z',+ meta: {+ total_frames: 100,+ unresolved_frames: 62,+ unresolved_pct: 0.62,+ threshold_pct: 0.25,+ min_sample_frames: 50,+ lookback_hours: 24,+ },+ },+ ],+ },+ ],+ },+ }),+ ],+}+// Autocapture must be on for the issue list to render instead of the full setup prompt,+// and it comes from the bootstrap app context, so an msw override isn't enough+function IngestionWarningStory(): JSX.Element | null {+ const { loadCurrentTeamSuccess } = useActions(teamLogic)+ const [ready, setReady] = useState(false)++ useLayoutEffect(() => {+ loadCurrentTeamSuccess({ ...MOCK_DEFAULT_TEAM, autocapture_exceptions_opt_in: true })+ setReady(true)+ }, [loadCurrentTeamSuccess])++ return ready ? <App /> : null+}++// No exceptions ingested yet, but autocapture enabled — the ingestion warning banner+// renders above the issue list without the sticky filters bar overlapping it+export const ListPageWithIngestionWarning: Story = {+ decorators: [+ mswDecorator({+ get: {+ '/api/environments/:team_id/error_tracking/issues/exists/': () => [200, { exists: false }],+ },+ }),+ ],+ render: () => <IngestionWarningStory />,+}export const GroupPage: Story = {name: 'Issue scene',parameters: { pageUrl: urls.errorTrackingIssue(ISSUE_ID) },diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene.tsxindex a5d3a22900bc..7dc5366032ef 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene.tsx@@ -81,10 +81,12 @@ export function ErrorTrackingScene(): JSX.Element {label: 'Issues',content: (<ErrorTrackingSetupPrompt>- <ErrorTrackingIssueFilteringTool />{hasSentExceptionEventLoading || hasSentExceptionEvent ? null : <IngestionStatusCheck />}<SourceMapsBanner /><IssuesList />+ {/* Renders a hidden div — keep it after IssuesList so the sticky bar's+ first:-mt-4 can detect whether a banner renders above it */}+ <ErrorTrackingIssueFilteringTool /></ErrorTrackingSetupPrompt>),},diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsxindex 7bf6fffb6cee..ad108c42550a 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/IssuesList.tsx@@ -154,7 +154,9 @@ export function IssuesList(): JSX.Element {logic={issuesDataNodeLogic}props={{ key: insightVizDataNodeKey(insightProps), query: query.source }}>- <SceneStickyBar className="-mt-4" showBorderBottom={false}>+ {/* first:-mt-4 tucks the bar flush under the tab bar, but only when no banner+ renders above — an unconditional -mt-4 would cover the banner's bottom edge */}+ <SceneStickyBar className="first:-mt-4" showBorderBottom={false}><IssuesFilters /><ListOptions /></SceneStickyBar>diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/SourceMapsBanner.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/SourceMapsBanner.tsxindex daad9a5a6ae4..c4ef1e5b8dcf 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/SourceMapsBanner.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/tabs/issues/SourceMapsBanner.tsx@@ -48,9 +48,7 @@ function SourceMapsBannerContent({ percent, lookbackHours }: { percent: number;return (<>- {/* Use mb-6 (not mb-2) because IssuesList's SceneStickyBar uses -mt-4 to pull up under the tab bar.- The extra bottom margin prevents the sticky bar from overlapping the card's bottom edge. */}- <div className="mb-6">+ <div className="mb-2"><div className="rounded-lg border border-border bg-bg-light pl-3 pr-4 py-3 mt-2"><div className="flex items-center gap-4">{/* The hog is absolutely positioned so it doesn't drive the card height —