: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(navigation): remove orphaned PosthogStories dead code (#68090)
Rafael Audibert4b3ede9b55a0
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex f3b1740b416c..e4c2379f7a22 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -6059,7 +6059,7 @@ snapshots:scenes-app-mcp-analytics--dashboard--dark:hash: v1.k794b7964.0ea60752a844fdeb315a7097c3dbec54b88c65e83e0754a0493a3e298caa8798.l4Fy_Gv11GiegC6l-OJGVfUoSpP__Xhx41X5GRc8uWAscenes-app-mcp-analytics--dashboard--light:- hash: v1.k794b7964.5ff783bc949d516121e4b3bcbe22dea0272ea1d06b96faf5fdbb195430420b79.QpMgijOyn69H-BXNJHXYY-maOdflsXoQAwcO7bYmzHY+ hash: v1.k794b7964.9acc446340c5debc0fcc6de75280f0867883d1b14ddc2c18615998185de5965e.Vkvw6DwC5LolW8drPPax0uEP1K4LTvV-nQXzWbWmriUscenes-app-mcp-analytics--intent-clustering--dark:hash: v1.k794b7964.4bf359b5089b714711c176bdbd5e454857e35935027ca46c161215957bcdff63.tuUCfVazgJFLRYPnMr4rBr_bdCHDOR4WINf5P7PHyCUscenes-app-mcp-analytics--intent-clustering--light:diff --git a/frontend/src/layout/navigation/PosthogStories/ExampleOverlayComponent.tsx b/frontend/src/layout/navigation/PosthogStories/ExampleOverlayComponent.tsxdeleted file mode 100644index 15d32b198d42..000000000000--- a/frontend/src/layout/navigation/PosthogStories/ExampleOverlayComponent.tsx+++ /dev/null@@ -1,43 +0,0 @@-import { CloseOverlayAction } from './storiesMap'--interface ExampleOverlayComponentProps {- closeOverlay: (action?: CloseOverlayAction) => void-}--export const ExampleOverlayComponent = ({ closeOverlay }: ExampleOverlayComponentProps): JSX.Element => {- return (- <div className="flex items-center justify-center h-full bg-white p-8">- <div className="text-center flex flex-col gap-2">- <h2 className="text-2xl font-bold mb-4">Custom Component Placeholder</h2>- <p className="text-gray-600 mb-6">Add your custom component code here</p>-- <div className="flex gap-2">- <button- onClick={() => closeOverlay(CloseOverlayAction.Previous)}- className="px-4 py-2 bg-yellow-500 text-white rounded hover:bg-yellow-700"- >- Previous story- </button>- <button- onClick={() => closeOverlay(CloseOverlayAction.Next)}- className="px-4 py-2 bg-orange-500 text-white rounded hover:bg-orange-700"- >- Next story- </button>- <button- onClick={() => closeOverlay(CloseOverlayAction.Overlay)}- className="px-4 py-2 bg-orange-500 text-white rounded hover:bg-orange-700"- >- Continue story- </button>- <button- onClick={() => closeOverlay(CloseOverlayAction.Modal)}- className="px-4 py-2 bg-red-500 text-white rounded hover:bg-red-700"- >- Close modal- </button>- </div>- </div>- </div>- )-}diff --git a/frontend/src/layout/navigation/PosthogStories/PizzaSurveyOverlayComponent.tsx b/frontend/src/layout/navigation/PosthogStories/PizzaSurveyOverlayComponent.tsxdeleted file mode 100644index 70e772d6acae..000000000000--- a/frontend/src/layout/navigation/PosthogStories/PizzaSurveyOverlayComponent.tsx+++ /dev/null@@ -1,57 +0,0 @@-import { useEffect } from 'react'--import { LemonButton } from '@posthog/lemon-ui'--// eslint-disable-next-line import/no-cycle-import { CloseOverlayAction } from './storiesMap'--interface PizzaSurveyOverlayComponentProps {- closeOverlay: (action?: CloseOverlayAction) => void-}--export const PizzaSurveyOverlayComponent = ({ closeOverlay }: PizzaSurveyOverlayComponentProps): JSX.Element => {- const clickPollButton = (): void => {- setTimeout(() => {- const button = document.getElementById('hogtok-pineapple-pizza-poll-button')- if (button) {- button.click()- }- }, 1000)- }-- useEffect(() => {- clickPollButton()-- const handleResize = (): void => {- clickPollButton()- }-- window.addEventListener('resize', handleResize)-- return () => {- window.removeEventListener('resize', handleResize)- }- }, [])-- return (- <div className="flex flex-col h-full bg-primary p-8">- <div className="flex-1 flex items-start justify-center">- <LemonButton id="hogtok-pineapple-pizza-poll-button" type="secondary">- Take survey- </LemonButton>- </div>-- <div className="flex-1 flex items-center justify-center text-3xl">- <strong>- There's only <em>one</em> right answer!- </strong>- </div>-- <div className="flex-1 flex items-end justify-center">- <LemonButton onClick={() => closeOverlay(CloseOverlayAction.Modal)} status="danger">- Close- </LemonButton>- </div>- </div>- )-}diff --git a/frontend/src/layout/navigation/PosthogStories/PosthogStoriesContainer.tsx b/frontend/src/layout/navigation/PosthogStories/PosthogStoriesContainer.tsxdeleted file mode 100644index cbbcb0572199..000000000000--- a/frontend/src/layout/navigation/PosthogStories/PosthogStoriesContainer.tsx+++ /dev/null@@ -1,115 +0,0 @@-import { useActions, useValues } from 'kea'-import posthog from 'posthog-js'--import { IconChevronRight } from '@posthog/icons'--import { storiesLogic } from './storiesLogic'-import { StoriesModal } from './StoriesModal'--export const PosthogStoriesContainer = (): JSX.Element => {- const { stories, isStoryViewed, storiesCollapsed } = useValues(storiesLogic)- const { setActiveGroupIndex, setOpenStoriesModal, setActiveStoryIndex, toggleStoriesCollapsed } =- useActions(storiesLogic)-- // Pre-compute viewed status for each story group to avoid redundant calculations- const storiesWithViewedStatus = stories.map((storyGroup) => ({- ...storyGroup,- hasViewedEntireGroup: storyGroup.stories.every((story) => isStoryViewed(story.id)),- }))-- // Sort stories so viewed groups appear at the end- const sortedStories = [...storiesWithViewedStatus].sort((a, b) => {- if (a.hasViewedEntireGroup && !b.hasViewedEntireGroup) {- return 1- } // a goes to end- if (!a.hasViewedEntireGroup && b.hasViewedEntireGroup) {- return -1- } // b goes to end- return 0 // maintain original order for same type- })-- return (- <>- <div className="flex items-center gap-2 px-1">- <button- onClick={toggleStoriesCollapsed}- className="flex items-center gap-2 hover:opacity-70 transition-opacity cursor-pointer"- title={storiesCollapsed ? 'Show stories' : 'Hide stories'}- >- <IconChevronRight- className={`w-3 h-3 opacity-80 transition-transform ${storiesCollapsed ? '' : 'rotate-90'}`}- />- <span className="text-sm font-medium text-text-3000">Stories</span>- </button>- </div>- {!storiesCollapsed && (- <div- id="dopamine-brainrot"- className="PosthogStoriesContainer flex flex-row gap-4 px-4 overflow-x-auto"- >- {sortedStories.map((storyGroup) => {- const { hasViewedEntireGroup } = storyGroup- const nextStoryIndex = hasViewedEntireGroup- ? 0- : storyGroup.stories.findIndex((story) => !isStoryViewed(story.id))- const nextStory = storyGroup.stories[nextStoryIndex]-- // Find original index for analytics- const originalIndex = stories.findIndex((s) => s.id === storyGroup.id)-- return (- <div- key={storyGroup.id}- className={`flex flex-col items-center gap-2 cursor-pointer hover:opacity-80 transition-opacity min-w-[64px] ${- hasViewedEntireGroup ? 'opacity-75' : ''- }`}- onClick={() => {- posthog.capture('posthog_story_group_clicked', {- story_group_id: storyGroup.id,- group_title: storyGroup.title,- group_thumbnail_url: nextStory.thumbnailUrl,- group_index: originalIndex,- })- setActiveStoryIndex(nextStoryIndex)- setActiveGroupIndex(originalIndex)- setOpenStoriesModal(true)- }}- >- <div- className={`w-15 h-15 rounded-full relative ${- hasViewedEntireGroup ? 'bg-gray-300 p-[1px]' : 'bg-orange-500 p-[2px]'- }`}- >- <div className="w-full h-full rounded-full overflow-hidden bg-bg-light p-[2px]">- <div className="w-full h-full rounded-full overflow-hidden relative">- <img- src={nextStory.thumbnailUrl}- alt={storyGroup.title}- className="w-full h-full object-cover"- />- {nextStory.type === 'video' && (- <div className="absolute inset-0 flex items-center justify-center bg-black/20 video-icon">- <svg- className="w-6 h-6 text-white"- fill="currentColor"- viewBox="0 0 24 24"- >- <path d="M8 5v14l11-7z" />- </svg>- </div>- )}- </div>- </div>- </div>- <span className="text-xs line-clamp-2 text-center max-w-[70px]">- {storyGroup.title}- </span>- </div>- )- })}- </div>- )}- <StoriesModal />- </>- )-}diff --git a/frontend/src/layout/navigation/PosthogStories/StoriesModal.scss b/frontend/src/layout/navigation/PosthogStories/StoriesModal.scssdeleted file mode 100644index 72f3d2499549..000000000000--- a/frontend/src/layout/navigation/PosthogStories/StoriesModal.scss+++ /dev/null@@ -1,77 +0,0 @@-// Accessing lib styles.-.StoriesModal__modal {- min-width: 0;- overflow: hidden;- background: transparent !important;- border: none;- border-radius: 6px;- box-shadow: none;-- // Progress bar styles- .progress-bar-active {- width: 0%;- animation: StoriesModal__ProgressFill var(--duration, 5000ms) linear forwards;- animation-play-state: var(--play-state, running);- }-- .progress-bar-paused {- animation-play-state: paused;- }-- .animate-slide-up {- animation: StoriesModal__SlideUp 0.5s ease-out forwards;- }-- .animate-slide-down {- animation: StoriesModal__SlideDown 0.5s ease-in forwards;- }-- // Overlay positioning classes- .overlay-slide-up {- transition: transform 0.3s ease-out;- transform: translateY(0);- }-- .overlay-slide-down {- transition: transform 0.3s ease-out;- transform: translateY(100%);- }-- // CSS animation for progress bar- @keyframes StoriesModal__ProgressFill {- from {- width: 0%;- }-- to {- width: 100%;- }- }-- // Slide up animation for overlay- @keyframes StoriesModal__SlideUp {- from {- transform: translateY(100%);- }-- to {- transform: translateY(0);- }- }-- // Slide down animation for overlay- @keyframes StoriesModal__SlideDown {- from {- transform: translateY(0);- }-- to {- transform: translateY(100%);- }- }-}--// Make the background outside the modal darker-.LemonModal__overlay:has(.StoriesModal__modal) {- --modal-backdrop-color: rgb(0 0 0 / 50%) !important;-}diff --git a/frontend/src/layout/navigation/PosthogStories/StoriesModal.tsx b/frontend/src/layout/navigation/PosthogStories/StoriesModal.tsxdeleted file mode 100644index 21a54867decf..000000000000--- a/frontend/src/layout/navigation/PosthogStories/StoriesModal.tsx+++ /dev/null@@ -1,417 +0,0 @@-import './StoriesModal.scss'--import { useActions, useValues } from 'kea'-import posthog from 'posthog-js'-import { useCallback, useEffect, useMemo, useRef, useState } from 'react'--import { IconX } from '@posthog/icons'--import { useWindowSize } from 'lib/hooks/useWindowSize'-import { LemonModal } from 'lib/lemon-ui/LemonModal'--import { storiesLogic } from './storiesLogic'-import { CloseOverlayAction, StoryType } from './storiesMap'-import type { story } from './storiesMap'-import { StoriesPlayer, Story } from './StoriesPlayer'--const IMAGE_STORY_INTERVAL = 6000-const MIN_WIDTH = 320 // Minimum width in pixels-const MAX_WIDTH = 854 // Maximum width in pixels-const ASPECT_RATIO = 16 / 9 // 16:9 aspect ratio-const DEFAULT_WIDTH = 988-const OVERLAY_ANIMATION_DURATION = 300 // Match CSS transition duration (0.3s)-const OVERLAY_TRIGGER_DELAY = 100 // Small delay to ensure story is rendered first-const OVERLAY_ANIMATION_TRIGGER_DELAY = 10 // Trigger slide-up animation after DOM update--interface StoryEndEventProps extends StoryEndEventPropsExtraProps {- reason: string- story_id: string- story_title: string- story_thumbnail_url: string- story_type: StoryType- time_spent_ms: number- time_spent_seconds: number- story_group_id: string- story_group_title: string- story_index: number- group_length: number- story_watched_percentage?: number-}--interface StoryEndEventPropsExtraProps {- next_story_id?: string- next_story_title?: string- next_story_thumbnail_url?: string-}--export const StoriesModal = (): JSX.Element | null => {- const { windowSize } = useWindowSize()- const {- openStoriesModal,- stories: storyGroups,- activeGroupIndex,- activeGroup,- activeStoryIndex,- activeStory,- } = useValues(storiesLogic)- const { setOpenStoriesModal, setActiveStoryIndex, setActiveGroupIndex, markStoryAsViewed } =- useActions(storiesLogic)- const storyStartTimeRef = useRef<number>(Date.now())- const [isPaused, setIsPaused] = useState(false)- const [showOverlay, setShowOverlay] = useState(false)- const [overlayComponent, setOverlayComponent] = useState<(() => JSX.Element) | null>(null)- const [overlayAnimating, setOverlayAnimating] = useState(false)-- // Calculate dimensions based on window size and current story's aspect ratio- const dimensions = useMemo(() => {- if (!windowSize.width || !windowSize.height) {- return { width: DEFAULT_WIDTH, height: DEFAULT_WIDTH / ASPECT_RATIO }- } // Default fallback-- // Get current story's aspect ratio- const currentStoryAspectRatio = activeStory?.aspectRatio || '16:9'-- if (currentStoryAspectRatio === '4:3') {- // For 4:3 stories, start with 550px height and scale down if needed- const maxHeight = Math.min(windowSize.height * 0.9, 550)- const width = (maxHeight * 4) / 3-- // Ensure it fits within window width- const maxAvailableWidth = windowSize.width * 0.9- let finalWidth = width- let finalHeight = maxHeight-- if (width > maxAvailableWidth) {- finalWidth = maxAvailableWidth- finalHeight = (finalWidth * 3) / 4- }-- return { width: Math.round(finalWidth), height: Math.round(finalHeight) }- }- // Default 16:9 calculation- const maxAvailableWidth = Math.min(windowSize.width * 0.9, MAX_WIDTH)- const maxAvailableHeight = Math.min(windowSize.height * 0.9, MAX_WIDTH / ASPECT_RATIO)-- let width = maxAvailableWidth- let height = width / ASPECT_RATIO-- if (height > maxAvailableHeight) {- height = maxAvailableHeight- width = height * ASPECT_RATIO- }-- if (width < MIN_WIDTH) {- width = MIN_WIDTH- height = width / ASPECT_RATIO- }-- return { width: Math.round(width), height: Math.round(height) }- }, [windowSize.width, windowSize.height, activeStory?.aspectRatio])-- // Mark story as viewed when it becomes active- useEffect(() => {- if (activeStory && openStoriesModal) {- markStoryAsViewed(activeStory.id)- }- }, [activeStory, markStoryAsViewed, openStoriesModal])-- const maxStoryIndex = useMemo(() => activeGroup?.stories.length || 0, [activeGroup])- const isLastStoryGroup = useMemo(() => activeGroupIndex === storyGroups.length - 1, [activeGroupIndex, storyGroups])-- const sendStoryEndEvent = useCallback(- (reason: string, extraProps?: StoryEndEventPropsExtraProps) => {- const timeSpentMs = Date.now() - storyStartTimeRef.current- const props: StoryEndEventProps = {- reason: reason,- story_id: activeGroup?.stories[activeStoryIndex].id,- story_title: activeGroup?.stories[activeStoryIndex].title,- story_thumbnail_url: activeGroup?.stories[activeStoryIndex].thumbnailUrl,- story_type: activeGroup?.stories[activeStoryIndex].type,- story_group_id: activeGroup?.id,- story_group_title: activeGroup?.title,- story_index: activeStoryIndex,- group_length: activeGroup?.stories.length || 0,- time_spent_ms: timeSpentMs,- time_spent_seconds: Math.round(timeSpentMs / 1000),- story_watched_percentage:- activeStory?.durationMs && activeStory?.durationMs > 0- ? Math.round((timeSpentMs / activeStory.durationMs) * 100)- : undefined,- ...extraProps,- }- posthog.capture('posthog_story_ended', props)- },- [activeGroup, activeStoryIndex, activeStory]- )-- const handleClose = useCallback(- (forceClose: boolean) => {- const timeSpentMs = Date.now() - storyStartTimeRef.current-- sendStoryEndEvent(forceClose ? 'force_close' : 'natural_close')-- posthog.capture('posthog_story_closed', {- reason: forceClose ? 'force_close' : 'natural_close',- story_id: activeGroup?.stories[activeStoryIndex].id,- story_title: activeGroup?.stories[activeStoryIndex].title,- story_thumbnail_url: activeGroup?.stories[activeStoryIndex].thumbnailUrl,- story_type: activeGroup?.stories[activeStoryIndex].type,- story_group_id: activeGroup?.id,- story_group_title: activeGroup?.title,- story_index: activeStoryIndex,- group_length: activeGroup?.stories.length || 0,- time_spent_ms: timeSpentMs,- time_spent_seconds: Math.round(timeSpentMs / 1000),- })-- if (isLastStoryGroup || forceClose) {- setOpenStoriesModal(false)- } else {- setActiveGroupIndex(activeGroupIndex + 1)- setActiveStoryIndex(0)- }- },- [- setOpenStoriesModal,- setActiveStoryIndex,- setActiveGroupIndex,- isLastStoryGroup,- activeGroupIndex,- activeGroup,- activeStoryIndex,- sendStoryEndEvent,- ]- )-- const handleStoryStart = useCallback(- (index: number) => {- storyStartTimeRef.current = Date.now()- posthog.capture('posthog_story_started', {- event: 'started',- story_id: activeGroup?.stories[index].id,- story_title: activeGroup?.stories[index].title,- story_thumbnail_url: activeGroup?.stories[index].thumbnailUrl,- story_type: activeGroup?.stories[index].type,- story_group_id: activeGroup?.id,- story_group_title: activeGroup?.title,- story_index: index,- group_length: activeGroup?.stories.length || 0,- })- setActiveStoryIndex(index)-- // Auto-trigger overlay for 'overlay' type stories- const story = activeGroup?.stories[index]- if (story?.type === StoryType.Overlay && story.seeMoreOverlay) {- setTimeout(() => {- const closeHandler = (action?: CloseOverlayAction): void => {- setShowOverlay(false)- setOverlayComponent(null)- setIsPaused(false)- if (action === CloseOverlayAction.Modal) {- setOpenStoriesModal(false)- } else if (action === CloseOverlayAction.Next) {- // Go to next story- if (activeGroup && index < activeGroup.stories.length - 1) {- setActiveStoryIndex(index + 1)- return- }- // Last story in group - close the modal- setOpenStoriesModal(false)- } else if (action === CloseOverlayAction.Previous) {- // Go to previous story- if (index > 0) {- setActiveStoryIndex(index - 1)- }- // First story in group- }- }- setOverlayComponent(() => () => story.seeMoreOverlay!(closeHandler))- setShowOverlay(true)- setOverlayAnimating(true) // Start off-screen- setIsPaused(true)- // Trigger slide-up animation- setTimeout(() => setOverlayAnimating(false), OVERLAY_ANIMATION_TRIGGER_DELAY)- }, OVERLAY_TRIGGER_DELAY)- }- },- [setActiveStoryIndex, activeGroup, setOverlayComponent, setShowOverlay, setIsPaused, setOpenStoriesModal]- )-- const handlePrevious = useCallback(() => {- if (activeStoryIndex > 0) {- sendStoryEndEvent('previous')- setActiveStoryIndex(activeStoryIndex - 1)- setIsPaused(false)- }- }, [activeStoryIndex, setActiveStoryIndex, sendStoryEndEvent])-- // Reset pause state when modal opens or story changes- useEffect(() => {- if (openStoriesModal) {- setIsPaused(false)- }- }, [openStoriesModal])-- // Reset pause state when active story changes- useEffect(() => {- setIsPaused(false)- setShowOverlay(false)- setOverlayComponent(null)- setOverlayAnimating(false)- }, [activeStoryIndex, activeGroupIndex])-- // Handle overlay close- const handleOverlayClose = useCallback(- (action?: CloseOverlayAction) => {- setOverlayAnimating(true)-- // Wait for slide-down animation to complete- setTimeout(() => {- setShowOverlay(false)- setOverlayComponent(null)- setOverlayAnimating(false)- setIsPaused(false)-- if (action === CloseOverlayAction.Modal) {- sendStoryEndEvent('overlay_close_modal')- setOpenStoriesModal(false)- } else if (action === CloseOverlayAction.Next) {- sendStoryEndEvent('overlay_next')- // Go to next story- if (activeStoryIndex < maxStoryIndex - 1) {- setActiveStoryIndex(activeStoryIndex + 1)- return- }- // Last story in group - close the modal- setOpenStoriesModal(false)- } else if (action === CloseOverlayAction.Previous) {- sendStoryEndEvent('overlay_previous')- // Go to previous story- if (activeStoryIndex > 0) {- setActiveStoryIndex(activeStoryIndex - 1)- }- // First story in group- }- }, OVERLAY_ANIMATION_DURATION) // Match CSS transition duration- // Default action 'overlay' or undefined just closes the overlay and continues current story- },- [setOpenStoriesModal, activeStoryIndex, maxStoryIndex, setActiveStoryIndex, sendStoryEndEvent]- )-- if (!openStoriesModal || !activeGroup) {- return null- }-- const stories = activeGroup.stories.map(- (story: story): Story => ({- url: story.mediaUrl || '',- type: story.type,- duration: story.durationMs,- aspectRatio: story.aspectRatio || '16:9',- header: {- heading: story.title,- subheading: story.description || '',- profileImage: story.thumbnailUrl,- },- seeMore:- story.seeMoreLink || story.seeMoreOverlay- ? () => {- sendStoryEndEvent('see_more')- if (story.seeMoreOverlay) {- setOverlayComponent(() => () => story.seeMoreOverlay!(handleOverlayClose))- setShowOverlay(true)- setOverlayAnimating(true) // Start off-screen- setIsPaused(true)- // Trigger slide-up animation- setTimeout(() => setOverlayAnimating(false), OVERLAY_ANIMATION_TRIGGER_DELAY)- } else if (story.seeMoreLink) {- window.open(story.seeMoreLink, '_blank')- setIsPaused(true)- }- return null- }- : undefined,- seeMoreOptions: story.seeMoreOptions,- preloadResource: true,- })- )-- return (- <LemonModal- isOpen={openStoriesModal}- simple- className="StoriesModal__modal"- hideCloseButton={true}- onClose={() => handleClose(true)}- >- <div className="flex flex-col">- <div className="relative flex-1 stories-container">- <StoriesPlayer- stories={stories}- defaultInterval={IMAGE_STORY_INTERVAL}- currentIndex={activeStoryIndex}- isPaused={isPaused}- width={dimensions.width}- height={dimensions.height}- onNext={() => {- if (!activeGroup?.stories[activeStoryIndex]) {- return- }- sendStoryEndEvent('next')- setIsPaused(false)-- // Check if this is the last story in the current group- if (activeStoryIndex >= maxStoryIndex - 1) {- // Last story in group - close the modal- setOpenStoriesModal(false)- } else {- // Not last story - advance to next story in group- setActiveStoryIndex(activeStoryIndex + 1)- }- }}- onPrevious={() => {- setIsPaused(false)- handlePrevious()- }}- onAllStoriesEnd={() => handleClose(false)}- onStoryEnd={() => {- sendStoryEndEvent('ended_naturally')-- // Check if this is the last story in the current group- if (activeStoryIndex >= maxStoryIndex - 1) {- // Last story in group - close the modal- setOpenStoriesModal(false)- } else {- // Not last story - advance to next story in group- setActiveStoryIndex(activeStoryIndex + 1)- }- }}- onStoryStart={handleStoryStart}- onPauseToggle={() => setIsPaused((prev) => !prev)}- onClose={() => handleClose(true)}- />-- {/* Overlay Component */}- {(showOverlay || overlayAnimating) && overlayComponent && (- <div- className={`absolute inset-0 z-50 bg-white ${- overlayAnimating ? 'overlay-slide-down' : 'overlay-slide-up'- }`}- >- {!activeGroup?.stories[activeStoryIndex]?.seeMoreOptions?.hideDefaultClose && (- <button- onClick={() => handleOverlayClose()}- className="absolute top-4 right-4 z-10 bg-black/20 hover:bg-black/30 text-white rounded-full w-8 h-8 flex items-center justify-center transition-all duration-200 cursor-pointer"- aria-label="Close overlay"- >- <IconX className="w-5 h-5" />- </button>- )}- <div className="w-full h-full overflow-auto">{overlayComponent()}</div>- </div>- )}- </div>- </div>- </LemonModal>- )-}diff --git a/frontend/src/layout/navigation/PosthogStories/StoriesPlayer.tsx b/frontend/src/layout/navigation/PosthogStories/StoriesPlayer.tsxdeleted file mode 100644index b8184e26ccab..000000000000--- a/frontend/src/layout/navigation/PosthogStories/StoriesPlayer.tsx+++ /dev/null@@ -1,412 +0,0 @@-import { useCallback, useEffect, useRef, useState } from 'react'-import React from 'react'--import { IconArrowRight, IconChevronLeft, IconChevronRight, IconPauseFilled, IconX } from '@posthog/icons'--import { ArrowIcon, StoryType } from './storiesMap'-import type { SeeMoreOptions } from './storiesMap'--enum HoverZone {- Left = 'left',- Right = 'right',-}--export interface Story {- url: string- type: StoryType- duration?: number // Duration in milliseconds- aspectRatio?: '4:3' | '16:9' | 'auto'- header?: {- heading: string- subheading: string- profileImage: string- }- seeMore?: () => JSX.Element | null- seeMoreOptions?: SeeMoreOptions- seeMoreText?: string- preloadResource?: boolean-}--export interface StoriesPlayerProps {- stories: Story[]- defaultInterval: number- currentIndex: number- isPaused: boolean- onNext: () => void- onPrevious: () => void- onAllStoriesEnd: () => void- onStoryEnd: () => void- onStoryStart: (index: number) => void- onPauseToggle: () => void- onClose: () => void- width: number- height: number-}--interface ProgressBarProps {- story: Story- isCurrentStory: boolean- isCompletedStory: boolean- isPaused: boolean- videoDuration: number | null- defaultInterval: number- animationKey: number- onAnimationEnd?: () => void-}--const ProgressBar = ({- story,- isCurrentStory,- isCompletedStory,- isPaused,- videoDuration,- defaultInterval,- animationKey,- onAnimationEnd,-}: ProgressBarProps): JSX.Element => {- const progressRef = useRef<HTMLDivElement>(null)-- // Calculate duration for this story- const getDuration = useCallback((): number => {- if (story.type === StoryType.Video && isCurrentStory && videoDuration) {- return videoDuration- }- // Component and image stories: prioritize durationMs, fallback to default interval- if (story.duration && story.duration > 0) {- return story.duration- }- return defaultInterval- }, [story.type, story.duration, isCurrentStory, videoDuration, defaultInterval])-- // Get current duration for this story- const currentDuration = getDuration()-- // Determine progress bar state classes- const getProgressBarClasses = useCallback((): string => {- const baseClasses = 'h-full bg-white rounded-full'-- if (isCurrentStory) {- return `${baseClasses} progress-bar-active ${isPaused ? 'progress-bar-paused' : ''}`- } else if (isCompletedStory) {- return `${baseClasses} w-full`- }- return `${baseClasses} w-0`- }, [isCurrentStory, isPaused, isCompletedStory])-- return (- <div className="flex-1 h-0.75 bg-white/[0.45] rounded-full overflow-hidden">- <div- ref={progressRef}- key={isCurrentStory ? `${animationKey}-progress-${currentDuration}` : 'progress'}- className={getProgressBarClasses()}- onAnimationEnd={onAnimationEnd}- style={isCurrentStory ? ({ '--duration': `${currentDuration}ms` } as React.CSSProperties) : undefined} // eslint-disable-line react/forbid-dom-props- />- </div>- )-}--export const StoriesPlayer = ({- stories,- defaultInterval,- currentIndex,- isPaused,- onNext,- onPrevious,- onAllStoriesEnd,- onStoryEnd,- onStoryStart,- onPauseToggle,- onClose,- width,- height,-}: StoriesPlayerProps): JSX.Element => {- const [hoveredZone, setHoveredZone] = useState<HoverZone | null>(null)- const [videoDuration, setVideoDuration] = useState<number | null>(null)- const [animationKey, setAnimationKey] = useState(0) // Force re-render when story changes- const [muted, setMuted] = useState(false)- const videoRef = useRef<HTMLVideoElement | null>(null)- const currentStory = stories[currentIndex]- const containerRef = useRef<HTMLDivElement>(null)-- // Reset when story changes- useEffect(() => {- setVideoDuration(null) // Reset video duration- setAnimationKey((prev) => prev + 1) // Force animation restart- setMuted(false) // Reset muted state for new story- onStoryStart(currentIndex)- }, [currentIndex, onStoryStart])-- // Handle video metadata loaded (duration info)- const handleVideoLoadedMetadata = useCallback(() => {- if (videoRef.current && currentStory?.type === StoryType.Video) {- setVideoDuration(videoRef.current.duration * 1000) // Convert to milliseconds- }- }, [currentStory])-- // Handle video data loaded (ready to play)- const handleVideoLoadedData = useCallback(() => {- if (videoRef.current && currentStory?.type === StoryType.Video) {- // Try to play the video, fallback to muted if autoplay blocked- if (!isPaused) {- videoRef.current.play().catch(() => {- // Autoplay blocked, try with muted- setMuted(true)- void videoRef.current?.play()- })- }- }- }, [currentStory, isPaused])-- // Handle animation end for image stories- const handleAnimationEnd = useCallback(() => {- if (currentStory?.type === StoryType.Image) {- onStoryEnd()- if (currentIndex < stories.length - 1) {- onNext()- } else {- onAllStoriesEnd()- }- }- }, [currentStory, currentIndex, stories.length, onNext, onStoryEnd, onAllStoriesEnd])-- // Handle video pause/play- useEffect(() => {- if (currentStory?.type === StoryType.Video && videoRef.current) {- if (isPaused) {- videoRef.current.pause()- } else {- void videoRef.current.play()- }- }- }, [isPaused, currentStory])-- // Handle video end- const handleVideoEnd = useCallback(() => {- onStoryEnd()- if (currentIndex < stories.length - 1) {- onNext()- } else {- onAllStoriesEnd()- }- }, [currentIndex, stories.length, onNext, onStoryEnd, onAllStoriesEnd])-- if (!currentStory) {- return <div>No story to display</div>- }-- // Use dimensions calculated by StoriesModal- const getContainerStyle = (): React.CSSProperties => {- return { width, height }- }-- return (- <div- ref={containerRef}- className="relative rounded overflow-hidden select-none"- style={getContainerStyle()} // eslint-disable-line react/forbid-dom-props- >- {/* header wrapper with gradient */}- <div className="absolute top-0 left-0 right-0 z-10 pt-3 px-3 pb-4 bg-gradient-to-b from-black/25 to-transparent">- {/* Progress bars */}- <div className="flex gap-1 mb-2">- {stories.map((story, index) => {- const isCurrentStory = index === currentIndex- const isCompletedStory = index < currentIndex-- return (- <ProgressBar- key={index}- story={story}- isCurrentStory={isCurrentStory}- isCompletedStory={isCompletedStory}- isPaused={isPaused}- videoDuration={videoDuration}- defaultInterval={defaultInterval}- animationKey={animationKey}- onAnimationEnd={isCurrentStory ? handleAnimationEnd : undefined}- />- )- })}- </div>-- {/* Header section with relative positioning for buttons */}- <div className="relative rounded-lg px-1">- {/* Play/pause and close buttons - positioned in top right of header */}- <div className="absolute top-1 right-1 flex gap-2 z-10">- <button- onClick={(e) => {- e.stopPropagation()- e.preventDefault()- onClose()- }}- className="text-white hover:text-gray-200 w-8 h-8 flex items-center justify-center transition-all duration-200 cursor-pointer"- title="Close stories"- >- <IconX className="w-5 h-5 [&>*]:fill-white" />- </button>- </div>-- {/* Header content */}- <div className="flex items-center gap-3 pr-20">- {currentStory.header ? (- <div className="flex items-center gap-3 flex-1 min-w-0">- {currentStory.header.profileImage && (- <img- src={currentStory.header.profileImage}- alt="Profile"- className="w-10 h-10 rounded-full object-cover"- />- )}- <div className="flex-1 min-w-0">- <div className="text-white text-sm font-semibold truncate drop-shadow-lg">- {currentStory.header.heading}- </div>- {currentStory.header.subheading && (- <div className="text-white text-xs truncate drop-shadow-md">- {currentStory.header.subheading}- </div>- )}- </div>- </div>- ) : (- <div className="flex-1" />- )}- </div>- </div>- </div>-- {/* Media content */}- <div className="w-full h-full flex items-center justify-center">- {currentStory.type === StoryType.Overlay ? null : currentStory.type === StoryType.Video ? (- <video- ref={videoRef}- src={currentStory.url}- className="w-full h-full object-contain rounded"- autoPlay- muted={muted}- playsInline- onEnded={handleVideoEnd}- onLoadedMetadata={handleVideoLoadedMetadata}- onLoadedData={handleVideoLoadedData}- controls={false}- />- ) : (- <img src={currentStory.url} alt="Story content" className="w-full h-full object-cover" />- )}- </div>-- {/* Pause icon overlay */}- {isPaused && (- <div className="absolute inset-0 flex items-center justify-center z-10 pointer-events-none">- <div className="bg-black/50 rounded-full w-12 h-12 flex items-center justify-center backdrop-blur-sm">- <IconPauseFilled className="w-4 h-4 text-white flex-shrink-0 aspect-square" />- </div>- </div>- )}-- {/* See More button */}- {currentStory.seeMore && (- <div className="absolute bottom-4 left-1/2 transform -translate-x-1/2 z-10">- <button- onClick={(e) => {- e.stopPropagation()- currentStory.seeMore?.()- }}- className={`flex items-center gap-1 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-200 cursor-pointer ${- currentStory.seeMoreOptions?.textColor === 'black'- ? 'text-black/80 hover:text-black'- : 'text-white/80 hover:text-white'- } ${- currentStory.seeMoreOptions?.backgroundColor === 'black'- ? 'bg-black/35 hover:bg-black/45'- : currentStory.seeMoreOptions?.backgroundColor === 'white'- ? 'bg-white/35 hover:bg-white/45'- : 'bg-white/25 hover:bg-white/30'- }`}- aria-label="See more about this story - swipe up for more"- >- <span>{currentStory.seeMoreOptions?.text || currentStory.seeMoreText || 'See more'}</span>- {currentStory.seeMoreOptions?.arrowIcon === ArrowIcon.Up ? (- <IconChevronRight className="w-3 h-3 transform -rotate-90" />- ) : (- <IconArrowRight className="w-3 h-3" />- )}- </button>- </div>- )}-- {/* Navigation zones with arrows */}- <div className="absolute inset-0 flex">- {/* LEFT NAVIGATION ZONE */}- {/* Only shows navigation if there's a previous story to go to */}- <div- className={`w-1/5 h-full relative flex items-center justify-start pl-4 ${- currentIndex > 0 ? 'cursor-pointer' : ''- }`}- onMouseEnter={() => setHoveredZone(HoverZone.Left)}- onMouseLeave={() => setHoveredZone(null)}- onClick={(e) => {- e.stopPropagation()- if (currentIndex > 0) {- onPrevious()- }- }}- >- {/* Previous story button - only visible when hovering and navigation is possible */}- {currentIndex > 0 && (- <button- onMouseDown={(e) => e.preventDefault()}- className={`text-white rounded-full w-8 h-8 flex items-center justify-center transition-all duration-200 z-10 bg-black/30 cursor-pointer select-none ${- hoveredZone === 'left' ? 'opacity-100' : 'opacity-0'- }`}- title="Previous story"- >- <IconChevronLeft className="w-5 h-5" />- </button>- )}- </div>-- {/* MIDDLE ZONE - Clears hover state and allows pause/play functionality */}- {/* When user hovers over middle, it clears hoveredZone so navigation arrows hide */}- <div- className="w-3/5 h-full"- onMouseEnter={() => setHoveredZone(null)}- onClick={(e) => {- e.stopPropagation()- onPauseToggle()- }}- />-- {/* RIGHT NAVIGATION ZONE */}- {/* Only shows navigation if there's a next story to go to */}- <div- className={`w-1/5 h-full relative flex items-center justify-end pr-4 ${- currentIndex < stories.length - 1 ? 'cursor-pointer' : ''- }`}- onMouseEnter={() => setHoveredZone(HoverZone.Right)}- onMouseLeave={() => setHoveredZone(null)}- onClick={(e) => {- e.stopPropagation()- if (currentIndex < stories.length - 1) {- onNext()- }- }}- >- {/* Next story button - only visible when hovering and navigation is possible */}- {currentIndex < stories.length - 1 && (- <button- onMouseDown={(e) => e.preventDefault()}- className={`text-white rounded-full w-8 h-8 flex items-center justify-center transition-all duration-200 z-10 bg-black/30 cursor-pointer select-none ${- hoveredZone === 'right' ? 'opacity-100' : 'opacity-0'- }`}- title="Next story"- >- <IconChevronRight className="w-5 h-5" />- </button>- )}- </div>- </div>- </div>- )-}diff --git a/frontend/src/layout/navigation/PosthogStories/stories.scss b/frontend/src/layout/navigation/PosthogStories/stories.scssdeleted file mode 100644index b7316b4f1bcd..000000000000--- a/frontend/src/layout/navigation/PosthogStories/stories.scss+++ /dev/null@@ -1,21 +0,0 @@-.PosthogStoriesContainer {- overflow-x: auto;- scrollbar-width: none;-- &::-webkit-scrollbar {- display: none;- }-}--.video-icon {- opacity: 0;- transition: opacity 0.3s ease;-- &:hover {- opacity: 1;- }-- @media (prefers-reduced-motion: reduce) {- transition: none;- }-}diff --git a/frontend/src/layout/navigation/PosthogStories/storiesLogic.ts b/frontend/src/layout/navigation/PosthogStories/storiesLogic.tsdeleted file mode 100644index 281cd9d7e420..000000000000--- a/frontend/src/layout/navigation/PosthogStories/storiesLogic.ts+++ /dev/null@@ -1,117 +0,0 @@-import './stories.scss'--import { actions, events, kea, listeners, path, reducers, selectors } from 'kea'-import { loaders } from 'kea-loaders'--import type { storiesLogicType } from './storiesLogicType'-import type { storyGroup } from './storiesMap'-import { storiesMap } from './storiesMap'--const STORAGE_KEY = 'posthog_stories_viewed'--export interface ViewedStories {- storyIds: string[]-}--export const storiesLogic = kea<storiesLogicType>([- path(['layout', 'navigation', 'PosthogStories', 'storiesLogic']),- actions({- setActiveGroupIndex: (groupIndex: number) => ({ groupIndex }),- setActiveStoryIndex: (storyIndex: number) => ({ storyIndex }),- setOpenStoriesModal: (openStoriesModal: boolean) => ({ openStoriesModal }),- markStoryAsViewed: (storyId: string) => ({ storyId }),- toggleStoriesCollapsed: true,- }),-- loaders(() => ({- viewedStories: [- { storyIds: [] } as ViewedStories,- {- loadViewedStories: async () => {- try {- const stored = localStorage.getItem(STORAGE_KEY)- return stored ? JSON.parse(stored) : { storyIds: [] }- } catch {- return { storyIds: [] }- }- },- },- ],- })),-- reducers({- stories: [storiesMap],- openStoriesModalValue: [- false,- {- setOpenStoriesModal: (_, { openStoriesModal }) => openStoriesModal,- },- ],- activeGroupIndexValue: [- 0,- {- setActiveGroupIndex: (_, { groupIndex }) => groupIndex,- },- ],- activeStoryIndexValue: [- 0,- {- setActiveStoryIndex: (_, { storyIndex }) => storyIndex,- },- ],- storiesCollapsedValue: [- false,- { persist: true },- {- toggleStoriesCollapsed: (state) => !state,- },- ],- }),-- listeners(({ actions, values }) => ({- markStoryAsViewed: async ({ storyId }) => {- const current = values.viewedStories- if (!current.storyIds.includes(storyId)) {- const updated = {- ...current,- storyIds: [...current.storyIds, storyId],- }- localStorage.setItem(STORAGE_KEY, JSON.stringify(updated))- actions.loadViewedStories()- }- },- })),-- selectors({- activeGroup: [- (s) => [s.stories, s.activeGroupIndex],- (stories: storyGroup[], activeGroupIndex: number) => stories[activeGroupIndex] || null,- ],- activeStory: [- (s) => [s.activeGroup, s.activeStoryIndex],- (activeGroup: storyGroup | null, activeStoryIndex: number) =>- activeGroup?.stories[activeStoryIndex] || null,- ],- openStoriesModal: [(s) => [s.openStoriesModalValue], (openStoriesModalValue: boolean) => openStoriesModalValue],- activeGroupIndex: [(s) => [s.activeGroupIndexValue], (activeGroupIndexValue: number) => activeGroupIndexValue],- activeStoryIndex: [(s) => [s.activeStoryIndexValue], (activeStoryIndexValue: number) => activeStoryIndexValue],- storiesCollapsed: [(s) => [s.storiesCollapsedValue], (storiesCollapsedValue: boolean) => storiesCollapsedValue],- hasUnseenStories: [- (s) => [s.stories, s.viewedStories],- (stories: storyGroup[], viewedStories: ViewedStories) =>- stories.some((storyGroup) =>- storyGroup.stories.some((story) => !viewedStories.storyIds.includes(story.id))- ),- ],- isStoryViewed: [- (s) => [s.viewedStories],- (viewedStories: ViewedStories) => (storyId: string) => viewedStories.storyIds.includes(storyId),- ],- }),-- events(({ actions }) => ({- afterMount: () => {- actions.loadViewedStories()- },- })),-])diff --git a/frontend/src/layout/navigation/PosthogStories/storiesMap.tsx b/frontend/src/layout/navigation/PosthogStories/storiesMap.tsxdeleted file mode 100644index 603bd8c87eaa..000000000000--- a/frontend/src/layout/navigation/PosthogStories/storiesMap.tsx+++ /dev/null@@ -1,406 +0,0 @@-// This should eventually be moved to a DB.-// eslint-disable-next-line import/no-cycle-import { PizzaSurveyOverlayComponent } from './PizzaSurveyOverlayComponent'--export enum StoryType {- Image = 'image',- Video = 'video',- Overlay = 'overlay',-}--export enum CloseOverlayAction {- Overlay = 'overlay',- Modal = 'modal',- Next = 'next',- Previous = 'previous',-}--export enum ArrowIcon {- Right = 'right',- Up = 'up',-}--export interface SeeMoreOptions {- arrowIcon?: ArrowIcon- backgroundColor?: 'black' | 'white'- hideDefaultClose?: boolean- text?: string- textColor?: 'black' | 'white'-}--export interface story {- id: string- title: string- thumbnailUrl: string- description?: string- mediaUrl?: string- type: StoryType- durationMs?: number- aspectRatio?: '4:3' | '16:9' | 'auto'- seeMoreLink?: string- seeMoreOverlay?: (closeOverlay: (action?: CloseOverlayAction) => void) => JSX.Element- seeMoreOptions?: SeeMoreOptions-}--export interface storyGroup {- id: string- title: string- stories: story[]-}--// NOTE: The order of the stories is important. The first story in each group is the one that is shown when the group is clicked-// from top to bottom.-// Important: we use the first thumbnail of the first story in each group as the thumbnail of the group.-export const storiesMap: storyGroup[] = [- {- id: 'surveys',- title: 'Surveys',- stories: [- {- id: 'surveys-overview',- title: 'Surveys',- description: 'Ask users for feedback',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/surveys_522e544094.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/surveys_overview_2cfc290333.mp4',- type: StoryType.Video,- },- {- id: 'surveys-cta',- title: 'Surveys',- description: 'Try surveys',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/surveys_522e544094.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/surveys_cta_b32a2b0596.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/surveys',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Create a survey',- },- },- {- id: 'surveys-pineapple-pizza-poll',- title: 'Surveys',- description: "There's only one right answer!",- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/surveys_522e544094.png',- type: StoryType.Overlay,- seeMoreOverlay: (closeOverlay) => <PizzaSurveyOverlayComponent closeOverlay={closeOverlay} />,- seeMoreOptions: {- hideDefaultClose: true,- },- },- ],- },- {- id: 'experiments',- title: 'Experiments',- stories: [- {- id: 'experiments-overview',- title: 'Experiments',- description: 'Find out what performs',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/experiments_icon_05539e123f.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/experiments_overview_193828c533.mp4',- type: StoryType.Video,- },- {- id: 'experiments-cta',- title: 'Experiments',- description: 'Try experiments',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/experiments_icon_05539e123f.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/experiments_cta_18e8927447.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/experiments',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Create an experiment',- },- },- ],- },- {- id: 'feature-flags',- title: 'Feature flags',- stories: [- {- id: 'feature-flags-overview',- title: 'Feature flags',- description: 'Roll out changes',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/feature_flags_fd5d9949a0.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/feature_flags_overview_79e6f410ae.mp4',- type: StoryType.Video,- },- {- id: 'feature-flags-cta',- title: 'Feature flags',- description: 'Try feature flags',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/feature_flags_fd5d9949a0.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/feature_flags_cta_image_3c1f74f6ed.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/feature_flags',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Get started',- },- },- ],- },- {- id: 'max-ai',- title: 'Max AI',- stories: [- {- id: 'meet-max-ai-overview',- title: 'Max AI',- description: 'Say hi to Max!',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/max_ai_f8c9cdf4e8.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/meet_max_ai_overview_778f4acffb.mp4',- type: StoryType.Video,- },- {- id: 'max-ai-cta',- title: 'Max AI',- description: 'Try talking to Max',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/max_ai_f8c9cdf4e8.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/max_cta_frame_06906e3804.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/#panel=max:hi%20max',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Say hi',- },- },- ],- },- {- id: 'changelog',- title: 'Changelog',- stories: [- {- id: 'changelog-55-cdp-destinations',- title: 'Changelog',- description: '55 new CDP destinations',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_phone_9f7523e1a8.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/changelog_cdp_destinations_158c35a2b8.mp4',- type: StoryType.Video,- },- {- id: 'changelog-hog-templating',- title: 'Changelog',- description: 'In-app Hog templating',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_phone_9f7523e1a8.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/changelog_hog_templating_e21396dadf.mp4',- type: StoryType.Video,- },- {- id: 'changelog-linear-share-modal',- title: 'Changelog',- description: 'Share session replays on Linear',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_phone_9f7523e1a8.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/changelog_linear_share_4d21aef711.mp4',- type: StoryType.Video,- },- {- id: 'changelog-save-filters-session-replay',- title: 'Changelog',- description: 'Save filters for session replay',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_phone_9f7523e1a8.png',- mediaUrl:- 'https://res.cloudinary.com/dmukukwp6/video/upload/changelog_save_filters_replay_59939f9908.mp4',- type: StoryType.Video,- },- {- id: 'changelog-cta',- title: 'Changelog',- description: 'New feature showcase with component overlay',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_phone_9f7523e1a8.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/changelog_cta_f8c6037283.png',- type: StoryType.Image,- seeMoreLink: 'https://posthog.com/changelog',- seeMoreOptions: {- backgroundColor: 'black',- text: 'See more updates',- },- },- ],- },- {- id: 'toolbar',- title: 'Toolbar',- stories: [- {- id: 'toolbar-overview',- title: 'Toolbar',- description: 'Overview of the toolbar',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/toolbar_overview_2320038fa8.mp4',- type: StoryType.Video,- },- {- id: 'toolbar-create-actions',- title: 'Toolbar',- description: 'Create actions',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/toolbar_actions_e0d6b18b99.mp4',- type: StoryType.Video,- },- {- id: 'toolbar-inspect-image',- title: 'Toolbar',- description: 'Inspect elements',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/toolbar_inspect_a284324d14_24631f27fd.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/toolbar',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Launch the toolbar',- },- },- {- id: 'toolbar-heatmap-image',- title: 'Toolbar',- description: 'View heatmaps',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/toolbar_heatmap_460f46f86b_04862b4e0a.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/toolbar',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Launch the toolbar',- },- },- {- id: 'toolbar-feature-flags-image',- title: 'Toolbar',- description: 'Flip feature flags',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl:- 'https://res.cloudinary.com/dmukukwp6/image/upload/toolbar_feature_flags_31802301a3_41dacb9996.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/toolbar',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Launch the toolbar',- },- },- {- id: 'toolbar-events-image',- title: 'Toolbar',- description: 'Debug events',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl:- 'https://res.cloudinary.com/dmukukwp6/image/upload/toolbar_debug_events_90dcef3c7b_b7564ce9af.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/toolbar',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Launch the toolbar',- },- },- {- id: 'toolbar-web-vitals-image',- title: 'Toolbar',- description: 'Check web vitals',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl:- 'https://res.cloudinary.com/dmukukwp6/image/upload/toolbar_web_vitals_0150d8d8ca_6b9a790fb1.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/toolbar',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Launch the toolbar',- },- },- {- id: 'toolbar-experiments-image',- title: 'Toolbar',- description: 'Create experiments',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl:- 'https://res.cloudinary.com/dmukukwp6/image/upload/toolbar_experiments_6745bae143_b82232edde.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/toolbar',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Launch the toolbar',- },- },- {- id: 'toolbar-cool-features-image',- title: 'Toolbar',- description: 'Check out hedgehog mode!',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/hoggie_builder_dc64451e64.png',- mediaUrl:- 'https://res.cloudinary.com/dmukukwp6/image/upload/toolbar_cool_features_357aa7fc36_dc294f7fca.png',- type: StoryType.Image,- seeMoreLink: 'https://app.posthog.com/toolbar',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Launch the toolbar',- },- },- ],- },- {- id: 'deskhog',- title: 'DeskHog',- stories: [- {- id: 'deskhog-minidoc',- title: 'DeskHog',- description: 'Open-source, 3D-printed, palm-sized',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_7d6d55ea31.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/deskhog_minidoc_ea362ae944.mp4',- type: StoryType.Video,- },- {- id: 'deskhog-infomercial',- title: 'DeskHog',- description: 'ORDER NOW!',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_7d6d55ea31.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/video/upload/deskhog_infomercial_a50a1dd4ec.mp4',- type: StoryType.Video,- aspectRatio: '4:3',- },- {- id: 'deskhog-kit',- title: 'DeskHog',- description: 'Open-source, 3D-printed, palm-sized',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_7d6d55ea31.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_kit_657f1da249.png',- seeMoreLink: 'https://posthog.com/deskhog',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Get your own',- },- type: StoryType.Image,- },- {- id: 'deskhog-colors',- title: 'DeskHog',- description: 'Open-source, 3D-printed, palm-sized',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_7d6d55ea31.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_colors_84c91ae075.png',- seeMoreLink: 'https://posthog.com/deskhog',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Get your own',- },- type: StoryType.Image,- },- {- id: 'deskhog-cta',- title: 'DeskHog',- description: 'Open-source, 3D-printed, palm-sized',- thumbnailUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_7d6d55ea31.png',- mediaUrl: 'https://res.cloudinary.com/dmukukwp6/image/upload/deskhog_cta_513a9e19f4.png',- seeMoreLink: 'https://posthog.com/deskhog',- seeMoreOptions: {- backgroundColor: 'black',- text: 'Get your own',- },- type: StoryType.Image,- },- ],- },-]