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: allow widget surveys to be repeated indefinitely #28896

Merged

Conversation

lucasheriques
Copy link
Contributor

@lucasheriques lucasheriques commented Feb 18, 2025

Problem

feature request: #18157

it'll be closed the the posthog-js PR to actually use those values

Changes

adds a new option for repeating survey - "All the time"

which means the survey will be displayed every time the conditions match

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

unit tests for the endpoint; smoke tests to see if survey is being created properly

@lucasheriques lucasheriques requested a review from a team February 18, 2025 21:47
@lucasheriques lucasheriques self-assigned this Feb 18, 2025
@lucasheriques lucasheriques force-pushed the feat/allow-widget-surveys-to-be-repeated-indefinitely branch from b21b5ae to 411da62 Compare February 19, 2025 00:42
Copy link
Contributor

github-actions bot commented Feb 19, 2025

Size Change: 0 B

Total Size: 9.71 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 9.71 MB

compressed-size-action

@marandaneto marandaneto requested a review from ioannisj February 19, 2025 07:48
@lucasheriques lucasheriques marked this pull request as ready for review February 19, 2025 12:59
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here: app.greptile.com/review/github.

14 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Member

@marandaneto marandaneto left a comment

Choose a reason for hiding this comment

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

left a last comment otherwise LGTM

@marandaneto
Copy link
Member

Depends on PostHog/posthog-js#1752

label: 'Repeat on a schedule',
'data-attr': 'survey-iteration-frequency-days',
disabledReason: surveysRecurringScheduleDisabledReason,
},
{
Copy link
Member

Choose a reason for hiding this comment

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

is there a tooltip or label that we can mention it requires the JS SDK version >= x?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'll add it once we merge the JS SDK PR and have ther version available

@lucasheriques lucasheriques merged commit ee7ce0b into master Feb 20, 2025
97 checks passed
@lucasheriques lucasheriques deleted the feat/allow-widget-surveys-to-be-repeated-indefinitely branch February 20, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants