Rename session recording to session replay across the codebase.

Renames all files, components, database schema, API routes, hooks,
messages, and build config from "recording" to "replay" terminology.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mike CaoandClaude Opus 4.6 committed 2026-02-07 00:38:47 -08:00
1 parent 72b5c658e2
commit 0a3cf7a9ff
34 files changed
+138 -144

No files matched your search

@@ -2,7 +2,7 @@ import { gunzipSync } from 'node:zlib';
import { parseRequest } from '@/lib/request';
import { json, unauthorized } from '@/lib/response';
import { canViewWebsite } from '@/permissions';
import { getRecordingChunks } from '@/queries/sql';
import { getReplayChunks } from '@/queries/sql';
export async function GET(
request: Request,
@@ -20,7 +20,7 @@ export async function GET(
return unauthorized();
}
const chunks = await getRecordingChunks(websiteId, sessionId);
const chunks = await getReplayChunks(websiteId, sessionId);
// Decompress and concatenate all chunks
const allEvents = chunks.flatMap(chunk => {
@@ -3,7 +3,7 @@ import { getQueryFilters, parseRequest } from '@/lib/request';
import { json, unauthorized } from '@/lib/response';
import { dateRangeParams, pagingParams, searchParams } from '@/lib/schema';
import { canViewWebsite } from '@/permissions';
import { getSessionRecordings } from '@/queries/sql';
import { getSessionReplays } from '@/queries/sql';
export async function GET(
request: Request,
@@ -29,7 +29,7 @@ export async function GET(
const filters = await getQueryFilters(query, websiteId);
const data = await getSessionRecordings(websiteId, filters);
const data = await getSessionReplays(websiteId, filters);
return json(data);
}
+5 -5
View File
@@ -42,8 +42,8 @@ export async function POST(
name: z.string().optional(),
domain: z.string().optional(),
shareId: z.string().max(50).nullable().optional(),
recordingEnabled: z.boolean().optional(),
recordingConfig: z
replayEnabled: z.boolean().optional(),
replayConfig: z
.object({
sampleRate: z.number().min(0).max(1).optional(),
maskLevel: z.enum(['strict', 'moderate', 'relaxed']).optional(),
@@ -62,7 +62,7 @@ export async function POST(
}
const { websiteId } = await params;
const { name, domain, shareId, recordingEnabled, recordingConfig } = body;
const { name, domain, shareId, replayEnabled, replayConfig } = body;
if (!(await canUpdateWebsite(auth, websiteId))) {
return unauthorized();
@@ -72,8 +72,8 @@ export async function POST(
const website = await updateWebsite(websiteId, {
name,
domain,
...(recordingEnabled !== undefined && { recordingEnabled }),
...(recordingConfig !== undefined && { recordingConfig }),
...(replayEnabled !== undefined && { replayEnabled }),
...(replayConfig !== undefined && { replayConfig }),
});
if (shareId === null) {