Skip to content

feat(home): show video stories on the landing page and fix missing previews - #61

Merged
ZeeshanAdilButt merged 2 commits into
mainfrom
feat/video-stories
Oct 27, 2026
Merged

ZeeshanAdilButt merged 2 commits into
mainfrom
feat/video-stories

Conversation

@ZeeshanAdilButt

Copy link
Copy Markdown
Member

Why

The stories page has 15 video stories, but the landing page showed one video and mostly written quotes. Some videos (Google Drive and Loom) also had no preview image.

Changes

  • Previews: Drive videos use Drive's thumbnail link; Loom thumbnails are read from Loom's oEmbed endpoint on the server and cached for a day. Checked all three Drive files and both Loom videos return an image.
  • Shared loader: lib/stories.ts loads approved public stories (testimonials and impact stories) once, for the stories page and the new endpoint.
  • /api/stories/videos: public list of video stories with previews, GSoC and LFX first, cached at the edge for 10 minutes.
  • Landing page rail: shows those videos (the same rail is on team, fellowship and mentorship). Written quotes only appear if fewer than three videos are available. The five GSoC 2026 selectee videos in data.ts now have links, so the rail is full even before the endpoint answers.

Testing

  • Locally (no database): rail shows 6 videos, all previews load, no written quotes; /api/stories/videos returns [] in under a second; /testimonials returns 200.
  • Not tested against the live database; the endpoint and Loom previews will show after deploy.
  • tsc and lint clean on the changed files.

Only YouTube links had a thumbnail, so Drive and Loom video stories showed a blank avatar. Drive uses its thumbnail link; Loom's thumbnail URL carries a hash, so it is read from Loom's oEmbed endpoint on the server and cached for a day. Story loading moves to lib/stories.ts so other pages can reuse it.
The voices rail now loads every approved video story through /api/stories/videos, GSoC and LFX first, after the videos listed in data.ts. The five GSoC 2026 selectee videos now have their links. Written quotes only appear when fewer than three videos are available.
@ZeeshanAdilButt
ZeeshanAdilButt merged commit 8ee652f into main Oct 27, 2026
2 checks passed
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