gitoriaLog in with ident

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6bb2daf16bb2daf1tracker#13: homepage (tiles, intro, latest movies/shows), /shows, /movies/page/N, /my/movies; lists cached in memorymre6bb2daf1/README.md

47.2 KB

  1. # tracker.worldapi.org
  2. The new tracker: a Hybriel app that will track the TV shows (and later movies) the creator
  3. follows and watches. **`CONCEPT.md` (the creator's) is the source of truth** — read it first;
  4. nothing is built that it does not describe. Built step by step, one ticket per step
  5. (tracker.worldapi.org#1, #2, …).
  6. **Built so far — step 1 (ticket #1)**: the shell. The header carries the ident login (an
  7. identity selector, like calendar/gitoria) and sign-out; the homepage itself stays empty. No
  8. design carried over from the old app.
  9. **Step 2 (ticket #2)**: the old tracker's MongoDB export is now in `storage/mpackdb/` (new
  10. mpackdb ids, every reference re-pointed) — see "Data" and `STATUS.md`. Nothing is shown in the
  11. UI yet; the homepage still renders empty. That is a later step, from the creator.
  12. **Step 4 (ticket #4)**: the show page, `/shows/:slug` (`components/show.hl`) — poster, title,
  13. genre pills, plot, cast (as described in "What it does (step 4)" below), every season with its
  14. episodes, and the watch check (episode and season, season bulk-toggles its episodes).
  15. **Step 5 (ticket #5)**: `/unwatched` (`components/unwatched.hl`) — every already-released,
  16. unwatched episode of a show the signed-in user follows, newest release first (see "What it does
  17. (step 5)" below).
  18. **Step 6 (ticket #6)**: `/schedule` (`components/schedule.hl`) — every not-yet-released episode
  19. of a show the signed-in user follows, soonest first, no check icons (see "What it does (step 6)"
  20. below).
  21. **Step 7 (ticket #7)**: `/my/shows` (`components/myshows.hl`) — every show the signed-in user
  22. follows, newest follow first: small poster, title, last watched episode (`S08E35`) (see "What it
  23. does (step 7)" below). The homepage itself is still empty.
  24. **Step 8 (ticket #8)**: the personal lists all live under `/my/`: `/my/shows`, `/my/unwatched`,
  25. `/my/schedule` (old `/unwatched`, `/schedule` answer 301). Episodes everywhere as `S01E01`, show
  26. titles in lists with the year (`Doctor Who (2005)`), "1 episode" singular, and every `/my/` page
  27. under 1 s full load on the real data (see "What it does (step 8)" below).
  28. **Step 9 (ticket #9)**: the TMDB sync — every show someone follows gets its new seasons/episodes
  29. (existing ones updated: title, summary, release) and its poster from TMDB, once a day inside the app
  30. (04:00 UTC) and on demand with `tools/sync-tmdb.hl` (see "What it does (step 9)" below).
  31. **Step 10 (ticket #10)**: an installable app (PWA) with its own icon — a TV with a check mark, tracker green
  32. on dark; also the favicon. The shell (`/`) opens without network and says it is offline (see "What it does
  33. (step 10)" below).
  34. **Step 12 (ticket #12)**: the show page's header has small link icons to the show on TMDB, IMDb, TheTVDB and
  35. TVmaze (a movie: TMDB + IMDb), only for the ids the show has, each in a new tab; the TMDB sync fills missing
  36. ids (TMDB `external_ids`, TVmaze lookup) and never overwrites one (see "What it does (step 12)" below).
  37. **Step 13 (ticket #13)**: the homepage has content — signed in, four big icons (Unwatched, Schedule, Shows,
  38. Movies → the `/my/` pages); for everyone a short text about the site, the 10 latest released movies and the 10
  39. series with the newest released episode (headings link to `/movies` and `/shows`: everything, 24 per page). Plus
  40. `/my/movies` (the movies you follow); `/my/shows` is series only now (see "What it does (step 13)" below).
  41. Written in **Hybriel** on **hl:web**, same stack and conventions as `ident.worldapi.org`
  42. (vendored plugins/binary copied from there, see "Vendored Hybriel").
  43. ## Run (dev, Loreana)
  44. ```bash
  45. cd /media/STORAGE/projects/tracker.worldapi.org
  46. TRACKER_PORT=8700 TRACKER_SYNC=0 setsid nohup ./bin/hybriel project.hl > server.log 2>&1 < /dev/null & echo $! > server.pid
  47. # TRACKER_SYNC=0: the runtime loads .env (real TMDB token) by itself — without it a dev server syncs from TMDB at 04:00 UTC
  48. # stop: kill $(cat server.pid)
  49. ```
  50. * Config (env; the real environment outranks nothing here — there is no `.env` reader in
  51. project.hl, unlike ident's SMTP settings — set these in the shell or `docker-compose.yml`):
  52. | Variable | Default | |
  53. |---|---|---|
  54. | `TRACKER_PORT` | 45008 | |
  55. | `TRACKER_URL` | `http://127.0.0.1:<port>` | this app's own origin — the ident login button's `return=` is built from it |
  56. | `IDENT_URL` | `https://ident.worldapi.org` | |
  57. | `TRACKER_KEY` / `TRACKER_SECRET` | `''` | this app's API key + secret, from ident's `/apps` (register once, origin = `TRACKER_URL`) — **not set yet on Byrodin**: the first deploy (architect) registers the app in the live ident and puts these in `.env` next to `docker-compose.yml`, exactly like ident's own `.env` holds its SMTP settings |
  58. | `TRACKER_WATCH` | on | `0` = no dev watcher (the container) |
  59. | `TRACKER_STORAGE` | `./storage/mpackdb` | the `usersTable` directory |
  60. | `TRACKER_SESSIONS` | `./.sessions` (hl:web's own default) | this app's own session store |
  61. | `HL_HOST` (or `HOST`) | 0.0.0.0 | interface to bind; `127.0.0.1` on Byrodin |
  62. | `TMDB_READ_TOKEN` | — | TMDB v4 read token (in `.env`, never print it). Unset → the daily sync is off. **The runtime loads the `.env` beside `project.hl` by itself** (the real environment wins): every dev server on Loreana has the real token — start dev servers with `TRACKER_SYNC=0` |
  63. | `TRACKER_SYNC` | on | `0` = no daily TMDB run inside the app |
  64. | `TRACKER_SYNC_HOUR` | 4 | UTC hour of the daily run (hl:time has no time zones; the container is UTC) |
  65. | `TMDB_BASE_URL` / `TMDB_IMAGE_URL` | `https://api.themoviedb.org/3` / `https://image.tmdb.org/t/p` | the gate points both at its fake TMDB |
  66. | `TVMAZE_BASE_URL` | `https://api.tvmaze.com` | #12: the TVmaze id lookup; the gate points it at its fake (`<fake>/tvmaze`) |
  67. Without `TRACKER_KEY`/`TRACKER_SECRET`, `/` still renders (signed out, the selector and "Log
  68. in with ident" show in the header); a login attempt answers `'login is not set up on this
  69. server (TRACKER_KEY / TRACKER_SECRET missing)'` instead of exchanging a code — so the app is
  70. never a dead 500 while waiting for that one-time setup.
  71. ## What it does (step 1)
  72. * **Login, copied unchanged from calendar.worldapi.org** (rejected once for a centered
  73. sign-in and no header selector — architect, 2026-09-27): ident only, no own passwords
  74. (ident's login button flow, ident.worldapi.org README "How apps use ident"), the identity
  75. selector (`<ident-selector>`, ident's `/selector.js`) sits in the header
  76. (`components/main.hl`, `userBox`), a plain "Log in with ident" link beside it when signed
  77. out. Choosing an identity in the selector fires `ident-login` (one-time code); `login.js`
  78. (an external-component bridge, allowed per the creator: "login.js is correct, as thats for
  79. externals in general") hands the code to a hidden input, whose `change` calls the server
  80. face `trackerLogin` (`users.hl` `exchangeCode`, `POST <ident>/api/exchange` — nothing else:
  81. ident does not hand over a display name yet, ident#23 done / ident#11 on hold), which makes
  82. or finds this app's own user record (`usersTable`, `storage/mpackdb/users.db`) and sets
  83. `session.user = { id }`. `/login/callback` is the same exchange as a plain redirect (the
  84. login button's return URL) for a client that has no socket yet. "Log out" in the header
  85. calls `trackerLogOut`; ident's own login is untouched. This app's own session cookie is
  86. `trackersid` (cookies ignore ports, an own name keeps it apart from ident's `identsid` on
  87. the same dev host, hybriel#10/#17).
  88. * **The empty homepage** (until #13 — see "What it does (step 13)") (`/`, `components/home.hl`): no content at all, signed in or out —
  89. the header alone carries the login state. Nothing else.
  90. * **One mpackdb table**: `storage/mpackdb/users.db` (`identity` → this app's user id — no
  91. display name, no other per-user data yet). Step 2 (tracker.worldapi.org#2, open) brings the
  92. old tracker's data across.
  93. ## What it does (step 4)
  94. `/shows/:slug` (`components/show.hl`, slug = the migrated `urlSegment`), read-only data from
  95. `shows.hl`, per-user watch state from `watches.hl` (both reused as-is by `/unwatched` and
  96. `/schedule`, tickets #5/#6 — "reuse, don't copy"):
  97. * **Header**: poster on the left (`/posters/<name>`, `project.hl` `posterRoute` — served from
  98. `storage/mpackdb/posters/`; the real poster files were never in the Mongo backup, see
  99. `DECISIONS.md` "tracker concept" — a placeholder SVG shows until a later TMDB step brings
  100. real ones back), title, genre pills (blue, link to `/genre/<slug>`) and the plot summary to
  101. its right, the cast below as comma-separated red links to `/person/<slug>`.
  102. * **Seasons**, latest first, the latest expanded and every other one collapsed to start; each
  103. row: a round check icon (a disc with a check, drawn in SVG/CSS, no icon font), the season
  104. title/number, its episode count. Its episodes (number + title, and their own check icon)
  105. show once expanded (click the row to toggle).
  106. * **The watch check** (signed-in only — signed out, no check icons show at all): clicking an
  107. episode's check toggles that one watch; clicking a season's check toggles the season's own
  108. watch AND every one of its episodes at once (`watches.hl` `setSeasonWatched`). Every click is
  109. a server round trip (`emit server showToggleEpisode` / `showToggleSeason` / `showRows` for
  110. collapse/expand) that rebuilds the row list server-side and reassigns it whole — a season has
  111. at most a few dozen episodes, cheap. A **Hybriel gap found here** (filed as hybriel#115,
  112. reported after this ticket's first attempt): a plain per-instance member function that calls
  113. an hl:mpackdb-backed import comes back `null` when called from inside an `on server` face,
  114. even though the very same call works as a member's own top-level initializer — the fix is to
  115. declare such helpers `static` (the same shape calendar.worldapi.org's `soonOf` already uses).
  116. `components/show.hl`'s own helpers (`buildRows`, `genreRowsOf`, …) are `static` for exactly
  117. this reason.
  118. * **Data fix**: `tools/relink-episode-seasons.hl`, a one-off idempotent tool that links every
  119. episode whose `season` was still null in the migrated data (36,194 of them, ticket #2) to its
  120. season by matching `(show, seasonNumber)` — never touches an episode whose season is already
  121. set, never runs `update()` on the live table (hybriel#113; it rebuilds a fresh episodes table
  122. and swaps the files over, the same rule `tools/migrate.hl` follows). Not run against the live
  123. data yet — the architect runs it (stop the container first, `storage/mpackdb` is not shared
  124. across processes, hybriel#21).
  125. ## What it does (step 5)
  126. `/unwatched` (`components/unwatched.hl`): every episode of a show the signed-in user follows
  127. (`follows.hl`, new) that is already released (`release` ≤ today) and not yet watched
  128. (`watches.hl` `isWatched`), newest release first. Creator: "/unwatched lists all unwatched
  129. episodes of shows followed in release date desc order"; "check icon is a disc with a check in
  130. it" — the SAME icon/class (`watches.hl` `watchClassOf`, moved there from `components/show.hl` so
  131. both pages share one definition instead of each declaring its own) and the same
  132. `setWatched`/`isWatched` watch logic as the show page (step 4), not copied.
  133. * Each row: check icon, the show's title (linking to `/shows/:slug`), "Ep `<number>` ·
  134. `<title>`", the release date.
  135. * A row only ever shows an unwatched episode, so a click always marks it watched (never toggles
  136. back, unlike the show page's checks) — the row leaves the list. Signed out: no rows, a
  137. "Sign in to see the shows you follow." message instead.
  138. * `follows.hl` (new): read-only per-user follow data (`followedShowIds`), kept apart from
  139. `shows.hl`/`watches.hl` the same way, for `/schedule` (ticket #6) to reuse.
  140. ## What it does (step 6)
  141. `/schedule` (`components/schedule.hl`): every episode of a show the signed-in user follows
  142. (`follows.hl`) that is NOT yet released (`release` > today), soonest first. Creator: "/schedule
  143. has a similar list without check icons for the upcoming episodes of shows followed" — same row
  144. layout as `/unwatched` (show title linking to `/shows/:slug`, "Ep `<number>` · `<title>`", the
  145. release date), minus the check icon and minus any click handling: the page is read-only, so it
  146. needs no `on server` face at all. Signed out: no rows, the same "Sign in to see the shows you
  147. follow." message as `/unwatched`.
  148. ## What it does (step 7)
  149. `/my/shows` (`components/myshows.hl`): every show the signed-in user follows, ordered by the
  150. follow's `at` (epoch ms), newest first. Creator: "trackers /my/shows that just ists the shows in
  151. desc order i followed them, small poster, title, last episode like s08e35". Read-only, no `on
  152. server` face (like `/schedule`).
  153. * Each row: a small poster (2.5rem wide, the same `/posters/<name>` route + placeholder as the show
  154. page; a show with no poster name at all gets `/posters/none`, i.e. the route's placeholder), the
  155. title linking to `/shows/<slug>`, and the **last watched episode** as `SxxEyy` (zero-padded to
  156. two digits) = the HIGHEST season/episode number the user has an episode watch for (architect's
  157. reading, in the ticket) — not the most recently watched one; season watches alone don't count.
  158. Nothing watched → no episode element at all.
  159. * Signed out: no rows, the same "Sign in to see the shows you follow." as `/unwatched`.
  160. * Cost: touches only the user's follows + episode watches (one `episodeById` fetch per watch),
  161. never all episodes of a followed show — 128 rows in ~0.2 s on a copy of the real data (STATUS.md).
  162. * Reuse: `follows.hl` `followsOfUser` (new — the whole follow record, `followedShowIds` now
  163. builds on it), `shows.hl` `episodeById` (new, one line), `showById`, `posterName`, `watches.hl`
  164. `watchesOfUser`.
  165. ## What it does (step 8)
  166. * Routes (`project.hl`): `/my/unwatched`, `/my/schedule`; the old `/unwatched`, `/schedule` are
  167. function routes answering **301** to them (`movedTo`, no query carried — the pages take none).
  168. * `shows.hl` (shared by all lists): `episodeCode(s, e)` → `S01E01` (`/my/shows`, `/my/unwatched`,
  169. `/my/schedule` rows: `S01E02 · <title>`), `titleWithYear(show)` → `Doctor Who (2005)` (`year`,
  170. else the first 4 chars of `release`, else the bare title — 197 shows have no `year`), `pad2`,
  171. `posterUrlOf(show)`. The show page's own `h1` stays without the year (it is not a list).
  172. * Show page: season count `1 episode` / `N episodes`.
  173. * **Speed** (the creator's real data: 128 follows, 11,692 watches, 831 unwatched rows):
  174. * `/unwatched` was ~15 s: `isWatched` scanned all 11,692 watches per episode. Now
  175. `watches.hl` `watchedSet(rows)` builds `'<type>:<id>' → true` ONCE; `/my/unwatched` and the
  176. show page's `buildRows` look up that map. Now ~0.6 s server render (the rest is fetching
  177. every episode of 128 shows; the insertion sort is ~50 ms).
  178. * `/my/shows` "25 s full load while data takes 0.2 s": (1) **hl:web serves one request at a
  179. time** — measured: a `/my/shows` request made during a 15 s `/unwatched` render waited 13.7 s;
  180. every poster request of every visitor queues the same way. Fixing `/unwatched` removes that.
  181. (2) 128 rows = 128 different `/posters/<oldId>.jpg` URLs, all answering the same placeholder
  182. (no poster files exist yet) — 128 requests per load. `posterUrlOf` now gives rows without a
  183. poster FILE the one URL `/posters/none` → 1 request, cached.
  184. * How it was measured: see STATUS.md ticket #8 ("Real-data check").
  185. ## What it does (step 9)
  186. `tmdbsync.hl` (`syncShow`), run by the app every day and by `tools/sync-tmdb.hl`:
  187. * **Which shows**: every show ANY user follows (`follows.hl` `allFollowedShowIds`, 126 on the real data).
  188. * **Per show** (1 + ⌈seasons/20⌉ requests + the poster if new): `GET /tv/<tmdbId>?append_to_response=external_ids`
  189. (status, counts, overview, `poster_path`, the season list, since #12 the external ids), then `GET /tv/<tmdbId>?append_to_response=season/1,…` (≤ 20
  190. seasons with their episodes per request). Bearer `TMDB_READ_TOKEN`.
  191. * **Matching, never duplicating, never deleting**: episode by `tmdbId`, else (161 migrated episodes have
  192. none) by S/E number if that one has no tmdbId yet — then it gets the tmdbId; season by (show,
  193. seasonNumber) (migrated seasons have no tmdbId). Existing episodes/seasons: title, summary, release
  194. updated; an empty TMDB value never overwrites. New ones: self-assigned 16-hex ids (NOT mpackdb's own —
  195. hybriel#113), `oldId = 'tmdb-episode:<id>'` / `'tmdb-season:<showTmdb>:<n>'` (the tables' `!oldId`
  196. index), linked into `season.episodes` / `show.seasons`. Show: `status`, `seasonsCount`,
  197. `episodesCount`, `tmdbSummary`, `tmdbPoster`, `tmdbSync` (ms). Season 0 (specials) only for a show that
  198. already has one; a TMDB season with no episodes is not created.
  199. * **Posters**: TMDB `poster_path`, size w342 → `storage/mpackdb/posters/<oldId>.<ext>` (the folder the
  200. existing `/posters/:name` route already served; inside `storage/` → in the nightly backup), `show.image`
  201. set to the ext. Downloaded again only when the file is missing or TMDB's `poster_path` changed.
  202. * **Daily run inside the app** (`project.hl` `syncTick`): an hl:time `every(1)` clock; at
  203. `TRACKER_SYNC_HOUR` (UTC), once per day, it queues all followed shows and then syncs ONE show per tick.
  204. hl:web serves one request at a time and `fetch()` blocks the whole process, so a step blocks requests
  205. for its duration (real data: ~0.7 s average, Saturday Night Live 53 seasons ~1.7 s; logged as
  206. `tmdb sync: slow step …` above 1.5 s) — requests queued meanwhile are served between two ticks; a tick
  207. never runs inside a page render. After a show with n requests the next waits n × 260 ms (TMDB ≤ 40
  208. requests / 10 s). Log: `tmdb sync: daily at 4:00 UTC`, `tmdb sync: start, N followed shows`,
  209. `tmdb sync done: shows=… newSeasons=… newEpisodes=… updatedEpisodes=… updatedSeasons=… posters=…
  210. requests=… errors=… seconds=…` (`docker logs tracker.worldapi.org | grep tmdb`). Tables are persisted
  211. every 10 shows and at the end (~36 ms).
  212. * **The tool** (same sync, sequential, paced; prints one line per show + the totals). **App stopped or a
  213. COPY only** — hl:mpackdb is one process per storage (hybriel#21):
  214. ```bash
  215. set -a; . ./.env; set +a # TMDB_READ_TOKEN, never print it
  216. TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/sync-tmdb.hl [--limit N]
  217. ```
  218. * Real data (copy, 2026-09-30): first run 126 shows → +20 seasons, +800 episodes, 2651 episodes
  219. updated, 125 posters (6.4 MB), 380 requests, 0 errors, 186 s; a second run: all 0, 255 requests, 90 s.
  220. Details: STATUS.md ticket #9.
  221. ## What it does (step 10)
  222. The installable app, the same way calendar.worldapi.org does it (its ticket #3) — hl:web's own manifest
  223. and service worker from settings in `project.hl`, no JavaScript of ours:
  224. * `appIcons` (192 + 512 PNG, each `any` and `maskable`), `appTouchIcon` (180 PNG), `appFavicon`
  225. (`/icons/favicon.svg`), `appThemeColor` = token `darker` (the header, rgb(15, 20, 25)),
  226. `appBackgroundColor` = token `dark` (rgb(25, 30, 35)); name = `appTitle` "tracker". hl:web serves
  227. `/__hl/manifest.webmanifest` (start_url/scope `/`, display standalone) and links it, the
  228. apple-touch-icon and theme-color from every head. `/favicon.ico` is a real icon (16/32/48) for
  229. browsers that ask for it themselves. Each icon has its own `file` route in `project.hl`.
  230. * **Icons** (`icons/`): `icon.svg` is the source (512, hand-written: a TV with antennas and a check on
  231. the screen, `#4ec9b0` on rgb(25,30,35); everything inside the maskable safe zone, a circle of radius
  232. 204, so one image serves `any` and `maskable`); `favicon.svg` is the same drawing cropped tight on a
  233. rounded tile. Rendered on Loreana:
  234. ```bash
  235. rsvg-convert -w 192 -h 192 icons/icon.svg -o icons/icon-192.png
  236. rsvg-convert -w 512 -h 512 icons/icon.svg -o icons/icon-512.png
  237. rsvg-convert -w 180 -h 180 icons/icon.svg -o icons/apple-touch-icon.png
  238. for s in 16 32 48; do rsvg-convert -w $s -h $s icons/favicon.svg -o /tmp/fav-$s.png; done
  239. magick /tmp/fav-16.png /tmp/fav-32.png /tmp/fav-48.png icons/favicon.ico
  240. ```
  241. * **Offline**: `offline = [ Home ]` — the worker precaches the shell (runtime, modules, CSS, manifest,
  242. icons, favicon) and the document of `/`. Navigations are network-first; without a network `/` comes
  243. from the cache and every other page gets hl:web's own "Unavailable offline" page (503) — data pages
  244. need the network, no offline data. The shell (`components/main.hl`) shows "You are offline. Your shows
  245. and lists need the network." while `navigator.onLine` is false: hl:web gives a page no connection
  246. state and no mount hook, so an invisible `netProbe` runs an endless 1 s CSS animation (`styles.hl`
  247. `@keyframes tracker-net-tick`) and its `animationiteration` handler reads `navigator.onLine` (a write
  248. only when it changes). A server that is down while the device is online shows no note.
  249. ## What it does (step 12)
  250. * **Link icons** (`components/show.hl`, `shows.hl` `externalLinksOf`, `styles.hl` `showLinks`/`a.extlink`): under the
  251. title (phone: between the title row and the full-width poster; desktop: under the title, right of the poster) one
  252. small monochrome badge per id the show HAS — `TMDB` https://www.themoviedb.org/tv/<tmdbId> (a movie: `/movie/<id>`),
  253. `IMDb` https://www.imdb.com/title/<imdbId>/, `TVDB` https://thetvdb.com/dereferrer/series/<tvdbId>, `TVmaze`
  254. https://www.tvmaze.com/shows/<tvmzId>. A movie (`type = 'movie'`) shows only TMDB + IMDb. Each `target="_blank"
  255. rel="noopener"`. CSS only (muted grey badge, dark text, accent on hover), no copied logos. URL forms checked
  256. 2026-10-01: all four 301 to the site's slug page (TheTVDB's old `?tab=series&id=` too; `dereferrer` is its id form).
  257. * **Sync** (`tmdbsync.hl` `externalIdsFor`): the details request carries `append_to_response=external_ids` (no extra
  258. request); a MISSING `imdbId` (`tt` + digits) / `tvdbId` (number > 0) is filled from it. A show still without
  259. `tvmzId` → `GET <TVMAZE_BASE_URL>/lookup/shows?imdb=tt…`, on 404 `?thetvdb=<id>` (hl:fetch follows TVmaze's 301 to
  260. `/shows/<id>`); 550 ms pause per lookup (TVmaze 20 / 10 s) — both runners wait `pauseMsAfter(r)`. **An id the show
  261. has is never overwritten.** Totals gain `ids=` (ids filled) and `tvmazeRequests=`.
  262. * **Movies** (7814 of 9453 migrated rows are `type = 'movie'`, 1 followed: Star Trek: First Contact): before #12 the
  263. sync asked `/tv/<tmdbId>` for them — a DIFFERENT title on TMDB. Now a movie gets one `GET
  264. /movie/<tmdbId>?append_to_response=external_ids`: missing imdbId + its poster; no seasons/status/overview.
  265. * **Counting ids** (a COPY only): `TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel
  266. tools/count-external-ids.hl` → per type, all / followed: shows, tmdbId, imdbId, tvdbId, tvmzId.
  267. ## What it does (mission 047: checks after client-side navigation, mobile first, show page)
  268. * **Invisible checks fixed** by re-vendoring Hybriel master ff51cf46 (see "Vendored Hybriel"): the old
  269. build created SVG built in the BROWSER (client-side navigation, expand/collapse, a check click) in the
  270. XHTML namespace — nothing drawn. Server-rendered pages were fine.
  271. * **Mobile first** (`styles.hl`): every rule outside the one `@media (min-width: 40rem)` block is the
  272. phone's (390 px); the block only adds the wide layout. The header is one row on a phone (brand, ident
  273. selector, Log out); `/my/unwatched` + `/my/schedule` rows are two lines on a phone (show + date, the
  274. episode below), one line from 40rem.
  275. * **Show page** (`components/show.hl`): phone = title (+ Follow) first, then the poster at the full
  276. content width, then genres/plot/cast (`showMeta` is `display: contents` there, the title row
  277. `order: -1`); desktop unchanged (poster 10rem left). Season header: a caret at the right edge (down =
  278. open, `season-row.collapsed` turns it right). Episode rows are not indented (episode check under the
  279. season check). Artists orange (`#ce9178`, token `orange`). Unwatched check = the inverted solid icon:
  280. accent outline circle + accent check mark; watched = filled accent disc, dark check.
  281. * **Follow toggle** (signed in): "Follow" = the inverted button (accent border), "Following" = filled;
  282. face `showToggleFollow` → `follows.hl` `setFollowed` (new record, `at` = now → top of `/my/shows`;
  283. unfollow deletes the user's records for that show). **Signed out** the checks and Follow are visible;
  284. a click opens the modal "You need to sign in to follow shows and mark episodes." (Close + "Sign in with
  285. ident" = the ident login link) and sends nothing. The modal is `components/modal.hl`, copied verbatim
  286. from components.hybriel.worldapi.org `components/modal/modal.hl` (becbd59, 2026-09-30) — its own
  287. `Style` lands in `/__hl/app.css`.
  288. ## What it does (step 13)
  289. * **`/`** (`components/home.hl`): signed in, four icon tiles (inline SVG, accent) → `/my/unwatched`, `/my/schedule`,
  290. `/my/shows`, `/my/movies` (2×2 on a phone, 4 in a row from 40rem). For everyone: the text about the site (signed out
  291. plus a "Log in with ident" hint), then **Movies** (→ `/movies`) = the 10 latest RELEASED movies (release ≤ today) and
  292. **Shows** (→ `/shows`) = the 10 series whose newest released episode is newest. Tiles: poster (`posterUrlOf`:
  293. the file or `/posters/none`), title, year; a link to `/shows/<slug>` (movies too — same page, same Follow button).
  294. Phone: each row scrolls sideways inside itself (`tile-row`, the page never does); from 40rem a grid of 5.
  295. * **`/movies`, `/shows`** (`components/movies.hl`, `components/allshows.hl`, both compose `components/tilelist.hl`):
  296. every movie by `release` desc (future-dated ones first, undated last — "all … sorted by release date desc"); every
  297. series by its newest released episode (series with none released after them, by their own `release`). 24 per page,
  298. grid of 3 (phone) / 6. **The page is a path segment: `/movies/page/2`**, page 1 = `/movies`; out of range → the last
  299. page, not a number → page 1. NOT `?page=2` (the mission asked for it): a page component cannot read the query
  300. (hybriel#11, query half open) and hl:web's Back (`popstate`) drops the query — every page change would be a full
  301. reload and Back would land on page 1. With the path, paging is a client-side navigation and Back works.
  302. * **Pagination** = components.hybriel's `components/pagination/pagination.hl`, **copied verbatim** to
  303. `components/pagination.hl` (4b4dabe) — re-copy, don't edit. It has no data out (its README, hybriel#87), so
  304. `tilelist.hl` wraps it in `pager-box { on click }`: a click on one of its buttons bubbles there, the button's text
  305. ("Previous", "Next", a number; "…" nothing) gives the page → `navigate()`. Hidden when there is only one page.
  306. `styles.hl` makes its buttons a bit tighter on a phone so "Previous 1 … 99 100 101 … 326 Next" stays one row.
  307. * **`/my/movies`** (`components/mymovies.hl`): the movies the user follows, newest follow first (same rows as
  308. `/my/shows`: small poster, title with year). `/my/shows` now leaves movies out. Shared sort: `follows.hl`
  309. `insertByFollowDesc`.
  310. * **Speed — `catalog.hl`**: built ONCE at start (one scan of shows + episodes: real data ~1 s, server answers
  311. ~1.5 s after launch) into two sorted id lists in memory (`static index`; hand-written merge sort). A page only
  312. slices 24 ids and fetches those shows: real data, server time ≈ 5 ms per page. Kept fresh without a rebuild:
  313. `project.hl` `syncTick` calls `refreshCatalogShow(id)` after each synced show (its seasons/episodes only, ~2.5 ms;
  314. 126 shows 0.3 s); a NEW DAY moves episodes that came out today (each series keeps its upcoming release dates) into
  315. place on the first read. `tools/sync-tmdb.hl` runs with the app stopped → the next start rebuilds.
  316. * **Content warning** (open, not decided here): the migrated movie table holds many adult titles (the old tracker
  317. imported TMDB lists); they show on the public `/` and `/movies`. No `adult` flag is stored.
  318. ## Test
  319. ```bash
  320. node tests/browser.mjs # THE GATE: this app's own server + its OWN ident (a copy of
  321. # ident's code without .env, codes to a mail sink — no live
  322. # ident, no real mail; tests/identkit.mjs, same as calendar's
  323. # gate) + a real headless Chrome: signed out (header shows the
  324. # selector + "Log in with ident"; since #13 the homepage has
  325. # content, see below) -> sign in -> header shows "Log out" -> sign
  326. # out -> signed out again -> a reload stays signed out. Also
  327. # checks the header has no bottom border and filled buttons
  328. # (incl. the ident selector's) have none, while inverted ones
  329. # ("Log out") keep theirs.
  330. # tracker.worldapi.org#4: a fixture show (tests/seed-show.hl,
  331. # written into the gate's own storage before the server starts)
  332. # proves /shows/:slug — header renders, no checks signed out;
  333. # signed in, click an episode check (turns solid), click a
  334. # season check (itself AND its episodes turn solid, proven
  335. # after a reload — server-side, not just client state).
  336. # tracker.worldapi.org#5: the same fixture (now followed by the
  337. # test user) proves /unwatched — signed out, no rows; signed in,
  338. # only the two already-released episodes show, newest first, the
  339. # far-future one excluded; click a check, the row disappears
  340. # (proven server-side after a reload).
  341. # tracker.worldapi.org#6: the same fixture proves /schedule —
  342. # signed out, no rows; signed in, only the far-future episode
  343. # shows (the two already-released ones excluded), no check icons
  344. # at all, unaffected by any watch toggle on the other pages.
  345. # tracker.worldapi.org#7: the fixture now has a 2nd followed
  346. # show (followed later, no poster name, never watched) and
  347. # proves /my/shows — signed out, the sign-in message; signed
  348. # in, newest follow first, title links, loaded posters (the
  349. # placeholder), S01E02 after /unwatched's click, then S02E01
  350. # (highest, not most recent) after the show-page checks; the
  351. # unwatched show shows no episode.
  352. # tracker.worldapi.org#8: the lists moved to /my/unwatched and
  353. # /my/schedule (old addresses: 301, and the browser lands on
  354. # the new one), rows say S01E02 / S02E01, titles carry the
  355. # year ("Gate Test Show (2024)", "Unwatched Gate Show (2025)"
  356. # — from `release`, that show has no `year`), the show page
  357. # says "1 episode" / "2 episodes", /my/shows gives the show
  358. # with a poster FILE (the gate writes posters/sh1.png) its
  359. # own URL and the other one /posters/none.
  360. # tracker.worldapi.org#9: a FAKE TMDB (tests/faketmdb.mjs, a
  361. # node http server inside the gate, fixed JSON + a png; the
  362. # app/tool get TMDB_BASE_URL/TMDB_IMAGE_URL + a gate token —
  363. # never the real TMDB). App stopped → tools/sync-tmdb.hl: +2
  364. # seasons, +4 episodes, 3 fixture episodes matched by S/E and
  365. # updated, 2 posters, no season 0, Bearer token on every call;
  366. # a 2nd run changes nothing. Restarted: /my/schedule and
  367. # /my/unwatched show the new episodes, /my/shows + the show
  368. # page the downloaded posters (/posters/sh2.png byte-equal),
  369. # S1 keeps its watched episodes, no duplicates. Then the
  370. # app's OWN daily run (TRACKER_SYNC_HOUR = the current UTC
  371. # hour, fake TMDB slowed to 700 ms/request, one new episode):
  372. # it runs, finds the episode, and pages asked meanwhile are
  373. # answered < 2.5 s (between shows) though the run takes ≥ 3 s.
  374. # tracker.worldapi.org#10: the PWA — head links (manifest,
  375. # apple-touch-icon, favicon, theme-color = token darker), the
  376. # manifest (type, name, start_url, scope, standalone, colours),
  377. # every icon a real PNG of its size, touch icon 180, favicon
  378. # svg + ico; Chrome: no installability error, manifest parsed
  379. # without errors; the worker /__hl/sw.js registered, scope /,
  380. # controls the page (a separate 390 px phone tab). OFFLINE:
  381. # CDP offline → the note appears; the server STOPPED too (CDP's
  382. # offline does not reach the worker's own fetches) → reload of
  383. # / shows header + note from the cache; /my/shows gives
  384. # "Unavailable offline"; server back → no note.
  385. # mission 047: a CLIENT-SIDE navigation /my/shows → the show
  386. # (window marker proves no reload): every check/caret svg in the
  387. # SVG namespace and drawn — again after expand, an episode click,
  388. # collapse (FAILED on the old vendored build: XHTML namespace,
  389. # circle width 0 — /tmp/w047/old-build-gate.log); caret down/
  390. # right and flips; episode check under the season check; artists
  391. # rgb(206,145,120); unwatched icon = accent outline + accent
  392. # check; Follow: "Following" filled → unfollow ("Follow",
  393. # outlined) → gone from /my/shows, survives reload → follow →
  394. # top of /my/shows; signed out: checks + Follow visible, a click
  395. # (episode, season, Follow) opens the sign-in modal, Close
  396. # closes it, a reload shows nothing was written. 390 px + 1280
  397. # px: header one row, no sideways scroll, show-page order
  398. # (phone: title, full-width poster, genres, plot, cast).
  399. # tracker.worldapi.org#12: link icons only for existing ids
  400. # (show 1: TMDB+IMDb, show 2: TMDB+TVDB, a fixture MOVIE: TMDB
  401. # /movie/), exact hrefs, target _blank + rel noopener, a click
  402. # opens a NEW tab (CDP target, canAccessOpener false) and the
  403. # page stays; also after client-side navigation; phone/desktop
  404. # position. Sync: external_ids come with the details request,
  405. # the movie only via /movie/, a FAKE TVmaze (same fake server,
  406. # /tvmaze/…, 301 like the real one): imdb hit, imdb 404 → thetvdb
  407. # hit; afterwards the stored ids are unchanged (tt0000001, 4002
  408. # — TMDB says otherwise) and the missing ones filled; 2nd run:
  409. # ids=0, no TVmaze request.
  410. # tracker.worldapi.org#13: fixture + 32 never-followed movies
  411. # (Gate Movie 01…30 = 2001-01-01…30, one 2099, one undated) and
  412. # a series with an episode 2021-01-01. Home signed out: no
  413. # icons, the text, headings → /movies /shows, the 10 latest
  414. # RELEASED movies (30…21, not the 2099 one), the series by
  415. # newest released episode; signed in: 4 icons → /my/…, the
  416. # Movies icon → /my/movies (client-side). /movies via the
  417. # heading: page 1 = 2099 + 30…08, "1 2 Next"; Next →
  418. # /movies/page/2 (client-side, 9 left, undated last), "1" →
  419. # /movies, Back → page 2, direct load, page 99 → 2, abc → 1.
  420. # /shows: series only, order, no pagination for one page; a
  421. # tile → show page. Follow a MOVIE on its page → /my/movies
  422. # has it, /my/shows does not. After the sync tool + restart
  423. # /shows reorders (S03E01); after the IN-APP run (TMDB adds a
  424. # released episode to show 2) /shows and the home row put
  425. # show 2 first without a restart. Offline / from the cache
  426. # still has the text and both rows.
  427. # Session-sync (hybriel 64527baa): after each face-driven change
  428. # (/my/unwatched click, expand, episode click, Follow) every row
  429. # appears exactly once.
  430. # 135 checks. Own servers :8700 (this app) / :8701 (ident copy)
  431. # / :8710 (fake TMDB); own storage .scratch/gate-store; Chrome
  432. # on 8702-8709. Other ports (workers get 8720-8739):
  433. # TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 TRACKER_GATE_TMDB_PORT=8727 node tests/browser.mjs
  434. # TRACKER_GATE_SHOTS=/tmp/x also writes {home,show,my-shows,
  435. # my-unwatched,my-schedule,movies,movies-page-2,shows-list,
  436. # my-movies}-{390,1280}.png, signed-out-modal-
  437. # 1280.png, synced-*.png (after the sync, 1280×900; synced-show-390
  438. # + synced-movie-390 at 390) + pwa-phone-
  439. # online/offline.png (390 px, dpr 2) — LOOK at them
  440. ps -eo pid,args | grep [h]l-browser-tier # must print nothing afterwards
  441. ```
  442. ## Deploy (Byrodin)
  443. Target: `/CONTAINERS/projects/tracker.worldapi.org` on Byrodin, container
  444. `tracker.worldapi.org` (`docker-compose.yml`: debian:12-slim, host network,
  445. `HL_HOST=127.0.0.1`, `TRACKER_PORT=45008`, `TRACKER_WATCH=0`, the folder mounted at
  446. `/home/tracker`, `./bin/hybriel project.hl`), public https://tracker.worldapi.org/ via
  447. nginx (TLS ends there; no baseUrl/tls in the app, like ident/notes).
  448. * **First deploy: done by the architect** (folder, nginx vhost with WebSocket Upgrade
  449. headers, cert, DNS, **and registering this app in the live ident** — `/apps` → name +
  450. origin `https://tracker.worldapi.org` → the API key + secret go into `.env` next to
  451. `docker-compose.yml`, `TRACKER_KEY=… TRACKER_SECRET=…`).
  452. * **Later: `./deploy.sh`** on Loreana, in this folder: runs the gate (refuses on a failure;
  453. `--skip-tests` skips it LOUDLY), backs up `storage/`/`.sessions/`/`.env` (what exists) to
  454. Loreana's `/media/SLOW1TB2/deploy-backups/<app>/` (newest 5 kept; an empty/failed backup stops
  455. the deploy), then rsyncs the code to
  456. `[email protected]:/CONTAINERS/projects/tracker.worldapi.org` (never `storage/`,
  457. `.sessions/`, `.env`, `.scratch/`, `server.*`, logs — the preview is checked for them; no
  458. `--delete`), `docker compose up -d && docker compose restart` over `ssh -F /dev/null`,
  459. then waits for https://tracker.worldapi.org/ to answer 200.
  460. * `./deploy.sh --dry-run` = the gate + `rsync -n` + the commands it would run (no restart, no
  461. URL check). `--target DIR|HOST:DIR` and `--url URL` point it elsewhere (tested against a
  462. local directory, see STATUS.md).
  463. ## Data
  464. `storage/mpackdb/`: `users.db` (`identity` → this app's own user id, `users.hl`) plus, since
  465. step 2, the old tracker's data — `genres.db` (27), `persons.db` (15157), `shows.db` (9453),
  466. `seasons.db` (6430), `episodes.db` (231584), `follows.db` (128), `watches.db` (11692), all with
  467. fresh mpackdb ids and every reference re-pointed (`tools/migrate.hl`); the one old user is this
  468. app's user for ident short id `az5b2`. Since step 9 the TMDB sync adds seasons/episodes and
  469. `storage/mpackdb/posters/<oldId>.<ext>` (w342, ~50 KB each), and sets `tmdbSync`/`tmdbPoster` on
  470. shows. Known in the migrated data (not caused by the sync): 12 duplicate episode tmdbIds and 1
  471. episode whose `show`/`season` disagrees among the followed shows. Counts and the referential-integrity proof:
  472. `STATUS.md` "ticket #2". Real data 2026-10-01: 7,814 movies + 1,639 series (`shows.type`), 232,384 episodes (935
  473. series have a released one).
  474. ## Files
  475. | File | |
  476. |---|---|
  477. | `CONCEPT.md` | the creator's concept — do not edit |
  478. | `project.hl` | manifest: the installable app (`appIcons`, `appTouchIcon`, `appFavicon`, theme colours from the tokens, `offline = [ Home ]`, #10), the daily TMDB run (`syncTick`, #9), routes (`/login/callback`, `/login/failed`, `/login.js`, `/posters/:name`, `/movies` + `/movies/page/:page`, `/shows` + `/shows/page/:page` (#13), `/shows/:slug`, `/my/shows`, `/my/movies` (#13), `/my/unwatched`, `/my/schedule`, `/unwatched` + `/schedule` → 301, `/` component Home), the app's own session cookie |
  479. | `users.hl` | the ident exchange + the `usersTable`, copied from calendar.worldapi.org's `users.hl` |
  480. | `login.js` | bridge between `<ident-selector>`'s `ident-login` event and the shell, copied verbatim from calendar.worldapi.org |
  481. | `components/home.hl` | `/` (#13): signed in the 4 icon tiles; the text; the latest 10 movies and series (catalog.hl) |
  482. | `components/movies.hl`, `components/allshows.hl` | `/movies` (+ `/movies/page/:page`), `/shows` (+ `/shows/page/:page`): every movie / series, 24 per page (#13) |
  483. | `components/tilelist.hl` | the poster grid + pagination both lists compose; turns a pagination click into `navigate()` (#13) |
  484. | `components/pagination.hl` | the pagination, copied verbatim from components.hybriel.worldapi.org (`components/pagination/pagination.hl`, 4b4dabe) — re-copy, don't edit |
  485. | `components/mymovies.hl` | `/my/movies`: followed movies, newest follow first (#13) |
  486. | `catalog.hl` | the public lists: built once at start, refreshed per synced show and per new day (#13) |
  487. | `components/main.hl` | the shell (header: brand, `<ident-selector>`, log in / log out; the offline note + its `netProbe` tick, #10) |
  488. | `components/loginfailed.hl` | `/login/failed`: why a login didn't work |
  489. | `components/show.hl` | `/shows/:slug`: the show page (header, Follow toggle, seasons with caret, episodes, watch check; signed out the sign-in modal) |
  490. | `components/modal.hl` | the modal dialog, copied verbatim from components.hybriel.worldapi.org (`components/modal/modal.hl`, becbd59) — re-copy, don't edit |
  491. | `components/unwatched.hl` | `/my/unwatched`: unwatched, already-released episodes of followed shows, newest first |
  492. | `components/schedule.hl` | `/my/schedule`: not-yet-released episodes of followed shows, soonest first, no checks |
  493. | `components/myshows.hl` | `/my/shows`: followed SERIES (#13: movies → `/my/movies`), newest follow first — small poster, title, last watched `SxxEyy` |
  494. | `shows.hl` | read-only data access (shows/seasons/episodes/genres/persons), plus the list labels `episodeCode`/`titleWithYear`/`posterUrlOf` (#8), reused by the `/my/` pages; `externalLinksOf` (#12: the link icons) |
  495. | `follows.hl` | per-user follow data (`followsOfUser`, `followedShowIds`), reused by `/unwatched`/`/schedule`/`/my/shows`; `allFollowedShowIds` (#9: every show anyone follows, for the sync); `isFollowing`/`setFollowed` (mission 047: the show page's Follow toggle) |
  496. | `tmdbsync.hl` | the TMDB sync of one show (`syncShow`: seasons, episodes, poster; #12: external ids + TVmaze lookup, movies via `/movie/`) + run totals — used by `project.hl`'s daily run and `tools/sync-tmdb.hl` (#9) |
  497. | `watches.hl` | per-user watch state (episode/season checks, the shared check-icon class `watchClassOf`, `watchedSet` = the user's watches as a map, built once per page), reused by `/unwatched`/`/schedule`/`/my/shows` |
  498. | `icons/` | #10: `icon.svg` (source) → `icon-192.png`, `icon-512.png`, `apple-touch-icon.png`; `favicon.svg`, `favicon.ico` (commands in "What it does (step 10)") |
  499. | `styles.hl` | all CSS (imports the tokens from `shared/tokens.hl`; accent green `#4ec9b0`) |
  500. | `shared/tokens.hl` | the WorldAPI tokens, vendored verbatim from `ident.worldapi.org/shared/tokens.hl` |
  501. | `tests/browser.mjs` | the gate (above) |
  502. | `tests/seed-show.hl` | writes the gate's fixture show (two seasons, three episodes) and, since ticket #5, a follow of it for the test user (#7: plus a 2nd, later-followed, never-watched show; #12: partial external ids + a MOVIE followed by another user), before the server starts |
  503. | `tests/identkit.mjs` | starts a throwaway ident copy for the gate, copied from calendar.worldapi.org's `tests/` |
  504. | `tests/faketmdb.mjs` | the gate's fake TMDB (#9): details, `append_to_response=season/N`, w342 png; records every request; #12: `external_ids`, `/3/movie/<id>`, a fake TVmaze under `/tvmaze` (`tvmazeRequests`) |
  505. | `tests/realdata-check.mjs` | NOT the gate: the real-data browser check on a COPY of live `storage/` (STATUS.md, mission 047 / #13): times of every page incl. `/`, `/movies`, `/shows`, `/my/movies`, pagination clicks + Back, client-side navigation, screenshots to `$REAL_SHOTS` |
  506. | `tools/count-external-ids.hl` | #12: how many shows have each external id, per type, all / followed — ONLY on a copy |
  507. | `tools/count-duplicate-ids.hl` | duplicate `@id`s per table — ONLY on a copy (hybriel#113 check, mission 047) |
  508. | `tests/cdp.mjs`, `tests/ports.mjs` | the CDP browser driver, copied from `ident.worldapi.org/tests/` |
  509. | `docker-compose.yml`, `Dockerfile`, `deploy.sh` | Byrodin container; the deploy from Loreana (section "Deploy") |
  510. | `tools/migrate.hl` | one-off: old MongoDB export → `storage/mpackdb/` (step 2, idempotent, see `STATUS.md`) |
  511. | `tools/verify.hl` | one-off: proves the migrated data against a COPY of `storage/mpackdb/` (counts, zero dangling references, one show end to end) |
  512. | `tools/sync-tmdb.hl` | the TMDB sync from the command line (#9) — app stopped or a copy; `--limit N`; prints counts |
  513. | `tools/relink-episode-seasons.hl` | one-off: links episodes with no `season` (step 2 leftovers) by `(show, seasonNumber)` — not run against the live data yet, see "What it does (step 4)" |
  514. ## Vendored Hybriel
  515. `bin/hybriel` + `plugins/` = **hybriel master ff51cf46** (2026-10-01 00:27, mission 047; includes
  516. #113 b08384e8, #115/#116 428bc56c/6b721937, #118 f5d709a4, the client-built SVG fix, hl:markdown),
  517. `bin/hybriel` sha256 `55a724a0cf8680247616a8b66b792cc0ee3ce797afe80d764347ee242d6facc5`. No local
  518. patch. Built read-only from an archive (never in the hybriel checkout):
  519. ```bash
  520. git -C /media/STORAGE/projects/hybriel archive master | tar x -C .scratch/hybriel-047
  521. cd .scratch/hybriel-047/native && /media/STORAGE/projects/hybriel/native/zig-toolchain/zig build -Dtarget=x86_64-linux-gnu.2.39 -Doptimize=ReleaseFast # → zig-out/bin/hybriel (hybriel README + ReleaseFast)
  522. cp zig-out/bin/hybriel ../../../bin/hybriel
  523. # plugins: copy every plugin dir the app already has (core crypto data fetch fs http http1 mpackdb proc smtp
  524. # time web) from .scratch/hybriel-047/plugins/ over plugins/ — `diff -rq plugins .scratch/hybriel-047/plugins`
  525. # must then list only plugins the app does not use
  526. ```
  527. The previous build (837fe120 via ident, sha256 `9e5e95b3…`) is kept in `.scratch/pre-047/` (bin/ +
  528. plugins/). After a re-vendor run the gate.

Branches

Latest commits

  • 6bb2daf1tracker#13: homepage (tiles, intro, latest movies/shows), /shows, /movies/page/N, /my/movies; lists cached in memorymre
  • cbdc4ea7tracker#12: link icons TMDB/IMDb/TVDB/TVmaze; sync fills missing ids (TVmaze lookup); movies fetched via /movie/mre
  • b105bcd8tracker#11: Hybriel master ff51cf46 (checks no longer vanish), mobile-first styles, carets, follow button, sign-in modal, inverted check, orange castmre
  • 31b758aatracker#10: installable app (manifest, service worker, offline shell), own icon + faviconmre
  • 2fa9d997tracker#9: TMDB sync (followed shows: seasons, episodes, posters), tools/sync-tmdb.hl + daily run 04:00 UTC, fake TMDB in gatemre
  • 49e1f61edeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • 54070a4etracker#8: /my/unwatched + /my/schedule (301 from old), S01E01, title (year), 1 episode, watched-set lookup (unwatched 15s -> 1s)mre
  • 3251488atracker#7: /my/shows (followed shows, newest follow first, poster, title, last watched SxxEyy); gate can take screenshots (TRACKER_GATE_SHOTS)mre
  • 44b7d9f9tracker#6: /schedule — upcoming episodes of followed shows, soonest firstmre
  • 91c9fc8ctracker#5: /unwatched — unwatched released episodes of followed shows, newest firstmre
  • a97c0295tracker#4: show page /shows/:slug (header, seasons, episodes, watch checks) + tools/relink-episode-seasons.hlmre
  • 05f407c5tracker: no border on any button except inverted ones (Log out, ident status and identities too); header brand weight 100mre
  • 17375427tracker#2: tools/migrate.hl + tools/verify.hl — old MongoDB data into mpackdb with new idsmre
  • 31aac936tracker#3: no border on the header and on filled buttons; inverted buttons keep theirsmre
  • 2ad9d29ctracker#1: login exactly like calendar (identity selector in the header, empty homepage)mre
  • 3691e176tracker#1: empty tracker with the ident login (state of 2026-09-27)mre