tracker
All repositories: gitoria
6.7 KB
# Typed headings and the Series / Shows split (tickets #20, #21 — mission 022 (old 068))Creator: "make the page headings have types in their headings: Movie | Riddick, Series | Reacher, Genre | Action — and havethem use their colors but the title in white" (#20) and "i want to split series and shows - all that game show and realityand talkshow stuff goes into shows and the real series are Series and /series" (#21).## Kinds* A TV title (`shows.type = 'series'`) has a **kind**: `series` or `show`. Movies (`type = 'movie'`) have none.* **Rule** (`shows.hl kindOfTitle`, architect's reading in the ticket): a **show** when TMDB's TV `type` is Reality, Talk Show,News or Video, OR the title has one of our genres Reality / Talk / News; everything else is a **series** (TMDB typesScripted, Miniseries, Documentary — and "type not known").* **tracker#43 (mission 038)**: also a **show** when TVmaze's type (`tvmazeType`) is Variety, Talk Show, Reality, Game Show, News,Panel Show, Award Show or Sports — TMDB calls Saturday Night Live UK, MADtv, The Oscars … "Scripted". TVmaze's Scripted /Animation / Documentary decide nothing. `tvmazeType` comes from the daily sync's TVmaze request and the TVmaze status backfill(once per series with a TVmaze id; `''` = TVmaze gave none); then `shows.hl kindWithTvmaze` stores the kind and the title moveslists at once. A title without a TVmaze id never gets one (1,652 of 15,026 TV titles on the live copy have one).* **Stored** on the title: `kind` and TMDB's `tmdbType`; `kindCheck` = why no type is known (`TMDB 404`, `no tmdbId`,`TMDB gave no type`). `shows.hl titleKind(show)` = stored `kind`, else the rule from the genres alone.* **Who stores it**:* the **kind backfill** (below), once for every TV title;* the **daily sync** (`tmdbsync.hl syncShow`: the details answer has `type`);* the **adult backfill** (`backfillTitle`, a TV title's details);* the **search import** (`search.hl importTitle`).* Titles the person fill adds (`people.hl addMinimalTitle`) get no kind: the genres decide until the next start's backfill.## Kind backfill (`project.hl kindTick` → `tmdbsync.hl kindTitle`)* Queue at start = every TV title without a stored kind (resumes after a restart).* Starts after the adult backfill is done (or off); waits while the daily sync runs; ONE title per step on the shared 0.1 s clock.Since the merge (mission 023 (old 070)) the shared clock's order is: adult backfill → details repair (#26) → kind backfill → credits job(#28); the collection seed (#19) waits for all of them. The daily sync / delta step and the #26 completion store `tmdbType` +`kind` too (details.hl `withDetailsFields`).* A title with a show genre or without `tmdbId`: kind from the stored data, **no request**.* Else `GET /tv/<tmdbId>` (one request), then 260 ms pause. 404 → kind from the genres + `kindCheck`, not asked again.No answer / 429 / 5xx → back of the queue, ≤ 2 retries per start.* A title TMDB's type makes a show moves from /series to /shows at once (`catalog.hl refreshCatalogShow`).* Log: `kind backfill: start, N TV titles without a kind`, every `TRACKER_KINDS_LOG_EVERY` (500) titles,`kind backfill done: n/N titles, series= shows= fromGenre= moved= requests= errors= retries= seconds=`, or `nothing to do`.* `TRACKER_KINDS=0` = off (also off without `TMDB_READ_TOKEN`; the lists still split by genre).## Addresses| Path | What ||---|---|| `/series`, `/series/page/<n>` | every series (components/allseries.hl), newest released episode first, 24 per page || `/shows`, `/shows/page/<n>` | every show (components/allshows.hl), same order || `/series/<slug>`, `/movies/<slug>` | the title page (components/show.hl, a component route) || `/shows/<slug>` | FUNCTION route `project.hl showsRoute`: a series → **301** `/series/<slug>`, a movie → **301** `/movies/<slug>`; a show (or an unknown slug → the page's "Not found") is rendered as the Show component || `/my/series`, `/my/shows` | `/my/:tv` → components/myshows.hl; any other word → "Not found" |* **Why a function route**: hl:web cannot answer a redirect from a component route, and one pattern cannot be"component for shows, 301 for series".* So `showsRoute` renders the page the way hl:web's own `on http.request` component branch does:`server.router.match('/series/<slug>')` (same component and params), `server.page(m, session, host, headers)`,and a new session + cookie when the browser brought none.* This uses hl:web internals (`router`, `page`, `hostOf`, `requestHeaders`, `sessions`): **re-check after re-vendoring hl:web**(the kinds gate covers it).* Effect in the browser: a link to `/shows/<slug>` is a full page load (the client router only navigates component routesitself). Every other title page is still a client-side navigation.* All links use `shows.hl titlePath(show)`: lists, tiles, search, filmography, /my/*, /<shortId>, the import's landing page.Movies moved from `/shows/<slug>` to `/movies/<slug>` (my decision: `/shows/` now means TV shows; the old movie URLs answer 301).## Headings and colours (#20)* Markup: `h1 { class = "typed" typeWord { class = "type-word type-<kind>" "Series" } typeSep { "|" } typeName { <name> } }`.* Pages: title page (Movie / Series / Show), `/genres/<g>` (Genre), `/person/<slug>` (Person).List pages `/movies`, `/series`, `/shows` show only the word; `/my/series` and `/my/shows` say "My Series" / "My Shows".* `h1.typed` is a flex row with a gap, so the server's whitespace and a client-built page look the same.A long name wraps in its own column right of "Show |".* Colours (styles.hl, palette tokens; one per type, everywhere the type word appears — headings, homepage row headings,search labels, filmography labels):| Type | Token | Colour ||---|---|---|| Movie | `yellow` | `#dcdcaa` || Series | `greenDark` (the accent) | `#4ec9b0` || Show | `purple` | `#c586c0` || Genre | `blueDark` (the pills) | `#569bd4` || Person | `orange` (artist links) | `#ce9178` || Franchise | `blueLight` | `#9cdcfe` || Timeline | `greenLight` | `#b5cea8` |The name is `colorTextStrong` (white), the bar `colorTextMuted`.* Franchise / Timeline: the classes `type-franchise` / `type-timeline` exist for tracker#19's pages (branch t19). Those pagesare not on this branch; their headings get the same markup when the branches are merged.* TMDB results in the search ("Fetch from web") say **TV** (TMDB's search tells no TV type) or Movie.## Home* Signed in: five tiles — Unwatched, Schedule, Series → `/my/series`, Shows → `/my/shows` (a microphone icon), Movies.Three per row on a phone, five from 40rem.* Three rows: Movies, Series, Shows (10 each, `catalog.hl latestMovies / latestSeries / latestShows`).
Branches
Latest commits
- d6d03fa3mission: T36Bmre
- e7512d00status: #36 rolled back, retry askedmre
- c98e2043log: T36A rollbackmre
- ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
- 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
- 55257852log: #53 live, #56 mergedmre
- 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
- 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
- 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
- 6da612fclog: T36A tool defectmre
- d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
- 08e55255log: HM56 done, T36A startedmre
- 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
- 5fd2ac75status: #36 GOmre
- 0d253b45mission: T36Amre
- 2aa22d23log: #36 GOmre
- 833aee2flog: #50 closed, HM56 startedmre
- ac58c1e5mission: HM56mre
- 58979c0clog: HM54 held for decision, DP65 startedmre
- bb2ebc67log: #64 live, #53 mergedmre