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 -2
View File
@@ -25,8 +25,8 @@ export * from './queries/useLoginQuery';
export * from './queries/usePixelQuery';
export * from './queries/usePixelsQuery';
export * from './queries/useRealtimeQuery';
export * from './queries/useRecordingQuery';
export * from './queries/useRecordingsQuery';
export * from './queries/useReplayQuery';
export * from './queries/useReplaysQuery';
export * from './queries/useReportQuery';
export * from './queries/useReportsQuery';
export * from './queries/useResultQuery';
@@ -1,13 +0,0 @@
import { useApi } from '../useApi';
export function useRecordingQuery(websiteId: string, sessionId: string) {
const { get, useQuery } = useApi();
return useQuery({
queryKey: ['recording', { websiteId, sessionId }],
queryFn: () => {
return get(`/websites/${websiteId}/recordings/${sessionId}`);
},
enabled: Boolean(websiteId && sessionId),
});
}
@@ -0,0 +1,13 @@
import { useApi } from '../useApi';
export function useReplayQuery(websiteId: string, sessionId: string) {
const { get, useQuery } = useApi();
return useQuery({
queryKey: ['replay', { websiteId, sessionId }],
queryFn: () => {
return get(`/websites/${websiteId}/replays/${sessionId}`);
},
enabled: Boolean(websiteId && sessionId),
});
}
@@ -3,15 +3,15 @@ import { useDateParameters } from '../useDateParameters';
import { useModified } from '../useModified';
import { usePagedQuery } from '../usePagedQuery';
export function useRecordingsQuery(websiteId: string, params?: Record<string, string | number>) {
export function useReplaysQuery(websiteId: string, params?: Record<string, string | number>) {
const { get } = useApi();
const { modified } = useModified('recordings');
const { modified } = useModified('replays');
const { startAt, endAt, unit, timezone } = useDateParameters();
return usePagedQuery({
queryKey: ['recordings', { websiteId, modified, startAt, endAt, unit, timezone, ...params }],
queryKey: ['replays', { websiteId, modified, startAt, endAt, unit, timezone, ...params }],
queryFn: pageParams => {
return get(`/websites/${websiteId}/recordings`, {
return get(`/websites/${websiteId}/replays`, {
startAt,
endAt,
unit,
+3 -3
View File
@@ -96,10 +96,10 @@ export function useWebsiteNavItems(websiteId: string) {
path: renderPath('/retention'),
},
{
id: 'recordings',
label: formatMessage(labels.recordings),
id: 'replays',
label: formatMessage(labels.replays),
icon: <Video />,
path: renderPath('/recordings'),
path: renderPath('/replays'),
},
],
},