-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(surveys): Custom and tab widget #19223
Conversation
Size Change: +160 B (0%) Total Size: 1.83 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
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.
LGTM!
It's a bit confusing to me how widget & popover are both presentation types, but then the widget also creates a popover. If we then have a modal instead of the popover, the widget should also support opening as a modal? Maybe @annikaschmid has ideas on where this makes more sense to go. Also, how does targeting work with the widget? Doesn't make sense to have both, targeting and the widget section, since I assume if someone chooses the widget they don't want it to randomly popup like the regular popover. Makes me think the widget is more of a customisation option. |
Widget made the most sense as a higher level customization type because while it does use the normal "surveys popup", it's definitely not a question type, that would get super confusing very quickly. Targeting would still work similarly with the widget, though the survey wait period options etc won't apply, so I can remove that, but for the other options it still would. Why can't you have a widget that shows up on specific pages if a user wants that? FYI this is all feature flagged, so happy to make edits after too if they're not urgent for merge, so that it's easier to give feedback with the feature in live for just us |
I have some design feedback here:
Before we roll this out, can we make it available behind a flag for the PostHog team first and collect some more feedback please? I don't think this feature is just there yet. |
Yeah I already have it set up behind a flag and I put the word beta all around it. There are users already asking for this so I think they'd be happy to try it out even if it's not fully polished yet :') Maybe we just don't advertise it as a complete feature then |
Problem
Changes
to go in with PostHog/posthog-js#933
Allow users to set up their own buttons for surveys + extra tab widget option
Screen.Recording.2023-12-08.at.7.57.30.PM.mov
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?