Add click heatmaps report

Extracts click events from rrweb session-replay buffers at write time
into a new heatmap_event table (Prisma + ClickHouse). New /heatmaps
report shows a page picker plus an overlay of click density on the
dominant viewport, with an optional iframe of the live page behind.
This commit is contained in:
Mike Cao committed 2026-04-27 22:20:38 -07:00
1 parent 9da332c489
commit a6b13b71db
18 files changed
+831

No files matched your search

@@ -3,6 +3,7 @@ import {
ChartPie,
Clock,
Eye,
Flame,
Sheet,
Tag,
User,
@@ -107,6 +108,12 @@ export function useWebsiteNavItems(websiteId: string) {
icon: <Video />,
path: renderPath('/replays'),
},
{
id: 'heatmaps',
label: t(labels.heatmaps),
icon: <Flame />,
path: renderPath('/heatmaps'),
},
],
},
{
+3
View File
@@ -283,6 +283,9 @@ export const labels: Record<string, string> = {
journey: 'label.journey',
journeys: 'label.journeys',
journeyDescription: 'label.journey-description',
heatmap: 'label.heatmap',
heatmaps: 'label.heatmaps',
heatmapDescription: 'label.heatmap-description',
compareDates: 'label.compare-dates',
compare: 'label.compare',
current: 'label.current',