-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: allow widget surveys to be repeated indefinitely #28896
Conversation
b21b5ae
to
411da62
Compare
Size Change: 0 B Total Size: 9.71 MB ℹ️ View Unchanged
|
There was a problem hiding this 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
There was a problem hiding this 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
Depends on PostHog/posthog-js#1752 |
label: 'Repeat on a schedule', | ||
'data-attr': 'survey-iteration-frequency-days', | ||
disabledReason: surveysRecurringScheduleDisabledReason, | ||
}, | ||
{ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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