: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(replay): remove toolbar heatmap area filter flag (#95753)
Paul D'Ambra5e5442c46487
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 5b913d17e7be..5399de54c3cd 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -519,7 +519,6 @@ export const FEATURE_FLAGS = {TAXONOMIC_FILTER_DEFAULT_PINS: 'taxonomic-filter-default-pins', // owner: @pauldambra #team-product-analytics, seeds $current_url/email default pinned filtersTAXONOMIC_FILTER_MENU_REBUILD: 'taxonomic-filter-menu-rebuild', // owner: @adamleith, opt-in to the rebuilt TaxonomicFilter — headless filter panel + new popover menu (column / preview-pane)TEXT_CARD_WORD_ART: 'text-card-word-art', // owner: @jonmcwest, gates the word art insert button in dashboard text cards- TOOLBAR_HEATMAP_AREA_FILTER: 'toolbar-heatmap-area-filter', // owner: @pauldambra #team-replay, gates the target button that filters the toolbar heatmap/clickmap to a chosen page areaTRACING: 'tracing', // owner: #team-apm (@jonmcwest, @frankh)TRACING_FACET_RAIL: 'tracing-facet-rail', // owner: #team-apm — gates the facet rail (faceted filter sidebar) in tracingTRACING_LATENCY_HEATMAP: 'tracing-latency-heatmap', // owner: #team-apm — gates the latency-over-time heatmap chart in tracingdiff --git a/frontend/src/toolbar/elements/heatmapToolbarMenuLogic.ts b/frontend/src/toolbar/elements/heatmapToolbarMenuLogic.tsindex de6d0b164a3c..9a8cad8cf65e 100644--- a/frontend/src/toolbar/elements/heatmapToolbarMenuLogic.ts+++ b/frontend/src/toolbar/elements/heatmapToolbarMenuLogic.ts@@ -1237,9 +1237,6 @@ export const heatmapToolbarMenuLogic = kea<heatmapToolbarMenuLogicType>([toolbarPosthogJS.capture('toolbar mode triggered', { mode: 'heatmap', enabled: false })},- // the feature flag gates only the menu button; the whole selection machine stays- // dormant because startAreaSelection is that button's only caller — a second caller- // would silently un-gate the featurestartAreaSelection: () => {// product tours' picker also listens for document clicks; two armed pickers// would both consume the same page clickdiff --git a/frontend/src/toolbar/stats/HeatmapToolbarMenu.tsx b/frontend/src/toolbar/stats/HeatmapToolbarMenu.tsxindex 63036dc707fa..48804673d424 100644--- a/frontend/src/toolbar/stats/HeatmapToolbarMenu.tsx+++ b/frontend/src/toolbar/stats/HeatmapToolbarMenu.tsx@@ -17,7 +17,7 @@ import { elementsLogic } from '~/toolbar/elements/elementsLogic'import { heatmapToolbarMenuLogic } from '~/toolbar/elements/heatmapToolbarMenuLogic'import { currentPageLogic } from '~/toolbar/stats/currentPageLogic'import { heatmapCaptureLogic } from '~/toolbar/stats/heatmapCaptureLogic'-import { toolbarPosthogJS, useToolbarFeatureFlag } from '~/toolbar/toolbarPosthogJS'+import { toolbarPosthogJS } from '~/toolbar/toolbarPosthogJS'import { urls } from '~/toolbar/urls'import { joinWithUiHost } from '~/toolbar/utils'@@ -83,7 +83,6 @@ export const HeatmapToolbarMenu = (): JSX.Element => {const { wildcardHref, autoWildcardEnabled, wildcardHrefTooSpecific, wildcardHrefEndsWithSlash } =useValues(currentPageLogic)const { setWildcardHref, autoWildcardHref, setAutoWildcardEnabled } = useActions(currentPageLogic)- const areaFilterFlagEnabled = useToolbarFeatureFlag('toolbar-heatmap-area-filter')const { captureResultLoading, isAuthenticated, captureProgress } = useValues(heatmapCaptureLogic)const { saveToPostHog } = useActions(heatmapCaptureLogic)@@ -192,27 +191,25 @@ export const HeatmapToolbarMenu = (): JSX.Element => {}}dateOptions={heatmapDateOptions}/>- {areaFilterFlagEnabled ? (- <LemonButton- size="small"- type="secondary"- icon={<IconTarget />}- active={areaSelectionActive}- data-attr="heatmap-area-filter-toggle"- onClick={() => (areaSelectionActive ? cancelAreaSelection() : startAreaSelection())}- tooltip={- <>- Filter the heatmap and clickmap to one part of the page, e.g. the nav or the main- content. Click this, then hover the page and click an area. Press <kbd>↑</kbd> to- grow the selection to a bigger container, <kbd>↓</kbd> to shrink it, and{' '}- <kbd>Esc</kbd> to cancel. Heatmap points on fixed or sticky elements are only- included when the chosen area is itself fixed or sticky.- </>- }- >- {areaSelectionActive ? 'Click an area of the page…' : 'Filter to area'}- </LemonButton>- ) : null}+ <LemonButton+ size="small"+ type="secondary"+ icon={<IconTarget />}+ active={areaSelectionActive}+ data-attr="heatmap-area-filter-toggle"+ onClick={() => (areaSelectionActive ? cancelAreaSelection() : startAreaSelection())}+ tooltip={+ <>+ Filter the heatmap and clickmap to one part of the page, e.g. the nav or the main+ content. Click this, then hover the page and click an area. Press <kbd>↑</kbd> to grow+ the selection to a bigger container, <kbd>↓</kbd> to shrink it, and <kbd>Esc</kbd> to+ cancel. Heatmap points on fixed or sticky elements are only included when the chosen+ area is itself fixed or sticky.+ </>+ }+ >+ {areaSelectionActive ? 'Click an area of the page…' : 'Filter to area'}+ </LemonButton></div>{heatmapAreaFilter && !areaSelectionActive ? (<div className="flex flex-row items-center gap-2 py-2 border-b">