Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hooks/useInfiniteVideosFunnelcake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import { performanceMonitor } from '@/lib/performanceMonitoring';

export type FunnelcakeFeedType = 'trending' | 'recent' | 'classics' | 'hashtag' | 'profile' | 'home' | 'recommendations' | 'category';
export type FunnelcakeSortMode = 'trending' | 'recent' | 'loops' | 'engagement' | 'classic';
export type FunnelcakeSortMode = 'trending' | 'recent' | 'loops' | 'engagement' | 'classic' | 'watching';

interface UseInfiniteVideosFunnelcakeOptions {
feedType: FunnelcakeFeedType;
Expand Down Expand Up @@ -109,7 +109,7 @@
case 'trending':
return {
...baseOptions,
sort: sortMode === 'classic' ? 'loops' : (sortMode || 'trending'),

Check failure on line 112 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.

Check failure on line 112 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.
...(sortMode === 'classic' ? { classic: true, platform: 'vine' } : {}),
};

Expand All @@ -122,28 +122,28 @@
case 'hashtag':
return {
...baseOptions,
sort: sortMode === 'classic' ? 'loops' : (sortMode || 'trending'),

Check failure on line 125 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.

Check failure on line 125 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.
...(sortMode === 'classic' ? { classic: true, platform: 'vine' } : {}),
};

case 'profile':
return {
...baseOptions,
sort: sortMode === 'classic' ? 'loops' : (sortMode || 'recent'),

Check failure on line 132 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.

Check failure on line 132 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.
...(sortMode === 'classic' ? { classic: true, platform: 'vine' } : {}),
};

case 'home':
return {
...baseOptions,
sort: sortMode === 'classic' ? 'loops' : (sortMode || 'recent'),

Check failure on line 139 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.

Check failure on line 139 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.
...(sortMode === 'classic' ? { classic: true, platform: 'vine' } : {}),
};

case 'category':
return {
...baseOptions,
sort: sortMode === 'classic' ? 'loops' : (sortMode || 'trending'),

Check failure on line 146 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.

Check failure on line 146 in src/hooks/useInfiniteVideosFunnelcake.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

Type '"trending" | "recent" | "loops" | "engagement" | "watching"' is not assignable to type '"trending" | "recent" | "popular" | "loops" | "engagement" | undefined'.
...(sortMode === 'classic' ? { classic: true, platform: 'vine' } : {}),
};

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useVideoProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function mapToFunnelcakeSortMode(sortMode?: SortMode): FunnelcakeSortMode | unde

switch (sortMode) {
case 'hot':
return 'trending';
return 'watching';
case 'top':
return 'loops';
case 'rising':
Expand Down
Loading