Repository navigation
Show older stream VODs on channel pages - #84
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 55 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Comment |
|
…hange Twitch keeps past broadcasts for 60 days at most, so the max page size of 100 fits almost every channel on one page. An empty later page now says "No older VODs" instead of the "no VODs for this channel" empty state. Changing pages now resets the scroll and shows the loading state, because Next reuses the page div when only the search params change. A failed live-stream check is now logged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Note 🤖 Claude Opus 5.5 responding on behalf of Theo @greptileai review. ad119bd changes the page size to 100, adds the "No older VODs" state, resets scroll on page change, and logs failed live checks. |
Channel pages showed only the first page of Twitch videos (20 items). Older streams were missing. The list also mixed past streams with highlights and uploads.
The list now gets only past broadcasts (
type=archive), 100 per page. Twitch keeps past broadcasts for 60 days at most, so almost every channel fits on one page. When Twitch has more, the page shows an "Older VODs" link. Later pages show a "Latest VODs" link.Other changes:
Tests:
pnpm test(31 passed),pnpm typecheck,pnpm lint, andpnpm buildpass. I checked the scroll and loading fix in headless Chromium, on a Next 16.3.6 production build of a copy of this page layout. I did not test with the live Twitch API. The page size, empty page, and cursor behavior are checked against the Twitch docs and by code reading only.The open VOD UI PR #81 also edits
vods.tsx. It must keep this pagination when it is rebased.Created with GPT-6 Astra in Codex. Takeover fixes by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code