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:
1 parent
72b5c658e2
commit
0a3cf7a9ff
34 files changed
+138
-144
No files matched your search
@@ -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),
|
||||
});
|
||||
}
|
||||
+4
-4
@@ -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,
|
||||
@@ -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'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user