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

fix: Update Survey Repeating Schedule if it's triggered by an event #28151

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucasheriques
Copy link
Contributor

Problem

Changes

👉 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?

Comment on lines +71 to +82
{canSurveyBeRepeated ? (
<div className="flex flex-col font-medium text-muted">
<span>
<IconInfo className="mr-2" /> This survey is triggered by events:{' '}
</span>
<div>
<LemonSnack className="mx-2">
{survey.conditions?.events?.values.map((v) => v.name).join(', ')}
</LemonSnack>
</div>
These settings don't apply since the survey will be shown each time these events occur.
</div>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the only logic update

if the survey is set to be triggered after every time an event is captured, we show this message instead of showing the options to how many times an user can answer a survey

otherwise everything remains the same, I just split the big component into two smaller ones for easier readability

@lucasheriques lucasheriques self-assigned this Jan 31, 2025
@lucasheriques lucasheriques requested a review from a team January 31, 2025 17:49
Copy link
Contributor

Size Change: +10 B (0%)

Total Size: 1.16 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.16 MB +10 B (0%)

compressed-size-action

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.

1 participant