8000 chore: new survey config by lucasheriques · Pull Request #2031 · PostHog/posthog-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: new survey config #2031

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

Merged
merged 3 commits into from
Jun 20, 2025
Merged

chore: new survey config #2031

merged 3 commits into from
Jun 20, 2025

Conversation

lucasheriques
Copy link
Contributor

Changes

Adds a new setting, disable_surveys_automatic_display. When this is true, no surveys will be shown automatically.

Necessary for fullscreen surveys, so we don't trigger any surveys on that page.

Also fixes a small issue where we're automatically focusing the open text input even in the survey preview.

@lucasheriques lucasheriques self-assigned this Jun 20, 2025
@lucasheriques lucasheriques requested a review from a team as a code owner June 20, 2025 04:56
@lucasheriques lucasheriques added bump patch Bump patch version when this PR gets merged feature/surveys labels Jun 20, 2025
Copy link
vercel bot commented Jun 20, 2025

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

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Jun 20, 2025 6:03pm

Copy link
Contributor
@ioannisj ioannisj left a comment

Choose a reason for hiding this comment

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

Sounds good. No idea if there was a way to just hijack survey rendering and render nothing instead, but this is a cleaner approach either way

Copy link
github-actions bot commented Jun 20, 2025

Copy link
github-actions bot commented Jun 20, 2025

Size Change: +1.64 kB (+0.05%)

Total Size: 3.56 MB

Filename Size Change
packages/browser/dist/all-external-dependencies.js 220 kB +178 B (+0.08%)
packages/browser/dist/array.full.es5.js 306 kB +213 B (+0.07%)
packages/browser/dist/array.full.js 371 kB +215 B (+0.06%)
packages/browser/dist/array.full.no-external.js 388 kB +215 B (+0.06%)
packages/browser/dist/array.js 171 kB +37 B (+0.02%)
packages/browser/dist/array.no-external.js 186 kB +37 B (+0.02%)
packages/browser/dist/main.js 172 kB +37 B (+0.02%)
packages/browser/dist/module.full.js 371 kB +215 B (+0.06%)
packages/browser/dist/module.full.no-external.js 388 kB +215 B (+0.06%)
packages/browser/dist/module.js 171 kB +37 B (+0.02%)
packages/browser/dist/module.no-external.js 186 kB +37 B (+0.02%)
packages/browser/dist/surveys-preview.js 70.7 kB +29 B (+0.04%)
packages/browser/dist/surveys.js 78.8 kB +178 B (+0.23%)
ℹ️ View Unchanged
Filename Size
packages/browser/dist/customizations.full.js 15.9 kB
packages/browser/dist/dead-clicks-autocapture.js 12.6 kB
packages/browser/dist/exception-autocapture.js 9.55 kB
packages/browser/dist/external-scripts-loader.js 2.57 kB
packages/browser/dist/posthog-recorder.js 207 kB
packages/browser/dist/recorder-v2.js 113 kB
packages/browser/dist/recorder.js 113 kB
packages/browser/dist/tracing-headers.js 1.63 kB
packages/browser/dist/web-vitals.js 10.4 kB

compressed-size-action

@lucasheriques lucasheriques merged commit 8f5f3d1 into main Jun 20, 2025
28 checks passed
@lucasheriques lucasheriques deleted the chore/new-survey-config branch June 20, 2025 22:05
*
* @default false
*/
disable_surveys_automatic_display: boolean
Copy link
Member

Choose a reason for hiding this comment

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

It's already merged, but the name and description are confusing to me.
we have disable_surveys and disable_surveys_automatic_display
why would I chose disable_surveys_automatic_display over disable_surveys?
They do the same thing, I guess? I probably lack some context, and the user probably will too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged feature/surveys
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0