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.

feat(replay): move the watch panel and mode bar to quill (#127817)

Hayne Ryu705d92c92c51
diff --git a/frontend/src/scenes/session-recordings/components/PaneTabBar.tsx b/frontend/src/scenes/session-recordings/components/PaneTabBar.tsx
index dc439a72474f..947dd667d77d 100644
--- a/frontend/src/scenes/session-recordings/components/PaneTabBar.tsx
+++ b/frontend/src/scenes/session-recordings/components/PaneTabBar.tsx
@@ -1,7 +1,7 @@
import clsx from 'clsx'
import { ReactNode } from 'react'
-import { LemonButton } from '@posthog/lemon-ui'
+import { Tabs, TabsList, TabsTrigger } from '@posthog/quill'
export interface PaneTab<K extends string> {
key: K
@@ -27,37 +27,28 @@ export function PaneTabBar<K extends string>({
children?: ReactNode
}): JSX.Element {
return (
- <div className={clsx('flex flex-row items-stretch shrink-0 border-b bg-surface-secondary', className)}>
- {tabs.map((tab) => {
- const active = activeKey === tab.key
- return (
- <LemonButton
+ <Tabs
+ data-quill
+ value={activeKey}
+ onValueChange={(value) => onChange(value as K)}
+ className={clsx('shrink-0 gap-0', className)}
+ >
+ <TabsList variant="line" className="w-full justify-start rounded-none bg-muted">
+ {tabs.map((tab) => (
+ <TabsTrigger
key={tab.key}
- noPadding
- active={active}
- onClick={() => onChange(tab.key)}
- disabledReason={tab.disabledReason}
- className={clsx(
- 'rounded-none border-b-2',
- active ? 'border-b-accent bg-surface-primary' : 'border-b-transparent',
- fullWidth && 'flex-auto'
- )}
+ value={tab.key}
+ disabled={!!tab.disabledReason}
+ className={clsx('text-xs', fullWidth && 'flex-auto')}
data-attr={tab.dataAttr}
>
- <span
- className={clsx(
- 'flex items-center gap-1.5 px-3 py-1.5 text-xs',
- fullWidth && 'justify-center w-full'
- )}
- >
- {tab.icon && <span className="text-base">{tab.icon}</span>}
- <span className="flex items-center gap-1">{tab.label}</span>
- </span>
- </LemonButton>
- )
- })}
- {!fullWidth && <div className="flex-1" />}
- {children}
- </div>
+ {tab.icon}
+ {tab.label}
+ </TabsTrigger>
+ ))}
+ {!fullWidth && <div className="flex-1" />}
+ {children}
+ </TabsList>
+ </Tabs>
)
}
diff --git a/frontend/src/scenes/session-recordings/player/watch/DebugModeBanner.tsx b/frontend/src/scenes/session-recordings/player/watch/DebugModeBanner.tsx
index c1a41f01e718..639e01c5b9c5 100644
--- a/frontend/src/scenes/session-recordings/player/watch/DebugModeBanner.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/DebugModeBanner.tsx
@@ -1,7 +1,8 @@
import { useActions, useValues } from 'kea'
import posthog from 'posthog-js'
-import { LemonBanner } from '@posthog/lemon-ui'
+import { IconX } from '@posthog/icons'
+import { Button, Item, ItemActions, ItemContent, ItemDescription } from '@posthog/quill'
import { playerSettingsLogic } from 'scenes/session-recordings/player/playerSettingsLogic'
import { playerSidebarLogic } from 'scenes/session-recordings/player/sidebar/playerSidebarLogic'
@@ -18,20 +19,28 @@ export function DebugModeBanner(): JSX.Element | null {
}
return (
- <LemonBanner
- type="info"
- onClose={dismissDebugHint}
- action={{
- children: 'Open Debug',
- 'data-attr': 'player-debug-hint-open',
- onClick: () => {
- posthog.capture('session recording mode changed', { mode: 'debug', source: 'hint' })
- setDebugMode(true)
- setTab(SessionRecordingSidebarTab.INSPECTOR)
- },
- }}
- >
- Looking for the inspector, network waterfall or linked issues? They are under Debug now.
- </LemonBanner>
+ <Item data-quill variant="outline" tone="info">
+ <ItemContent>
+ <ItemDescription>
+ Looking for the inspector, network waterfall or linked issues? They are under Debug now.
+ </ItemDescription>
+ </ItemContent>
+ <ItemActions>
+ <Button
+ variant="outline"
+ data-attr="player-debug-hint-open"
+ onClick={() => {
+ posthog.capture('session recording mode changed', { mode: 'debug', source: 'hint' })
+ setDebugMode(true)
+ setTab(SessionRecordingSidebarTab.INSPECTOR)
+ }}
+ >
+ Open Debug
+ </Button>
+ <Button size="icon" aria-label="Dismiss" onClick={dismissDebugHint}>
+ <IconX />
+ </Button>
+ </ItemActions>
+ </Item>
)
}
diff --git a/frontend/src/scenes/session-recordings/player/watch/PlayerModeBar.tsx b/frontend/src/scenes/session-recordings/player/watch/PlayerModeBar.tsx
index 554e02ff7755..41d5356f7584 100644
--- a/frontend/src/scenes/session-recordings/player/watch/PlayerModeBar.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/PlayerModeBar.tsx
@@ -3,12 +3,21 @@ import '../player-meta/PlayerMeta.scss'
import { useActions, useValues } from 'kea'
import posthog from 'posthog-js'
-import { LemonSegmentedButton, LemonSelect, LemonSelectOption, Link } from '@posthog/lemon-ui'
+import {
+ Button,
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+ Skeleton,
+ ToggleGroup,
+ ToggleGroupItem,
+} from '@posthog/quill'
import { CopyToClipboardInline } from 'lib/components/CopyToClipboard'
import { useResizeBreakpoints } from 'lib/hooks/useResizeObserver'
-import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
-import { Tooltip } from 'lib/lemon-ui/Tooltip'
+import { LinkPrimitive } from 'lib/lemon-ui/Link'
import { IconWindow } from 'scenes/session-recordings/player/icons'
import { parseUrl } from 'scenes/session-recordings/player/player-meta/PlayerMeta'
import {
@@ -33,6 +42,9 @@ import { debugTabKeys } from './DebugTabBar'
type PlayerMode = 'watch' | 'debug'
+// The select has no empty value, so "follow the user" takes a string of its own.
+const FOLLOW_USER = 'follow'
+
export function PlayerModeBar(): JSX.Element {
const { logicProps, sessionRecordingId } = useValues(sessionRecordingPlayerLogic)
const { windowIds, trackedWindow, currentURL, currentWindowIndex, loading } = useValues(playerMetaLogic(logicProps))
@@ -54,49 +66,62 @@ export function PlayerModeBar(): JSX.Element {
}
}
- const windowOptions: LemonSelectOption<number | null>[] = [
- {
- label: <IconWindow value={currentWindowIndex} className="text-secondary" />,
- value: null,
- labelInMenu: <>Follow the user</>,
- },
+ const windowOptions = [
+ { value: FOLLOW_USER, label: <IconWindow value={currentWindowIndex} className="text-muted-foreground" /> },
...windowIds.map((windowId) => ({
- label: <IconWindow value={windowId} className="text-secondary" />,
- labelInMenu: (
- <div className="flex flex-row gap-x-1 items-center">
- Follow window:&nbsp;
- <IconWindow value={windowId} className="text-secondary" />
- </div>
- ),
- value: windowId,
+ value: String(windowId),
+ label: <IconWindow value={windowId} className="text-muted-foreground" />,
})),
]
+
const { urlToUse, isWebUrl } = parseUrl(currentURL)
return (
- <div ref={ref} className="PlayerMeta relative">
+ <div ref={ref} data-quill className="PlayerMeta relative text-foreground">
<div className="flex flex-row items-center gap-x-1 whitespace-nowrap overflow-hidden px-1 py-0.5 text-xs">
- <LemonSegmentedButton
- size="xsmall"
- value={mode}
- onChange={setMode}
- options={[
- { value: 'watch', label: 'Watch', 'data-attr': 'player-mode-watch' },
- { value: 'debug', label: 'Debug', 'data-attr': 'player-mode-debug' },
- ]}
- />
+ <ToggleGroup
+ variant="outline"
+ size="sm"
+ value={[mode]}
+ onValueChange={(value: string[]) => value[0] && setMode(value[0] as PlayerMode)}
+ >
+ <ToggleGroupItem value="watch" data-attr="player-mode-watch">
+ Watch
+ </ToggleGroupItem>
+ <ToggleGroupItem value="debug" data-attr="player-mode-debug">
+ Debug
+ </ToggleGroupItem>
+ </ToggleGroup>
{loading ? (
- <LemonSkeleton className="w-1/3 h-4 my-1" />
+ <Skeleton className="w-1/3 h-4 my-1" />
) : (
<>
{windowIds.length > 1 && (
- <LemonSelect
- size="xsmall"
- options={windowOptions}
- value={trackedWindow}
- onSelect={(value) => setTrackedWindow(value)}
- data-attr="player-meta-window-select"
- />
+ <Select
+ items={windowOptions}
+ value={trackedWindow === null ? FOLLOW_USER : String(trackedWindow)}
+ onValueChange={(value: string | null) =>
+ setTrackedWindow(value === null || value === FOLLOW_USER ? null : Number(value))
+ }
+ >
+ <SelectTrigger
+ render={<Button variant="outline" size="sm" />}
+ data-attr="player-meta-window-select"
+ >
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value={FOLLOW_USER}>Follow the user</SelectItem>
+ {windowIds.map((windowId) => (
+ <SelectItem key={windowId} value={String(windowId)}>
+ <span className="flex flex-row gap-x-1 items-center">
+ Follow window:&nbsp;
+ <IconWindow value={windowId} className="text-muted-foreground" />
+ </span>
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
)}
{urlToUse && (
<span className="flex items-center gap-x-1 truncate">
@@ -108,16 +133,16 @@ export function PlayerModeBar(): JSX.Element {
data-attr="player-meta-copy-url"
/>
{isWebUrl ? (
- <Tooltip title={`Click to open url: ${urlToUse}`}>
- <Link
- data-attr="player-meta-open-url"
- to={urlToUse}
- target="_blank"
- className="truncate"
- >
- {urlToUse}
- </Link>
- </Tooltip>
+ <Button
+ variant="link"
+ size="inline"
+ render={<LinkPrimitive to={urlToUse} target="_blank" />}
+ tooltip={`Click to open url: ${urlToUse}`}
+ className="truncate"
+ data-attr="player-meta-open-url"
+ >
+ {urlToUse}
+ </Button>
) : (
<span className="truncate">{urlToUse}</span>
)}
diff --git a/frontend/src/scenes/session-recordings/player/watch/RecordingCommentsList.tsx b/frontend/src/scenes/session-recordings/player/watch/RecordingCommentsList.tsx
index 9646d0e0d30d..144639b94fc2 100644
--- a/frontend/src/scenes/session-recordings/player/watch/RecordingCommentsList.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/RecordingCommentsList.tsx
@@ -1,12 +1,11 @@
import { useValues } from 'kea'
-import { LemonButton } from '@posthog/lemon-ui'
+import { Button, Skeleton } from '@posthog/quill'
import { TextContent } from 'lib/components/Cards/TextCard/TextCard'
import { RichContentPreview } from 'lib/components/RichContentEditor/LemonRichContentEditor'
import { TZLabel } from 'lib/components/TZLabel'
import { dayjs } from 'lib/dayjs'
-import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
import { colonDelimitedDuration } from 'lib/utils/durations'
@@ -37,9 +36,9 @@ export function RecordingCommentsList({ sessionId }: { sessionId: string }): JSX
}
return (
- <div className="flex flex-col gap-2" data-attr="watch-panel-comments">
+ <div data-quill className="flex flex-col gap-2 text-foreground" data-attr="watch-panel-comments">
{sessionCommentsLoading && comments.length === 0 ? (
- <LemonSkeleton className="w-2/3 h-4" />
+ <Skeleton className="w-2/3 h-4" />
) : (
comments.map((comment) => {
const atMs = timeInRecordingMs(comment)
@@ -47,21 +46,22 @@ export function RecordingCommentsList({ sessionId }: { sessionId: string }): JSX
<div key={comment.id} className="flex items-start gap-2 text-sm">
<ProfilePicture user={comment.created_by} size="sm" className="mt-0.5" />
<div className="flex flex-col gap-0.5 min-w-0 flex-1">
- <div className="flex items-center gap-2 text-xs text-secondary">
- <span className="font-medium text-primary">
+ <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ <span className="font-medium text-foreground">
{comment.created_by?.first_name || comment.created_by?.email || 'Someone'}
</span>
<TZLabel time={comment.created_at} showPopover={false} />
{atMs !== null && (
- <LemonButton
- size="xsmall"
+ <Button
+ variant="link"
+ size="inline"
onClick={() => seek(atMs)}
data-attr="watch-panel-comment-seek"
>
<span className="tabular-nums">
{colonDelimitedDuration(atMs / 1000, 2)}
</span>
- </LemonButton>
+ </Button>
)}
</div>
{comment.rich_content ? (
diff --git a/frontend/src/scenes/session-recordings/player/watch/RecordingDebugSection.tsx b/frontend/src/scenes/session-recordings/player/watch/RecordingDebugSection.tsx
index 24dfd8e41689..bb3152436595 100644
--- a/frontend/src/scenes/session-recordings/player/watch/RecordingDebugSection.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/RecordingDebugSection.tsx
@@ -1,7 +1,7 @@
import { useActions, useValues } from 'kea'
import { IconSidePanel } from '@posthog/icons'
-import { LemonButton } from '@posthog/lemon-ui'
+import { Button } from '@posthog/quill'
import { playerSettingsLogic } from 'scenes/session-recordings/player/playerSettingsLogic'
import { playerSidebarLogic } from 'scenes/session-recordings/player/sidebar/playerSidebarLogic'
@@ -21,19 +21,21 @@ export function RecordingDebugSection(): JSX.Element {
return (
<div
- className="flex flex-col border rounded bg-surface-primary overflow-hidden h-[calc(45cqh-1.5rem)] min-h-48"
+ data-quill
+ className="flex flex-col border border-border rounded bg-card overflow-hidden h-[calc(45cqh-1.5rem)] min-h-48"
data-attr="watch-panel-debug"
>
<DebugTabBar tabs={tabs} activeTab={tab} onChange={setTab}>
- <LemonButton
- size="small"
- icon={<IconSidePanel />}
+ <Button
+ size="icon"
onClick={() => setWatchDebugDock('right')}
tooltip="Dock to right"
aria-label="Dock to right"
className="rounded-none"
data-attr="player-sidebar-dock-toggle"
- />
+ >
+ <IconSidePanel />
+ </Button>
</DebugTabBar>
<div className="flex flex-col flex-1 min-w-0 overflow-hidden">
<PlayerSidebarTab tab={tab} />
diff --git a/frontend/src/scenes/session-recordings/player/watch/RecordingObservationsSection.tsx b/frontend/src/scenes/session-recordings/player/watch/RecordingObservationsSection.tsx
index ef1da58c3516..de965d8760d4 100644
--- a/frontend/src/scenes/session-recordings/player/watch/RecordingObservationsSection.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/RecordingObservationsSection.tsx
@@ -1,7 +1,7 @@
import { useActions, useValues } from 'kea'
import { IconSparkles } from '@posthog/icons'
-import { LemonBadge, LemonCollapse, LemonSkeleton } from '@posthog/lemon-ui'
+import { Badge, Collapsible, CollapsibleContent, CollapsibleTrigger, Skeleton } from '@posthog/quill'
import { playerSettingsLogic } from 'scenes/session-recordings/player/playerSettingsLogic'
import { sessionRecordingPlayerLogic } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'
@@ -20,7 +20,7 @@ export function RecordingObservationsSection({ sessionId }: { sessionId: string
const count = momentCount(timeline)
const content = !hasLoadedObservations ? (
- <LemonSkeleton className="h-24 m-2" />
+ <Skeleton className="h-24 m-2" />
) : observations.length === 0 ? (
<RecordingObservationsEmptyState
sessionId={sessionId}
@@ -34,25 +34,19 @@ export function RecordingObservationsSection({ sessionId }: { sessionId: string
)
return (
- <LemonCollapse
- size="small"
- panels={[
- {
- key: 'observations',
- header: (
- <span className="flex items-center gap-1.5">
- <IconSparkles />
- <span>Observations</span>
- {count > 0 && <LemonBadge.Number count={count} size="small" status="muted" />}
- </span>
- ),
- content,
- className: 'p-0',
- dataAttr: 'watch-panel-section-observations',
- },
- ]}
- activeKey={watchPanelOpenSections.includes('observations') ? 'observations' : null}
- onChange={() => toggleWatchPanelSection('observations')}
- />
+ <Collapsible
+ data-quill
+ open={watchPanelOpenSections.includes('observations')}
+ onOpenChange={() => toggleWatchPanelSection('observations')}
+ data-attr="watch-panel-section-observations"
+ >
+ <CollapsibleTrigger className="w-full">
+ <IconSparkles />
+ <span>Observations</span>
+ {count > 0 && <Badge>{count}</Badge>}
+ <span className="grow" />
+ </CollapsibleTrigger>
+ <CollapsibleContent className="p-0">{content}</CollapsibleContent>
+ </Collapsible>
)
}
diff --git a/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewDisclosure.tsx b/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewDisclosure.tsx
index 4be8401b875a..9a3603d4b02d 100644
--- a/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewDisclosure.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewDisclosure.tsx
@@ -1,6 +1,6 @@
import { useActions, useValues } from 'kea'
-import { LemonCollapse } from '@posthog/lemon-ui'
+import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@posthog/quill'
import { playerSettingsLogic } from 'scenes/session-recordings/player/playerSettingsLogic'
@@ -9,21 +9,21 @@ import { RecordingOverviewPanels } from './RecordingOverviewPanels'
export function RecordingOverviewDisclosure(): JSX.Element {
const { watchPanelOpenSections } = useValues(playerSettingsLogic)
const { toggleWatchPanelSection } = useActions(playerSettingsLogic)
- const open = watchPanelOpenSections.includes('overview')
return (
- <LemonCollapse
- size="small"
- panels={[
- {
- key: 'overview',
- header: 'Overview',
- content: <RecordingOverviewPanels />,
- dataAttr: 'watch-panel-section-overview',
- },
- ]}
- activeKey={open ? 'overview' : null}
- onChange={() => toggleWatchPanelSection('overview')}
- />
+ <Collapsible
+ data-quill
+ open={watchPanelOpenSections.includes('overview')}
+ onOpenChange={() => toggleWatchPanelSection('overview')}
+ data-attr="watch-panel-section-overview"
+ >
+ <CollapsibleTrigger className="w-full">
+ Overview
+ <span className="grow" />
+ </CollapsibleTrigger>
+ <CollapsibleContent>
+ <RecordingOverviewPanels />
+ </CollapsibleContent>
+ </Collapsible>
)
}
diff --git a/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewPanels.tsx b/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewPanels.tsx
index 064b6dfd3e56..1d3803def0d0 100644
--- a/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewPanels.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/RecordingOverviewPanels.tsx
@@ -1,9 +1,10 @@
import { useValues } from 'kea'
import { ReactNode } from 'react'
+import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@posthog/quill'
+
import { SettingsSnapshot } from 'lib/components/SettingsSnapshot'
import { useResizeBreakpoints } from 'lib/hooks/useResizeObserver'
-import { LemonCollapse } from 'lib/lemon-ui/LemonCollapse'
import { playerMetaLogic } from 'scenes/session-recordings/player/player-meta/playerMetaLogic'
import { TTLWarning } from 'scenes/session-recordings/player/player-meta/PlayerMetaTopSettings'
import { sessionRecordingPlayerLogic } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'
@@ -19,7 +20,6 @@ const WIDE_OVERVIEW_PX = 960
export function RecordingOverviewPanels(): JSX.Element {
const { ref, size } = useResizeBreakpoints({ 0: 'narrow', [WIDE_OVERVIEW_PX]: 'wide' })
-
return (
<div ref={ref} data-attr="watch-panel-overview">
{size === 'wide' ? <WideOverview /> : <PlayerSidebarOverviewTab />}
@@ -30,9 +30,8 @@ export function RecordingOverviewPanels(): JSX.Element {
function WideOverview(): JSX.Element {
const { logicProps } = useValues(sessionRecordingPlayerLogic)
const { snapshotAt } = useValues(playerMetaLogic(logicProps))
-
return (
- <div className="flex flex-col gap-2 bg-primary px-2 py-2">
+ <div data-quill className="flex flex-col gap-2 bg-background text-foreground px-2 py-2">
<TTLWarning />
<div className="grid grid-cols-3 gap-x-2 gap-y-1">
<OverviewColumn title="Session" dataAttr="watch-overview-session">
@@ -45,18 +44,15 @@ function WideOverview(): JSX.Element {
<PlayerSidebarOverviewDeviceTab />
</OverviewColumn>
</div>
- <LemonCollapse
- size="small"
- panels={[
- {
- key: 'replay-settings',
- header: 'Settings at the time of the recording',
- content: (
- <SettingsSnapshot at={snapshotAt} scope={OVERVIEW_SNAPSHOT_SCOPE} title="" layout="grid" />
- ),
- },
- ]}
- />
+ <Collapsible>
+ <CollapsibleTrigger className="w-full">
+ Settings at the time of the recording
+ <span className="grow" />
+ </CollapsibleTrigger>
+ <CollapsibleContent>
+ <SettingsSnapshot at={snapshotAt} scope={OVERVIEW_SNAPSHOT_SCOPE} title="" layout="grid" />
+ </CollapsibleContent>
+ </Collapsible>
<PlayerSidebarExperimentsSection />
<PlayerSidebarOverviewOtherWatchers />
</div>
@@ -75,7 +71,7 @@ function OverviewColumn({
// subgrid keeps the headings, top cards and row tables level across columns
return (
<div className="grid grid-cols-1 grid-rows-subgrid row-span-3 gap-1 min-w-0" data-attr={dataAttr}>
- <span className="text-xxs font-semibold uppercase tracking-wide text-secondary px-0.5">{title}</span>
+ <span className="text-xxs font-semibold uppercase tracking-wide text-muted-foreground px-0.5">{title}</span>
{children}
</div>
)
diff --git a/frontend/src/scenes/session-recordings/player/watch/RecordingTitleBlock.tsx b/frontend/src/scenes/session-recordings/player/watch/RecordingTitleBlock.tsx
index c6a32768912e..a4b1eb5b442d 100644
--- a/frontend/src/scenes/session-recordings/player/watch/RecordingTitleBlock.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/RecordingTitleBlock.tsx
@@ -2,12 +2,11 @@ import { useActions, useValues } from 'kea'
import { ReactNode } from 'react'
import { IconChevronRight } from '@posthog/icons'
-import { LemonButton } from '@posthog/lemon-ui'
+import { Button, Heading, Skeleton } from '@posthog/quill'
import { PropertyIcon } from 'lib/components/PropertyIcon/PropertyIcon'
import { TZLabel } from 'lib/components/TZLabel'
-import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
-import { Link } from 'lib/lemon-ui/Link'
+import { LinkPrimitive } from 'lib/lemon-ui/Link'
import { humanFriendlyDuration } from 'lib/utils/durations'
import { PlayerMetaExperimentTags } from 'scenes/session-recordings/player/player-meta/PlayerMetaExperimentTags'
import { PinToPlaylistButton } from 'scenes/session-recordings/player/player-meta/PlayerMetaLinks'
@@ -39,11 +38,11 @@ export function RecordingTitleBlock({ actions }: { actions?: ReactNode }): JSX.E
if (loading) {
return (
- <div className="flex items-center gap-3">
- <LemonSkeleton.Circle className="w-10 h-10" />
+ <div data-quill className="flex items-center gap-3">
+ <Skeleton className="w-10 h-10 rounded-full" />
<div className="flex flex-col gap-1 flex-1">
- <LemonSkeleton className="w-1/3 h-5" />
- <LemonSkeleton className="w-1/2 h-4" />
+ <Skeleton className="w-1/3 h-5" />
+ <Skeleton className="w-1/2 h-4" />
</div>
{actionBar}
</div>
@@ -66,34 +65,41 @@ export function RecordingTitleBlock({ actions }: { actions?: ReactNode }): JSX.E
}
return (
- <div className="flex items-start gap-3 min-w-0 flex-wrap" data-attr="watch-panel-title">
+ <div
+ data-quill
+ className="flex items-start gap-3 min-w-0 flex-wrap text-foreground"
+ data-attr="watch-panel-title"
+ >
{sessionPerson && <PersonIcon person={sessionPerson} size="lg" className="mr-0 shrink-0" />}
<div className="flex flex-col gap-0.5 min-w-0 flex-1 basis-72">
- <h2 className="text-base font-semibold truncate m-0 ph-no-capture">
+ <Heading size="base" render={<h2 />} className="truncate m-0 ph-no-capture">
{personHref ? (
- <Link to={personHref} subtle data-attr="watch-panel-title-person">
+ <Button
+ variant="link-muted"
+ size="inline"
+ render={<LinkPrimitive to={personHref} />}
+ data-attr="watch-panel-title-person"
+ >
{personName}
- </Link>
+ </Button>
) : (
personName
)}
- </h2>
+ </Heading>
{personUUID && (
<div>
- <LemonButton
- size="xsmall"
- type="tertiary"
- sideIcon={<IconChevronRight />}
+ <Button
onClick={showMoreFromPerson}
tooltip="Filter the list to this person's recordings"
className="-ml-1"
data-attr="watch-panel-more-from-person"
>
More from this person
- </LemonButton>
+ <IconChevronRight />
+ </Button>
</div>
)}
- <div className="flex items-center gap-x-2 gap-y-0.5 flex-wrap text-xs text-secondary ph-no-capture">
+ <div className="flex items-center gap-x-2 gap-y-0.5 flex-wrap text-xs text-muted-foreground ph-no-capture">
{durationSeconds !== undefined && <span>{humanFriendlyDuration(durationSeconds)}</span>}
{startTime && <TZLabel time={startTime} showPopover={false} />}
{iconProperties.map(({ property, value, label }) => (
diff --git a/frontend/src/scenes/session-recordings/player/watch/WatchPanel.tsx b/frontend/src/scenes/session-recordings/player/watch/WatchPanel.tsx
index 3589f6e6f79a..d13d76a73e7d 100644
--- a/frontend/src/scenes/session-recordings/player/watch/WatchPanel.tsx
+++ b/frontend/src/scenes/session-recordings/player/watch/WatchPanel.tsx
@@ -30,7 +30,7 @@ export function WatchPanel({
const vision = visionSurfaceShown(logicProps)
return (
- <div className="flex flex-col gap-4 px-1 pt-3 pb-6" data-attr="watch-panel">
+ <div data-quill className="flex flex-col gap-4 px-1 pt-3 pb-6 text-foreground" data-attr="watch-panel">
<DebugModeBanner />
<RecordingTitleBlock
actions={vision ? <SummarizeRecordingBar inline extraActions={summaryActions} /> : summaryActions}