Skip to content

fix: summarize responses is now dismisseable in surveys#30254

Merged
marandaneto merged 5 commits intomasterfrom
fix/summarize-responses-dismisseable-popover
Mar 21, 2025
Merged

fix: summarize responses is now dismisseable in surveys#30254
marandaneto merged 5 commits intomasterfrom
fix/summarize-responses-dismisseable-popover

Conversation

@lucasheriques
Copy link
Contributor

@lucasheriques lucasheriques commented Mar 20, 2025

  • fix: dismisseable popover on summarize responses

Problem

can't really dismiss the AI settings toggle inside surveys

Changes

CleanShot 2025-03-20 at 17 47 33

adds optional properties for the AIConsentPopoverWrapper to make it dismisseable

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

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

yes

How did you test this code?

smoke tests

@lucasheriques lucasheriques requested a review from a team March 20, 2025 20:49
@lucasheriques lucasheriques self-assigned this Mar 20, 2025
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

Added dismissible functionality to the AI consent popover in survey components and introduced new survey response UDFs with version 5 implementations.

  • Added onDismiss and onAccept callback props to AIConsentPopoverWrapper for better control over popover visibility
  • Fixed typo "identyifying" to "identifying" in AI consent message in /frontend/src/scenes/settings/organization/AIConsentPopoverWrapper.tsx
  • Added new get_survey_response_v5 UDF with support for both old (array of strings) and new (array of dictionaries) survey formats
  • Added comprehensive test coverage in test_get_survey_response.py for the new survey response UDF
  • Removed duplicate num_steps argument in aggregate_funnel_trends_v4 function definition

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

@lucasheriques lucasheriques changed the title autogen files for new surveys UDF fix: summarize responses is now dismisseable on the surveys page Mar 20, 2025
@lucasheriques lucasheriques changed the title fix: summarize responses is now dismisseable on the surveys page fix: summarize responses is now dismisseable in surveys Mar 20, 2025
@lucasheriques lucasheriques force-pushed the fix/summarize-responses-dismisseable-popover branch from a904599 to 22c6fa0 Compare March 20, 2025 20:56
@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2025

Size Change: -40 B (0%)

Total Size: 9.75 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 9.75 MB -40 B (0%)

compressed-size-action

for data analysis,
<br />
so that you can focus on building. This <em>can</em> include
so that you can focus on building. This <em>can</em> include
Copy link
Member

Choose a reason for hiding this comment

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

not sure i follow what the changes here are

@marandaneto marandaneto requested a review from ioannisj March 21, 2025 08:37
marandaneto and others added 2 commits March 21, 2025 09:44
…per.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@marandaneto marandaneto enabled auto-merge (squash) March 21, 2025 08:44
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

4 snapshot changes in total. 0 added, 4 modified, 0 deleted:

  • chromium: 0 added, 4 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@marandaneto marandaneto merged commit d606b53 into master Mar 21, 2025
105 checks passed
@marandaneto marandaneto deleted the fix/summarize-responses-dismisseable-popover branch March 21, 2025 09:13
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