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: insight viz view props #17279

Merged
merged 5 commits into from
Sep 1, 2023
Merged

feat: insight viz view props #17279

merged 5 commits into from
Sep 1, 2023

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Sep 1, 2023

Problem

Towards #15680. We want to add Insights to notebooks but first they need to look good

Changes

  • Adds boolean toggles to show / hide the filters and results on the InsightViz node
  • Adds an embedded option that hides the card wrapping the filters (as it is already contained as part of the notebook)
  • Refactored the view props logic because I believe it was incorrectly falling back to showIfFull when a falsey value was provided e.g. if query.showHeader is false then const disableHeader = query.showHeader ? !query.showHeader : !showIfFull works off the showIfFull value which could be true. What we really want is const disableHeader = !(query.showHeader ?? showIfFull) which returns false.
  • Added some keys because console errors

How did you test this code?

🙈

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

Clicked around all insights looks OK to me

@daibhin daibhin merged commit 0a9b1f0 into master Sep 1, 2023
62 checks passed
@daibhin daibhin deleted the dn-feat/insight-viz-view-props branch September 1, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants