gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit641e1c4c641e1c4cMerge branch 'records-dp71' into mainTracker641e1c4c/docs/kinds.md

6.7 KB

  1. # Typed headings and the Series / Shows split (tickets #20, #21 — mission 022 (old 068))
  2. Creator: "make the page headings have types in their headings: Movie | Riddick, Series | Reacher, Genre | Action — and have
  3. them use their colors but the title in white" (#20) and "i want to split series and shows - all that game show and reality
  4. and talkshow stuff goes into shows and the real series are Series and /series" (#21).
  5. ## Kinds
  6. * A TV title (`shows.type = 'series'`) has a **kind**: `series` or `show`. Movies (`type = 'movie'`) have none.
  7. * **Rule** (`shows.hl kindOfTitle`, architect's reading in the ticket): a **show** when TMDB's TV `type` is Reality, Talk Show,
  8. News or Video, OR the title has one of our genres Reality / Talk / News; everything else is a **series** (TMDB types
  9. Scripted, Miniseries, Documentary — and "type not known").
  10. * **tracker#43 (mission 038)**: also a **show** when TVmaze's type (`tvmazeType`) is Variety, Talk Show, Reality, Game Show, News,
  11. Panel Show, Award Show or Sports — TMDB calls Saturday Night Live UK, MADtv, The Oscars … "Scripted". TVmaze's Scripted /
  12. Animation / Documentary decide nothing. `tvmazeType` comes from the daily sync's TVmaze request and the TVmaze status backfill
  13. (once per series with a TVmaze id; `''` = TVmaze gave none); then `shows.hl kindWithTvmaze` stores the kind and the title moves
  14. lists at once. A title without a TVmaze id never gets one (1,652 of 15,026 TV titles on the live copy have one).
  15. * **Stored** on the title: `kind` and TMDB's `tmdbType`; `kindCheck` = why no type is known (`TMDB 404`, `no tmdbId`,
  16. `TMDB gave no type`). `shows.hl titleKind(show)` = stored `kind`, else the rule from the genres alone.
  17. * **Who stores it**:
  18. * the **kind backfill** (below), once for every TV title;
  19. * the **daily sync** (`tmdbsync.hl syncShow`: the details answer has `type`);
  20. * the **adult backfill** (`backfillTitle`, a TV title's details);
  21. * the **search import** (`search.hl importTitle`).
  22. * Titles the person fill adds (`people.hl addMinimalTitle`) get no kind: the genres decide until the next start's backfill.
  23. ## Kind backfill (`project.hl kindTick` → `tmdbsync.hl kindTitle`)
  24. * Queue at start = every TV title without a stored kind (resumes after a restart).
  25. * 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.
  26. Since the merge (mission 023 (old 070)) the shared clock's order is: adult backfill → details repair (#26) → kind backfill → credits job
  27. (#28); the collection seed (#19) waits for all of them. The daily sync / delta step and the #26 completion store `tmdbType` +
  28. `kind` too (details.hl `withDetailsFields`).
  29. * A title with a show genre or without `tmdbId`: kind from the stored data, **no request**.
  30. * Else `GET /tv/<tmdbId>` (one request), then 260 ms pause. 404 → kind from the genres + `kindCheck`, not asked again.
  31. No answer / 429 / 5xx → back of the queue, ≤ 2 retries per start.
  32. * A title TMDB's type makes a show moves from /series to /shows at once (`catalog.hl refreshCatalogShow`).
  33. * Log: `kind backfill: start, N TV titles without a kind`, every `TRACKER_KINDS_LOG_EVERY` (500) titles,
  34. `kind backfill done: n/N titles, series= shows= fromGenre= moved= requests= errors= retries= seconds=`, or `nothing to do`.
  35. * `TRACKER_KINDS=0` = off (also off without `TMDB_READ_TOKEN`; the lists still split by genre).
  36. ## Addresses
  37. | Path | What |
  38. |---|---|
  39. | `/series`, `/series/page/<n>` | every series (components/allseries.hl), newest released episode first, 24 per page |
  40. | `/shows`, `/shows/page/<n>` | every show (components/allshows.hl), same order |
  41. | `/series/<slug>`, `/movies/<slug>` | the title page (components/show.hl, a component route) |
  42. | `/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 |
  43. | `/my/series`, `/my/shows` | `/my/:tv` → components/myshows.hl; any other word → "Not found" |
  44. * **Why a function route**: hl:web cannot answer a redirect from a component route, and one pattern cannot be
  45. "component for shows, 301 for series".
  46. * So `showsRoute` renders the page the way hl:web's own `on http.request` component branch does:
  47. `server.router.match('/series/<slug>')` (same component and params), `server.page(m, session, host, headers)`,
  48. and a new session + cookie when the browser brought none.
  49. * This uses hl:web internals (`router`, `page`, `hostOf`, `requestHeaders`, `sessions`): **re-check after re-vendoring hl:web**
  50. (the kinds gate covers it).
  51. * Effect in the browser: a link to `/shows/<slug>` is a full page load (the client router only navigates component routes
  52. itself). Every other title page is still a client-side navigation.
  53. * All links use `shows.hl titlePath(show)`: lists, tiles, search, filmography, /my/*, /<shortId>, the import's landing page.
  54. Movies moved from `/shows/<slug>` to `/movies/<slug>` (my decision: `/shows/` now means TV shows; the old movie URLs answer 301).
  55. ## Headings and colours (#20)
  56. * Markup: `h1 { class = "typed" typeWord { class = "type-word type-<kind>" "Series" } typeSep { "|" } typeName { <name> } }`.
  57. * Pages: title page (Movie / Series / Show), `/genres/<g>` (Genre), `/person/<slug>` (Person).
  58. List pages `/movies`, `/series`, `/shows` show only the word; `/my/series` and `/my/shows` say "My Series" / "My Shows".
  59. * `h1.typed` is a flex row with a gap, so the server's whitespace and a client-built page look the same.
  60. A long name wraps in its own column right of "Show |".
  61. * Colours (styles.hl, palette tokens; one per type, everywhere the type word appears — headings, homepage row headings,
  62. search labels, filmography labels):
  63. | Type | Token | Colour |
  64. |---|---|---|
  65. | Movie | `yellow` | `#dcdcaa` |
  66. | Series | `greenDark` (the accent) | `#4ec9b0` |
  67. | Show | `purple` | `#c586c0` |
  68. | Genre | `blueDark` (the pills) | `#569bd4` |
  69. | Person | `orange` (artist links) | `#ce9178` |
  70. | Franchise | `blueLight` | `#9cdcfe` |
  71. | Timeline | `greenLight` | `#b5cea8` |
  72. The name is `colorTextStrong` (white), the bar `colorTextMuted`.
  73. * Franchise / Timeline: the classes `type-franchise` / `type-timeline` exist for tracker#19's pages (branch t19). Those pages
  74. are not on this branch; their headings get the same markup when the branches are merged.
  75. * TMDB results in the search ("Fetch from web") say **TV** (TMDB's search tells no TV type) or Movie.
  76. ## Home
  77. * Signed in: five tiles — Unwatched, Schedule, Series → `/my/series`, Shows → `/my/shows` (a microphone icon), Movies.
  78. Three per row on a phone, five from 40rem.
  79. * Three rows: Movies, Series, Shows (10 each, `catalog.hl latestMovies / latestSeries / latestShows`).

Branches

Latest commits

  • 641e1c4cMerge branch 'records-dp71' into mainTracker
  • 85a6e9f5|||PR records: DP71 checked in ChromeTracker
  • f5be5f18records: gitoria PR-only planTracker
  • 46a37036records: DP71 liveTracker
  • 3bcb7039Status/log: DP71 in progressTracker
  • 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
  • 783957c2Merge branch 'sr1-search' into mainTracker
  • 792b9652README: search results come from the routeTracker
  • fd8570b1|||PR search: one server exchange per keystrokeTracker
  • e8f5cbcaLog: SR1 result, SR1bTracker
  • 8ad275a4Log/status: tracker 68, SR1Tracker
  • f5a06a0fLog: gitoria push setup, SR1Tracker
  • d6b109baMission SR1mre
  • 608b7558Log: FF1 merged via PR #1mre
  • 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker
  • c934361a|||PR tests: gates fail fast when the app exits during startmre
  • d714ae42Log/status: AP56 closed out, FF1mre
  • a429d088Mission FF1mre
  • 03bbfba3Log: AP56c causemre
  • 24845fe3Log: AP56b result, AP56cmre