: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
feat(llma): confirm before deleting online evals (#66191)
posthog[bot]91c771d85455
diff --git a/products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene.tsx b/products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene.tsxindex 5ee62e939f13..6328bec0d20b 100644--- a/products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene.tsx+++ b/products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene.tsx@@ -5,6 +5,7 @@ import { IconCopy, IconPencil, IconPlus, IconSearch, IconTrash, IconWarning } frimport {LemonBanner,LemonButton,+ LemonDialog,LemonInput,LemonSwitch,LemonTab,@@ -334,10 +335,26 @@ function AIObservabilityEvaluationsContent(): JSX.Element {status="danger"icon={<IconTrash />}onClick={() => {- deleteWithUndo({- endpoint: `environments/${currentTeamId}/evaluations`,- object: evaluation,- callback: () => loadEvaluations(),+ LemonDialog.open({+ title: `Delete ${evaluation.name}?`,+ description: 'Are you sure you want to delete this evaluation?',+ primaryButton: {+ children: 'Delete',+ type: 'primary',+ status: 'danger',+ 'data-attr': 'confirm-delete-evaluation',+ onClick: () => {+ deleteWithUndo({+ endpoint: `environments/${currentTeamId}/evaluations`,+ object: evaluation,+ callback: () => loadEvaluations(),+ })+ },+ },+ secondaryButton: {+ children: 'Cancel',+ type: 'secondary',+ },})}}/>