-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(editor-3000): extract datavizlogic #26266
base: master
Are you sure you want to change the base?
Conversation
…nto dw-sidebar-integration
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.
A couple of nits, but ✅
@@ -559,31 +558,31 @@ export const dataVisualizationLogic = kea<dataVisualizationLogicType>([ | |||
return columns.filter((n) => n.type.isNumerical) | |||
}, | |||
], | |||
dashboardId: [(_state, props) => [props.dashboardId], (dashboardId) => dashboardId], |
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.
Gotta do something like this to get the type checks to pass:
dashboardId: [(_state, props) => [props.dashboardId ?? (() => undefined)], (dashboardId) => dashboardId],
@@ -45,7 +46,7 @@ import { variablesLogic } from './Components/Variables/variablesLogic' | |||
import { dataVisualizationLogic, DataVisualizationLogicProps } from './dataVisualizationLogic' | |||
import { displayLogic } from './displayLogic' | |||
|
|||
interface DataTableVisualizationProps { | |||
export interface DataTableVisualizationProps { |
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.
Any reason this now needs to be exported? Dont see it being used anywhere else
…into dw-editor-visualization
Size Change: 0 B Total Size: 1.16 MB ℹ️ View Unchanged
|
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?