: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, kea, path, reducers } from 'kea'
// Toolbar shim — survey question labels come from an authenticated endpoint the toolbar can't
// reach on customer pages (lib/api is denied), so the labels are always empty here. Consumers
// (PropertyKeyInfo, taxonomy helpers) fall back to their generic labels.
export interface SurveyQuestionLabel {
surveyId: string
surveyName: string
questionText: string
questionIndex: number
}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface surveyQuestionLabelsLogicValues {
surveyQuestionLabels: Record<string, SurveyQuestionLabel>
}
export type surveyQuestionLabelsLogicType = MakeLogicType<surveyQuestionLabelsLogicValues, {}>
export const surveyQuestionLabelsLogic = kea<surveyQuestionLabelsLogicType>([
path(['toolbar', 'shims', 'surveyQuestionLabelsLogic']),
reducers({
surveyQuestionLabels: [{} as Record<string, SurveyQuestionLabel>, {}],
}),
])