Repository navigation
feat(home): show video stories on the landing page and fix missing previews - #61
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
lib/stories.tsloads 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.data.tsnow have links, so the rail is full even before the endpoint answers.Testing
/api/stories/videosreturns[]in under a second;/testimonialsreturns 200.tscand lint clean on the changed files.