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: saved insights settings in notebooks #17373

Merged
merged 13 commits into from
Sep 12, 2023
Merged

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Sep 11, 2023

Problem

Insights & their settings don't always look great in Notebooks

Changes

  1. Remove min height on funnels.

Before
Screenshot 2023-09-11 at 11 47 25
After
Screenshot 2023-09-11 at 11 47 30

  1. Funnel filters
    Before
Screenshot 2023-09-11 at 14 23 46 After Screenshot 2023-09-11 at 14 13 18
  1. Add max height to settings
    Before
Screenshot 2023-09-11 at 14 25 04 After Screenshot 2023-09-11 at 14 25 35
  1. Fix data node table settings
    Before
Screenshot 2023-09-11 at 11 06 30 After Screenshot 2023-09-11 at 11 16 57

How did you test this code?

By hand

@@ -48,38 +47,6 @@
display: block;
padding-right: 1rem;
}
&.anim--enter {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These styles didn't seem to be used anywhere

const [dataKey] = useState(() => `DataNode.${uniqueKey || uniqueNodeKey}`)
const [vizKey] = useState(() => `DataTable.${uniqueNodeKey}`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to revert to an earlier commit because using the same key for the viz & data meant that both representations shared view props e.g. the table was showing up in the settings panel

@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.

@daibhin daibhin requested a review from a team September 11, 2023 14:20
Copy link
Contributor

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

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

Code wise this looks fine.

Issues with the actual usage:

  • Changing settings doesn't do anything?
  • Open settings feels off. Maybe this is being solved in a different PR?

@daibhin
Copy link
Contributor Author

daibhin commented Sep 12, 2023

@benjackwhite both are known issues:

  1. Working with @thmsobrmlr on this one. Issue more thoroughly explained in example setQuery callback #17179

  2. Open logic is smoother in chore: open / close notebook widgets #17375

@daibhin daibhin merged commit 9ef1885 into master Sep 12, 2023
62 checks passed
@daibhin daibhin deleted the dn-feat/saved-insights branch September 12, 2023 09:37
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