: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(replay-vision): stop requiring a slack channel to save a summary (#69810)
Kim Svatos Duganbf52e450f5de
diff --git a/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsx b/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsxindex 3d9a5f0d4197..2481d2d49101 100644--- a/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsx+++ b/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsx@@ -307,6 +307,12 @@ function DeliverySection(): JSX.Element {)}</LemonField>)}+ {!actionForm.channel && (+ <span className="text-xs text-muted">+ No channel selected — this summary will appear on the scanner page and in its run history, without a+ Slack notification.+ </span>+ )}</div>)}@@ -393,7 +399,7 @@ export function ActionEditorSceneComponent(): JSX.Element {</LemonField><div>- <h4 className="mb-1">Deliver to Slack</h4>+ <h4 className="mb-1">Deliver to Slack (optional)</h4><DeliverySection /></div>diff --git a/products/replay_vision/frontend/replay_scanners/actionEditorSceneLogic.ts b/products/replay_vision/frontend/replay_scanners/actionEditorSceneLogic.tsindex 8d8347994d0f..0e55ef56fae3 100644--- a/products/replay_vision/frontend/replay_scanners/actionEditorSceneLogic.ts+++ b/products/replay_vision/frontend/replay_scanners/actionEditorSceneLogic.ts@@ -134,12 +134,11 @@ export const actionEditorSceneLogic = kea<actionEditorSceneLogicType>([forms(({ values }) => ({actionForm: {defaults: NEW_ACTION_FORM(),- errors: ({ name, cadence, integration_id, channel, min_score, max_score }: VisionActionForm) => ({+ errors: ({ name, cadence, min_score, max_score }: VisionActionForm) => ({name: !name?.trim() ? 'Give this summary a name' : undefined,// kea-forms can't carry a string error on the weekdays array, so hang it on `hour` to// mark the form invalid and block Enter-to-submit; the visible copy is the inline text.cadence: cadence.weekdays.length === 0 ? { hour: 'Pick at least one day' } : undefined,- channel: integration_id && !channel ? 'Pick a channel' : undefined,min_score:min_score != null && max_score != null && min_score > max_score? "Min score can't exceed max score"