Skip to content

feat(web): daily video carousel on current Home (supersedes #2957) - #2966

Merged
kk-agent merged 1 commit into
mainfrom
swe/home-daily-video-carousel
Dec 5, 2026
Merged

kk-agent merged 1 commit into
mainfrom
swe/home-daily-video-carousel

Conversation

@kk-agent

@kk-agent kk-agent commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Outcome

Rebuilds the v0 daily video carousel from #2957 on the current Home (app/page.tsx). Latest Tech / Business / AI videos from YouTube channel RSS feeds, cached 24h, shown in a keyboard-accessible carousel with click-to-play privacy-enhanced embeds (youtube-nocookie).

Scope

  • lib/home-video-feed.ts (+ tests): feed fetch, strict XML validation (no DOCTYPE/ENTITY, size cap, zod schema), unstable_cache 24h, stable daily selection.
  • app/api/home/videos/route.ts: read-only JSON, 503 + Retry-After when all sources fail.
  • components/home/DailyVideoCarousel.tsx (+ test), mounted in app/page.tsx between the hero and the Studio preview.
  • lib/auth-paths.ts: /api/home/videos added to the public exact-path allowlist.
  • styles/home-simple.css: carousel styles in the existing Home stylesheet. Premium dark panel (#131314 / #1E1F20 bases, cobalt-violet-cyan-magenta gradients), no green, works in light and dark themes, high-contrast and reduced-motion handled.
  • fast-xml-parser@^5.12.1 added via npm install -w apps/web (lockfile regenerated by npm).
  • Not ported: the "Try a sample" move (current Home already has a "Try a real sample" link) and the High Contrast control change. Deleted LiveOnRamp files are not re-added. Nothing under .github/ touched. CSP already allows i.ytimg.com and youtube-nocookie.com.

Risk

Low. Additive and isolated; the only existing-file behavior change is one public API path. External dependency on YouTube RSS availability, with honest empty/partial/unavailable states in the UI.

Verification (apps/web, KV_REST_API_*/Redis env unset)

  • eslint src: clean
  • tsc --noEmit: clean
  • vitest run: 202 files passed, 1969 tests passed (55 skipped, pre-existing)
  • next build: succeeds, /api/home/videos registered as a dynamic route
  • Python guards test_workflow_pr_gate_coverage.py and test_repository_reconciliation_workflow.py: 92 passed

Supersedes #2957

Closes #2965

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Dec 5, 2026 6:42pm UTC

@github-actions github-actions Bot added javascript Pull requests that update javascript code styling tests labels Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

🔍 PR Validation

⚠️ Large PR detected (709 lines changed)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T18:43:21.975932Z 1700b54 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1700b54b2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +119 to +123
--video-base: #131314;
--video-raised: #1e1f20;
--video-ink: #f5f5f7;
--video-ink-soft: #c9cacf;
--video-line: rgba(255, 255, 255, 0.22);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Apply theme tokens to the carousel surfaces

In Light mode, the carousel and all its cards remain dark because these local variables never reference the shared theme tokens or receive light-theme overrides. The high-contrast override also changes only the border and secondary text, leaving the surfaces unchanged. This violates the explicit Theme Parity requirement in apps/web/AGENTS.md; use the shared surface, ink, and border tokens or provide equivalent theme-specific overrides.

AGENTS.md reference: apps/web/AGENTS.md:L12-L12

Useful? React with 👍 / 👎.

import type { HomeVideoFeed } from '@/lib/home-video-feed';

async function fetchVideos(url: string): Promise<HomeVideoFeed> {
const response = await fetch(url);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Bound the client feed request with a timeout

If the homepage feed request stalls, this fetch has no application-level deadline, so SWR cannot enter its error/retry path and the carousel remains in its loading state until the browser or network eventually terminates the request. The server-side upstream timeout does not bound the browser-to-server connection. Add an AbortSignal.timeout() signal here, as explicitly required for every fetch by the root AGENTS.md.

AGENTS.md reference: AGENTS.md:L108-L108

Useful? React with 👍 / 👎.

Comment on lines +7 to +8
} catch {
return Response.json(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Log feed failures before returning the generic 503

When getHomeVideoFeed() fails, this bare catch discards the exception and returns a generic 503 without any application diagnostic. This also hides unexpected implementation failures, not just expected upstream outages, making production failures difficult to investigate. Capture and log the exception while retaining the sanitized response; the root AGENTS.md explicitly prohibits bare catches without logging.

AGENTS.md reference: AGENTS.md:L109-L109

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

✅ E2E Test Results: ALL TESTS PASSED

Metric Value
Status 🟢 GREEN
Total Tests
Passed 14
Failed
Deployment https://v0-uvai-473speoq0-garv1.vercel.app
Test Output
true` to suppress this warning.�[39m

�[1m�[30m�[46m RUN �[49m�[39m�[22m �[36mv5.1.1 �[39m�[90m/home/runner/work/EventRelay/EventRelay�[39m

 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mE2E request attribution�[2m > �[22madds the probe and GitHub run identity headers to every request�[32m 23�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mE2E request attribution�[2m > �[22mforwards the configured preview bypass on every request without persisting it�[32m 1�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mHomepage�[2m > �[22mhomepage returns 200 with HTML�[32m 60�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mVideo Pack Pipeline�[2m > �[22mPOST /api/video/pack accepts a YouTube URL without hanging�[33m 9409�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mVideo Pack Pipeline�[2m > �[22mGET /api/video/pack resolves to a ready pack with evidence lineage�[33m 17946�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mError Handling�[2m > �[22mmissing URL returns 400, not a hang�[33m 332�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mError Handling�[2m > �[22minvalid URL returns 400 quickly, not a hang�[32m 108�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mError Handling�[2m > �[22mPOST /api/video/pack with no body returns 400�[32m 96�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mRetired skin redirects�[2m > �[22m/features permanently redirects to /�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mRetired skin redirects�[2m > �[22m/dashboard permanently redirects to /studio�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mAPI Health�[2m > �[22mGET /api returns a response (not 404)�[33m 805�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mAPI Health�[2m > �[22mretired /api/pipeline routes are gone (no pipeline served)�[32m 49�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mStatic Assets�[2m > �[22mhomepage has proper meta tags�[32m 27�[2mms�[22m�[39m
 �[32m✓�[39m tests/e2e/pipeline.test.ts�[2m > �[22mEventRelay E2E — Live Deployment�[2m > �[22mStatic Assets�[2m > �[22m/studio returns HTML when reachable�[32m 63�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m1 passed�[39m�[22m�[90m (1)�[39m
�[2m      Tests �[22m �[1m�[32m14 passed�[39m�[22m�[90m (14)�[39m
�[2m   Start at �[22m 18:43:43
�[2m   Duration �[22m 30.06s�[2m (tests 100%)�[22m


@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Cursor Bugbot did not run on this PR after the wait window, and remaining signals plus base-branch approval policy do not require human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver (1)

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
npm/fast-xml-parser ^5.12.1 UnknownUnknown
npm/@nodable/entities 3.1.0 UnknownUnknown
npm/anynum 1.0.1 UnknownUnknown
npm/fast-xml-builder 1.3.2 UnknownUnknown
npm/fast-xml-parser 5.12.1 🟢 8.7
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10
Code-Review🟢 3Found 8/26 approved changesets -- score normalized to 3
Security-Policy🟢 10security policy file detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Binary-Artifacts🟢 10no binaries found in the repo
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Fuzzing🟢 10project is fuzzed
Pinned-Dependencies🟢 8dependency not pinned by hash detected -- score normalized to 8
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Packaging🟢 10packaging workflow detected
SAST🟢 9SAST tool detected but not run on all commits
npm/is-unsafe 2.0.3 UnknownUnknown
npm/path-expression-matcher 1.6.2 UnknownUnknown
npm/strnum 2.5.1 UnknownUnknown
npm/xml-naming 0.3.1 UnknownUnknown

Scanned Files

  • apps/web/package.json
  • package-lock.json

@kk-agent
kk-agent merged commit 96dc12b into main Dec 5, 2026
46 checks passed
@kk-agent
kk-agent deleted the swe/home-daily-video-carousel branch December 5, 2026 20:13

This branch was successfully deployed

1 active deployment
Preview — 1700b54b Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update javascript code styling tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daily video carousel on current Home (redo of #2957)

1 participant