gitoriaLog in with ident

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit34f2c15b34f2c15btracker#15: TVmaze merge in the sync (gaps only: new episodes/seasons, empty titles/air dates; numbering check), fake TVmaze episodes + gatemre34f2c15b/STATUS.md

45.5 KB

  1. # STATUS — tracker.worldapi.org
  2. ## 2026-10-01 — ticket #12 (mission 049): link icons to TMDB, IMDb, TheTVDB, TVmaze
  3. **Built**: show page header badges `TMDB` `IMDb` `TVDB` `TVmaze` (`components/show.hl` `linkRows`, `shows.hl`
  4. `externalLinksOf`, `styles.hl` `showLinks`/`a.extlink`: CSS-only monochrome badges, accent on hover), only for ids the
  5. show has, `target=_blank rel=noopener`; a movie: TMDB (`/movie/<id>`) + IMDb. Phone: between title row and poster;
  6. desktop: under the title. Sync (`tmdbsync.hl`): details request now `?append_to_response=external_ids` (no extra
  7. request) → fills a MISSING imdbId/tvdbId; still no tvmzId → TVmaze `lookup/shows?imdb=`, on 404 `?thetvdb=` (550 ms
  8. pause each, `pauseMsAfter` in both runners); never overwrites. Totals: `ids=`, `tvmazeRequests=`. New
  9. `tools/count-external-ids.hl` (copy only).
  10. **Bug found + fixed**: movies (`type = 'movie'`, 7814 rows, 1 followed: Star Trek: First Contact, tmdbId 199) were
  11. synced as `/tv/199` — another title. Now `/movie/<id>?append_to_response=external_ids`: imdbId + poster only.
  12. **Live data still carries the damage**: that record has `status = 'Ended'` and `tmdbSummary` = the overview of TV
  13. show 199 ("Kabuhayang Swak na Swak…") — not visible (the page shows `summary`), the new sync leaves both alone; a
  14. one-off fix (set `tmdbSummary = null`, `status` back) is the architect's call.
  15. **Decisions**: TheTVDB link = `https://thetvdb.com/dereferrer/series/<id>` (it and `?tab=series&id=` both 301 to the
  16. slug page, checked 2026-10-01); IMDb `/title/<tt>/`; TVmaze `www.tvmaze.com/shows/<id>`. Badges with text, not
  17. drawn pictograms (no logos copied; legible at 0.75rem). An imdb id is only taken as `tt`+digits, a tvdb/TVmaze id
  18. only as a number > 0. A show TVmaze doesn't know is asked again each daily run (2 lookups/day on real data).
  19. **Real data** (copy of Byrodin `storage/` 2026-10-01 ~06:20, deleted afterwards; `tools/count-external-ids.hl`):
  20. | | shows | tmdbId | imdbId | tvdbId | tvmzId |
  21. |---|---|---|---|---|---|
  22. | followed series, before → after 1 sync | 125 | 125 | 125 | 125 | 123 → **124** |
  23. | followed movie | 1 | 1 | 1 | – | – |
  24. | all series (only followed are synced) | 1639 | 1639 | 907 | 910 | 845 → 846 |
  25. | all movies | 7814 | 7814 | 379 | – | – |
  26. Sync: `shows=126 newSeasons=0 newEpisodes=0 updatedEpisodes=0 updatedSeasons=0 posters=1 ids=1 requests=256
  27. tvmazeRequests=4 errors=0 seconds=105.6` (poster = the movie's real one; id = Greek Salad tvmz 60613; Mapping the
  28. World: TVmaze knows neither tt0395050 nor tvdb 109331). TMDB's external ids match ALL 125 stored imdb/tvdb ids (0
  29. differ). Show pages (az5b2, :8730): Librarians 1.08 s cold / 0.13 s, Greek Salad 0.18 s, Star Trek: First Contact
  30. 0.13 s (TMDB movie/199 + IMDb, real poster now); no sideways scroll, 0 console problems. Screenshots
  31. `/tmp/w049/real/*-{390,1280}.png` (looked at). Procedure = ticket #8 below (sync tool with `.env` sourced).
  32. **Gate** (101 → 111 checks):
  33. ```
  34. TRACKER_GATE_SHOTS=/tmp/w049/shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 TRACKER_GATE_TMDB_PORT=8727 node tests/browser.mjs
  35. (in-app run 5.416 s; 12 pages asked during it, slowest 1323 ms)
  36. 111 passed, 0 failed
  37. ```
  38. Fixture: show 1 imdb `tt0000001` only (TMDB says tt9999999 + tvdb 4001), show 2 tvdb `4002` only (TMDB: tt0000002 +
  39. 4999), movie `gate-test-movie` (tmdb 1003, followed by a 2nd user so alice's lists are unchanged → the sync now has
  40. 3 shows). Fake TVmaze: imdb tt0000001 → 501, thetvdb 4002 → 502. Screenshots `/tmp/w049/shots/` (show-*, synced-show
  41. {,-390}, synced-movie{,-390} looked at). The new-tab check closes the tab at once (it would load the real site).
  42. **Open**: real-phone tap test after deploy (new tab). Star Trek: First Contact's wrong `tmdbSummary`/`status`
  43. (above). Unfollowed shows never get ids filled (sync covers followed only, by design).
  44. ## 2026-10-01 — mission 047: re-vendor Hybriel (invisible checks), mobile first, show page additions
  45. **Bug** (live, the creator: "i dont see the check marks"): after a CLIENT-SIDE navigation (and after expand/collapse
  46. or a check click) the check `<svg>` was built in the XHTML namespace (circle width 0). Fixed by **re-vendoring Hybriel
  47. master ff51cf46** (bin sha256 `55a724a0…c5`, README "Vendored Hybriel"; old bin/plugins in `.scratch/pre-047/`).
  48. Proof the new check fails on the old build: `/tmp/w047/old-build-gate.log` (`ns: http://www.w3.org/1999/xhtml,
  49. circleWidth: 0`), passes on the new one.
  50. **Built**: `styles.hl` mobile first (phone base rules, one `@media (min-width: 40rem)` block; header one row at
  51. 390 px; /my/unwatched + /my/schedule rows two-line on a phone). Show page: phone order title (+ Follow) → full-width
  52. poster → genres/plot/cast (desktop unchanged); season caret (down/right); episodes not indented; artists orange
  53. `#ce9178`; unwatched check = accent outline circle + accent check; **Follow toggle** (face `showToggleFollow`,
  54. `follows.hl` `isFollowing`/`setFollowed`: new record `at = now`, unfollow deletes); signed out checks + Follow visible,
  55. a click opens the sign-in modal (`components/modal.hl`, copied verbatim from components.hybriel becbd59), nothing sent.
  56. Session-sync workaround in show/myshows/unwatched/schedule: `rows` reads `me` (a plain copy of `userId`), and
  57. `following` goes through a LOCAL static `followingOf` — an imported mpackdb helper called directly in a member
  58. initializer came back false after a client-side navigation (gate caught it; not reduced to a minimal repro yet).
  59. **Duplicate @ids** (hybriel#113) on a copy of live storage (2026-10-01 04:13), `tools/count-duplicate-ids.hl` + the
  60. `*.id.txt` indexes: **0 in every table** (episodes 232384, follows 128, genres 27, persons 15157, seasons 6450, shows
  61. 9453, users 1, watches 11663 rows).
  62. **Real data** (copy, `az5b2`, :8730, `node tests/realdata-check.mjs`, full load incl. socket + posters):
  63. | page | 390 px | 1280 px |
  64. |---|---|---|
  65. | `/my/shows` (128) | 1.29 s (cold posters) | 0.24 s |
  66. | `/my/unwatched` (1594) | 1.51 s | 1.46 s |
  67. | `/my/schedule` (54) | 0.35 s | 0.32 s |
  68. | `/shows/The-Librarians-The-Next-Chapter` direct / client-side | 0.14 / 0.19 s | 0.13 / 0.18 s |
  69. Client-side nav, expand, collapse: 14/26/14 checks, 0 wrong namespace, 0 undrawn; header 46 px at 390, no sideways
  70. scroll. Screenshots `/tmp/w047/real/*.png` (looked at). Procedure = ticket #8 below; the session id goes in
  71. `.scratch/real-sid` (the script reads it); copy + sessions deleted afterwards.
  72. **Gate** (76 → 101 checks):
  73. ```
  74. TRACKER_GATE_SHOTS=/tmp/w047/shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 TRACKER_GATE_TMDB_PORT=8727 node tests/browser.mjs
  75. 101 passed, 0 failed
  76. ```
  77. Screenshots `/tmp/w047/shots/` ({home,show,my-*}-{390,1280}.png, signed-out-modal-1280.png) — looked at.
  78. Gate note: the follow test re-follows show 1, so the sync's request order between the two shows may flip (the check
  79. accepts both orders) and `/my/shows` after the sync has show 1 on top.
  80. **Open**: the phone poster at full width is tall (2:3 → ~550 px on a 390 phone) — as asked, the creator may want a cap.
  81. The unwatched (outline + check) and watched (filled) icons differ only by fill — as asked. No navigation links to
  82. the `/my/` pages yet. Real-phone check after deploy.
  83. ## 2026-10-01 — ticket #10: installable app (PWA) + icons
  84. **Built**: `icons/` (`icon.svg` source → `icon-192.png`, `icon-512.png`, `apple-touch-icon.png` 180; `favicon.svg`,
  85. `favicon.ico` 16/32/48 — rsvg-convert + magick, commands in README "What it does (step 10)"); `project.hl`:
  86. `appIcons` (192/512 × any/maskable, like calendar), `appTouchIcon`, `appFavicon`, `appThemeColor = darker.value`,
  87. `appBackgroundColor = dark.value` (tokens), `offline = [ Home ]`, file routes for the icons, `/favicon.ico` now a
  88. real file (was `direct = ""`); `components/main.hl` offline note + `netProbe` tick; `styles.hl` `offlineNote`,
  89. `netProbe`, `@keyframes tracker-net-tick`; gate +12 checks.
  90. **Decisions**: icon = a TV (antennas) with a check mark on the screen = "watched shows", green `#4ec9b0` on
  91. rgb(25,30,35), all inside the maskable safe zone so one PNG serves any + maskable. Theme colour = `darker` (the header
  92. bar, so the phone's status bar blends in), background = `dark`. Offline keeps only the shell/`/`; data pages get
  93. hl:web's "Unavailable offline". The offline note is driven by `navigator.onLine`, read on a 1 s CSS-animation tick
  94. (`animationiteration`) — hl:web has no connection-state member and no mount hook (reported as a Hybriel gap).
  95. **Gate** (64 → 76 checks):
  96. ```
  97. TRACKER_GATE_SHOTS=/tmp/w045/shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 TRACKER_GATE_TMDB_PORT=8727 node tests/browser.mjs
  98. 76 passed, 0 failed
  99. ```
  100. Looked at: `/tmp/w045/icon-48.png`, `icon-192.png`, `icon-512.png`, `maskable-circle.png`, `small-on-white.png`
  101. (favicon 16/32/48), `/tmp/w045/shots/pwa-phone-{online,offline}.png` (390 px) on Loreana.
  102. Test gotcha: CDP `setOffline` only cuts the TAB — the service worker's own fetches still reach the server, so the
  103. gate also stops the server before the offline reload.
  104. **Open**: offline, the header's `<ident-selector>` (script from ident's origin, not cached) shows "choose ident"
  105. next to "Log out". No note when the device is online but the server is down. Real-phone install test (ticket's
  106. **Test**) after deploy: open https://tracker.worldapi.org → "Add to home screen".
  107. ## 2026-10-01 — ticket #9: TMDB sync (new episodes + posters)
  108. **Built**: `tmdbsync.hl` (`syncShow`: details + ≤ 20 seasons per request via `append_to_response`, add/update
  109. seasons+episodes, poster w342), `tools/sync-tmdb.hl` (`--limit N`, paced, prints counts), the daily run in
  110. `project.hl` (`syncTick` on an hl:time `every(1)` clock: at `TRACKER_SYNC_HOUR` UTC (4), once a day, ONE show
  111. per tick, next show after n × 260 ms), `follows.hl` `allFollowedShowIds`, fake TMDB `tests/faketmdb.mjs`,
  112. fixture shows got tmdbIds 1001/1002. Details: README "What it does (step 9)".
  113. **Decisions**: match episode by tmdbId, else by S/E when the local one has no tmdbId (161 migrated); season by
  114. number. Empty TMDB values never overwrite. Season 0 only if the show already has one (else specials flood
  115. /my/unwatched); empty TMDB seasons not created. Own 16-hex ids for new rows (hybriel#113). Posters in
  116. `storage/mpackdb/posters/` (the folder the existing `/posters/:name` route reads — inside `storage/`, so in the
  117. backup) rather than a new `storage/posters/`. Shows synced = all followed (also Ended ones — updates happen).
  118. Sync is off without `TMDB_READ_TOKEN` or with `TRACKER_SYNC=0`.
  119. **Blocking**: `fetch()` blocks the whole hl:web process (measured: requests wait for the running step) — so the
  120. run is cut into one-show steps. Real data: ~0.7 s per step average, SNL (53 seasons, 4 requests) 1.7 s; persist
  121. of the 3 tables 36 ms.
  122. **Real-data proof** (copy of Byrodin's `storage/` in `.scratch/realdata/`, deleted afterwards; procedure as
  123. ticket #8 below; session file needs `created`/`seen` = now in ms, else the boot sweep deletes it):
  124. ```
  125. set -a; . ./.env; set +a
  126. TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/sync-tmdb.hl --limit 128
  127. tmdb sync done: shows=126 newSeasons=20 newEpisodes=800 updatedEpisodes=2651 updatedSeasons=174 posters=125 requests=380 errors=0 seconds=185.718
  128. (again) shows=126 newSeasons=0 newEpisodes=0 updatedEpisodes=0 updatedSeasons=0 posters=0 requests=255 errors=0 seconds=89.888
  129. ```
  130. Fresh-process recount: seasons 6430 → 6450, episodes 231584 → 232384 (exactly +20/+800, no row loss), 0
  131. dangling season/episode refs, 0 duplicate season numbers; 12 duplicate tmdbIds + 1 wrong parent were already in
  132. the migrated data (same before/after). 126 shows (128 follows), 125 posters (one show has none on TMDB).
  133. In-app daily run on the copy (TRACKER_SYNC_HOUR = current hour, real TMDB): 126 shows, 255 requests, 136 s,
  134. 0 errors; `/my/shows` (signed in) polled every 0.5 s meanwhile: 181 answers, avg 0.25 s, max 4.0 s (one), then
  135. 1.8/1.7/1.4 s. Full page loads after the sync (headless Chrome, load + socket + all images):
  136. | page | full load | rows |
  137. |---|---|---|
  138. | `/my/schedule` | 0.7–0.8 s | 55 (was 0) |
  139. | `/my/shows` | 1.3–1.55 s (128 real posters now, 1 placeholder) | 128 |
  140. | `/my/unwatched` | 1.5 s (server 1.3 s) | 1593 (was 831) |
  141. | `/shows/The-Librarians-The-Next-Chapter` | 0.33 s | poster + new S2 (12 eps) |
  142. Screenshots + logs: `/tmp/w044-real/` on Loreana (`after-*.png`, `real-sync{1,2}.log`, `real-lat.txt`).
  143. **Gate** (49 → 64 checks):
  144. ```
  145. TRACKER_GATE_SHOTS=/tmp/w044-shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 TRACKER_GATE_TMDB_PORT=8727 node tests/browser.mjs
  146. (in-app run 4.405 s; 10 pages asked during it, slowest 1371 ms)
  147. 64 passed, 0 failed
  148. ```
  149. Screenshots `/tmp/w044-shots/` (`synced-*.png` looked at: posters, S3, schedule rows fine).
  150. **Deploy (architect)**: `TMDB_READ_TOKEN` must be in Byrodin's `.env` (env_file) — without it the log says
  151. `tmdb sync: off (no TMDB_READ_TOKEN)`. First daily run 04:00 UTC after deploy; check `docker logs
  152. tracker.worldapi.org | grep tmdb`. Or stop the container and run the tool once for an immediate catch-up.
  153. **Open**: a step blocks requests up to ~2 s (a non-blocking `fetchStart` + `done()` state machine would fix it).
  154. `/my/unwatched` render grew with the rows (1.3 s server, 1593 rows) — watch it against the 2 s target. A season
  155. watch record stays solid when the sync adds a new episode to that season (existing season-watch semantics).
  156. Dev servers get the real token from `.env` automatically → start them with `TRACKER_SYNC=0`. Shows nobody
  157. follows are never synced (by design).
  158. ## 2026-09-30 — ticket #8: /my/ pages, S01E01, years, speed
  159. **Built**: `/my/unwatched`, `/my/schedule` (routes in `project.hl`); old `/unwatched`, `/schedule` →
  160. **301** (function routes `unwatchedMoved`/`scheduleMoved`). Rows as `S01E02 · <title>` (was
  161. `Ep 2 · …`), list titles with the year `Doctor Who (2005)`, show page `1 episode` singular.
  162. New shared helpers in `shows.hl`: `pad2`, `episodeCode`, `showYear`, `titleWithYear`,
  163. `posterUrlOf`; in `watches.hl`: `watchedSet` (used by `/my/unwatched` and the show page's
  164. `buildRows`; `isWatched` stays for the single-target toggles).
  165. **Decisions**: year = `year`, else `release.slice(0,4)`, else none (197 shows lack `year`, some
  166. have `release = ''`). Year only in LISTS (`/my/*`), not in the show page's `h1`. The 301 drops any
  167. query (the pages take none). A row whose poster FILE is missing gets `/posters/none` (one cached
  168. URL) instead of `/posters/<oldId>.jpg`.
  169. **Why /my/shows was ~25 s live though its data is 0.2 s**: hl:web handles ONE request at a time.
  170. Measured on the copy: `/my/shows` requested 1 s into a `/unwatched` render took 13.7 s (the
  171. `/unwatched` render itself 14.5 s). Every request (pages, 128 poster requests) of every visitor
  172. queued behind a slow `/unwatched`. Plus 128 distinct poster URLs per load, all the placeholder.
  173. **Real-data check** (copy of Byrodin's `storage/` only, `az5b2` = user `0mujqspn0aqb`, dev
  174. server :8730, headless Chrome, navigate → load → websocket open, 1280×900):
  175. | page | before | after |
  176. |---|---|---|
  177. | `/my/shows` (128 rows) | 1.2 s (server 0.19 s) | 0.6–0.8 s, 1 poster request |
  178. | `/unwatched` → `/my/unwatched` (831 rows) | 14.8 s | 0.7–1.2 s (server 0.55–0.65 s) |
  179. | `/schedule` → `/my/schedule` (0 rows, data not synced since 2025-12) | 0.36 s | 0.3 s |
  180. | `/shows/The-Librarians-The-Next-Chapter` | 0.34 s | 0.29 s |
  181. How to repeat (Loreana; never touch Byrodin's folder beyond the tar read):
  182. ```
  183. ssh [email protected] 'tar czf - -C /CONTAINERS/projects/tracker.worldapi.org storage' | tar xzf - -C .scratch/realdata # ONLY storage/
  184. TRACKER_PORT=8730 TRACKER_WATCH=0 TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb TRACKER_SESSIONS=$PWD/.scratch/realdata-sessions/ ./bin/hybriel project.hl
  185. # session file: name = sha256(<32-hex id>), JSON {"created":1,"data":{"tag":"t"},"id":"<id>","seen":1,"user":{"id":"0mujqspn0aqb"}}
  186. curl -s -o /dev/null -w '%{time_total}\n' -b trackersid=<id> http://127.0.0.1:8730/my/unwatched
  187. # Chrome: tests/cdp.mjs launchBrowser, Network.setCookie trackersid, goto + wait __hl.socket open
  188. # afterwards: stop the server, rm -rf .scratch/realdata .scratch/realdata-sessions
  189. ```
  190. Screenshots: `/tmp/w041-real/{before,after}-{shows,unwatched,schedule,show}.png` (Loreana).
  191. **Gate** (45 → 49 checks: two 301s, the browser landing on `/my/unwatched`, "1 episode"; the
  192. existing ones now expect `/my/…`, `S01E02 · Second`, `S02E01 · Season Two Opener`, titles with
  193. year, `/posters/sh1.png` + `/posters/none`). Fixture: show 1 `image = 'png'` (gate writes a 1×1
  194. `posters/sh1.png`), show 2 `year = null`, `release = '2025-03-01'`.
  195. ```
  196. TRACKER_GATE_SHOTS=/tmp/w041-shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 node tests/browser.mjs
  197. 49 passed, 0 failed
  198. ```
  199. Screenshots `/tmp/w041-shots/` (looked at: all fine).
  200. **Open**: `/my/unwatched` rebuilds all rows per check click (~0.6 s, fine). Still no navigation
  201. to the `/my/` pages. The single-request server means any future slow page blocks everyone —
  202. keep every page well under 1 s. `/my/schedule` stays empty until the TMDB sync step.
  203. ## 2026-09-30 — ticket #7: /my/shows
  204. Built `/my/shows` (`components/myshows.hl`, route in `project.hl`, styles in `styles.hl`): every
  205. followed show, newest follow (`follows.at`, epoch ms) first — small poster (2.5rem, `/posters/…` +
  206. placeholder like the show page), title → `/shows/<slug>`, last watched episode `SxxEyy`.
  207. **Decisions**: "last episode" = highest (season, episode) among the user's EPISODE watches of that
  208. show (ticket); a season watch alone doesn't count (the season check watches every episode anyway).
  209. No watch → no episode element. A show without a poster name → `/posters/none` (the route's own
  210. placeholder), so every row has a poster. Read-only page, no face (like `/schedule`).
  211. **Reuse**: new `follows.hl` `followsOfUser` (whole records; `followedShowIds` now builds on it) and
  212. `shows.hl` `episodeById` (one line); `showById`, `posterName`, `watchesOfUser` unchanged.
  213. **Performance** (against a COPY of `storage/mpackdb/` in `.scratch/perf-store`, removed after; live
  214. files md5-verified unchanged): the page touches only the user's follows and episode watches
  215. (one fetch per watch), never all episodes of a followed show — az5b2's 128 follows → 128 rows (123
  216. with an episode, e.g. `S36E11`, `S30E91`) built in **160–255 ms**. For comparison **`/unwatched`
  217. takes ~15 s** on the same copy (805 rows): it fetches every episode of every followed show and
  218. checks each against the user's 11,692 watches with a linear `isWatched` — not in this ticket's
  219. scope, flagged below.
  220. **Gate** (`tests/browser.mjs`, 38 → 45 checks; `tests/seed-show.hl` adds a 2nd show "Unwatched Gate
  221. Show", no seasons/poster name, followed AFTER the first but stored after it; the first follow is now
  222. dated a day back): signed out → sign-in message; signed in → newest follow first, title hrefs,
  223. posters loaded (`naturalWidth > 0`), 40px wide, `S01E02` after /unwatched's click, later `S02E01`
  224. (watched BEFORE season 1's bulk watch → proves highest, not most recent), none for the other show.
  225. ```
  226. TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 node tests/browser.mjs
  227. 45 passed, 0 failed
  228. ```
  229. **Open**: `/unwatched` ~15 s on real data (above) — a watched-id map instead of `isWatched` per
  230. episode would fix it (own ticket). No navigation links to `/my/shows` yet (homepage stays empty).
  231. ## 2026-09-27 — ticket #6: /schedule
  232. Built `/schedule` (`components/schedule.hl`): every episode of a show the signed-in user follows
  233. that is NOT yet released (`e.release > today`), soonest first. Creator: "/schedule has a similar
  234. list without check icons for the upcoming episodes of shows followed" — same row shape as
  235. `/unwatched` (`components/unwatched.hl`) minus the check icon.
  236. **Reuse, not copy**: imports the exact same `followedShowIds` (`follows.hl`), `showById` /
  237. `seasonsOfShow` / `episodesOfSeason` (`shows.hl`) that `/unwatched` already uses — nothing new
  238. added to either file. `watches.hl` is not imported at all: a row here is never watched/unwatched,
  239. there is no check icon and no click, so the page needed no per-user watch state and no `on server`
  240. face — the whole component is a single read-only server-side render (`rows` computed once from
  241. `session`, same as every other reactive member here).
  242. **Order**: soonest first, ascending by `release` (a plain `'YYYY-MM-DD'` string, ordering
  243. operators confirmed working against this app's own vendored `bin/hybriel`, same as `/unwatched`'s
  244. STATUS entry) — the ticket named this the architect's own reading ("the creator named the order
  245. only for /unwatched"), so `insertByReleaseAsc` mirrors `/unwatched`'s `insertByReleaseDesc` with
  246. the comparison flipped.
  247. **`decided`**: "upcoming" = `release` strictly after today (not `>=`) — the natural complement of
  248. `/unwatched`'s own `release <= today`, so every released-or-today episode is unambiguously on one
  249. list, never both, never neither.
  250. **Gate** (`tests/browser.mjs`, 35 → 38 checks): reused the same fixture (`tests/seed-show.hl`,
  251. unchanged) — episode 3 already carried a far-future release (`2099-01-01`) for `/unwatched`'s own
  252. "excludes the future one" check; `/schedule` now proves the mirror image with the same fixture:
  253. signed out, no rows, the sign-in message; signed in, only that one future episode shows (the two
  254. already-released ones excluded), no `button.checkicon` anywhere on the page, unaffected by any of
  255. the watch toggles the other checks perform on the same fixture (run in any order — `/schedule`
  256. never reads watch state).
  257. ```
  258. node tests/browser.mjs
  259. 38 passed, 0 failed
  260. ps -eo pid,args | grep [h]l-browser-tier
  261. (nothing)
  262. ```
  263. Updated `README.md` ("What it does (step 6)", Test, Files) and this file.
  264. **Open**: nothing shown on the homepage still points to `/schedule` (same as `/unwatched` before
  265. it — the homepage stays empty per ticket #1's decision).
  266. ## 2026-09-27 — ticket #5: /unwatched
  267. Built `/unwatched`: every episode of a show the signed-in user follows that is already released
  268. (`release` ≤ today, a plain `'YYYY-MM-DD'` string — migrated as-is by `tools/migrate.hl`, never
  269. run through `dateOf`) and not yet watched, newest release first (creator: "/unwatched lists all
  270. unwatched episodes of shows followed in release date desc order").
  271. **Reuse, not copy** (the ticket's own instruction, re "the same check icon and watch logic as the
  272. show page"): `watchClassOf` (watched → `'checkicon solid'`/`'checkicon regular'`) was a private
  273. `static` in `components/show.hl`; moved it to `watches.hl` so both pages import the SAME
  274. definition instead of each declaring their own — `show.hl` now imports it too, nothing duplicated.
  275. `isWatched`/`setWatched` (already in `watches.hl`) needed no change. New `follows.hl`
  276. (`followedShowIds`) and `shows.hl` `showById` (one line) round out the read-only data access this
  277. page and `/schedule` (ticket #6) both need.
  278. **String comparison** (`e.release <= today`, `row.release >= x.release` for the desc sort):
  279. hybriel#2 ("no ordering operators on strings") is filed as still-open in this ticket's brief, but
  280. its own history shows it was fixed and merged to master 2026-09-25 — confirmed directly against
  281. THIS app's own vendored `bin/hybriel` (`'2020-09-03' <= '2026-09-27'` → `true`), so no numeric
  282. date workaround was needed.
  283. **A View text node cannot hold an inline expression** (`"Ep " + row.episodeNumber + " · " +
  284. row.title` inside a tag body) — same rule as View attributes (components/show.hl's own comment:
  285. "a View attribute must be a literal, a member or a field path"), just not documented for text
  286. nodes anywhere yet; it silently rendered `<!-- binary_expression not rendered yet -->` instead of
  287. erroring. Fixed by resolving the label into a plain field (`row.episodeLabel`) once, server-side,
  288. in `unwatchedRowsOf` — the same pattern `show.hl`'s `buildRows` already uses for every other
  289. ternary/concatenation. Not filed as a new Hybriel gap since it's the exact same restriction
  290. already known and worked around elsewhere in this app, just not yet hit for interpolated text.
  291. **Empty state**: signed out (no user, so no follows to show) and signed in with nothing unwatched
  292. both render a message; used `.muted` (colorTextMuted), not `.message` (colorDanger) — the existing
  293. `.message` class is for real errors (the login-failed banner), and an empty list isn't one (a
  294. `decided`, small).
  295. **Gate** (`tests/browser.mjs`, 29 → 35 checks): `tests/seed-show.hl` now takes an optional
  296. `TRACKER_SEED_IDENTITY` and, when given, seeds a fixed user + a follow of the fixture show for it
  297. — the only way to give `/unwatched` a known followed show before the browser ever signs in, since
  298. the real login's `ensureUser` matches an EXISTING `users.db` row by `identity` and reuses its id
  299. rather than minting a new one. The gate learns alice's per-app identity with one throwaway
  300. `ident.exchange` call (consuming one code) before writing the seed. Episode 1/2 of the fixture now
  301. carry a past `release` (`2020-01-01`/`2020-06-15`), episode 3 a far-future one (`2099-01-01`) —
  302. proving both the release-date filter and the desc order. The new checks run signed out (no rows,
  303. the sign-in message), then signed in RIGHT AFTER LOGIN, BEFORE the existing show-page checks that
  304. toggle these same fixture episodes watched (order matters — otherwise `/unwatched` would already
  305. be empty by the time it's tested): both unwatched episodes list newest-first, excluding the
  306. future one; a click on the newest (`Second`, ep 2) removes it from the list; a reload proves the
  307. watch is server-side, leaving only `Pilot` (ep 1).
  308. ```
  309. node tests/browser.mjs
  310. 35 passed, 0 failed
  311. ps -eo pid,args | grep [h]l-browser-tier
  312. (nothing)
  313. ```
  314. Updated `README.md` ("What it does (step 5)", Test, Files) and this file.
  315. **Open**: nothing shown on the homepage still points to `/unwatched` — no navigation exists yet
  316. (the homepage stays empty per ticket #1's decision; a later step, from the creator, presumably
  317. adds it). `/schedule` (ticket #6) is next and reuses `follows.hl`/`shows.hl`/`watches.hl` the same
  318. way.
  319. ## 2026-09-27 — ticket #4: the show page, watch checks (took over a previous half-done session)
  320. Continued from an earlier session that had built the whole page — header, seasons/episodes,
  321. the click-handling redesign to a flat `rows` list rebuilt server-side (`components/show.hl`'s
  322. own header comment explains why: a nested `for` over seasons > episodes risks hybriel#86) — but
  323. left with the gate red: clicking a check never turned it solid, no console error, and the
  324. session ran out of budget before finding why.
  325. **The actual bug**: the show page's own pure helpers (`buildRows`, `genreRowsOf`, `castRowsOf`,
  326. `watchClassOf`, `initialCollapsed`) were plain instance members (`buildRows = (show, …) => {…}`,
  327. no `static`). That shape works fine as a member's own top-level initializer (`rows = found ?
  328. buildRows(showRow, watchRows, collapsed) : []` — this is how the page renders correctly on first
  329. load) but throws when the SAME function is called from inside an `on server` face
  330. (`showToggleEpisode` etc.): the server log showed `'buildRows' is not callable — it holds null`.
  331. Found by running `.scratch/debug-click.mjs` (left by the previous session) with the server's
  332. stdout/stderr captured — the browser console itself stayed silent (the face's error never
  333. reaches the client at all, a separate Hybriel gap, hybriel#92 already covers that half).
  334. Confirmed the fix by grepping other worldapi apps for the same shape:
  335. `calendar.worldapi.org/components/calendar.hl` has `static soonOf = (u) => { … upcoming(u, …) }`
  336. (an mpackdb-backed helper), called from its `on server calLoad`/`calSettingsLoad` faces, and
  337. calendar's own gate is green — so `static` is the proven-safe shape for a component's own helper
  338. that both (a) touches an mpackdb-backed import and (b) needs calling from more than one place
  339. (its own initializer AND a later face). Declared all five helpers in `show.hl` `static`; reran
  340. the gate: 29/29 green, including the season-bulk-toggle and the reload-proves-server-side checks.
  341. Filed **hybriel#115 was already open** (from the previous session, about the CLIENT bundle
  342. omitting a case for such a helper) but this session's finding is the SAME root cause reaching
  343. further than that ticket says: the plain HL interpreter on the SERVER also treats such a helper
  344. as `null` outside its own initializer, not just the JS-compiled client bundle. Left as one
  345. `issues` entry pointing at hybriel#115 rather than opening a near-duplicate ticket — the
  346. repro/observed there already generalizes (a per-instance member function wrapping an
  347. mpackdb-backed import is unreliable wherever it is called from, not just the browser).
  348. Ran `node tests/browser.mjs`: 29 passed, 0 failed (was 20 passed / 1 failed — the click timeout
  349. — before the `static` fix).
  350. **Rehearsed `tools/relink-episode-seasons.hl` against a full COPY** of the real
  351. `storage/mpackdb/` (`.scratch/relink-rehearsal/`, since removed) — the tool's own header claimed
  352. this rehearsal already existed here; it didn't (a leftover claim from the previous session), so
  353. this session actually ran it:
  354. ```
  355. relink: episodes 231584, null season before 36194, linked 36194, still null (no matching season) 0
  356. relink: episodes.db replaced with the relinked file — re-run to confirm idempotency (0 linked the second time)
  357. ```
  358. Ran a second time on the same copy straight after — idempotency confirmed:
  359. ```
  360. relink: episodes 231584, null season before 0, linked 0, still null (no matching season) 0
  361. ```
  362. All 36,194 pre-existing null-season episodes (ticket #2's count) now link to a real season by
  363. `(show, seasonNumber)`; none left over. Not run against the LIVE `storage/mpackdb/` — that needs
  364. the tracker container stopped first (hl:mpackdb does not coordinate two processes on one storage
  365. directory, hybriel#21), the architect's job per the ticket ("the architect runs it live").
  366. Updated README.md ("What it does (step 4)", Test, Files) and this file.
  367. ## 2026-09-27 — ticket #2: old data migrated (took over a previous session's rewritten tool)
  368. Continued from an earlier session that had rewritten `tools/migrate.hl` to avoid a real data-loss
  369. bug (see below) but never run it even once, and had left the real `storage/mpackdb/` holding data
  370. from the OLDER, buggy two-pass version of the tool (put a bare record, then `update()` it once the
  371. other side of a circular reference existed). Took over: moved that buggy data aside
  372. (`.scratch/pre-migrate-buggy-backup`, since removed), kept `storage/mpackdb/users.db` (step 1's
  373. login table, untouched by the migration), and ran the already-fixed tool for the first time.
  374. **The fix already on disk (kept as is):** `Show.seasons`/`Season.show` and `Show.cast`/
  375. `Person.shows` are two-way references, so the id on one side must exist before the record on the
  376. other side can be built. The old approach — `put()` a bare record, come back with `update()` once
  377. the far side's id exists — loses rows: reopening a table in a fresh process after an `update()` had
  378. touched it read back FEWER rows than were ever `put()` (seen directly: `persons.db`'s `count()`
  379. dropped 15157 → 15152 after one round of `update()` — a real `hl:mpackdb` bug, reported to Hybriel,
  380. not something an app is allowed to patch around). The fix assigns every new id itself (8 random
  381. bytes, `hl:crypto`) in one pass over each export file BEFORE building any record, so by the time a
  382. record is actually built every reference is already a known id — one `put()` per row, `update()`
  383. never called.
  384. **Run** (`tools/migrate.hl`, `TRACKER_OLD_DATA=.../old-tracker/mongo-export`,
  385. `TRACKER_STORAGE=$PWD/storage/mpackdb`):
  386. ```
  387. migrate: genres 27 new, 0 already there (old 27 -> new 27)
  388. migrate: persons 15157 new, 0 already there (old 15157 -> new 15157), show refs skipped 0
  389. migrate: shows 9453 new, 0 already there (old 9453 -> new 9453), cast refs skipped 0, genre refs skipped 0, season refs skipped 0
  390. migrate: seasons 6430 new, 0 already there (old 6430 -> new 6430), show refs skipped 0, episode refs skipped 0
  391. migrate: episodes 231584 new, 0 already there (old 231584 -> new 231584), show refs skipped 0, season refs left null (pre-existing) 1
  392. migrate: follows 128 new, 0 already there (old 128 -> new 128), show refs skipped 0
  393. migrate: watches 11692 new, 0 already there (old 11692 -> new 11692), target refs left null (pre-existing) 3
  394. migrate: 0 failed
  395. ```
  396. Every count equals the old export's own document count (`old-tracker/README-RECONSTRUCTED.md`:
  397. Show 9453, Season 6430, Episode 231584, Person 15157, Genre 27, Follow 128, Watch 11692). Ran a
  398. second time straight after (idempotency: the tool's `oldId` index finds each row again) — every
  399. table printed `0 new`, all rows `already there`, counts unchanged, 0 failed: the id-loss bug does
  400. not resurface across a real close-and-reopen.
  401. **Proof beyond the tool's own counters** (`tools/verify.hl`, new): the ticket asks for a check that
  402. does not just trust `migrate.hl`'s own "skipped" tallies. It runs against a plain filesystem COPY
  403. of `storage/mpackdb/` (hl:mpackdb rewrites a file's data on open, so the live store is never opened
  404. a second time) and independently re-derives, from the persisted records alone: every table's
  405. `count()` against the export's own document count, and — by building id sets for every table and
  406. walking every reference field (`Show.genres/cast/seasons`, `Season.show/episodes`,
  407. `Episode.show/season`, `Person.shows`, `Follow.show/user`, `Watch.target/user`) — that every
  408. non-null reference resolves to a real id. It also follows one show end to end (`Raised by Wolves`,
  409. 2 seasons, 18 episodes, 1 follow, 2 season-level watches — all cross-checked back to the show).
  410. ```
  411. $ cp -r storage/mpackdb .scratch/verify-copy && TRACKER_VERIFY_COPY=$PWD/.scratch/verify-copy ./bin/hybriel tools/verify.hl
  412. count ok genres: 27 (expected 27)
  413. count ok persons: 15157 (expected 15157)
  414. count ok shows: 9453 (expected 9453)
  415. count ok seasons: 6430 (expected 6430)
  416. count ok episodes: 231584 (expected 231584)
  417. count ok follows: 128 (expected 128)
  418. count ok watches: 11692 (expected 11692)
  419. users: 1 (expected 1, the creator)
  420. dangling references: 0 (episodes with a pre-existing null season: 36194, watches with a pre-existing null target: 3 — not dangling, the export already had no target)
  421. END-TO-END show 105ad9c91b14d663 "Raised by Wolves" seasons=2
  422. season 1 (be2965a5ab7165ca) episodes=10 show-back-ref-ok=true
  423. season 2 (0fe4e53157ed0367) episodes=8 show-back-ref-ok=true
  424. total episodes across seasons: 18
  425. follows on this show: 1, season-level watches touching it: 2
  426. VERIFY PASS
  427. ```
  428. (36194 episodes with no season = 36193 that never had one in the old export, plus the 1 the tool's
  429. own count already named as a pre-existing dangling `season` reference in the source data — neither
  430. is a reference this migration broke; `dangling references: 0` covers exactly that.)
  431. The single old user (`User.jsonl`, `[email protected]`, password not taken over) is this app's
  432. user for ident short id `az5b2` (`storage/mpackdb/users.db`, the same table step 1's login uses) —
  433. confirmed in the copy: one record, `identity=az5b2`.
  434. **Two Hybriel bugs found while building this** (both already filed as issues on this ticket by an
  435. earlier session, not re-filed): `hl:fs readFile` silently truncates at 10 MiB (worked around here
  436. with `split`, no shell, no JS, see `tools/migrate.hl`'s header comment) and `hl:mpackdb` loses rows
  437. across `update()` + reopen (the reason this tool never calls `update()`).
  438. **Open**: nothing shown yet — this ticket is data-only, on purpose (the next step, from the
  439. creator, is showing the data in the UI).
  440. ## 2026-09-27 — ticket #3: no border on the header or filled buttons
  441. Design notes from the first test (architect): "the application-header should have no bottom
  442. border" and "the buttons also no border except they are inverted". Two changes in
  443. `styles.hl`:
  444. - `applicationHeader`: dropped `borderBottom`.
  445. - `ident-selector::part(button)` (the signed-out "choose ident" button): added
  446. `border = 'none'` — the element's own CSS gave it a 1px border the same colour as its
  447. background (`--_accent`), invisible but still a real border in the computed style; this is
  448. the app-side restyling hook ident's README documents (`::part(button)`), not a change to
  449. ident's vendored `selector.js`.
  450. Left unchanged, already correct: the native `button` rule (filled, e.g. no other filled
  451. buttons on this page yet) already has `border = '0'`; `button.quiet` ("Log out") and the
  452. selector's dropdown `[part="identity"]` rows keep their border (transparent background —
  453. inverted style); `a.button` ("Log in with ident") has no border rule and browsers give `<a>`
  454. none by default. The selector's signed-in "logged in with ident" status pill
  455. (`::part(status)`) is not one of the buttons the ticket names and isn't a button element
  456. (a `<span>`) — left with its border.
  457. **Gate** (`tests/browser.mjs`, now 16 checks): added computed-style checks — the header's
  458. `borderBottomWidth` is `0px`; `#loginbutton`'s border is `0px`; the selector's
  459. `[part~="button"]` (inside its shadow root) border is `0px`; `#logout`'s border is NOT `0px`
  460. (still inverted-bordered) once signed in.
  461. ```
  462. node tests/browser.mjs
  463. 16 passed, 0 failed
  464. ```
  465. ## 2026-09-27 — ticket #1 reopened: login redone to match calendar exactly (header selector, empty page)
  466. The architect rejected the first build of ticket #1: the sign-in sat centered on the page
  467. (its own "Sign in with ident" card, identity + sign-out shown in a `homeCard`) instead of
  468. the header identity selector calendar/gitoria use, and there was no `<ident-selector>` at
  469. all. Rebuilt the login by copying calendar.worldapi.org's own files (unchanged in shape, per
  470. the architect's instruction "Copy calendar.worldapi.org's login unchanged"):
  471. - **`users.hl`** (new): the ident exchange + a `usersTable` (`storage/mpackdb/users.db`,
  472. `identity` → this app's user id), copied from calendar's `users.hl` with `TRACKER_KEY` /
  473. `TRACKER_SECRET` / `TRACKER_URL` / `TRACKER_STORAGE` in place of calendar's names (kept
  474. the names already in this app's `docker-compose.yml`/README/DECISIONS rather than
  475. switching to calendar's generic `IDENT_API_KEY`/`IDENT_API_SECRET`).
  476. - **`login.js`** (new): calendar's bridge between `<ident-selector>`'s `ident-login` DOM
  477. event and the hidden `#identcode` input, copied verbatim (creator: "login.js is correct,
  478. as thats for externals in general").
  479. - **`components/main.hl`**: now the header carries `userBox` (`<ident-selector>` + "Log in
  480. with ident" / "Log out"), the `trackerLogin`/`trackerLogOut` faces and the
  481. `trackerSignedIn`/`trackerSignedOut` client push — calendar's shell renamed to this app's
  482. event names.
  483. - **`components/home.hl`**: now truly empty (`View { home {} }`) — no sign-in link, no
  484. identity/sign-out duplicated on the page; that is entirely the header's job now.
  485. - **`components/loginfailed.hl`** (new) + **`project.hl`**: the login routes are now
  486. `/login/callback` (function route, the button's return AND the code exchange) and
  487. `/login/failed`, copied from calendar's `project.hl` (`safePath`, `failed()`,
  488. `loginCallback`) in place of the old `/login` + `/callback` + `/logout` routes; the old
  489. `/logout` POST route is gone (logout is a face, like calendar's).
  490. - **`styles.hl`**: added the header selector styles (`userBox`, `identSelector`,
  491. `ident-selector::part(...)`, sticky header) from calendar's `styles.hl`; dropped the
  492. now-unused `homeCard`/`accountBar`/`userName` rules from the rejected centered sign-in.
  493. **Gate rewritten** (`tests/browser.mjs`, 12 checks): replaced the old gate (which drove
  494. ident's full email-code UI through a vendored dev copy of ident at `.scratch/ident-dev`)
  495. with calendar's own pattern — `tests/identkit.mjs` (copied from calendar unchanged) starts a
  496. throwaway ident (a fresh copy of `/media/STORAGE/projects/ident.worldapi.org`'s code, no
  497. `.env`/storage copied, codes to a mail sink, never the live ident), signs in over its REST
  498. API and registers this app, then the gate proves the header in a real headless Chrome:
  499. signed out → `#selector` + `#loginbutton` in the header, **`main` is empty** → sign in
  500. (`/login/callback?ident_code=`, the same exchange the selector would trigger) → `#selector`
  501. shows `class="in"`, `#logout` appears, **`main` still empty** → sign out → signed out again
  502. → a reload stays signed out. No console errors.
  503. ```
  504. node tests/browser.mjs
  505. 12 passed, 0 failed
  506. ```
  507. `./deploy.sh --dry-run --target .scratch/deploy-preview --url http://127.0.0.1:0/`: gate
  508. passed as step [1/4], rsync preview held none of `storage/`, `.sessions/`, `.env`,
  509. `.scratch/`, `server.*`, logs. Removed the stale `.scratch/ident-dev` (the old gate's vendored
  510. ident copy) and `.scratch/browser-gate` (the old gate's storage) — unused by the new gate.
  511. **Still open**: the app is registered in ident's dev copies only (this gate's own throwaway
  512. ident). The LIVE ident registration (`TRACKER_KEY`/`TRACKER_SECRET` in `.env` next to
  513. `docker-compose.yml`) is the architect's first-deploy step (README "Deploy"), not built here.
  514. ## 2026-09-27 — ticket #2: data migration — blocked twice on sandbox access, nothing done
  515. Two workers in a row (`s-20260927T1029-f57b0f`, then this session) could not start: the
  516. migration source the ticket names, `/media/STORAGE/projects/old-tracker/mongo-export/*.jsonl`
  517. + its `README-RECONSTRUCTED.md`, is not reachable from this worker's sandbox. Verified fresh
  518. this session:
  519. ```
  520. $ ls -la /media/STORAGE/projects/
  521. antcolony-docs hybriel ident.worldapi.org tracker.worldapi.org # no old-tracker
  522. $ mount | grep STORAGE
  523. /dev/nvme1n1p6 on /media/STORAGE/projects/tracker.worldapi.org type btrfs (rw,...)
  524. /dev/nvme1n1p6 on /media/STORAGE/projects/hybriel type btrfs (ro,...)
  525. /dev/nvme1n1p6 on /media/STORAGE/projects/ident.worldapi.org type btrfs (ro,...)
  526. /dev/nvme1n1p6 on /media/STORAGE/projects/antcolony-docs type btrfs (ro,...)
  527. # old-tracker is not among the mounted subvolumes at all
  528. ```
  529. So this is not a data problem (the export is "complete" per the ticket) — it's the worker
  530. sandbox for this ticket that never got `old-tracker` mounted (read-only, like `hybriel` /
  531. `ident.worldapi.org` / `antcolony-docs` above). Nothing was built or changed this session:
  532. no `storage/`, no `tools/`, no id-mapping — writing the migration tool blind, guessing the
  533. JSONL shape from the ticket text alone, risks silently wrong data and was avoided on purpose
  534. (see the project's "Build it properly" rule). Filed as an antcolony issue so the next worker's
  535. sandbox includes `old-tracker` before another attempt.
  536. ## 2026-09-27 — ticket #1: the empty shell, ident login
  537. Built the app from scratch: vendored `bin/hybriel` + `plugins/` + `shared/tokens.hl` from
  538. `ident.worldapi.org` (newest local build, hybriel master 837fe120, no local patch — see
  539. README "Vendored Hybriel"). `project.hl` (routes `/login`, `/callback`, `/logout`, `/`),
  540. `components/home.hl` (the empty homepage), `components/main.hl` (shell), `styles.hl`
  541. (accent green `#4ec9b0`, per `antcolony/README.md` "look and style" / `CONCEPT.md`).
  542. `docker-compose.yml` / `Dockerfile` / `deploy.sh` following ident's own house pattern
  543. (port 45008, container `tracker.worldapi.org`).
  544. **Login**: the ident login BUTTON flow (ident.worldapi.org README "How apps use ident"),
  545. server-side exchange (`POST <ident>/api/exchange`), this app's own framework session
  546. (`session.user = { identity }`, cookie `trackersid`). ident hands over only the identity's
  547. public **short id** — no display name yet (ident#11, properties handover, is on hold) — so
  548. "your name" on the homepage is `Signed in as <shortid>`, the same identifier every other
  549. worldapi app would show; see `decided` in the report.
  550. **Lesson (Hybriel)**: a face that mutates `session.user` (e.g. `signOut`) does NOT
  551. automatically re-render the page — a component's reactive members (`signedIn`, `identity`,
  552. …) are computed once at mount from the framework's read-only session snapshot; a client
  553. handler that calls `emit server X()` must ALSO flip the affected members itself afterwards
  554. (ident's own `components/home.hl` `on doSignOut(e)` does exactly this: `emit server
  555. signOut()` then `signedIn = false` …). Missing that made the sign-out button silently do
  556. nothing client-side (the ack came back `ok:true`, the server-side session really was
  557. cleared — proven by a reload — but the DOM never updated) until copied.
  558. **Gate** (`tests/browser.mjs`, 13 checks): a fresh copy of `ident.worldapi.org`'s code (no
  559. `.env`, no `storage/`, no `.sessions/` — verified empty of secrets/data before first use)
  560. runs as this gate's own ident, on its own storage and its own mail sink (no live ident, no
  561. real mail). The gate registers this app in that dev ident once over the `/__hl/emit` API
  562. (the same one-time step a person does by hand in ident's `/apps` page), then drives the
  563. REAL login-button flow in a real headless Chrome: signed out → click "Sign in with ident" →
  564. ident's email form → the mail-sink code → the first-login optional-names form (Skip) → the
  565. one-identity choice (one click) → back on tracker, "Signed in as `<shortid>`" → "Sign out" →
  566. signed out again → a reload stays signed out. No console errors. Ran twice for stability, 0
  567. failures; no leftover Chrome/hybriel processes after either run.
  568. ```
  569. node tests/browser.mjs
  570. 13 passed, 0 failed
  571. ```
  572. `./deploy.sh --dry-run --target .scratch/deploy-preview --url http://127.0.0.1:0/` (a local
  573. directory, per ident's own convention for testing deploy.sh without touching Byrodin): gate
  574. passed, rsync preview held none of `storage/`, `.sessions/`, `.env`, `.scratch/`, `server.*`,
  575. logs — confirmed by the same grep the script refuses on.
  576. **Open**: the app is not registered with the LIVE ident yet — `TRACKER_KEY`/`TRACKER_SECRET`
  577. are unset until the architect's first deploy does that (README "Deploy"); until then
  578. `/login` on the live site answers a plain error page instead of redirecting (`/` itself
  579. still renders). This is normal for a brand-new app, the same as ident's own SMTP `.env`
  580. before its first deploy — not something this ticket's worker can set (no `.env` access,
  581. and it is a LIVE ident registration).

Branches

Latest commits

  • 34f2c15btracker#15: TVmaze merge in the sync (gaps only: new episodes/seasons, empty titles/air dates; numbering check), fake TVmaze episodes + gatemre
  • 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