diff --git a/frontend/src/scenes/insights/InsightPageHeader.tsx b/frontend/src/scenes/insights/InsightPageHeader.tsx index 3860f2eaea0ab..b5276abf9cf2c 100644 --- a/frontend/src/scenes/insights/InsightPageHeader.tsx +++ b/frontend/src/scenes/insights/InsightPageHeader.tsx @@ -42,7 +42,6 @@ import { AddToDashboardModal } from 'lib/components/AddToDashboard/AddToDashboar import { useState } from 'react' import { NewDashboardModal } from 'scenes/dashboard/NewDashboardModal' import { NotebookSelectButton } from 'scenes/notebooks/NotebookSelectButton/NotebookSelectButton' -import { NodeKind } from '~/queries/schema' export function InsightPageHeader({ insightLogicProps }: { insightLogicProps: InsightLogicProps }): JSX.Element { // insightSceneLogic @@ -259,10 +258,8 @@ export function InsightPageHeader({ insightLogicProps }: { insightLogicProps: In <> diff --git a/frontend/src/scenes/notebooks/Notebook/utils.ts b/frontend/src/scenes/notebooks/Notebook/utils.ts index 25a1f527abc1f..71c6d5fb48bf2 100644 --- a/frontend/src/scenes/notebooks/Notebook/utils.ts +++ b/frontend/src/scenes/notebooks/Notebook/utils.ts @@ -118,7 +118,6 @@ export const textContent = (node: any): string => { 'ph-feature-flag': customOrTitleSerializer, 'ph-feature-flag-code-example': customOrTitleSerializer, 'ph-image': customOrTitleSerializer, - 'ph-insight': customOrTitleSerializer, 'ph-person': customOrTitleSerializer, 'ph-query': customOrTitleSerializer, 'ph-recording': customOrTitleSerializer, diff --git a/frontend/src/scenes/notebooks/NotebookSelectButton/NotebookSelectButton.tsx b/frontend/src/scenes/notebooks/NotebookSelectButton/NotebookSelectButton.tsx index 1253cc9be246b..d1aa0fb4e9b65 100644 --- a/frontend/src/scenes/notebooks/NotebookSelectButton/NotebookSelectButton.tsx +++ b/frontend/src/scenes/notebooks/NotebookSelectButton/NotebookSelectButton.tsx @@ -104,7 +104,7 @@ export function NotebookSelectList(props: NotebookSelectProps): JSX.Element { return (
-
+
Query # replay timestamps are not at the top level, they're one-level down in a content array presence_match_structure = [{"content": [{"type": f"ph-{target}"}]}] id_match_structure = [{"content": [{"attrs": {"sessionRecordingId": match}}]}] + elif target == "query": + id_match_structure = [{"attrs": {"query": {"kind": "SavedInsightNode", "shortId": match}}}] if match == "true" or match is None: queryset = queryset.filter(content__content__contains=presence_match_structure)