Skip to content

: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.

chore(data-management): remove the comments list scene (#95388)

Rafael Audibertdfc1bdd4b2e2
diff --git a/common/storybook/storybook-timings.json b/common/storybook/storybook-timings.json
index 94f96d2dcdca..04a1b67eb5ac 100644
--- a/common/storybook/storybook-timings.json
+++ b/common/storybook/storybook-timings.json
@@ -803,10 +803,6 @@
"chromium": 5.93,
"webkit": 1.497
},
- "frontend/src/scenes/data-management/comments/Comments.stories.tsx": {
- "chromium": 16.358,
- "webkit": 2.867
- },
"frontend/src/scenes/data-management/definition/DefinitionView.stories.tsx": {
"chromium": 19.557,
"webkit": 2.311
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index bcac1b73df42..48906e3780c4 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -6636,18 +6636,6 @@ snapshots:
hash: v1.k794b7964.a7d45c674c8c2c5b4a953da0a6edc035c483190477dae0d543c1b6b2b1a6cf85.eslQPw_7Y7zBCu9G7OoVbBuAzSA-bqUoje0pbZUki6Q
scenes-app-data-management-actions--screen-action--light:
hash: v1.k794b7964.e1aa47cc899a55d9dbb81ab75b9359f0dbccc5b7e13d97788a4f425eebb564c3.1-xT7t4rwCttUwS4xNKzAG3aGXNBR6O5wXuui1lJ8R8
- scenes-app-data-management-comments--comments--dark:
- hash: v1.k794b7964.e21cefe38419260e81d5eda7e10656d10d1eff95ee3c0445c8a0b9be07b79086.PePuIy_3nZEV8tVawLvzhj85hMz3DwVUBpP0ggnCqeA
- scenes-app-data-management-comments--comments--light:
- hash: v1.k794b7964.076ee23a3e4c57dd0c23eefd989a78812f529c74ae7772088cd9d1cff7b9560e.d_NH6xdpHtm3Evs5ZHmAznpP-qPPIZ-IAcm8N5kmGV8
- scenes-app-data-management-comments--long-content--dark:
- hash: v1.k794b7964.ac676bd78dc717f34eeaee244c05ab51b9374181821d9c8dd75635e5fdaa9bf3.OBUsr9P7sUuSIcF02LqjgxIKHbwMoBZ8_8xSEKC188g
- scenes-app-data-management-comments--long-content--light:
- hash: v1.k794b7964.4c1e695a1a85874cf2de5a776397c2e7af9d876e8fd7a1278b0fa2a95505dc5a.lN1TgYq8y27RtmXwr-cl_jg59HFMGvsPuGmXmHssNmU
- scenes-app-data-management-comments--tasks--dark:
- hash: v1.k794b7964.69137b45e47825ddec7420b557bde761f06556d382f657b6a3f444434408d829.-8xrhABHTP1ErkjZgajyuAspQNOooTKcvNIoIrsMPcg
- scenes-app-data-management-comments--tasks--light:
- hash: v1.k794b7964.8d3afd317e1901a9a05ab3a00a45a64a963f99d4d148b9c8587744f6177c702a.IEIDJjwotMcFoE1eSI7a60z1eYi6NqCcWCXzVoennmc
scenes-app-data-management-definition-view--event-definition-metadata--medium--dark:
hash: v1.k794b7964.4570896f57f20da64793984191bd890cc7854b6f269bf89165bfc75109834935.aI92q2nrEuMv6vHVVZ8n3OyqrRrMowzV7_VGBX0juak
scenes-app-data-management-definition-view--event-definition-metadata--medium--light:
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/SidePanelDiscussion.tsx b/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/SidePanelDiscussion.tsx
index 5f387c2a05f6..ed131b181177 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/SidePanelDiscussion.tsx
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/SidePanelDiscussion.tsx
@@ -4,11 +4,11 @@ import { useEffect } from 'react'
import { IconChat } from '@posthog/icons'
import { humanizeScope } from 'lib/components/ActivityLog/humanizeActivity'
+import { CommentComposer } from 'lib/components/Comments/CommentComposer'
+import { CommentsList } from 'lib/components/Comments/CommentsList'
+import { CommentsLogicProps, commentsLogic } from 'lib/components/Comments/commentsLogic'
import { WarningHog } from 'lib/components/hedgehogs'
import { IconWithCount } from 'lib/lemon-ui/icons'
-import { CommentComposer } from 'scenes/comments/CommentComposer'
-import { CommentsList } from 'scenes/comments/CommentsList'
-import { CommentsLogicProps, commentsLogic } from 'scenes/comments/commentsLogic'
import { SidePanelPaneHeader } from '../../components/SidePanelPaneHeader'
import { SidePanelContentContainer } from '../../SidePanelContentContainer'
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/sidePanelDiscussionLogic.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/sidePanelDiscussionLogic.ts
index 1c66cf70844b..3fb9f657d852 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/sidePanelDiscussionLogic.ts
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/discussion/sidePanelDiscussionLogic.ts
@@ -3,8 +3,8 @@ import { loaders } from 'kea-loaders'
import { subscriptions } from 'kea-subscriptions'
import api from 'lib/api'
+import { CommentsLogicProps } from 'lib/components/Comments/commentsLogic'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
-import { CommentsLogicProps } from 'scenes/comments/commentsLogic'
import type { FeatureFlagsSet } from '../../../../../lib/logic/featureFlagLogic'
import { sidePanelContextLogic } from '../../sidePanelContextLogic'
diff --git a/frontend/src/scenes/comments/Comment.tsx b/frontend/src/lib/components/Comments/Comment.tsx
similarity index 100%
rename from frontend/src/scenes/comments/Comment.tsx
rename to frontend/src/lib/components/Comments/Comment.tsx
diff --git a/frontend/src/scenes/comments/CommentComposer.tsx b/frontend/src/lib/components/Comments/CommentComposer.tsx
similarity index 100%
rename from frontend/src/scenes/comments/CommentComposer.tsx
rename to frontend/src/lib/components/Comments/CommentComposer.tsx
diff --git a/frontend/src/scenes/comments/CommentsList.test.tsx b/frontend/src/lib/components/Comments/CommentsList.test.tsx
similarity index 100%
rename from frontend/src/scenes/comments/CommentsList.test.tsx
rename to frontend/src/lib/components/Comments/CommentsList.test.tsx
diff --git a/frontend/src/scenes/comments/CommentsList.tsx b/frontend/src/lib/components/Comments/CommentsList.tsx
similarity index 100%
rename from frontend/src/scenes/comments/CommentsList.tsx
rename to frontend/src/lib/components/Comments/CommentsList.tsx
diff --git a/frontend/src/scenes/comments/Discussions.stories.tsx b/frontend/src/lib/components/Comments/Discussions.stories.tsx
similarity index 100%
rename from frontend/src/scenes/comments/Discussions.stories.tsx
rename to frontend/src/lib/components/Comments/Discussions.stories.tsx
diff --git a/frontend/src/scenes/comments/SendCommentToSlackModal.tsx b/frontend/src/lib/components/Comments/SendCommentToSlackModal.tsx
similarity index 100%
rename from frontend/src/scenes/comments/SendCommentToSlackModal.tsx
rename to frontend/src/lib/components/Comments/SendCommentToSlackModal.tsx
diff --git a/frontend/src/scenes/comments/SlackDestinationPicker.tsx b/frontend/src/lib/components/Comments/SlackDestinationPicker.tsx
similarity index 100%
rename from frontend/src/scenes/comments/SlackDestinationPicker.tsx
rename to frontend/src/lib/components/Comments/SlackDestinationPicker.tsx
diff --git a/frontend/src/scenes/comments/__mocks__/discussions.json b/frontend/src/lib/components/Comments/__mocks__/discussions.json
similarity index 100%
rename from frontend/src/scenes/comments/__mocks__/discussions.json
rename to frontend/src/lib/components/Comments/__mocks__/discussions.json
diff --git a/frontend/src/scenes/comments/commentUtils.ts b/frontend/src/lib/components/Comments/commentUtils.ts
similarity index 100%
rename from frontend/src/scenes/comments/commentUtils.ts
rename to frontend/src/lib/components/Comments/commentUtils.ts
diff --git a/frontend/src/scenes/comments/commentsLogic.test.ts b/frontend/src/lib/components/Comments/commentsLogic.test.ts
similarity index 100%
rename from frontend/src/scenes/comments/commentsLogic.test.ts
rename to frontend/src/lib/components/Comments/commentsLogic.test.ts
diff --git a/frontend/src/scenes/comments/commentsLogic.ts b/frontend/src/lib/components/Comments/commentsLogic.ts
similarity index 99%
rename from frontend/src/scenes/comments/commentsLogic.ts
rename to frontend/src/lib/components/Comments/commentsLogic.ts
index 199be98621c8..c42a554eb93b 100644
--- a/frontend/src/scenes/comments/commentsLogic.ts
+++ b/frontend/src/lib/components/Comments/commentsLogic.ts
@@ -15,11 +15,10 @@ import { userLogic } from 'scenes/userLogic'
import { sidePanelDiscussionLogic } from '~/layout/navigation-3000/sidepanel/panels/discussion/sidePanelDiscussionLogic'
import { CommentType } from '~/types'
+import type { OrganizationMemberType, UserType } from '~/types'
import { commentsSendToSlackCreate } from 'products/platform_features/frontend/generated/api'
-import type { UserType } from '../../types'
-import type { OrganizationMemberType } from '../../types'
import { sendCommentToSlackLogic } from './sendCommentToSlackLogic'
import { discussionsSlug, getTextContent } from './utils'
@@ -381,7 +380,7 @@ export type commentsLogicType = MakeLogicType<
>
export const commentsLogic = kea<commentsLogicType>([
- path(() => ['scenes', 'notebooks', 'Notebook', 'commentsLogic']),
+ path(() => ['lib', 'components', 'Comments', 'commentsLogic']),
props({} as CommentsLogicProps),
key((props) => `${props.scope}-${props.item_id || ''}`),
diff --git a/frontend/src/scenes/comments/sendCommentToSlackLogic.ts b/frontend/src/lib/components/Comments/sendCommentToSlackLogic.ts
similarity index 98%
rename from frontend/src/scenes/comments/sendCommentToSlackLogic.ts
rename to frontend/src/lib/components/Comments/sendCommentToSlackLogic.ts
index a18808cfea83..072bfdc84ac6 100644
--- a/frontend/src/scenes/comments/sendCommentToSlackLogic.ts
+++ b/frontend/src/lib/components/Comments/sendCommentToSlackLogic.ts
@@ -62,7 +62,7 @@ export type sendCommentToSlackLogicType = MakeLogicType<
>
export const sendCommentToSlackLogic = kea<sendCommentToSlackLogicType>([
- path(['scenes', 'comments', 'sendCommentToSlackLogic']),
+ path(['lib', 'components', 'Comments', 'sendCommentToSlackLogic']),
connect(() => ({ values: [teamLogic, ['currentProjectId']] })),
actions({
openModal: (comment: CommentType) => ({ comment }),
diff --git a/frontend/src/scenes/comments/utils.ts b/frontend/src/lib/components/Comments/utils.ts
similarity index 100%
rename from frontend/src/scenes/comments/utils.ts
rename to frontend/src/lib/components/Comments/utils.ts
diff --git a/frontend/src/products.json b/frontend/src/products.json
index 8fc9d96e46d8..53a7f8ee6f66 100644
--- a/frontend/src/products.json
+++ b/frontend/src/products.json
@@ -366,7 +366,6 @@
},
{ "path": "SQL variables", "category": "Schema", "iconType": null, "type": null, "intents": [] },
{ "path": "Annotations", "category": "Metadata", "iconType": "annotation", "type": null, "intents": [] },
- { "path": "Comments", "category": "Metadata", "iconType": "comment", "type": null, "intents": [] },
{ "path": "Revenue definitions", "category": "Schema", "iconType": null, "type": null, "intents": [] }
]
}
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index f5beb74832ed..579ce188efe3 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -2720,14 +2720,6 @@ export const getTreeItemsMetadata = (): FileSystemImport[] => [
sceneKey: 'Annotations',
sceneKeys: ['Annotations'],
},
- {
- path: 'Comments',
- category: 'Metadata',
- iconType: 'comment',
- href: urls.comments(),
- sceneKey: 'Comments',
- sceneKeys: ['Comments'],
- },
{
path: 'Core events',
category: 'Schema',
diff --git a/frontend/src/scenes/data-management/DataManagementScene.tsx b/frontend/src/scenes/data-management/DataManagementScene.tsx
index c4ef5b290ce3..bdf4dc7db6f2 100644
--- a/frontend/src/scenes/data-management/DataManagementScene.tsx
+++ b/frontend/src/scenes/data-management/DataManagementScene.tsx
@@ -12,7 +12,6 @@ import { LemonTag } from 'lib/lemon-ui/LemonTag'
import { Tooltip } from 'lib/lemon-ui/Tooltip'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { capitalizeFirstLetter } from 'lib/utils/strings'
-import { Comments } from 'scenes/data-management/comments/Comments'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene, SceneExport } from 'scenes/sceneTypes'
import { CoreEventsSettings } from 'scenes/settings/environment/CoreEventsSettings'
@@ -39,7 +38,6 @@ export enum DataManagementTab {
EventDefinitions = 'events',
PropertyDefinitions = 'properties',
SchemaManagement = 'schema',
- Comments = 'comments',
History = 'history',
IngestionWarnings = 'warnings',
IngestionWarningsV2 = 'warnings-v2',
@@ -109,13 +107,6 @@ const tabs: Record<DataManagementTab, TabConfig> = {
content: <SchemaManagement />,
flag: FEATURE_FLAGS.SCHEMA_MANAGEMENT,
},
- [DataManagementTab.Comments]: {
- url: urls.comments(),
- content: <Comments />,
- label: 'Comments',
- buttons: undefined,
- tooltipDocLink: 'https://posthog.com/docs/data/comments',
- },
[DataManagementTab.History]: {
url: urls.dataManagementHistory(),
label: 'History',
@@ -267,15 +258,6 @@ const dataManagementSceneLogic = kea<dataManagementSceneLogicType>([
iconType: 'revenue_analytics',
},
]
- } else if (tab === DataManagementTab.Comments) {
- return [
- {
- key: Scene.Comments,
- name: sceneConfigurations[Scene.Comments].name,
- path: urls.comments(),
- iconType: sceneConfigurations[Scene.Comments].iconType || 'default_icon_type',
- },
- ]
} else if (tab === DataManagementTab.IngestionWarnings) {
return [
{
diff --git a/frontend/src/scenes/data-management/comments/Comments.stories.tsx b/frontend/src/scenes/data-management/comments/Comments.stories.tsx
deleted file mode 100644
index 17854fd7d050..000000000000
--- a/frontend/src/scenes/data-management/comments/Comments.stories.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import { Meta, StoryObj } from '@storybook/react'
-
-import { App } from 'scenes/App'
-import { urls } from 'scenes/urls'
-
-import { mswDecorator } from '~/mocks/browser'
-
-import commentsLongJson from './__mocks__/comments-long.json'
-import commentsTasksJson from './__mocks__/comments-tasks.json'
-import commentsJson from './__mocks__/comments.json'
-
-const meta: Meta = {
- component: App,
- title: 'Scenes-App/Data Management/Comments',
- parameters: {
- layout: 'fullscreen',
- viewMode: 'story',
- mockDate: '2023-01-28', // To stabilize relative dates
- pageUrl: urls.comments(),
- },
- decorators: [
- mswDecorator({
- get: {
- '/api/projects/:team_id/comments/': commentsJson,
- },
- }),
- ],
-}
-export default meta
-
-type Story = StoryObj<{}>
-export const Comments: Story = {}
-
-export const LongContent: Story = {
- decorators: [
- mswDecorator({
- get: {
- '/api/projects/:team_id/comments/': commentsLongJson,
- },
- }),
- ],
-}
-
-export const Tasks: Story = {
- decorators: [
- mswDecorator({
- get: {
- '/api/projects/:team_id/comments/': commentsTasksJson,
- },
- }),
- ],
-}
diff --git a/frontend/src/scenes/data-management/comments/Comments.tsx b/frontend/src/scenes/data-management/comments/Comments.tsx
deleted file mode 100644
index b4c9ac3a40bf..000000000000
--- a/frontend/src/scenes/data-management/comments/Comments.tsx
+++ /dev/null
@@ -1,265 +0,0 @@
-import clsx from 'clsx'
-import { useActions, useValues } from 'kea'
-import { useEffect } from 'react'
-
-import * as reporterPng from '@posthog/brand/hoggies/png/reporter'
-import { IconTrash } from '@posthog/icons'
-import { LemonButton, LemonCheckbox, LemonInput, LemonSelect, Tooltip } from '@posthog/lemon-ui'
-
-import { pngHoggie } from 'lib/brand/hoggies'
-import { MemberSelect } from 'lib/components/MemberSelect'
-import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'
-import { TZLabel } from 'lib/components/TZLabel'
-import { dayjs } from 'lib/dayjs'
-import { IconOpenInApp } from 'lib/lemon-ui/icons'
-import { LemonTable, LemonTableColumns } from 'lib/lemon-ui/LemonTable'
-import { LemonTag } from 'lib/lemon-ui/LemonTag/LemonTag'
-import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
-import { getText } from 'scenes/comments/Comment'
-import { sceneConfigurations } from 'scenes/scenes'
-import { Scene } from 'scenes/sceneTypes'
-import { userLogic } from 'scenes/userLogic'
-
-import { SceneContent } from '~/layout/scenes/components/SceneContent'
-import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
-import { ProductKey } from '~/queries/schema/schema-general'
-import { CommentType } from '~/types'
-
-import { SCOPE_OPTIONS, commentsLogic, openURLFor } from './commentsLogic'
-
-const HedgehogReporter = pngHoggie(reporterPng)
-
-const KIND_OPTIONS = [
- { value: 'any', label: 'Any' },
- { value: 'comment', label: 'Comments' },
- { value: 'task', label: 'Tasks' },
-] as const
-
-const COMPLETED_OPTIONS = [
- { value: 'any', label: 'Any' },
- { value: 'open', label: 'Open' },
- { value: 'completed', label: 'Completed' },
-] as const
-
-export function Comments(): JSX.Element {
- const { user } = useValues(userLogic)
-
- const {
- comments,
- shouldShowEmptyState,
- commentsLoading,
- scope,
- filterCreatedBy,
- searchText,
- kind,
- completedFilter,
- } = useValues(commentsLogic)
-
- const {
- setScope,
- setFilterCreatedBy,
- setSearchText,
- setKind,
- setCompletedFilter,
- deleteComment,
- completeComment,
- reopenComment,
- loadComments,
- } = useActions(commentsLogic)
-
- useEffect(() => {
- loadComments()
- }, [loadComments])
-
- const columns: LemonTableColumns<CommentType> = [
- {
- title: 'Comment',
- key: 'content',
- width: '45%',
- render: function RenderComment(_, comment: CommentType): JSX.Element {
- const isCompleted = !!comment.completed_at
- const completionTooltip = isCompleted
- ? `Completed by ${comment.completed_by?.first_name ?? 'Unknown user'}`
- : 'Mark as complete'
- return (
- <div className="flex items-center gap-2">
- {comment.is_task ? (
- <Tooltip title={completionTooltip}>
- <LemonCheckbox
- checked={isCompleted}
- onChange={() => (isCompleted ? reopenComment(comment) : completeComment(comment))}
- data-attr="comment-task-checkbox"
- />
- </Tooltip>
- ) : null}
- <div
- className={clsx(
- 'whitespace-pre-wrap break-words max-h-64 overflow-y-auto min-w-0 flex-1',
- isCompleted && 'line-through text-secondary'
- )}
- data-attr="comment-scene-comment-title-rendered-content"
- >
- {getText(comment)}
- </div>
- </div>
- )
- },
- },
- {
- title: `Timestamp`,
- dataIndex: 'created_at',
- render: function RenderCreatedAt(_, comment: CommentType): JSX.Element {
- return <TZLabel time={dayjs(comment.created_at)} />
- },
- sorter: (a, b) => dayjs(a.created_at).diff(dayjs(b.created_at)),
- },
- {
- title: 'Kind',
- key: 'kind',
- render: function RenderKind(_, comment: CommentType): JSX.Element {
- return <span>{comment.is_task ? 'Task' : 'Comment'}</span>
- },
- },
- {
- title: 'Scope',
- key: 'scope',
- render: function RenderScope(_, comment: CommentType): JSX.Element {
- return <LemonTag className="uppercase">{comment.scope}</LemonTag>
- },
- },
- {
- title: 'Created by',
- dataIndex: 'created_by',
- render: function RenderCreatedBy(_: any, comment: CommentType) {
- return (
- <div className="flex flex-row items-center">
- <ProfilePicture user={comment.created_by} showName size="md" type="person" />
- </div>
- )
- },
- sorter: (a, b) =>
- (a.created_by?.first_name || a.created_by?.email || '').localeCompare(
- b.created_by?.first_name || b.created_by?.email || ''
- ),
- },
- {
- key: 'actions',
- width: 0,
- render: function RenderActions(_, comment: CommentType): JSX.Element {
- const canEdit = user?.uuid === comment.created_by?.uuid
- return (
- <div className="flex">
- <>
- <LemonButton
- icon={<IconTrash />}
- size="small"
- status="danger"
- onClick={() => deleteComment(comment.id)}
- disabledReason={canEdit ? undefined : 'You can only delete your own comments'}
- data-attr="comment-management-scene-delete"
- />
- <LemonButton
- icon={<IconOpenInApp />}
- size="small"
- to={openURLFor(comment) || ''}
- disabledReason={
- openURLFor(comment)
- ? undefined
- : 'We are not able to link to this comment type 🙈tell us you want to be able to!'
- }
- data-attr="comment-management-scene-open"
- />
- </>
- </div>
- )
- },
- },
- ]
-
- return (
- <SceneContent data-attr="comments-management-scene">
- <SceneTitleSection
- name={sceneConfigurations[Scene.Comments].name}
- description={sceneConfigurations[Scene.Comments].description}
- resourceType={{
- type: sceneConfigurations[Scene.Comments].iconType || 'default_icon_type',
- }}
- />
- <div className="flex flex-row gap-4 justify-between">
- <div className="flex flex-row items-center gap-2">
- <LemonInput
- type="search"
- placeholder="Search comments..."
- value={searchText}
- onChange={setSearchText}
- size="small"
- />
- </div>
-
- <div>
- <div className="flex flex-row items-center gap-4 flex-wrap">
- <div className="flex flex-row items-center gap-2">
- <div>Kind:</div>
- <LemonSelect options={[...KIND_OPTIONS]} value={kind} onSelect={setKind} size="small" />
- </div>
-
- {kind === 'task' ? (
- <div className="flex flex-row items-center gap-2">
- <div>Status:</div>
- <LemonSelect
- options={[...COMPLETED_OPTIONS]}
- value={completedFilter}
- onSelect={setCompletedFilter}
- size="small"
- />
- </div>
- ) : null}
-
- <div className="flex flex-row items-center gap-2">
- <div>Scope:</div>
- <LemonSelect options={SCOPE_OPTIONS} value={scope} onSelect={setScope} size="small" />
- </div>
-
- <div className="flex items-center gap-2">
- <span>Created by:</span>
- <MemberSelect
- value={filterCreatedBy}
- onChange={(user) => {
- setFilterCreatedBy(user?.uuid ?? null)
- }}
- />
- </div>
- </div>
- </div>
- </div>
-
- <div data-attr="comments-content">
- <div className="mt-4">
- <ProductIntroduction
- productName="Comments"
- productKey={ProductKey.COMMENTS}
- thingName="comment"
- description="Comments allow you to provide context and discussions on various elements in PostHog."
- isEmpty={shouldShowEmptyState}
- customHog={HedgehogReporter}
- />
- </div>
- {!shouldShowEmptyState && (
- <LemonTable
- data-attr="comments-table"
- rowKey="id"
- dataSource={comments}
- columns={columns}
- defaultSorting={{
- columnKey: 'created_at',
- order: -1,
- }}
- noSortingCancellation
- loading={commentsLoading}
- emptyState="No comments found"
- />
- )}
- </div>
- </SceneContent>
- )
-}
diff --git a/frontend/src/scenes/data-management/comments/__mocks__/comments-long.json b/frontend/src/scenes/data-management/comments/__mocks__/comments-long.json
deleted file mode 100644
index deaa258792a3..000000000000
--- a/frontend/src/scenes/data-management/comments/__mocks__/comments-long.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "next": null,
- "previous": null,
- "results": [
- {
- "id": "01984696-0000-0000-0000-0000000000ee",
- "created_by": {
- "id": 2,
- "uuid": "019838c5-64ac-0000-9f43-aaaaaaaaaaaa",
- "distinct_id": "aaaaAAAAbbbbBBBBccccCCCCddddDDDDeeeeEEEEffff",
- "first_name": "Mira",
- "last_name": "Sato",
- "email": "[email protected]",
- "is_email_verified": true,
- "hedgehog_config": null,
- "role_at_organization": "engineering"
- },
- "deleted": false,
- "content": "Full-session write-up from today's moderated research call with the Acme Growth team. This is the longest comment on purpose — it should exercise the max-h-64 overflow cap and show a scrollbar inside the cell rather than blowing the row height out.\n\nContext\n-------\nMira drove, two PMs observed. Goal: understand why Acme's weekly \"Monday metrics\" ritual is taking ~40 minutes instead of the ~10 minutes we thought it would. Recording starts at 00:03:12 (real session start) and the decision moments are timestamped below so future-us can jump straight there.\n\nTimeline\n--------\n- 00:05:14 — user opens the dashboard, immediately flinches at the load time. First thought out loud: \"is this broken?\" It isn't — the dashboard is slow because four of the tiles are funnels filtered to last-90-days with breakdown-by-browser, which we all know is a pathological query for the current query engine. Note for self: we should either cache these or push a warning when a user configures a funnel that is going to take >5s.\n- 00:09:41 — user tries to filter one of the tiles by cohort. Clicks the filter icon, gets the property filter instead. This is the UX bug we already have a ticket for (#48217) but today confirmed the cost: it took the user ~45 seconds to realise the filter they applied wasn't the cohort filter, and they only noticed when the numbers didn't match what they expected.\n- 00:17:03 — user reaches for export, lands in the overflow menu, struggles for ~40s before finding the CSV option. This is the same issue as #51902 — export is hidden behind the ⋯ menu and the affordance is weak. Low-hanging fix.\n- 00:26:48 — user tries to save the dashboard as a \"shared view\" so their team can look at the same thing. Confused by the difference between \"pin\", \"share\", and \"save as template\". In their words: \"there are too many save buttons.\" Their mental model is one action — \"give this to my team\" — and our UI fragments that across three features.\n- 00:38:22 — user gives up on the built-in PDF export and pastes a screenshot into Notion. This is signal worth paying attention to: when the official escape hatch is too slow or too hidden, the unofficial one wins, and we lose telemetry about who is reading the report.\n\nFollow-ups\n----------\n1. Short term — promote CSV export out of the overflow menu on trends, funnels, and retention (same fix as #51902).\n2. Short term — add a preflight warning when a funnel breakdown is likely to be slow (>5s p50 for the selected date range). The warning should suggest materializing the funnel or reducing the breakdown cardinality.\n3. Medium term — consolidate the \"save / pin / share\" triumvirate. A single \"share with team\" entry point would collapse the decision tree from three options to one.\n4. Medium term — fix #48217 so the filter icon opens the cohort filter, not the property filter. We have been sitting on this for a quarter and it is still the #1 source of \"wrong number\" tickets.\n5. Longer term — instrument the PDF/CSV export pipeline so we can see how often users fall back to manual screenshots. If we can measure it we can fix it; right now we are guessing.\n\nQuotes worth saving\n-------------------\n> \"There are too many save buttons.\"\n> \"I don't trust the numbers when the page takes this long to load.\"\n> \"Just let me send this to Slack.\"\n\nNext step: schedule a 30 min with the growth platform team to sequence the short-term fixes. Mira to write up a one-pager by end of week; link will live in this thread when it exists.",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T12:10:00.000000Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T19:45:00.000Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01984696-0000-0000-0000-00000000bbbb",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "User struggled to find the export button — it's hidden behind the overflow menu and they spent about 40 seconds hovering over the top-right area before giving up.\n\nFollow-ups:\n- Promote the export action out of the overflow menu on the trends view\n- Check whether the same issue shows up for funnels and retention\n- Write a short loom walking through what the user tried",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T12:05:00.000000Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T19:35:47.216Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01984696-0000-0000-0000-00000000cccc",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "David",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "Repro: open the session, click the timeline scrubber, drag past the 3-minute mark. The page briefly shows a 'connection lost' toast even though the network tab is quiet. Seems related to the websocket reconnect logic we changed last week. Needs a real repro in Playwright before we can triage.",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T12:03:00.000000Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T19:38:12.010Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01984696-0000-0000-0000-00000000dddd",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "quick fix",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T12:01:00.000000Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T19:40:00.000Z"
- },
- "scope": "recording",
- "source_comment": null
- }
- ]
-}
diff --git a/frontend/src/scenes/data-management/comments/__mocks__/comments-tasks.json b/frontend/src/scenes/data-management/comments/__mocks__/comments-tasks.json
deleted file mode 100644
index e83dd3d6d3ce..000000000000
--- a/frontend/src/scenes/data-management/comments/__mocks__/comments-tasks.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "next": null,
- "previous": null,
- "results": [
- {
- "id": "01984695-c93f-0000-a115-d4fa40b8a100",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "abc",
- "first_name": "Ric",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "Empty state copy reads weird here — needs a rewrite.",
- "rich_content": null,
- "version": 0,
- "created_at": "2026-04-18T11:54:38.276511Z",
- "item_id": "019da00c-489a-763b-a27a-b7b8bfb4abc5",
- "item_context": {
- "time_in_recording": "2026-04-18T11:25:32.000Z"
- },
- "scope": "Replay",
- "source_comment": null,
- "is_task": true,
- "completed_at": null,
- "completed_by": null
- },
- {
- "id": "01984695-c93f-0000-a115-d4fa40b8a101",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "abc",
- "first_name": "Ric",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "Submit button doesn't show loading state on slow networks.",
- "rich_content": null,
- "version": 0,
- "created_at": "2026-04-17T09:12:00.000Z",
- "item_id": "019d9912-aaaa-bbbb-cccc-ddddeeeeffff",
- "item_context": {
- "time_in_recording": "2026-04-17T09:14:08.000Z"
- },
- "scope": "Replay",
- "source_comment": null,
- "is_task": true,
- "completed_at": "2026-04-19T15:00:00.000Z",
- "completed_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "abc",
- "first_name": "Ric",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- }
- },
- {
- "id": "01984695-c93f-0000-a115-d4fa40b8a102",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "abc",
- "first_name": "Ric",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "Looks good, ship it.",
- "rich_content": null,
- "version": 0,
- "created_at": "2026-04-15T10:00:00.000Z",
- "item_id": "6",
- "item_context": null,
- "scope": "Insight",
- "source_comment": null,
- "is_task": false,
- "completed_at": null,
- "completed_by": null
- }
- ]
-}
diff --git a/frontend/src/scenes/data-management/comments/__mocks__/comments.json b/frontend/src/scenes/data-management/comments/__mocks__/comments.json
deleted file mode 100644
index dadd8fb676a9..000000000000
--- a/frontend/src/scenes/data-management/comments/__mocks__/comments.json
+++ /dev/null
@@ -1,582 +0,0 @@
-{
- "next": null,
- "previous": null,
- "results": [
- {
- "id": "01984695-c93f-0000-a115-d4fa40b8a1e5",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "link should work",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:54:38.276511Z",
- "item_id": "6",
- "item_context": {
- "short_id": "13IBlkov"
- },
- "scope": "Insight",
- "source_comment": null
- },
- {
- "id": "01984694-d35c-0000-a454-c3e96076cefa",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-000000000000",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "David",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "testing",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:53:35.327611Z",
- "item_id": "6",
- "item_context": null,
- "scope": "Insight",
- "source_comment": null
- },
- {
- "id": "01984691-738f-0000-a663-7d2c2152332a",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "on an insight",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:49:54.193203Z",
- "item_id": "6",
- "item_context": null,
- "scope": "Insight",
- "source_comment": null
- },
- {
- "id": "01984691-4a49-0000-adad-9bf5b81b0ea4",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "what is this?",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:49:43.630045Z",
- "item_id": null,
- "item_context": null,
- "scope": "Dashboard",
- "source_comment": null
- },
- {
- "id": "01984668-3cd1-0000-5b14-2d7ca10b5435",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "reply to it",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:04:53.203592Z",
- "item_id": "6",
- "item_context": null,
- "scope": "Insight",
- "source_comment": null
- },
- {
- "id": "01984668-1f7f-0000-5ab4-4b08c7d895fb",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "testing the insight thingy",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:04:45.698813Z",
- "item_id": "6",
- "item_context": null,
- "scope": "Insight",
- "source_comment": null
- },
- {
- "id": "01984665-7191-0000-00de-058e0172fdf8",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "geese",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:01:50.099047Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T23:14:02.361Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01984665-5cf8-0000-d726-1c1ae665c772",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "goose",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-26T11:01:44.825923Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T22:11:17.590Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983d77-4409-0000-6b16-4b1c7069d9b6",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "esfasdafad \n\n![Screenshot 2025-07-24 at 13.41.32.png](http://localhost:8010/uploaded_media/01983d77-3e2f-0000-3523-a6f80e2ee1e0)",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-24T17:24:43.146942Z",
- "item_id": "01983b22-4530-7051-931b-65d904c55083",
- "item_context": {
- "time_in_recording": "2025-07-24T06:51:49.983Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983d77-1a82-0000-1b38-60649b9d0fb3",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "😎",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-24T17:24:32.516256Z",
- "item_id": "01983b22-4530-7051-931b-65d904c55083",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-24T06:59:16.925Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983998-5d68-0000-145b-c6bbe8b592cf",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "🫥",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T23:22:23.467884Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T21:30:34.853Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983984-3bc3-0000-140a-d95ce3081b9e",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "fasdadsadafada",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T23:00:24.133330Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T20:56:38.256Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983984-0c24-0000-6108-9da177a69c1f",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "🤢",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T23:00:11.942258Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T20:45:20.294Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "0198397b-c412-0000-c270-8e7d6a7b033c",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "😏",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T22:51:09.203790Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:35:47.216000+00:00"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983954-1d4f-0000-7b25-79a2f038bbc7",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "😏",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T22:07:50.609502Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:35:51.675Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983953-e4bf-0000-1b75-f78c0e20f54f",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "🥶",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T22:07:36.130350Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:35:37.209Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983953-cd80-0000-9e3c-64b0d129b8b6",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "😎",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T22:07:30.178545Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:35:31.254Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983953-9c8c-0000-88ad-812fddcf5252",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "🥶",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T22:07:17.648343Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:38:06.943Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983953-79ae-0000-c509-e1bcfabbb61e",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "😀",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T22:07:08.720764Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:38:15.079Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "01983953-63ea-0000-a087-2666d5b5c0f6",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "😀",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T22:07:03.153078Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:35:45.536Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "0198393e-3625-0000-7c6c-09c415cdca2f",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "testing updated 2",
- "rich_content": null,
- "version": 2,
- "created_at": "2025-07-23T21:43:55.188497Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T19:37:30.387Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "019838f3-1bab-0000-fce8-04be1d6b6fe3",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "💖",
- "rich_content": null,
- "version": 1,
- "created_at": "2025-07-23T20:21:53.197354Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "time_in_recording": "2025-07-23T19:37:24.387Z"
- },
- "scope": "recording",
- "source_comment": null
- },
- {
- "id": "019838c9-d3bb-0000-dae0-18031d78ad67",
- "created_by": {
- "id": 1,
- "uuid": "019838c5-64ac-0000-9f43-17f1bf64f508",
- "distinct_id": "xugZUZjVMSe5Ceo67Y1KX85kiQqB4Gp5OSdC02cjsWl",
- "first_name": "fasda",
- "last_name": "",
- "email": "[email protected]",
- "is_email_verified": false,
- "hedgehog_config": null,
- "role_at_organization": "other"
- },
- "deleted": false,
- "content": "😏",
- "rich_content": null,
- "version": 0,
- "created_at": "2025-07-23T19:36:47.813482Z",
- "item_id": "019838c8-8f12-7dfa-b651-abf957639b4b",
- "item_context": {
- "is_emoji": true,
- "time_in_recording": "2025-07-23T19:35:47.216Z"
- },
- "scope": "recording",
- "source_comment": null
- }
- ]
-}
diff --git a/frontend/src/scenes/data-management/comments/commentsLogic.ts b/frontend/src/scenes/data-management/comments/commentsLogic.ts
deleted file mode 100644
index cdfd78ecdf41..000000000000
--- a/frontend/src/scenes/data-management/comments/commentsLogic.ts
+++ /dev/null
@@ -1,341 +0,0 @@
-import { MakeLogicType, actions, connect, kea, listeners, path, reducers, selectors } from 'kea'
-import { loaders } from 'kea-loaders'
-import posthog from 'posthog-js'
-
-import { LemonSelectOption, lemonToast } from '@posthog/lemon-ui'
-
-import api from 'lib/api'
-import { capitalizeFirstLetter } from 'lib/utils/strings'
-import { getRecordingLinkInfo } from 'scenes/comments/commentUtils'
-import { teamLogic } from 'scenes/teamLogic'
-import { urls } from 'scenes/urls'
-import { userLogic } from 'scenes/userLogic'
-
-import { ActivityScope, CommentType, InsightShortId } from '~/types'
-
-import type { TeamPublicType, TeamType } from '../../../types'
-import type { UserType } from '../../../types'
-
-export const SCOPE_OPTIONS: LemonSelectOption<ActivityScope | null>[] = Object.values(ActivityScope).map((scope) => ({
- value: scope,
- label: capitalizeFirstLetter(scope),
-}))
-SCOPE_OPTIONS.unshift({
- value: null,
- label: 'Any',
-})
-
-const replayUrlWithTimestamp = (c: CommentType): string | null => getRecordingLinkInfo(c)?.url ?? null
-
-const openUrls: Partial<Record<ActivityScope, (c: CommentType) => string | null>> = {
- [ActivityScope.INSIGHT]: (c) =>
- c.item_context?.short_id ? urls.insightView(c.item_context?.short_id as InsightShortId) : null,
- [ActivityScope.REPLAY]: replayUrlWithTimestamp,
- [ActivityScope.RECORDING]: replayUrlWithTimestamp,
- [ActivityScope.DASHBOARD]: (c) => (c.item_id ? urls.dashboard(c.item_id) : null),
- [ActivityScope.FEATURE_FLAG]: (c) => (c.item_id ? urls.featureFlag(c.item_id) : null),
- [ActivityScope.EXPERIMENT]: (c) => (c.item_id ? urls.experiment(c.item_id) : null),
- [ActivityScope.COHORT]: (c) => (c.item_id ? urls.cohort(c.item_id) : null),
- [ActivityScope.PERSON]: (c) => (c.item_id ? urls.personByUUID(c.item_id) : null),
- [ActivityScope.ACTION]: (c) => (c.item_id ? urls.action(c.item_id) : null),
- [ActivityScope.EVENT_DEFINITION]: (c) => (c.item_id ? urls.eventDefinition(c.item_id) : null),
- [ActivityScope.PROPERTY_DEFINITION]: (c) => (c.item_id ? urls.propertyDefinition(c.item_id) : null),
- [ActivityScope.NOTEBOOK]: (c) => (c.item_id ? urls.notebook(c.item_id) : null),
- [ActivityScope.SURVEY]: (c) => (c.item_id ? urls.survey(c.item_id) : null),
- [ActivityScope.EARLY_ACCESS_FEATURE]: (c) => (c.item_id ? urls.earlyAccessFeature(c.item_id) : null),
- [ActivityScope.ERROR_TRACKING_ISSUE]: (c) => (c.item_id ? urls.errorTrackingIssue(c.item_id) : null),
- [ActivityScope.USER_INTERVIEW]: (c) => (c.item_id ? urls.userInterview(c.item_id) : null),
- // These scopes don't have direct URLs or need special handling:
- [ActivityScope.GROUP]: (c) =>
- c.item_context?.group_type_index && c.item_id ? urls.group(c.item_context.group_type_index, c.item_id) : null,
- [ActivityScope.PLUGIN]: (c) => (c.item_id ? urls.legacyPlugin(c.item_id) : null),
- [ActivityScope.HOG_FUNCTION]: (c) => (c.item_id ? urls.hogFunction(c.item_id) : null),
- // These don't have specific item URLs:
- [ActivityScope.TEAM]: () => urls.settings('project'),
- [ActivityScope.DATA_MANAGEMENT]: () => urls.eventDefinitions(),
- [ActivityScope.DATA_WAREHOUSE_SAVED_QUERY]: () => urls.database(),
- // Not linkable:
- [ActivityScope.PLUGIN_CONFIG]: () => null,
- [ActivityScope.COMMENT]: () => null,
-}
-
-export const openURLFor = (c: CommentType): string | null => {
- const commentURLFn = openUrls[c.scope as ActivityScope]
- if (!commentURLFn) {
- return null
- }
-
- const commentURL = commentURLFn(c)
- if (c.scope === ActivityScope.RECORDING) {
- // individual recording comments don't use the discussion panel
- return commentURL
- }
- return commentURL ? `${commentURL}#panel=discussion` : null
-}
-
-export type CommentKindFilter = 'any' | 'comment' | 'task'
-export type CommentCompletedFilter = 'any' | 'open' | 'completed'
-
-// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
-export interface commentsLogicValues {
- currentTeam: TeamPublicType | TeamType | null // teamLogic
- user: UserType | null // userLogic
- comments: CommentType[]
- commentsLoading: boolean
- completedFilter: CommentCompletedFilter
- filterCreatedBy: string | null
- hasAnySearch: boolean
- kind: CommentKindFilter
- scope: ActivityScope | null
- searchText: string
- shouldShowEmptyState: boolean
-}
-
-// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
-export interface commentsLogicActions {
- completeComment: (comment: CommentType) => {
- comment: CommentType
- }
- completeCommentFailure: (
- error: string,
- errorObject?: any
- ) => {
- error: string
- errorObject?: any
- }
- completeCommentSuccess: (
- comments: CommentType[],
- payload?: {
- comment: CommentType
- }
- ) => {
- comments: CommentType[]
- payload?: {
- comment: CommentType
- }
- }
- deleteComment: (id: string) => {
- id: string
- }
- deleteCommentFailure: (
- error: string,
- errorObject?: any
- ) => {
- error: string
- errorObject?: any
- }
- deleteCommentSuccess: (
- comments: CommentType[],
- payload?: {
- id: string
- }
- ) => {
- comments: CommentType[]
- payload?: {
- id: string
- }
- }
- loadComments: () => {
- value: true
- }
- loadCommentsFailure: (
- error: string,
- errorObject?: any
- ) => {
- error: string
- errorObject?: any
- }
- loadCommentsSuccess: (
- comments: CommentType[],
- payload?: {
- value: true
- }
- ) => {
- comments: CommentType[]
- payload?: {
- value: true
- }
- }
- reopenComment: (comment: CommentType) => {
- comment: CommentType
- }
- reopenCommentFailure: (
- error: string,
- errorObject?: any
- ) => {
- error: string
- errorObject?: any
- }
- reopenCommentSuccess: (
- comments: CommentType[],
- payload?: {
- comment: CommentType
- }
- ) => {
- comments: CommentType[]
- payload?: {
- comment: CommentType
- }
- }
- setCompletedFilter: (completed: CommentCompletedFilter) => {
- completed: CommentCompletedFilter
- }
- setFilterCreatedBy: (createdBy: string | null) => {
- createdBy: string | null
- }
- setKind: (kind: CommentKindFilter) => {
- kind: CommentKindFilter
- }
- setScope: (scope: ActivityScope | null) => {
- scope: ActivityScope | null
- }
- setSearchText: (searchText: string) => {
- searchText: string
- }
-}
-
-// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
-export interface commentsLogicMeta {
- __keaTypeGenInternalSelectorTypes: {
- hasAnySearch: (
- searchText: string,
- scope: ActivityScope | null,
- filterCreatedBy: string | null,
- kind: CommentKindFilter,
- completedFilter: CommentCompletedFilter
- ) => boolean
- shouldShowEmptyState: (comments: CommentType[], commentsLoading: boolean, hasAnySearch: boolean) => boolean
- }
-}
-
-export type commentsLogicType = MakeLogicType<
- commentsLogicValues,
- commentsLogicActions,
- Record<string, any>,
- commentsLogicMeta
->
-
-export const commentsLogic = kea<commentsLogicType>([
- path(['scenes', 'data-management', 'comments', 'commentsLogic']),
- connect(() => ({
- values: [teamLogic, ['currentTeam'], userLogic, ['user']],
- })),
- actions({
- setScope: (scope: ActivityScope | null) => ({ scope }),
- setFilterCreatedBy: (createdBy: string | null) => ({ createdBy }),
- setSearchText: (searchText: string) => ({ searchText }),
- setKind: (kind: CommentKindFilter) => ({ kind }),
- setCompletedFilter: (completed: CommentCompletedFilter) => ({ completed }),
- deleteComment: (id: string) => ({ id }),
- completeComment: (comment: CommentType) => ({ comment }),
- reopenComment: (comment: CommentType) => ({ comment }),
- loadComments: true,
- }),
- loaders(({ values }) => ({
- comments: [
- [] as CommentType[],
- {
- loadComments: async (_, breakpoint) => {
- await breakpoint(100)
- const params: Record<string, any> = {}
-
- if (values.scope) {
- params.scope = values.scope
- }
-
- if (values.filterCreatedBy) {
- params.created_by = values.filterCreatedBy
- }
-
- if (values.searchText.trim()) {
- params.search = values.searchText.trim()
- }
-
- if (values.kind !== 'any') {
- params.kind = values.kind
- }
-
- if (values.completedFilter !== 'any') {
- params.completed = values.completedFilter
- }
-
- const response = await api.comments.list(params)
- breakpoint()
- return response.results || []
- },
- deleteComment: async ({ id }: { id: CommentType['id'] }, breakpoint) => {
- await breakpoint(25)
- await api.comments.delete(id)
- return values.comments.filter((c) => c.id !== id)
- },
- completeComment: async ({ comment }: { comment: CommentType }) => {
- const updated = await api.comments.complete(comment.id)
- return values.comments.map((c) => (c.id === updated.id ? updated : c))
- },
- reopenComment: async ({ comment }: { comment: CommentType }) => {
- const updated = await api.comments.reopen(comment.id)
- return values.comments.map((c) => (c.id === updated.id ? updated : c))
- },
- },
- ],
- })),
- reducers(() => ({
- scope: [null as ActivityScope | null, { setScope: (_, { scope }) => scope }],
- filterCreatedBy: [null as string | null, { setFilterCreatedBy: (_, { createdBy }) => createdBy }],
- searchText: ['', { setSearchText: (_, { searchText }) => searchText }],
- kind: ['any' as CommentKindFilter, { setKind: (_, { kind }) => kind }],
- completedFilter: [
- 'any' as CommentCompletedFilter,
- {
- setCompletedFilter: (_, { completed }) => completed,
- // The Status select hides when Kind isn't 'task'; reset so it can't keep filtering.
- setKind: (state, { kind }) => (kind === 'task' ? state : 'any'),
- },
- ],
- })),
- selectors(() => ({
- hasAnySearch: [
- (s) => [s.searchText, s.scope, s.filterCreatedBy, s.kind, s.completedFilter],
- (
- searchText: string,
- scope: ActivityScope | null,
- filterCreatedBy: string | null,
- kind: CommentKindFilter,
- completedFilter: CommentCompletedFilter
- ) => {
- return !!searchText || !!scope || !!filterCreatedBy || kind !== 'any' || completedFilter !== 'any'
- },
- ],
- shouldShowEmptyState: [
- (s) => [s.comments, s.commentsLoading, s.hasAnySearch],
- (comments: CommentType[], commentsLoading: boolean, hasAnySearch: boolean): boolean => {
- return comments.length === 0 && !commentsLoading && !hasAnySearch
- },
- ],
- })),
- listeners(({ actions }) => ({
- setScope: actions.loadComments,
- setFilterCreatedBy: actions.loadComments,
- setSearchText: actions.loadComments,
- setKind: actions.loadComments,
- setCompletedFilter: actions.loadComments,
- deleteCommentSuccess: () => {
- lemonToast.success('Comment deleted')
- },
- deleteCommentFailure: (e) => {
- posthog.captureException(e, { action: 'data management scene deleting comment' })
- lemonToast.error('Could not delete comment, refresh and try again')
- },
- completeCommentFailure: (e) => {
- posthog.captureException(e, { action: 'data management scene completing comment' })
- lemonToast.error('Could not mark task complete, refresh and try again')
- },
- reopenCommentFailure: (e) => {
- posthog.captureException(e, { action: 'data management scene reopening comment' })
- lemonToast.error('Could not reopen task, refresh and try again')
- },
- // Re-fetch so the active Kind/Status filter drops any rows that no longer match.
- completeCommentSuccess: actions.loadComments,
- reopenCommentSuccess: actions.loadComments,
- })),
-])
diff --git a/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts b/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
index 7e3a598bfd5b..03410b299f90 100644
--- a/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
+++ b/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
@@ -25,6 +25,7 @@ import { lemonToast } from '@posthog/lemon-ui'
import api from 'lib/api'
import { getSeriesColor } from 'lib/colors'
import { activityLogLogic } from 'lib/components/ActivityLog/activityLogLogic'
+import { commentsLogic } from 'lib/components/Comments/commentsLogic'
import {
markdownCrc,
mergeNotebookMarkdownChanges,
@@ -41,7 +42,6 @@ import { downloadFile } from 'lib/utils/dom'
import { getCurrentTeamId } from 'lib/utils/getAppContext'
import { objectsEqual } from 'lib/utils/objects'
import { slugify } from 'lib/utils/strings'
-import { commentsLogic } from 'scenes/comments/commentsLogic'
import { urls } from 'scenes/urls'
import { userLogic } from 'scenes/userLogic'
diff --git a/frontend/src/scenes/sceneTypes.ts b/frontend/src/scenes/sceneTypes.ts
index 0ca8e872d816..8c7c2ae7e820 100644
--- a/frontend/src/scenes/sceneTypes.ts
+++ b/frontend/src/scenes/sceneTypes.ts
@@ -30,7 +30,6 @@ export enum Scene {
Cohort = 'Cohort',
CohortCalculationHistory = 'CohortCalculationHistory',
Cohorts = 'Cohorts',
- Comments = 'Comments',
CustomCss = 'CustomCss',
CustomerAnalytics = 'CustomerAnalytics',
CustomerAnalyticsAccount = 'CustomerAnalyticsAccount',
diff --git a/frontend/src/scenes/scenes.ts b/frontend/src/scenes/scenes.ts
index b43864ba5938..b024d62db7ce 100644
--- a/frontend/src/scenes/scenes.ts
+++ b/frontend/src/scenes/scenes.ts
@@ -119,12 +119,6 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
description: 'A catalog of identified persons and your created cohorts.',
iconType: 'cohort',
},
- [Scene.Comments]: {
- projectBased: true,
- name: 'Comments',
- description: 'Comments allow you to provide context and discussions on various elements in PostHog.',
- iconType: 'comment',
- },
[Scene.CustomerAnalytics]: { projectBased: true, name: 'Customer analytics' },
[Scene.Dashboard]: {
projectBased: true,
@@ -652,7 +646,6 @@ export const redirects: Record<
// The scene lives at /code-review (hyphen); catch the old underscore variant, keeping the
// ?review= / ?reviews_scope= deep links that PR status comments bake in
'/code_review': (_params, searchParams, hashParams) => combineUrl(urls.codeReview(), searchParams, hashParams).url,
- '/comments': () => urls.comments(),
'/dashboards': urls.dashboards(),
// New dashboards open in a modal on the list page. `/dashboard/new` is a guessed URL,
// so send it there with the modal open instead of matching `/dashboard/:id`.
@@ -854,7 +847,6 @@ export const routes: Record<string, [Scene | string, string]> = {
[urls.featureFlag(':id')]: [Scene.FeatureFlag, 'featureFlag'],
[urls.annotations()]: [Scene.Annotations, 'annotations'],
[urls.annotation(':id')]: [Scene.Annotations, 'annotation'],
- [urls.comments()]: [Scene.DataManagement, 'comments'],
[urls.variables()]: [Scene.DataManagement, 'variables'],
[urls.variableEdit(':id')]: [Scene.SqlVariableEdit, 'sqlVariableEdit'],
[urls.projectHomepage()]: [Scene.ProjectHomepage, 'projectHomepage'],
diff --git a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts
index 561c9046997e..7e014110cc20 100644
--- a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts
+++ b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts
@@ -24,6 +24,7 @@ import {
} from 'posthog-js/rrweb-types'
import api from 'lib/api'
+import { getText } from 'lib/components/Comments/Comment'
import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
import { FEATURE_FLAGS } from 'lib/constants'
import { Dayjs, dayjs } from 'lib/dayjs'
@@ -34,7 +35,6 @@ import { createFuse } from 'lib/utils/fuseSearch'
import { isString } from 'lib/utils/guards'
import { humanizeBytes } from 'lib/utils/numbers'
import { toParams } from 'lib/utils/url'
-import { getText } from 'scenes/comments/Comment'
import {
InspectorListItemPerformance,
performanceEventDataLogic,
diff --git a/frontend/src/scenes/urls.ts b/frontend/src/scenes/urls.ts
index eb2e7d80b4ee..4fb4c44cbb8f 100644
--- a/frontend/src/scenes/urls.ts
+++ b/frontend/src/scenes/urls.ts
@@ -10,7 +10,7 @@ import {
ProductKey,
SharingConfigurationSettings,
} from '~/queries/schema/schema-general'
-import { ActivityTab, AnnotationType, CommentType, OnboardingStepKey, SDKKey } from '~/types'
+import { ActivityTab, AnnotationType, OnboardingStepKey, SDKKey } from '~/types'
import type { MetricFormPrefill } from 'products/data_catalog/frontend/common'
@@ -151,8 +151,6 @@ export const urls = {
},
annotations: (): string => '/data-management/annotations',
annotation: (id: AnnotationType['id'] | ':id'): string => `/data-management/annotations/${id}`,
- comments: (): string => '/data-management/comments',
- comment: (id: CommentType['id'] | ':id'): string => `/data-management/comments/${id}`,
variables: (): string => '/data-management/variables',
variable: (id: string | ':id'): string => `/data-management/variables/${id}`,
variableEdit: (id: string | ':id'): string => `/data-management/variables/${id}/edit`,
diff --git a/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsx b/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsx
index c58ca886a944..104218a4f001 100644
--- a/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsx
+++ b/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsx
@@ -5,9 +5,9 @@ import type { MutableRefObject } from 'react'
import { IconEllipsis } from '@posthog/icons'
import { LemonMenu, LemonMenuItems } from '@posthog/lemon-ui'
+import { commentsLogic } from 'lib/components/Comments/commentsLogic'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'
-import { commentsLogic } from 'scenes/comments/commentsLogic'
import { AIConsentPopoverWrapper } from 'scenes/settings/organization/AIConsentPopoverWrapper'
import { sidePanelStateLogic } from '~/layout/navigation-3000/sidepanel/sidePanelStateLogic'
diff --git a/products/ai_observability/frontend/text-view/components/LineWithNumber.tsx b/products/ai_observability/frontend/text-view/components/LineWithNumber.tsx
index ff0613ff58df..ba99fb712c93 100644
--- a/products/ai_observability/frontend/text-view/components/LineWithNumber.tsx
+++ b/products/ai_observability/frontend/text-view/components/LineWithNumber.tsx
@@ -3,7 +3,7 @@ import { useEffect, useRef } from 'react'
import { LemonMenu, LemonMenuItems } from '@posthog/lemon-ui'
-import { commentsLogic } from 'scenes/comments/commentsLogic'
+import { commentsLogic } from 'lib/components/Comments/commentsLogic'
import { AIConsentPopoverWrapper } from 'scenes/settings/organization/AIConsentPopoverWrapper'
import { sidePanelStateLogic } from '~/layout/navigation-3000/sidepanel/sidePanelStateLogic'
diff --git a/products/conversations/frontend/scenes/ticket/ThreadDiscussions.test.tsx b/products/conversations/frontend/scenes/ticket/ThreadDiscussions.test.tsx
index 9231eaa9f59f..e749a94e1e7e 100644
--- a/products/conversations/frontend/scenes/ticket/ThreadDiscussions.test.tsx
+++ b/products/conversations/frontend/scenes/ticket/ThreadDiscussions.test.tsx
@@ -2,7 +2,7 @@ import '@testing-library/jest-dom'
import { cleanup, fireEvent, render, screen } from '@testing-library/react'
-import { CommentWithRepliesType } from 'scenes/comments/commentsLogic'
+import { CommentWithRepliesType } from 'lib/components/Comments/commentsLogic'
import type { CommentType } from '~/types'
import { ActivityScope } from '~/types'
diff --git a/products/conversations/frontend/scenes/ticket/ThreadDiscussions.tsx b/products/conversations/frontend/scenes/ticket/ThreadDiscussions.tsx
index 40dda58121f2..43e5cfe949c3 100644
--- a/products/conversations/frontend/scenes/ticket/ThreadDiscussions.tsx
+++ b/products/conversations/frontend/scenes/ticket/ThreadDiscussions.tsx
@@ -4,12 +4,12 @@ import { useEffect } from 'react'
import { IconChat } from '@posthog/icons'
import { LemonTag } from '@posthog/lemon-ui'
+import { getCommentAuthorName, getText } from 'lib/components/Comments/Comment'
+import { CommentWithRepliesType, commentsLogic } from 'lib/components/Comments/commentsLogic'
import { TZLabel } from 'lib/components/TZLabel'
import { IconSlack } from 'lib/lemon-ui/icons'
import { ProfileBubbles } from 'lib/lemon-ui/ProfilePicture/ProfileBubbles'
import { pluralize } from 'lib/utils/strings'
-import { getCommentAuthorName, getText } from 'scenes/comments/Comment'
-import { CommentWithRepliesType, commentsLogic } from 'scenes/comments/commentsLogic'
import { sidePanelStateLogic } from '~/layout/navigation-3000/sidepanel/sidePanelStateLogic'
import { ActivityScope, CommentType, SidePanelTab } from '~/types'
diff --git a/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.test.ts b/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.test.ts
index d7df3bdf26fe..880844a7706d 100644
--- a/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.test.ts
+++ b/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.test.ts
@@ -5,9 +5,9 @@ import posthog from 'posthog-js'
import { lemonToast } from '@posthog/lemon-ui'
+import { commentsLogic } from 'lib/components/Comments/commentsLogic'
import { FEATURE_FLAGS } from 'lib/constants'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
-import { commentsLogic } from 'scenes/comments/commentsLogic'
import { userLogic } from 'scenes/userLogic'
import { tagsModel } from '~/models/tagsModel'
diff --git a/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.ts b/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.ts
index d813b3fd137f..8140eb60324a 100644
--- a/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.ts
+++ b/products/conversations/frontend/scenes/ticket/supportTicketSceneLogic.ts
@@ -19,6 +19,7 @@ import posthog from 'posthog-js'
import { lemonToast } from '@posthog/lemon-ui'
+import { commentsLogic } from 'lib/components/Comments/commentsLogic'
import { FEATURE_FLAGS } from 'lib/constants'
import { dayjs } from 'lib/dayjs'
import { LemonDialog } from 'lib/lemon-ui/LemonDialog'
@@ -28,7 +29,6 @@ import { isUUIDLike } from 'lib/utils/guards'
import { markdownToHtml } from 'lib/utils/markdown'
import { objectsEqual } from 'lib/utils/objects'
import { fullName } from 'lib/utils/strings'
-import { commentsLogic } from 'scenes/comments/commentsLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
import { userLogic } from 'scenes/userLogic'
diff --git a/products/logs/frontend/components/LogsViewer/LogDetailsModal/LogComments.tsx b/products/logs/frontend/components/LogsViewer/LogDetailsModal/LogComments.tsx
index c683ccb64fbf..bcf4a8914375 100644
--- a/products/logs/frontend/components/LogsViewer/LogDetailsModal/LogComments.tsx
+++ b/products/logs/frontend/components/LogsViewer/LogDetailsModal/LogComments.tsx
@@ -1,6 +1,6 @@
-import { CommentComposer } from 'scenes/comments/CommentComposer'
-import { CommentsList } from 'scenes/comments/CommentsList'
-import { CommentsLogicProps } from 'scenes/comments/commentsLogic'
+import { CommentComposer } from 'lib/components/Comments/CommentComposer'
+import { CommentsList } from 'lib/components/Comments/CommentsList'
+import { CommentsLogicProps } from 'lib/components/Comments/commentsLogic'
import { ActivityScope } from '~/types'
diff --git a/products/product_analytics/manifest.tsx b/products/product_analytics/manifest.tsx
index efc94d9bda03..93bab5193b12 100644
--- a/products/product_analytics/manifest.tsx
+++ b/products/product_analytics/manifest.tsx
@@ -236,13 +236,5 @@ export const manifest: ProductManifest = {
sceneKey: 'Annotations',
sceneKeys: ['Annotations'],
},
- {
- path: 'Comments',
- category: 'Metadata',
- iconType: 'comment',
- href: urls.comments(),
- sceneKey: 'Comments',
- sceneKeys: ['Comments'],
- },
],
}
diff --git a/services/mcp/src/tools/links/app-url-manifest.json b/services/mcp/src/tools/links/app-url-manifest.json
index cf8d8cd1fca0..d0c0cf4d4e1d 100644
--- a/services/mcp/src/tools/links/app-url-manifest.json
+++ b/services/mcp/src/tools/links/app-url-manifest.json
@@ -309,16 +309,6 @@
"params": [],
"scope": "global"
},
- "comment": {
- "template": "/data-management/comments/{id}",
- "params": ["id"],
- "scope": "project"
- },
- "comments": {
- "template": "/data-management/comments",
- "params": [],
- "scope": "project"
- },
"communitySkills": {
"template": "/skills/community",
"params": [],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
index 5fe358461e4e..41f6b4205f69 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
@@ -13,7 +13,7 @@
"type": "object"
},
"url": {
- "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-gateway\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/billing/authorization_status\n/business-knowledge\n/canvas\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/comments\n/data-management/comments/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors/{handle}\n/engineering-analytics/health\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/test-health\n/engineering-analytics/workflows\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/error_tracking/{id}/fingerprints\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/self-driving\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/themes/custom-css\n/toolbar\n/tracing\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/flakiness\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
+ "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-gateway\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/billing/authorization_status\n/business-knowledge\n/canvas\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors/{handle}\n/engineering-analytics/health\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/test-health\n/engineering-analytics/workflows\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/error_tracking/{id}/fingerprints\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/self-driving\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/themes/custom-css\n/toolbar\n/tracing\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/flakiness\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
"type": "string"
}
},