gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1f9c8bf41f9c8bf4re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre1f9c8bf4/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

  • 1f9c8bf4re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
  • c1df88eddocker-compose: HL_GC_TABLE_LOAD=62 (tracker mission 048, T16 real-data numbers)mre
  • d0a82867mission 048: report, LOG (HL_GC_TABLE_LOAD=62 measured)mre
  • 2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre
  • 99e7c8b9tests: realdata-m035-radii, repro-t38, realdata-060-backfill ports from env (REAL_PORT, REAL_CHROME, REPRO_CHROME), defaults unchangedmre
  • 4625aa22re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • a6dfd6ecdeploy: person-lookup gate (tracker#46)mre
  • 33ad4bd5Merge commit 'f57f64f'mre
  • 7d38cec4docker-compose: nofile 65536 (default soft 1024 refused boot: errno 24 in fs.listDir, Hybriel 528bc89f)mre
  • f57f64f0mission 046: report, LOGmre
  • 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • efe1b485mission 046: re-vendor Hybriel master 60b2817b (integration 8, #203): plugins mpackdb + web (bin/ git-ignored: hybriel, libhlrt.a, hlc.o, hlrt/ from native/zig-out)mre
  • 53099ffbmission 046: person page reads a slim per-title credit row cache (no whole-record fetch per credit); gate tests/person-lookup.mjsmre
  • 9b3828aemission 046a: report, LOGmre
  • 4b37356emission 046: franchise seed supersedeCollections reads the curated timelines once (10 s one-tick block at the end of boot)mre
  • ac6268e3mission 046a: re-vendor Hybriel 528bc89f (integration 6): plugins mpackdb/time/web (bin/ git-ignored)mre
  • 322b3293mission 046: photoQueue guard for non-row fetch results (damaged persons index)mre
  • e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
  • 31dcf2admission 045: report, LOGmre
  • 9c3971d0tests/persons-skip-count.hlmre