: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
fix(annotations): warn before discarding unsaved annotation modal input (#58196)
Christiaan Hendriksenb998f42dae3d
diff --git a/frontend/src/scenes/annotations/AnnotationModal.tsx b/frontend/src/scenes/annotations/AnnotationModal.tsxindex 1677e8c29fa2..20b601942222 100644--- a/frontend/src/scenes/annotations/AnnotationModal.tsx+++ b/frontend/src/scenes/annotations/AnnotationModal.tsx@@ -37,6 +37,7 @@ export function AnnotationModal({isModalOpen,existingModalAnnotation,annotationModal,+ annotationModalChanged,isAnnotationModalSubmitting,onSavedInsight,timezone,@@ -103,6 +104,7 @@ export function AnnotationModal({contentRef={contentRef}isOpen={isModalOpen}onClose={closeModal}+ hasUnsavedInput={annotationModalChanged}title={existingModalAnnotation ? 'Edit annotation' : 'New annotation'}description="Use annotations to comment on insights, dashboards"footer={