Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Remotely enable heatmaps via decide #1154

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

benjackwhite
Copy link
Collaborator

Changes

Client side component of PostHog/posthog#21807

  • Adds support for turning heatmaps on via server side setting

Checklist

  • Tests for new code (see advice on the tests we use)
  • Accounted for the impact of any changes across different browsers
  • Accounted for backwards compatibility of any changes (no breaking changes in posthog-js!)

@benjackwhite benjackwhite added the bump patch Bump patch version when this PR gets merged label Apr 24, 2024
@benjackwhite benjackwhite requested a review from pauldambra April 24, 2024 15:13
Copy link

vercel bot commented Apr 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Apr 24, 2024 3:30pm

Copy link

github-actions bot commented Apr 24, 2024

Size Change: +1.79 kB (0%)

Total Size: 976 kB

Filename Size Change
dist/array.full.js 233 kB +449 B (0%)
dist/array.js 131 kB +448 B (0%)
dist/es.js 131 kB +448 B (0%)
dist/module.js 131 kB +448 B (0%)
ℹ️ View Unchanged
Filename Size
dist/exception-autocapture.js 12.2 kB
dist/recorder-v2.js 108 kB
dist/recorder.js 108 kB
dist/surveys-module-previews.js 62 kB
dist/surveys.js 58.3 kB

compressed-size-action

Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +77 to +79
// store this in-memory in case persistence is disabled
this._enabledServerSide = optIn
this.startIfEnabled()
Copy link
Member

@pauldambra pauldambra Apr 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<attempted-nerd-snipe>was thinking this the last time I changed replay, we do this double storage in lots of places, would be so nice if "disabled persistence" was an in-memory store so we didn't need to track things outside of persistence</attempted-nerd-snipe>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmmmmm it already is a memory store 🤔 Which is confusing... I wonder why we have this duplication...?

@benjackwhite benjackwhite added bump minor Bump minor version when this PR gets merged and removed bump patch Bump patch version when this PR gets merged labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump minor Bump minor version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants