: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 { MakeLogicType, actions, kea, key, path, props, reducers } from 'kea'
export interface DashboardQueryScanBannerLogicProps {
dashboardId: number
}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface dashboardQueryScanBannerLogicValues {
expanded: boolean
}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface dashboardQueryScanBannerLogicActions {
setExpanded: (expanded: boolean) => {
expanded: boolean
}
}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface dashboardQueryScanBannerLogicMeta {
key: number
}
export type dashboardQueryScanBannerLogicType = MakeLogicType<
dashboardQueryScanBannerLogicValues,
dashboardQueryScanBannerLogicActions,
DashboardQueryScanBannerLogicProps,
dashboardQueryScanBannerLogicMeta
>
export const dashboardQueryScanBannerLogic = kea<dashboardQueryScanBannerLogicType>([
path((key) => ['scenes', 'dashboard', 'dashboardQueryScanBannerLogic', key]),
props({} as DashboardQueryScanBannerLogicProps),
key((props) => props.dashboardId),
actions({
setExpanded: (expanded: boolean) => ({ expanded }),
}),
reducers({
expanded: [false, { setExpanded: (_, { expanded }) => expanded }],
}),
])