gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit03d2989303d29893boot scans read primary-key slices (lib/slices.hl from mission 044): iterate is eager too; people view log line back; allShows/allEpisodes stay for toolsmre03d29893/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

  • 03d29893boot scans read primary-key slices (lib/slices.hl from mission 044): iterate is eager too; people view log line back; allShows/allEpisodes stay for toolsmre
  • 0d6293ebmission 043: mission filemre
  • 55bbd619boot: one streamed pass per table (lib/bootscan.hl) instead of find(null,null) per module; follows/watches/franchises scans streammre
  • 1d465d3ere-vendor plugins to Hybriel master f9614007 (mpackdb #202 copy fix, libmpackdb sha 6fb3b9d6)mre
  • 6648ba44mission 042: real-browser E2E on ce6f2e0a re-vendor 69/0 at 390 + 1280mre
  • 3ed3a0efmission 042: gates old/new equal (browser #41 route-table regex accepts unescaped hl:web output), real-data TTFB, E2E blocked by lisbeth lockmre
  • d5b61e90LOG 042mre
  • 4acdbaccmission 042: memory comparison old vs ce6f2e0a (stopped: warm VmHWM higher), reportmre
  • d0f620d6mission 042: re-vendor Hybriel ce6f2e0a (plugins incl. mpackdb; bin runtime built from the same archive, git-ignored), compact=false keptmre
  • 5bd14e12mission 040: theme 76f99f6 gates + E2E green; 44 px fixes (skeleton row, type-word, genre-link/pill); README, reportmre
  • 77cfa45cmission 040: partial report (theme/modal/pagination re-copied, tilelist onPage, 44 px taps; gates new + E2E pending)mre
  • 4b14822fe2e-theme: menu marker by colourmre
  • 09780f4emission 040 WIP: theme, modal, pagination, tokens re-copied from layouts 76f99f6; tilelist uses onPage; tap sizes 44 px for tracker's own small buttons; tests/e2e-theme.mjsmre
  • fb80bb8chotfix: open the 5 show stores without compaction (compact = false) — compact-on-open left another handle on stale offsets, every read gave a bare Number (hybriel mpackdb refresh after a shrink); live down 2026-10-20 05:11mre
  • e00d3bf7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • a8c7f234tracker#36 (mission 039): tools/tmdb-check.hl survives a dropped connection (on Error, asked again, failed lines) and resumes with --from N; tests/tmdbcheck.mjs 6/6 against a fake TMDBmre
  • 9c230516mission brief w39mre
  • 3609121dmission 038 docs + report (quota stop): README/kinds.md for #43 #42 #36, STATUS, LOG; HEAD browser gate 374/8 in the in-app daily run block (hour-boundary suspected, rerun pending), other gates green; #36 real run needs TMDB_READ_TOKENmre
  • a5d06e79tracker#36 (mission 038): tools/tmdb-check.hl + lib/tmdbcheck.hl — every live migrated title's migrated title + year against its TMDB entry (one GET /movie|tv/<id>?append_to_response=alternative_titles, 260 ms apart, passing failures asked once more): ok / ambiguous (one of title, year disagrees) / clear (both, or 404); read-only; token only from TMDB_READ_TOKEN; --stored = a title-only preview from the TMDB names already stored (no request). Tested against a fake TMDB (.scratch/w38/t36): 7 titles, 3 ok, 2 ambiguous, 2 clear, data unchangedmre
  • 982554f3tracker#42 (mission 038): series pages — an unknown slug no longer scans every title (lib/shows.hl showBySlug: the slug map only; new titles are noted by refreshTitleCaches, which both title puts already reach): 10.7–15.7 s → 0.013 s on the real copy (the one-request-at-a-time server was blocked meanwhile); cast/crew rows take name + slug from a person-link cache (personLinkOf) instead of whole person records (SNL: 303 cast with 4,761 credits, ~49k allocations per render) — allocations per series page −5…−40 %; HTML of 20 pages identical to beforemre