:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(replay): demo @-mentions in comment modal story (#60915)
Arno Hillen461ff0090627
diff --git a/frontend/src/scenes/session-recordings/player/commenting/PlayerCommentModal.stories.tsx b/frontend/src/scenes/session-recordings/player/commenting/PlayerCommentModal.stories.tsxindex e6334118515f..4257b63cffae 100644--- a/frontend/src/scenes/session-recordings/player/commenting/PlayerCommentModal.stories.tsx+++ b/frontend/src/scenes/session-recordings/player/commenting/PlayerCommentModal.stories.tsx@@ -1,6 +1,7 @@import { Meta } from '@storybook/react'-import { BindLogic } from 'kea'+import { BindLogic, useActions } from 'kea'+import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'import { PlayerCommentModal } from 'scenes/session-recordings/player/commenting/PlayerFrameCommentOverlay'import { sessionRecordingPlayerLogic } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'@@ -14,11 +15,20 @@ const meta: Meta<typeof PlayerCommentModal> = {}export default meta+// Opening the overlay is what triggers the org-members load (see playerCommentOverlayLogic),+// so the @-mention autocomplete can resolve teammates. Drive it here so the story exercises+// that path and the mention list is populated when you type `@`.+function CommentingModal(): JSX.Element {+ const { setIsCommenting } = useActions(sessionRecordingPlayerLogic)+ useOnMountEffect(() => setIsCommenting(true))+ return <PlayerCommentModal />+}+export function Default(): JSX.Element {return (<div className="min-h-80 relative"><BindLogic logic={sessionRecordingPlayerLogic} props={{ sessionRecordingId: '23' }}>- <PlayerCommentModal />+ <CommentingModal /></BindLogic></div>)