Skip to content

feat: create homepage video feed#23

Merged
keanu-a merged 6 commits into
mainfrom
keanucaloua/kyy-19-create-homepage-video-feed
Jun 24, 2026
Merged

feat: create homepage video feed#23
keanu-a merged 6 commits into
mainfrom
keanucaloua/kyy-19-create-homepage-video-feed

Conversation

@keanu-a

@keanu-a keanu-a commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Description

Created VideoFeed which fetches videos in paginated batches using custom useInfiniteVideos hook. The useInfiniteVideos hook is for sending the correct page and batch number to the backend via GET /videos endpoint.

Changes

  • Created GET /videos endpoint in the backend that returns paginated patches of READY videos sorted by most recently uploaded
  • Made VideoCardSkeleton for better loading UX on homepage
  • Made VideoCard that uses thumbnail from Mux
  • Installed date-fns library for VideoCard to show time when a video was uploaded

Docs

  • made apiFetch take in an optional requireAuth for non-protected endpoints, but took note that this will be replaced by TanStack query in the future
  • types/api/* is for generic api types, types corresponding to backend DTOs like video DTOs will be in /lib/api/vides.ts

@keanu-a keanu-a merged commit e7c2e05 into main Jun 24, 2026
3 checks passed
@keanu-a keanu-a deleted the keanucaloua/kyy-19-create-homepage-video-feed branch June 24, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant