Skip to content

fix(heatmaps): open heatmaps settings section instead of autocapture when configuring#51841

Merged
lricoy merged 1 commit intoPostHog:masterfrom
phillram:fix/heatmaps-configure-panel-section
Mar 23, 2026
Merged

fix(heatmaps): open heatmaps settings section instead of autocapture when configuring#51841
lricoy merged 1 commit intoPostHog:masterfrom
phillram:fix/heatmaps-configure-panel-section

Conversation

@phillram
Copy link
Contributor

@phillram phillram commented Mar 21, 2026

Problem

When heatmaps aren't enabled on a project, the heatmaps page shows a warning banner with a "Configure" button. Clicking it opens a settings side panel, but it navigates to the Autocapture settings section instead of the Heatmaps section. This is because sectionId was set to 'environment-autocapture' instead of 'environment-heatmaps' in both warning components.

Changes

  • HeatmapsWarnings.tsx: Changed sectionId from 'environment-autocapture' to 'environment-heatmaps'
  • HeatmapsBrowser.tsx (Warnings component): Same fix

How did you test this code?

🤖 I'm an agent and haven't tested this manually. The fix was verified by:

  • Confirming environment-heatmaps exists as a valid section in SettingsMap.tsx with the heatmaps setting ID
  • Confirming no other stale references to environment-autocapture with settingId: 'heatmaps' remain

Publish to changelog?

No

Docs update

No docs update needed.

🤖 LLM context

Co-authored by Claude Code (Claude Opus 4.6). The fix was identified by tracing the openSettingsPanel call from the warning banner through to the settings map, confirming the section ID mismatch.

…when configuring

The Configure button on the heatmaps warning banner was opening the
Autocapture settings section instead of the Heatmaps section because
sectionId was set to 'environment-autocapture' instead of
'environment-heatmaps'.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@assign-reviewers-posthog assign-reviewers-posthog bot requested a review from a team March 21, 2026 01:03
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Mar 21, 2026

Last reviewed commit: "fix(heatmaps): open ..."

@lricoy
Copy link
Member

lricoy commented Mar 23, 2026

Thanks @phillram

@lricoy lricoy merged commit 92da2ac into PostHog:master Mar 23, 2026
148 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants