saved session replay implementation checkpoint
This commit is contained in:
1 parent
81fd8e63a1
commit
1bffb3cbf3
21 files changed
+392
-78
No files matched your search
@@ -35,6 +35,7 @@ export * from './queries/useReportQuery';
|
||||
export * from './queries/useReportsQuery';
|
||||
export * from './queries/useResultQuery';
|
||||
export * from './queries/useRevenueSessionsQuery';
|
||||
export * from './queries/useSavedReplaysQuery';
|
||||
export * from './queries/useSessionActivityQuery';
|
||||
export * from './queries/useSessionDataPropertiesQuery';
|
||||
export * from './queries/useSessionDataQuery';
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { useApi } from '../useApi';
|
||||
import { useModified } from '../useModified';
|
||||
import { usePagedQuery } from '../usePagedQuery';
|
||||
|
||||
export function useSavedReplaysQuery(websiteId: string) {
|
||||
const { get } = useApi();
|
||||
const { modified } = useModified('replays');
|
||||
|
||||
return usePagedQuery({
|
||||
queryKey: ['replays:saved', { websiteId, modified }],
|
||||
queryFn: pageParams => {
|
||||
return get(`/websites/${websiteId}/replays/saved`, {
|
||||
...pageParams,
|
||||
pageSize: 20,
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -343,6 +343,7 @@ export const labels: Record<string, string> = {
|
||||
version: 'label.version',
|
||||
saveSegment: 'label.save-segment',
|
||||
saveCohort: 'label.save-cohort',
|
||||
saveReplay: 'label.save-replay',
|
||||
analysis: 'label.analysis',
|
||||
destinationUrl: 'label.destination-url',
|
||||
slug: 'label.slug',
|
||||
@@ -366,6 +367,7 @@ export const labels: Record<string, string> = {
|
||||
sampleSize: 'label.sample-size',
|
||||
play: 'label.play',
|
||||
replays: 'label.replays',
|
||||
saved: 'label.saved',
|
||||
replay: 'label.replay',
|
||||
replayId: 'label.replay-id',
|
||||
replayEnabled: 'label.replay-enabled',
|
||||
|
||||
@@ -72,7 +72,7 @@ export function ListTable({
|
||||
alignItems="center"
|
||||
justifyContent="space-between"
|
||||
paddingLeft="2"
|
||||
columns={`1fr ${showPercentage ? '100px' : '150px'}`}
|
||||
columns={'1fr 100px'}
|
||||
>
|
||||
<Text weight="bold">{title}</Text>
|
||||
<Text weight="bold" align="center">
|
||||
@@ -117,7 +117,7 @@ const AnimatedRow = ({
|
||||
|
||||
return (
|
||||
<Grid
|
||||
columns="1fr 50px 50px"
|
||||
columns={showPercentage ? '1fr 50px 50px' : '1fr 100px'}
|
||||
paddingLeft="2"
|
||||
alignItems="center"
|
||||
borderRadius
|
||||
@@ -129,7 +129,11 @@ const AnimatedRow = ({
|
||||
{label}
|
||||
</Text>
|
||||
</Row>
|
||||
<Row alignItems="center" height="30px" justifyContent="flex-end">
|
||||
<Row
|
||||
alignItems="center"
|
||||
height="30px"
|
||||
justifyContent={showPercentage ? 'flex-end' : 'center'}
|
||||
>
|
||||
{change}
|
||||
<Text weight="bold">
|
||||
<AnimatedDiv title={props?.y as any}>
|
||||
|
||||
Reference in new issue
Block a user