LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 8, 2026, 9:03 AM
updatedAtNov 8, 2026, 7:45 PM
githubUrlhttps://github.com/neomjs/neo/issues/20589
authorneo-fable-mnemosyne
commentsCount4
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 8, 2026, 7:45 PM
milestonev13.4

News section: a Videos tab fed by videos.json with YouTube embeds

Closed v13.4.0/archive-v13-4-0-chunk-4 enhancementaiportal
neo-fable-mnemosyne
neo-fable-mnemosyne commented on Nov 8, 2026, 9:03 AM

Context

The portal's news section has six tabs (Release Notes, Tickets, Discussions, Blog, Medium, Pull Requests) and no place for the films the team publishes on YouTube. The operator asked for one on Nov 8 and confirmed the content exists; the item is on the v13.4 line because the portal reaches neomjs.com only with an engine deploy, and the 13.4 deploy is the next one.

The Problem

Films are the one outbound format with a measured reach signal, and the site cannot show them. A visitor who arrives from a video has no page that lists the others; a visitor on the site never learns the films exist. The fix is a seventh tab in the news section, fed by a curated JSON file exactly like the Medium tab, with YouTube embeds that load no player until a visitor clicks.

The Architectural Reality

  • The tab bar is declared in apps/portal/view/news/TabContainer.mjs (items, one entry per tab with header.route); apps/portal/view/news/TabContainerController.mjs maps each route to activateRoute('/news/<tab>'); apps/portal/view/ViewportController.mjs:63–64 routes /news/{*itemId} to the news content index.
  • The data precedent is the Medium tab: apps/portal/store/BlogMedium.mjs (autoLoad, url: '../../apps/portal/resources/data/medium_blog.json', newest first by id), apps/portal/model/BlogMedium.mjs, apps/portal/view/news/medium/Container.mjs (a toolbar with a search field over a list) and apps/portal/view/news/medium/List.mjs (list.Base, createItemContent, lazy preview images through the IntersectionObserver addon, a filter that highlights matches).
  • Routes carry SEO rows in apps/portal/resources/data/seo.json (/news/blog, /news/releases); tab styles live under resources/scss/src/apps/portal/news/<tab>/; the portal's index.html sets no Content-Security-Policy, so no frame-src change is needed. The portal already loads fonts.googleapis.com on every boot; that load is the portal's own and outside this leaf.
  • Portal e2e specs run on the Neural Link fixture under test/playwright/e2e/portal/ (ConnectNL.spec.mjs is the newest sibling).

The Fix

  • apps/portal/resources/data/videos.json: a hand-curated array, newest first, the operator supplies the entries: {id, youtubeId, name, date, product, description, thumbnail?} with product one of engine, pro, stage, institution; the optional thumbnail URL overrides the i.ytimg.com image, so a self-hosted preview is a data change, not a code change (Ada's intake).
  • apps/portal/model/Video.mjs and apps/portal/store/Videos.mjs on the BlogMedium pattern.
  • apps/portal/view/news/videos/Container.mjs (search field over the list, as Medium) and apps/portal/view/news/videos/List.mjs: each item renders a facade, the YouTube thumbnail (https://i.ytimg.com/vi/<youtubeId>/hqdefault.jpg, an image request and the only YouTube-owned request before a click) with a play control, title, date and product; a click replaces the facade with one iframe on https://www.youtube-nocookie.com/embed/<youtubeId>?autoplay=1 (allow="autoplay; encrypted-media; picture-in-picture", allowfullscreen); opening another entry removes the previous iframe, so at most one plays.
  • The seventh tab entry in TabContainer.mjs (fab fa-youtube, route /news/videos, text Videos), its route handler in the controller, the /news/videos row in seo.json, and resources/scss/src/apps/portal/news/videos/ for both themes.
  • Product-specific films (Pro, Stage) are entries in the same file, filtered by the search field; a chip filter per product is a later polish, not this leaf.

Contract Ledger

Target surface Authority Proposed behavior Fallback Docs Evidence
route /news/videos this leaf opens the Videos tab, deep-linkable like the other six none seo.json row e2e
apps/portal/resources/data/videos.json this leaf; entries curated by the operator the fields above; newest first empty array renders an empty list, no error this ticket unit (store load)
Portal.store.Videos / Portal.model.Video BlogMedium pattern autoLoad, keyed by id — JSDoc unit
video facade this leaf before a click only the thumbnail image from i.ytimg.com loads, no player, script or cookie host; one iframe at a time; the nocookie host thumbnail missing → title card JSDoc e2e

Decision Record impact: none.

Acceptance Criteria

  • #/news/videos shows the tab with every entry of videos.json, newest first, title, date and product visible, thumbnails lazy as in the Medium list.
  • Before any click, the only YouTube-owned request is the thumbnail image from i.ytimg.com: no request reaches www.youtube.com, www.youtube-nocookie.com, googlevideo.com, www.google.com or play.google.com (the portal's existing fonts.googleapis.com load is outside this leaf and not asserted); after a click on an entry, one iframe on www.youtube-nocookie.com plays it; clicking a second entry removes the first iframe (e2e on the Neural Link fixture, test/playwright/e2e/portal/VideosNL.spec.mjs, network requests asserted by host).
  • The search field filters by title as the Medium tab does.
  • seo.json carries the /news/videos row; both themes render the tab (one screenshot each in the PR body).
  • The first videos.json ships with the leaf, with the entries the operator hands over.

Out of Scope

Hosting or committing video files (films live on YouTube, previews on a CDN); a YouTube Data API sync; one route per video with its own SEO page; a hero film on the home page; the product chip filter; the portal's existing font load.

Avoided Traps

An iframe per entry at mount (third-party scripts and cookies before consent, slow first paint); the youtube.com embed host instead of youtube-nocookie.com; a Content-Security-Policy added only for this tab; a list that renders every entry's thumbnail eagerly instead of the Medium list's intersection-driven preloading; an AC that forbids every Google host when the portal's own fonts come from one.

Related

neo #20498 and #20500 (the examples front door), neo #20412 (the Connect page), neo #20185 (the 100k-rows film is a future entry). Milestone v13.4 at the operator's word of Nov 8. AC-2 corrected Nov 8 on Ada's intake finding (the fonts load, and the thumbnail host my own Fix names).

Live latest-open + closed sweep: latest 20 open read and closed search (youtube, video, portal; Out of Scope read on the film-content hits #19606, #19602, #15671) at 2026-11-08 08:01Z; no equivalent ticket or prior exclusion. A2A claim sweep (last 60 min, all read states) at 08:02Z: no portal or video claim. Memory Core sweep (portal news videos tab): no prior work. Own-assignment sweep: none on this surface.

unowned-rationale: specified to the file level and handed off; a seat online tonight takes it for the 13.4 deploy (Ada asked first), else it waits for 13.5.

Origin Session ID: bfe69850-c735-4785-bd2e-00b5c2c9f38e

Retrieval Hint: "portal news videos tab videos.json youtube-nocookie facade"

tobiu referenced in commit 36e1805 - "feat(portal): a Videos tab with click-to-play YouTube facades (#20589) (#20594) on Nov 8, 2026, 7:45 PM
tobiu closed this issue on Nov 8, 2026, 7:45 PM