:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { BindLogic, useActions, useValues } from 'kea'
import { DataWarehouseTable } from '~/types'
import { SelfManagedSourceForm } from 'products/data_warehouse/frontend/scenes/NewSourceScene/components/SelfManagedSourceForm'
import {
selfManagedSourceLogic,
selfManagedTableUpdatePayload,
} from 'products/data_warehouse/frontend/scenes/NewSourceScene/selfManagedSourceLogic'
interface SelfManagedProps {
id: string
}
export const DataPipelinesSelfManagedSource = ({ id }: SelfManagedProps): JSX.Element => {
const { table } = useValues(selfManagedSourceLogic({ id }))
const { updateTable } = useActions(selfManagedSourceLogic({ id }))
return (
<BindLogic logic={selfManagedSourceLogic} props={{ id }}>
<DataPipelinesSelfManagedSourceTable table={table} updateTable={updateTable} />
</BindLogic>
)
}
interface Props {
table: DataWarehouseTable
updateTable: (tablePayload: any) => void
}
export function DataPipelinesSelfManagedSourceTable({ table, updateTable }: Props): JSX.Element {
return (
<>
<div className="deprecated-space-y-4">
<SelfManagedSourceForm onUpdate={() => updateTable(selfManagedTableUpdatePayload(table))} />
</div>
</>
)
}