Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Player improvements

Blue Mouse4d9d0ef84aa2
diff --git a/web/app/pages/Project/tabs/Sessions/Pageflow.tsx b/web/app/pages/Project/tabs/Sessions/Pageflow.tsx
index 985d18ae1..2186d8598 100644
--- a/web/app/pages/Project/tabs/Sessions/Pageflow.tsx
+++ b/web/app/pages/Project/tabs/Sessions/Pageflow.tsx
@@ -26,22 +26,29 @@ import { cn, getStringFromTime, getTimeFromSeconds } from '~/utils/generic'
dayjs.extend(utc)
-interface Metadata {
+export interface PageflowMetadata {
key: string
value: string
}
-type EventType = 'pageview' | 'event' | 'error' | 'sale' | 'refund'
+export type PageflowEventType =
+ | 'pageview'
+ | 'event'
+ | 'error'
+ | 'sale'
+ | 'refund'
+
+export interface PageflowEvent {
+ type: PageflowEventType
+ value: string
+ created: string
+ metadata?: PageflowMetadata[]
+ amount?: number
+ currency?: string
+}
interface PageflowProps {
- pages: {
- type: EventType
- value: string
- created: string
- metadata?: Metadata[]
- amount?: number
- currency?: string
- }[]
+ pages: PageflowEvent[]
timeFormat: '12-hour' | '24-hour'
zoomedTimeRange?: [Date, Date] | null
sdur?: number
@@ -53,8 +60,8 @@ interface PageflowItemProps {
index: number
value: string
created: string
- type: EventType
- metadata?: Metadata[]
+ type: PageflowEventType
+ metadata?: PageflowMetadata[]
displayCreated: string
timeDuration: number | null
t: TFunction
@@ -63,7 +70,10 @@ interface PageflowItemProps {
websiteUrl?: string | null
}
-const ICON_BY_TYPE: Record<EventType, React.ElementType> = {
+export const PAGEFLOW_ICON_BY_TYPE: Record<
+ PageflowEventType,
+ React.ElementType
+> = {
pageview: FileTextIcon,
event: CursorClickIcon,
error: WarningIcon,
@@ -71,7 +81,7 @@ const ICON_BY_TYPE: Record<EventType, React.ElementType> = {
refund: ArrowCounterClockwiseIcon,
}
-const ICON_COLOR_BY_TYPE: Record<EventType, string> = {
+export const PAGEFLOW_ICON_COLOR_BY_TYPE: Record<PageflowEventType, string> = {
pageview: 'text-yellow-500',
event: 'text-green-500',
error: 'text-red-500',
@@ -141,13 +151,17 @@ const TypeIcon = ({
type,
className,
}: {
- type: EventType
+ type: PageflowEventType
className?: string
}) => {
- const Icon = ICON_BY_TYPE[type]
+ const Icon = PAGEFLOW_ICON_BY_TYPE[type]
return (
<Icon
- className={cn('h-4 w-4 shrink-0', ICON_COLOR_BY_TYPE[type], className)}
+ className={cn(
+ 'h-4 w-4 shrink-0',
+ PAGEFLOW_ICON_COLOR_BY_TYPE[type],
+ className,
+ )}
weight='duotone'
aria-hidden
/>
@@ -170,7 +184,7 @@ const MetadataPanel = ({
metadata,
t,
}: {
- metadata: Metadata[]
+ metadata: PageflowMetadata[]
t: TFunction
}) => {
const [showAll, setShowAll] = useState(false)
@@ -240,7 +254,7 @@ const MetadataPanel = ({
)
}
-const formatAmount = (amount: number, currency?: string) => {
+export const formatAmount = (amount: number, currency?: string) => {
try {
return new Intl.NumberFormat('en-US', {
style: 'currency',
diff --git a/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsx b/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsx
index 023227a2c..3c9a09e03 100644
--- a/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsx
+++ b/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsx
@@ -41,22 +41,13 @@ import Flag from '~/ui/Flag'
import countries from '~/utils/isoCountries'
import NoSessionDetails from './NoSessionDetails'
-import { Pageflow } from './Pageflow'
+import { Pageflow, type PageflowEvent } from './Pageflow'
import { SessionChart } from './SessionChart'
dayjs.extend(utc)
const SessionReplayModal = lazy(() => import('./SessionReplayModal'))
-interface PageflowItem {
- type: 'pageview' | 'event' | 'error' | 'sale' | 'refund'
- value: string
- created: string
- metadata?: { key: string; value: string }[]
- amount?: number
- currency?: string
-}
-
interface SessionDetailViewProps {
activeSession: {
details: SessionDetailsType
@@ -66,7 +57,7 @@ interface SessionDetailViewProps {
customEvents?: number[]
errors?: number[]
}
- pages?: PageflowItem[]
+ pages?: PageflowEvent[]
timeBucket?: string
sessionStart?: string
lastActivity?: string
@@ -725,6 +716,8 @@ export const SessionDetailView = ({
projectId={projectId}
psid={sessionId}
replay={activeSession.replay}
+ pages={activeSession.pages || []}
+ timeFormat={timeFormat}
/>
</Suspense>
) : null}
diff --git a/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsx b/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsx
index 036def833..9350c9fd2 100644
--- a/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsx
+++ b/web/app/pages/Project/tabs/Sessions/SessionReplayModal.tsx
@@ -45,11 +45,20 @@ import type {
SessionReplayResponse,
} from '~/api/api.server'
import { useSessionReplayProxy } from '~/hooks/useAnalyticsProxy'
+import { useViewProjectContext } from '~/pages/Project/View/ViewProject'
import Button from '~/ui/Button'
import Loader from '~/ui/Loader'
import { Text } from '~/ui/Text'
import Tooltip from '~/ui/Tooltip'
-import { cn, getStringFromTime, getTimeFromSeconds } from '~/utils/generic'
+import { cn } from '~/utils/generic'
+
+import {
+ formatAmount as formatPageflowAmount,
+ PAGEFLOW_ICON_BY_TYPE,
+ PAGEFLOW_ICON_COLOR_BY_TYPE,
+ type PageflowEvent,
+ type PageflowEventType,
+} from './Pageflow'
const SPEEDS = [0.5, 1, 1.5, 2, 4]
const EVENT_FULL_SNAPSHOT = 2
@@ -85,6 +94,15 @@ interface TimelineStep {
| 'mutation'
}
+interface PageflowMarker {
+ id: string
+ type: PageflowEventType
+ offset: number
+ percent: number
+ label: string
+ detail: string
+}
+
interface HoverPreview {
offset: number
percent: number
@@ -110,6 +128,8 @@ interface SessionReplayModalProps {
projectId: string
psid: string
replay?: SessionReplayMetadata | null
+ pages?: PageflowEvent[]
+ timeFormat: '12-hour' | '24-hour'
}
const getTimestamp = (event?: ReplayEvent) =>
@@ -122,6 +142,109 @@ const formatReplayTime = (ms: number) => {
return `${minutes}:${String(rest).padStart(2, '0')}`
}
+const PAGEFLOW_EVENT_LABEL_DEFAULTS: Record<PageflowEventType, string> = {
+ pageview: 'Pageview',
+ event: 'Event',
+ error: 'Error',
+ sale: 'Sale',
+ refund: 'Refund',
+}
+
+const PAGEFLOW_MARKER_CLASS =
+ 'bg-white/55 ring-white/35 group-hover:bg-white/85 group-focus-visible:bg-white/85'
+
+const PAGEFLOW_SYNC_TOLERANCE_MS = 5000
+const TIMEZONE_SUFFIX_PATTERN = /(?:z|[+-]\d{2}:?\d{2})$/i
+
+const getPageflowTimestamp = (value?: string) => {
+ if (!value) return Number.NaN
+ const normalised = TIMEZONE_SUFFIX_PATTERN.test(value) ? value : `${value}Z`
+ const timestamp = Date.parse(normalised)
+ return Number.isFinite(timestamp) ? timestamp : Number.NaN
+}
+
+const formatReplayStartDate = (
+ timestamp: number,
+ language: string,
+ timeFormat: '12-hour' | '24-hour',
+ timezone: string,
+) => {
+ if (!Number.isFinite(timestamp) || timestamp <= 0) return null
+
+ return new Date(timestamp).toLocaleDateString(language, {
+ day: 'numeric',
+ month: 'short',
+ year: 'numeric',
+ hour: 'numeric',
+ minute: 'numeric',
+ second: 'numeric',
+ hourCycle: timeFormat === '12-hour' ? 'h12' : 'h23',
+ timeZone: timezone,
+ })
+}
+
+const getPageflowEventLabel = (type: PageflowEventType, t: TFunction) =>
+ String(
+ t(`project.sessionReplay.timelineEvents.${type}`, {
+ defaultValue: PAGEFLOW_EVENT_LABEL_DEFAULTS[type],
+ }),
+ )
+
+const getPageflowEventDetail = (event: PageflowEvent, t: TFunction) => {
+ if (event.type === 'sale' || event.type === 'refund') {
+ const sign = event.type === 'refund' ? '-' : '+'
+ const amount = `${sign}${formatPageflowAmount(
+ event.amount || 0,
+ event.currency,
+ )}`
+ return event.value ? `${amount} · ${event.value}` : amount
+ }
+
+ return event.value || String(t('common.notSet', { defaultValue: 'Not set' }))
+}
+
+const buildPageflowMarkers = (
+ pages: PageflowEvent[] | undefined,
+ replayStartTimestamp: number,
+ duration: number,
+ t: TFunction,
+): PageflowMarker[] => {
+ if (
+ !pages?.length ||
+ !Number.isFinite(replayStartTimestamp) ||
+ replayStartTimestamp <= 0 ||
+ duration <= 0
+ ) {
+ return []
+ }
+
+ return pages
+ .flatMap((event, index) => {
+ const timestamp = getPageflowTimestamp(event.created)
+ const offset = timestamp - replayStartTimestamp
+
+ if (
+ !Number.isFinite(offset) ||
+ offset < -PAGEFLOW_SYNC_TOLERANCE_MS ||
+ offset > duration + PAGEFLOW_SYNC_TOLERANCE_MS
+ ) {
+ return []
+ }
+
+ const safeOffset = Math.min(duration, Math.max(0, offset))
+
+ return {
+ id: `${event.type}-${event.created}-${index}`,
+ type: event.type,
+ offset: safeOffset,
+ percent: (safeOffset / duration) * 100,
+ label: getPageflowEventLabel(event.type, t),
+ detail: getPageflowEventDetail(event, t),
+ }
+ })
+ .sort((a, b) => a.offset - b.offset)
+}
+
const getEventDetail = (event: ReplayEvent) => {
const href = event.data?.href
if (typeof href === 'string') {
@@ -262,42 +385,35 @@ const buildTimelineSteps = (
const TIMELINE_KIND_META: Record<
TimelineStep['kind'],
- { Icon: ElementType; iconClass: string; markerClass: string }
+ { Icon: ElementType; iconClass: string }
> = {
navigation: {
Icon: PlayIcon,
iconClass: 'text-sky-600 dark:text-sky-400',
- markerClass: 'bg-sky-500',
},
snapshot: {
Icon: PlayIcon,
iconClass: 'text-slate-600 dark:text-slate-300',
- markerClass: 'bg-slate-400',
},
click: {
Icon: CursorClickIcon,
iconClass: 'text-emerald-600 dark:text-emerald-400',
- markerClass: 'bg-emerald-500',
},
scroll: {
Icon: CaretRightIcon,
iconClass: 'text-gray-600 dark:text-gray-300',
- markerClass: 'bg-gray-400',
},
input: {
Icon: TextTIcon,
iconClass: 'text-indigo-600 dark:text-slate-300',
- markerClass: 'bg-indigo-500 dark:bg-slate-300',
},
resize: {
Icon: CaretRightIcon,
iconClass: 'text-amber-600 dark:text-amber-400',
- markerClass: 'bg-amber-500',
},
mutation: {
Icon: ListBulletsIcon,
iconClass: 'text-gray-500 dark:text-gray-400',
- markerClass: 'bg-gray-300 dark:bg-slate-500',
},
}
@@ -523,6 +639,89 @@ const SettingsToggle = ({ on }: { on: boolean }) => (
</span>
)
+const PageflowMarkerTooltip = ({ marker }: { marker: PageflowMarker }) => {
+ const Icon = PAGEFLOW_ICON_BY_TYPE[marker.type]
+
+ return (
+ <div className='min-w-0'>
+ <div className='flex min-w-0 items-center gap-1.5'>
+ <Icon
+ className={cn(
+ 'size-4 shrink-0',
+ PAGEFLOW_ICON_COLOR_BY_TYPE[marker.type],
+ )}
+ weight='duotone'
+ aria-hidden
+ />
+ <Text
+ as='span'
+ size='sm'
+ weight='semibold'
+ colour='inherit'
+ className='min-w-0 leading-4 text-slate-50'
+ >
+ {marker.label}
+ </Text>
+ </div>
+ <Text
+ as='div'
+ size='xs'
+ colour='inherit'
+ className='mt-1 max-w-64 leading-4 wrap-anywhere text-slate-300'
+ >
+ {marker.detail}
+ </Text>
+ </div>
+ )
+}
+
+const PageflowMarkerButton = ({
+ marker,
+ onHover,
+ onSeek,
+}: {
+ marker: PageflowMarker
+ onHover: () => void
+ onSeek: (offset: number, shouldPlay?: boolean) => void
+}) => {
+ const label = `${marker.label}: ${marker.detail}`
+
+ return (
+ <Tooltip
+ asChild
+ ariaLabel={label}
+ delay={80}
+ disableHoverableContent
+ contentClassName='max-w-72 px-2.5 py-2 [--default-transition-duration:150ms]'
+ text={<PageflowMarkerTooltip marker={marker} />}
+ tooltipNode={
+ <Button
+ variant='ghost'
+ focus={false}
+ aria-label={label}
+ onMouseEnter={onHover}
+ onMouseMove={(event: ReactMouseEvent<HTMLButtonElement>) => {
+ event.stopPropagation()
+ }}
+ onClick={(event: ReactMouseEvent<HTMLButtonElement>) => {
+ event.stopPropagation()
+ onSeek(marker.offset, false)
+ }}
+ className='group pointer-events-auto absolute top-1/2 h-5 w-4 -translate-x-1/2 -translate-y-1/2 justify-center border-transparent bg-transparent p-0 text-slate-100 hover:border-transparent hover:bg-transparent focus-visible:ring-2 focus-visible:ring-white/80 focus-visible:ring-offset-0 focus-visible:outline-none dark:text-slate-100 dark:hover:border-transparent dark:hover:bg-transparent'
+ style={{ left: `${marker.percent}%` }}
+ >
+ <span
+ className={cn(
+ 'block h-3 w-1 rounded-full opacity-95 ring-1 ring-black/20 transition-[width,height,opacity,transform] duration-150 ease-out group-hover:h-4 group-hover:w-1.5 group-hover:opacity-100 group-focus-visible:h-4 group-focus-visible:w-1.5 motion-reduce:transition-none',
+ PAGEFLOW_MARKER_CLASS,
+ )}
+ />
+ </Button>
+ }
+ />
+ )
+}
+
const SETTINGS_ROW_CLASS =
'flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm text-slate-100 transition-colors duration-150 ease-out hover:bg-white/10 focus-visible:bg-white/10 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent'
@@ -532,8 +731,14 @@ export const SessionReplayModal = ({
projectId,
psid,
replay,
+ pages = [],
+ timeFormat,
}: SessionReplayModalProps) => {
- const { t } = useTranslation('common')
+ const {
+ t,
+ i18n: { language },
+ } = useTranslation('common')
+ const { timezone } = useViewProjectContext()
const { fetchSessionReplay, isLoading } = useSessionReplayProxy()
const [payload, setPayload] = useState<SessionReplayResponse | null>(null)
const [error, setError] = useState<string | null>(null)
@@ -572,7 +777,7 @@ export const SessionReplayModal = ({
() => (payload?.events || []) as ReplayEvent[],
[payload?.events],
)
- const activeReplay = payload?.replay || replay || null
+ const replayStartTimestamp = getTimestamp(events[0])
const timelineSteps = useMemo(
() => buildTimelineSteps(events, t),
[events, t],
@@ -624,6 +829,20 @@ export const SessionReplayModal = ({
() => getNearestStep(timelineSteps, currentTime),
[currentTime, timelineSteps],
)
+ const pageflowMarkers = useMemo(
+ () => buildPageflowMarkers(pages, replayStartTimestamp, duration, t),
+ [duration, pages, replayStartTimestamp, t],
+ )
+ const replayStartDateTimestamp =
+ replayStartTimestamp || getPageflowTimestamp(pages[0]?.created)
+ const replayStartDate = useMemo(() => {
+ return formatReplayStartDate(
+ replayStartDateTimestamp,
+ language,
+ timeFormat,
+ timezone,
+ )
+ }, [language, replayStartDateTimestamp, timeFormat, timezone])
const shouldShowPreview =
Boolean(hoverPreview) && hasEvents && !error && duration > 0
const canControlReplay = hasEvents && !error && duration > 0
@@ -923,7 +1142,7 @@ export const SessionReplayModal = ({
)
const handlePlayerClick = useCallback(
- (event: ReactMouseEvent<HTMLDivElement>) => {
+ (event: ReactMouseEvent<HTMLButtonElement>) => {
if (!canControlReplay) return
// Clicks on the controls bar / settings menu drive their own actions.
if ((event.target as HTMLElement).closest('[data-replay-controls]')) {
@@ -940,7 +1159,7 @@ export const SessionReplayModal = ({
)
const handlePlayerKeyDown = useCallback(
- (event: ReactKeyboardEvent<HTMLDivElement>) => {
+ (event: ReactKeyboardEvent<HTMLButtonElement>) => {
if (!canControlReplay) return
// Let focused controls (scrubber, buttons, menu) handle their own keys.
if ((event.target as HTMLElement).closest('[data-replay-controls]')) {
@@ -1086,11 +1305,6 @@ export const SessionReplayModal = ({
onClose()
}
- const replayDuration =
- activeReplay?.replayDuration && activeReplay.replayDuration > 0
- ? getStringFromTime(getTimeFromSeconds(activeReplay.replayDuration))
- : formatReplayTime(duration)
-
return (
<Dialog className='relative z-50' open={isOpen} onClose={close}>
<DialogBackdrop
@@ -1107,14 +1321,7 @@ export const SessionReplayModal = ({
)}
>
<div className='flex min-h-16 items-center justify-between gap-3 border-b border-gray-200 px-4 dark:border-slate-800'>
- <div className='flex min-w-0 items-center gap-3'>
- <span className='hidden h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-gray-50 ring-1 ring-gray-200/80 sm:flex dark:bg-slate-900 dark:ring-slate-700/70'>
- <PlayIcon
- className='size-4.5 text-gray-700 dark:text-slate-200'
- weight='duotone'
- aria-hidden
- />
- </span>
+ <div className='flex min-w-0 items-center'>
<div className='min-w-0'>
<DialogTitle as='h2' className='truncate'>
<Text
@@ -1127,16 +1334,21 @@ export const SessionReplayModal = ({
{t('project.sessionReplay.title')}
</Text>
</DialogTitle>
- <div className='mt-1 flex min-w-0 flex-wrap items-center gap-2'>
- <Text size='xs' colour='secondary' truncate>
- {activeReplay
- ? t('project.sessionReplay.summary', {
- events: activeReplay.eventCount.toLocaleString(),
- duration: replayDuration,
- })
- : psid}
- </Text>
- </div>
+ {replayStartDate ? (
+ <time
+ dateTime={new Date(replayStartDateTimestamp).toISOString()}
+ className='block'
+ >
+ <Text
+ as='span'
+ size='xs'
+ colour='secondary'
+ className='leading-4'
+ >
+ {t('project.sessionStartedAt')}: {replayStartDate}
+ </Text>
+ </time>
+ ) : null}
</div>
</div>
<div className='flex shrink-0 items-center gap-2'>
@@ -1237,10 +1449,7 @@ export const SessionReplayModal = ({
className='replay-bezel flex size-16 items-center justify-center rounded-full bg-black/60'
>
{bezel.kind === 'play' ? (
- <PlayIcon
- weight='fill'
- className='size-8 translate-x-0.5 text-white'
- />
+ <PlayIcon weight='fill' className='size-8 text-white' />
) : (
<PauseIcon weight='fill' className='size-8 text-white' />
)}
@@ -1254,10 +1463,7 @@ export const SessionReplayModal = ({
aria-hidden
>
<span className='flex size-16 items-center justify-center rounded-full bg-black/55 ring-1 ring-white/10 transition-transform duration-150 ease-out group-hover/player:scale-105'>
- <PlayIcon
- weight='fill'
- className='size-8 translate-x-0.5 text-white'
- />
+ <PlayIcon weight='fill' className='size-8 text-white' />
</span>
</div>
) : null}
@@ -1295,6 +1501,19 @@ export const SessionReplayModal = ({
onMouseMove={updateHoverPreview}
onMouseLeave={() => setHoverPreview(null)}
>
+ {pageflowMarkers.length ? (
+ <div className='pointer-events-none absolute inset-x-0 bottom-full z-30 mb-1 h-5'>
+ {pageflowMarkers.map((marker) => (
+ <PageflowMarkerButton
+ key={marker.id}
+ marker={marker}
+ onHover={() => setHoverPreview(null)}
+ onSeek={seekTo}
+ />
+ ))}
+ </div>
+ ) : null}
+
{shouldShowPreview && hoverPreview ? (
<div
className='pointer-events-none absolute bottom-full z-40 mb-3 w-56'
@@ -1334,30 +1553,6 @@ export const SessionReplayModal = ({
className='absolute inset-y-0 left-0 rounded-full bg-red-600'
style={{ width: `${progressPercent}%` }}
/>
- {duration > 0
- ? timelineSteps.map((step) => {
- const { markerClass } = getTimelineMeta(step.kind)
- return (
- <span
- key={step.id}
- className={cn(
- 'absolute top-1/2 h-2 w-[2px] -translate-x-1/2 -translate-y-1/2 rounded-full opacity-60',
- markerClass,
- )}
- style={{
- left: `${Math.min(
- 100,
- Math.max(
- 0,
- (step.offset / duration) * 100,
- ),
- )}%`,
- }}
- aria-hidden
- />
- )
- })
- : null}
<span
className='absolute top-1/2 size-3 -translate-x-1/2 -translate-y-1/2 scale-0 rounded-full bg-red-600 shadow-sm transition-transform duration-100 ease-out group-hover/scrubber:scale-100'
style={{ left: `${progressPercent}%` }}
diff --git a/web/app/pages/Project/tabs/Sessions/replayPlayer.css b/web/app/pages/Project/tabs/Sessions/replayPlayer.css
index 02d4be799..e140bd0de 100644
--- a/web/app/pages/Project/tabs/Sessions/replayPlayer.css
+++ b/web/app/pages/Project/tabs/Sessions/replayPlayer.css
@@ -116,12 +116,14 @@
position: absolute;
width: 20px;
height: 20px;
- transition: left 0.05s linear, top 0.05s linear;
+ transition:
+ left 0.05s linear,
+ top 0.05s linear;
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==');
- border-color: transparent; /* otherwise we transition from black when .touch-device class is added */
+ border-color: transparent; /* otherwise we transition from black when .touch-device class is added */
}
.replayer-mouse::after {
content: '';
@@ -137,7 +139,7 @@
animation: click 0.2s ease-in-out 1;
}
.replayer-mouse.touch-device {
- background-image: none; /* there's no passive cursor on touch-only screens */
+ background-image: none; /* there's no passive cursor on touch-only screens */
width: 70px;
height: 70px;
border-width: 4px;
@@ -146,14 +148,20 @@
margin-left: -37px;
margin-top: -37px;
border-color: rgba(73, 80, 246, 0);
- transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;
+ transition:
+ left 0s linear,
+ top 0s linear,
+ border-color 0.2s ease-in-out;
}
.replayer-mouse.touch-device.touch-active {
border-color: rgba(73, 80, 246, 1);
- transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;
+ transition:
+ left 0.25s linear,
+ top 0.25s linear,
+ border-color 0.2s ease-in-out;
}
.replayer-mouse.touch-device::after {
- opacity: 0; /* there's no passive cursor on touch-only screens */
+ opacity: 0; /* there's no passive cursor on touch-only screens */
}
.replayer-mouse.touch-device.active::after {
animation: touch-click 0.2s ease-in-out 1;
diff --git a/web/public/locales/en.json b/web/public/locales/en.json
index b17579f8a..149d457f2 100644
--- a/web/public/locales/en.json
+++ b/web/public/locales/en.json
@@ -1966,7 +1966,6 @@
"duration": "Replay duration: {{duration}}",
"expiresAt": "Expires {{date}}",
"title": "Session replay",
- "summary": "{{events}} events · {{duration}}",
"loadError": "Could not load replay",
"playerError": "Could not initialise replay player",
"empty": "No replay events were found.",
@@ -1985,6 +1984,13 @@
"fullscreenError": "Could not enter fullscreen",
"showTimeline": "Show timeline",
"hideTimeline": "Hide timeline",
+ "timelineEvents": {
+ "pageview": "Pageview",
+ "event": "Event",
+ "error": "Error",
+ "sale": "Sale",
+ "refund": "Refund"
+ },
"timeline": {
"title": "Timeline",
"steps": "{{count}} steps",