gitoriaLog in with ident

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit9abda75d9abda75dtracker: report 035mre9abda75d/project.hl

19.2 KB

  1. // project.hl — tracker.worldapi.org: THE MAP (mission 028, docs: README "Files"). Config, the routes and how the parts are wired;
  2. // what each feature does is in the file named here, not in this one.
  3. //
  4. // login (ident only, the header's selector + button) lib/users.hl, components/main.hl, login.js, /login/* below
  5. // the shell: header, main menu, user menu, sidebar components/main.hl (theme/shell/*, vendored from layouts.worldapi.org)
  6. // /genres · /people (the main menu) · /settings lib/catalog.hl genreList · lib/people.hl peoplePage · components/settings.hl
  7. // titles: records, slugs, kinds, list caches lib/shows.hl a title's page: components/show.hl
  8. // public lists /movies /series /shows /genres, home lib/catalog.hl
  9. // components/{movies,allseries,allshows,genre,home,tilelist}.hl
  10. // follows · watches · /my/* lib/follows.hl · lib/watches.hl
  11. // components/{myshows,mymovies,unwatched,schedule}.hl
  12. // search, web search, import lib/search.hl (+ search-helpers.hl) components/search.hl
  13. // people, a person's page and filmography fill lib/people.hl components/person.hl
  14. // cast + crew, the credits job lib/credits.hl (+ credits-helpers.hl)
  15. // a title completed from TMDB (details repair) lib/details.hl
  16. // TMDB / TVmaze requests, posters lib/tmdb.hl
  17. // the sync of one title · which titles a day lib/sync.hl (+ sync-helpers.hl) · lib/dailysync.hl
  18. // adult flag + kind backfills lib/backfill.hl
  19. // short ids (/<shortId>) lib/shortids.hl
  20. // franchises + timelines · TMDB collection seed lib/franchises.hl · lib/collections.hl
  21. // the curated franchises (data/franchises.json, #40) lib/franchiseseed.hl
  22. // components/franchise*.hl, timelineedit.hl
  23. // duplicate titles merged lib/merge.hl
  24. // the background jobs and their clocks lib/jobs.hl (one instance, made below after the server)
  25. // poster + photo files lib/images.hl
  26. // shared helpers (env, paths, dates, ids, lists) lib/util.hl
  27. // styles · design tokens · the WorldAPI theme components/styles.hl · shared/tokens.hl · theme/ (never edited here)
  28. //
  29. // Config (env; no committed secret — the first deploy registers this app in ident and sets these, done by the architect, as
  30. // with ident's own .env for SMTP): TRACKER_PORT (45008), TRACKER_URL (this app's own public address, for the return URL),
  31. // IDENT_URL (https://ident.worldapi.org), TRACKER_KEY (pk_…), TRACKER_SECRET (sk_…), TRACKER_STORAGE, TRACKER_SESSIONS,
  32. // TRACKER_WATCH, TMDB_READ_TOKEN; the jobs' switches and limits: lib/jobs.hl (README "Config").
  33. import WebFramework from 'hl:web'
  34. import { Response } from 'hl:http1'
  35. import { env } from 'hl:proc'
  36. import { now } from 'hl:time'
  37. import Styles from './components/styles.hl'
  38. import Home from './components/home.hl'
  39. import LoginFailed from './components/loginfailed.hl'
  40. import Show from './components/show.hl'
  41. import Unwatched from './components/unwatched.hl'
  42. import Schedule from './components/schedule.hl'
  43. import MyShows from './components/myshows.hl'
  44. import MyMovies from './components/mymovies.hl'
  45. import Movies from './components/movies.hl'
  46. import AllShows from './components/allshows.hl'
  47. import AllSeries from './components/allseries.hl'
  48. import Search from './components/search.hl'
  49. import Person from './components/person.hl'
  50. import Genre from './components/genre.hl'
  51. import Genres from './components/genres.hl'
  52. import People from './components/people.hl'
  53. import Settings from './components/settings.hl'
  54. import Franchises from './components/franchises.hl'
  55. import Franchise from './components/franchise.hl'
  56. import FranchiseEdit from './components/franchiseedit.hl'
  57. import TimelineEdit from './components/timelineedit.hl'
  58. import { dark, darker } from './shared/tokens.hl'
  59. import { postersDir, profilesDir } from './lib/util.hl'
  60. import { loginCallbackOf } from './lib/users.hl'
  61. import { imageResponse, isSafePosterName } from './lib/images.hl'
  62. import { ensureIndex } from './lib/search.hl'
  63. import { showsMovedPath, warmTitleCaches, warmEpisodeKeys, movedSlugs, movedPathOf, personById } from './lib/shows.hl'
  64. import { allWatchedEpisodeIds } from './lib/watches.hl'
  65. import { allFollowedShowIds } from './lib/follows.hl'
  66. import { ensureShortIds, shortIdPath } from './lib/shortids.hl'
  67. import { guestPersonId, warmPeopleView, peopleViewStats } from './lib/people.hl'
  68. import { moveCopiedSummaries } from './lib/dailysync.hl'
  69. import { ensureFranchises } from './lib/franchises.hl'
  70. import Jobs from './lib/jobs.hl'
  71. static appTitle = "tracker"
  72. // ---- THE INSTALLABLE APP (tracker.worldapi.org#10), the same way calendar.worldapi.org does it: hl:web's own web app
  73. // manifest (/__hl/manifest.webmanifest, linked from every head with the apple-touch-icon and theme-color) and service
  74. // worker (/__hl/sw.js) from these settings — no JavaScript of ours. Icons in icons/ (icon.svg is the source, the PNGs
  75. // are rendered from it with rsvg-convert, README "Icons"). The theme colour is the header's background (darker), the
  76. // splash background the page's (dark) — both off the tokens, not written out again.
  77. appThemeColor = darker.value
  78. appBackgroundColor = dark.value
  79. appIcons = [
  80. { src = '/icons/icon-192.png' sizes = '192x192' purpose = 'any' }
  81. { src = '/icons/icon-512.png' sizes = '512x512' purpose = 'any' }
  82. { src = '/icons/icon-192.png' sizes = '192x192' purpose = 'maskable' }
  83. { src = '/icons/icon-512.png' sizes = '512x512' purpose = 'maskable' }
  84. ]
  85. appTouchIcon = '/icons/apple-touch-icon.png'
  86. appFavicon = '/icons/favicon.svg'
  87. // OFFLINE: only the shell — the header and `/` (components/main.hl says "You are offline" while the browser has no
  88. // network). The data pages are not kept: without a network they get hl:web's "Unavailable offline" page.
  89. offline = [ Home ]
  90. styles = Styles
  91. port = env('TRACKER_PORT') != null ? toNumber(env('TRACKER_PORT')) : 45008
  92. watching = env('TRACKER_WATCH') != '0'
  93. // read by hl:web's own manifest config (WebFramework.hl `cfg.sessionDir`), not the constructor call below
  94. sessionDir = env('TRACKER_SESSIONS') != null ? env('TRACKER_SESSIONS') : null
  95. // ---- the function routes: each checks its input, asks the topic, answers ---------------------------------------------------
  96. // /login/callback?ident_code=… (lib/users.hl): the code exchanged, this app's session signed in, back to the page (`?next=`)
  97. loginCallback = (&route, &req) => { return loginCallbackOf(server.sessions, req) }
  98. // /posters/<name>, /profiles/<name> (lib/images.hl): the file, else the placeholder
  99. posterRoute = (&route, &req) => { return imageResponse(postersDir, route.params != null ? route.params.name : null, 'poster') }
  100. profileRoute = (&route, &req) => { return imageResponse(profilesDir, route.params != null ? route.params.name : null, 'photo') }
  101. // the old addresses of the personal lists (tracker.worldapi.org#8): they all live under /my/ now — a permanent redirect so old
  102. // links keep working (architect's decision)
  103. movedTo = (&path) => { return new Response('moved to ' + path, { status = 301 headers = { 'Location' = path 'Content-Type' = 'text/plain; charset=utf-8' } }) }
  104. notFoundText = (&text) => { return new Response(text, { status = 404 headers = { 'Content-Type' = 'text/plain; charset=utf-8' } }) }
  105. unwatchedMoved = (&route, &req) => { return movedTo('/my/unwatched') }
  106. scheduleMoved = (&route, &req) => { return movedTo('/my/schedule') }
  107. // mission 058: the show page's genre pills linked `/genre/<x>` (no page there) — the genre pages are `/genres/<x>`
  108. genreMoved = (&route, &req) => {
  109. g = route.params != null ? route.params.genre : null
  110. return movedTo(isSafePosterName(g) ? '/genres/' + g : '/')
  111. }
  112. // mission 060 (tracker.worldapi.org#27): `/<shortId>` → 301 to the title's or person's page (lib/shortids.hl); upper case is
  113. // read as lower case; anything else is a 404
  114. shortIdRoute = (&route, &req) => {
  115. sid = route.params != null ? route.params.sid : null
  116. path = sid != null && hlTypeName(sid) == 'String' ? shortIdPath(sid.toLowerCase()) : null
  117. if (path == null) { return notFoundText('not found') }
  118. return movedTo(path)
  119. }
  120. // mission 062: a GUEST STAR's link (components/show.hl castRowsOf) — `/person/tmdb/<tmdbId>?show=<show id>` creates the person
  121. // (lib/people.hl guestPersonId) or finds the one we have, then 302 → `/person/<slug>`. A function route: the browser loads it
  122. // itself (hl:web's client router hands every non-component link to the browser)
  123. guestRoute = (&route, &req) => {
  124. t = route.params != null ? route.params.tmdb : null
  125. tmdbId = t != null && hlTypeName(t) == 'String' && t.length <= 10 ? toNumber(t) : null
  126. if (tmdbId == null || tmdbId < 1) { return notFoundText('not found') }
  127. q = req.query != null ? req.query : {}
  128. r = guestPersonId(tmdbId, q.show)
  129. p = r.id != null ? personById(r.id) : null
  130. if (p == null || p.urlSegment == null) { return notFoundText('not found: ' + (r.error != null ? r.error : 'no such person')) }
  131. return new Response('see /person/' + p.urlSegment, { status = 302 headers = { 'Location' = '/person/' + p.urlSegment 'Cache-Control' = 'no-store' 'Content-Type' = 'text/plain; charset=utf-8' } })
  132. }
  133. // tracker#32 (mission 031): the header's search field sends GET /find?q=<text> (the theme's AppHeader form); a page cannot read a
  134. // query string, so this answers 302 → /search/<text> ('/', '?', '#' as spaces, like components/search.hl), no text → /search
  135. findRoute = (&route, &req) => {
  136. q = req.query != null && req.query.q != null && hlTypeName(req.query.q) == 'String' ? req.query.q.replaceAll('/', ' ').replaceAll('?', ' ').replaceAll('#', ' ').trim() : ''
  137. to = q != '' ? '/search/' + encodeURIComponent(q) : '/search'
  138. return new Response('see ' + to, { status = 302 headers = { 'Location' = to 'Cache-Control' = 'no-store' 'Content-Type' = 'text/plain; charset=utf-8' } })
  139. }
  140. // /shows/<slug> (tracker.worldapi.org#21, mission 068): a series or movie (or a merged duplicate's slug) answers 301 to its page
  141. // (lib/shows.hl showsMovedPath). hl:web has no way for a component route to answer a redirect, so this is a FUNCTION route, and
  142. // for a show (or an unknown slug: the page's own "Not found") it renders the title page the way hl:web renders a component
  143. // route (WebFramework.hl `on http.request`, the `component` branch): the Show component matched at /series/<slug> — same
  144. // component, same params — with the cookie's session, a new one (and its cookie) when the browser brought none. In the browser
  145. // a link to /shows/<slug> is then a full page load; every other title page stays a client-side navigation.
  146. showsRoute = (&route, &req) => {
  147. slug = route.params != null ? route.params.slug : null
  148. to = showsMovedPath(slug)
  149. if (to != null) { return movedTo(to) }
  150. m = server.router.match('/series/' + slug)
  151. let s = req.session
  152. fresh = s == null
  153. if (fresh) { s = server.sessions.mint() }
  154. let res = server.page(m, s, server.hostOf(req.headers['host']), server.requestHeaders(req.headers))
  155. if (fresh) { res.headers['Set-Cookie'] = server.sessions.cookieHeader(s.id) }
  156. return res
  157. }
  158. // tracker#31 (mission 026): the slug of a merged duplicate, or a keeper's former slug → 301 to the keeper's page (lib/shows.hl
  159. // movedSlugs, read at boot). A component route cannot redirect, so each such slug gets its own function route under /movies/ and
  160. // /series/ (/shows/ is showsRoute). A title merged while this process runs answers the keeper's page under its old slug (shows.hl
  161. // showBySlug) until the next start.
  162. slugMoved = (&route, &req) => {
  163. to = movedPathOf(req.path)
  164. if (to == null) { return notFoundText('not found') }
  165. return movedTo(to)
  166. }
  167. routes = [
  168. { pattern = "/favicon.ico" file = "./icons/favicon.ico" headers = { 'Cache-Control' = 'no-cache' } }
  169. // the installable app (tracker.worldapi.org#10): the icons (manifest and service worker are hl:web's own, from appIcons / offline)
  170. { pattern = "/icons/icon-192.png" file = "./icons/icon-192.png" headers = { 'Cache-Control' = 'no-cache' } }
  171. { pattern = "/icons/icon-512.png" file = "./icons/icon-512.png" headers = { 'Cache-Control' = 'no-cache' } }
  172. { pattern = "/icons/apple-touch-icon.png" file = "./icons/apple-touch-icon.png" headers = { 'Cache-Control' = 'no-cache' } }
  173. { pattern = "/icons/favicon.svg" file = "./icons/favicon.svg" headers = { 'Cache-Control' = 'no-cache' } }
  174. { pattern = "/login/callback" function = loginCallback }
  175. { pattern = "/login/failed" component = LoginFailed }
  176. { pattern = "/login.js" file = "./login.js" headers = { 'Cache-Control' = 'no-cache' } }
  177. { pattern = "/posters/:name" function = posterRoute }
  178. // tracker.worldapi.org#13: every movie / every series, 24 per page — the page is a PATH segment (`/movies/page/2`), a
  179. // page component cannot read `?page=` (hybriel#11) — and the movies the user follows
  180. { pattern = "/movies" component = Movies }
  181. { pattern = "/movies/page/:page" component = Movies }
  182. // tracker.worldapi.org#21 (mission 068): series and shows split — /series lists the series, /shows the shows; a title's page
  183. // is /movies/<slug>, /series/<slug> or /shows/<slug> (one component; /shows/<slug> is showsRoute above)
  184. { pattern = "/movies/:slug" component = Show }
  185. { pattern = "/series" component = AllSeries }
  186. { pattern = "/series/page/:page" component = AllSeries }
  187. { pattern = "/series/:slug" component = Show }
  188. { pattern = "/shows" component = AllShows }
  189. { pattern = "/shows/page/:page" component = AllShows }
  190. { pattern = "/shows/:slug" function = showsRoute }
  191. { pattern = "/my/movies" component = MyMovies }
  192. { pattern = "/my/unwatched" component = Unwatched }
  193. { pattern = "/my/schedule" component = Schedule }
  194. // #21: /my/series and /my/shows (one component, components/myshows.hl; any other word there is its "Not found")
  195. { pattern = "/my/:tv" component = MyShows }
  196. { pattern = "/unwatched" function = unwatchedMoved }
  197. { pattern = "/schedule" function = scheduleMoved }
  198. // tracker.worldapi.org#14: the search — `/search/<text>` (hl:web gives a page no query string, so not `?q=`)
  199. { pattern = "/search/:q?" component = Search }
  200. { pattern = "/find" function = findRoute }
  201. // tracker.worldapi.org#16: a person's page (the show page's cast and the search link here) and their photo
  202. { pattern = "/person/tmdb/:tmdb" function = guestRoute }
  203. { pattern = "/person/:slug" component = Person }
  204. { pattern = "/profiles/:name" function = profileRoute }
  205. // mission 058 (tracker.worldapi.org#25): a genre's movies and series, like /movies (the page in the path)
  206. { pattern = "/genres/:genre" component = Genre }
  207. { pattern = "/genres/:genre/page/:page" component = Genre }
  208. { pattern = "/genre/:genre" function = genreMoved }
  209. // tracker#32 (mission 031): the main menu's Genres and People, the user menu's Settings
  210. { pattern = "/genres" component = Genres }
  211. // tracker#37 (mission 032): /people = everyone, the one updated last first, 24 per page (the page in the path, like /movies)
  212. { pattern = "/people" component = People }
  213. { pattern = "/people/page/:page" component = People }
  214. { pattern = "/settings" component = Settings }
  215. // tracker.worldapi.org#19 (mission 066): franchises and timelines, the creator's editor (`/franchises/edit` before the slug)
  216. { pattern = "/franchises" component = Franchises }
  217. { pattern = "/franchises/edit" component = FranchiseEdit }
  218. { pattern = "/franchises/:slug" component = Franchise }
  219. { pattern = "/timelines/:tslug" component = Franchise }
  220. { pattern = "/timelines/:slug/edit" component = TimelineEdit }
  221. { pattern = "/" component = Home }
  222. // mission 060 (tracker.worldapi.org#27): a short id → its page (LAST: every named one-segment route above wins)
  223. { pattern = "/:sid" function = shortIdRoute }
  224. ]
  225. // WHO GETS THE PUSH: the login state reaches the tabs of one session (components/main.hl trackerSignedIn/Out).
  226. tagOf = (&session) => { return session != null && session.data != null ? session.data.tag : null }
  227. audience = {
  228. trackerSignedIn = (tag, &session) => { return tag != null && tagOf(session) == tag }
  229. trackerSignedOut = (tag, &session) => { return tag != null && tagOf(session) == tag }
  230. }
  231. // cookies are per host, not per port: an own name keeps this app's session apart from
  232. // ident's own (and from any other worldapi app sharing a dev host), see ident README "Design
  233. // tokens" / hybriel#10 hybriel#17.
  234. sessionCookie = 'trackersid'
  235. // tracker.worldapi.org#14: the search index (lib/search.hl) is built once here at boot (~0.6 s on the real data), not by the
  236. // first search
  237. searchIndexReady = ensureIndex()
  238. // mission 060: every short id in use (one map over shows AND persons) and the records still without one, before the first request
  239. shortIdsReady = ensureShortIds()
  240. // tracker#30 (mission 025): the slim list caches (lib/shows.hl cardOf / episodeRowsOf) of every followed title, before the first
  241. // /my/ load — not filled by that load
  242. titleCachesStart = now()
  243. titleCachesWarm = warmTitleCaches(allFollowedShowIds())
  244. episodeKeysWarm = warmEpisodeKeys(allWatchedEpisodeIds())
  245. console.log('list caches: ' + titleCachesWarm + ' followed titles, ' + episodeKeysWarm + ' watched episodes in ' + (now() - titleCachesStart) + ' ms')
  246. // tracker#37 (mission 032, lib/people.hl): /people's order (everyone, the one updated last first) and the photos from the titles'
  247. // casts, before the first /people load — not built by that load
  248. peopleViewStart = now()
  249. peopleViewWarm = warmPeopleView()
  250. console.log('people view: ' + peopleViewWarm + ' people, ' + peopleViewStats().castProfiles + ' cast photos in ' + (now() - peopleViewStart) + ' ms')
  251. // tracker#18, ONCE (lib/dailysync.hl moveCopiedSummaries): a `summary` that is only the migrated copy of tmdbSummary is MOVED to
  252. // `migratedSummary` (mission 070: kept, not shown) — the current TMDB text shows; the creator's own texts stay
  253. summariesMoved = moveCopiedSummaries()
  254. if (summariesMoved.ran) { console.log('summaries: moved ' + summariesMoved.moved + ' copies of tmdbSummary to migratedSummary, kept ' + summariesMoved.kept + ' own texts, errors ' + summariesMoved.errors + ', ' + summariesMoved.ms + ' ms') }
  255. // mission 066: which timelines every title is in (one scan of the timelines), before the first show page
  256. franchisesReady = ensureFranchises()
  257. // tracker#31: the moved slugs' routes first, then `routes` as written (hl:web reads the written list for the pages it serves)
  258. movedSlugList = movedSlugs()
  259. withMovedSlugs = () => {
  260. out = []
  261. for (m of movedSlugList) {
  262. out.push({ pattern = '/movies/' + m.slug function = slugMoved })
  263. out.push({ pattern = '/series/' + m.slug function = slugMoved })
  264. }
  265. for (r of routes) { out.push(r) }
  266. return out
  267. }
  268. allRoutes = withMovedSlugs()
  269. console.log('moved slugs: ' + movedSlugList.length + ' (301 to the keeper)')
  270. server = new WebFramework(routes = allRoutes, styles = styles, port = port, sessionCookie = sessionCookie, watchMode = watching)
  271. // ---- THE BACKGROUND JOBS (lib/jobs.hl): the daily TMDB sync, the backfills, the details repair, the credits job, the duplicate
  272. // merge, the short-id backfill, the collection seed, the curated franchise seed — constructing it starts their clocks and logs which ones are off
  273. jobs = new Jobs()
  274. on Error(e) { console.log('error absorbed: ' + e.message) }

Branches

Latest commits

  • 9abda75dtracker: report 035mre
  • 12595e47mission 035: theme re-vendored from layouts.worldapi.org 0222f67 (two corner radii: radiusSmall 5px, radiusLarge 10px); the tracker's 18 own radii -> radiusSmall/radiusLarge (--layout-radius is gone); check-theme 0; gates 379/0, 32/0, 53/0, 229/0, 26/0; real copy: every computed radius in {0, 5px, 10px, 50%}mre
  • e7305014tracker: report 032 (art + photos)mre
  • fbb903cctracker#33/#37 (mission 032): a title without a TMDB poster gets its backdrop (w780, posterFromBackdrop, shown 2:3 centre-cropped); movies store runtime, the page shows release date + runtime; art backfill (public titles without poster file / movies without runtime) and person photo backfill (tmdbProfile / photoCheck) as the last start jobs (TRACKER_ART, TRACKER_PHOTOS; off in every gate start); gates 379/0, 32/0, 53/0, 229/0, 26/0, check-theme 0; live copy: art 4977 titles in 42 min (115 posters, 15 backdrops, 4609 runtimes), The Remaining shows its backdrop + 7 minmre
  • 4ecc67b2tracker: STATUS/LOG for the t38 + t40 merge (gates 374/0, 32/0, 53/0, 229/0, 26/0, check-theme 0; live copy checks)mre
  • e5945d2fMerge t40 (tracker#40 curated franchises, Franchises menu, superseded collections) into main: deploy.sh lists all six gates (browser, kinds, franchises, pager, franchiseseed, check-theme); search.hl keeps #37's personPhotoOf + #40's importWithCredits; pager gate runs with TRACKER_FRANCHISE_SEED=0; gates 374/0, 32/0, 53/0, 229/0, 26/0, check-theme 0mre
  • b638e99dMerge t38 (tracker#38 pagination, #35 Returning/Airing label) into main: LOG/STATUS keep both sides; pager gate follows #37's /people (everyone, last updated first: seed updatedAt); gates pager 229/0, browser 374/0mre
  • f8ffa4dbtracker: report 032 + The Remaining + #39mre
  • 7565a863tracker: LOG timemre
  • b10f00c8tracker#39: double episodes — migrated episodes whose TMDB id TMDB replaced are adopted by their number in the sync (old id -> migratedTmdbId); merge.hl step 3 merges each season's doubles at start (keeper: most watches > synced > first; watches moved/parked; tombstones into mergedEpisodes, nothing deleted); tools/count-duplicate-episodes.hl; gate fixture + paths-m039; live copy 850 -> 0 in 64 s; gates 373/0, 32/0, 52/0mre
  • 8f1d4542tracker#40: superseded collections — a TMDB collection timeline whose titles are all in one curated timeline is hidden (supersededBy; kept: own page + editor finder), set by the collection seed when it makes one and by the curated build (lifted when the cover is gone); partly covered ones join that franchise; no second widget (First Contact: only Star Trek — Prime); gate franchiseseed 26/0, browser 365/0, kinds 32/0, franchises 53/0, check-theme 0; real copy 24 supersededmre
  • 9448d643tracker#35 follow-up (mission 033): TVmaze 'Running' is labelled 'Returning', or 'Airing' while a non-special episode of the two newest seasons is released within today +-7 days (data unchanged); gate fixtures Running/Airing/Aired + a special; browser 366/0, kinds 32/0, franchises 52/0, pager 229/0, check-theme 0mre
  • 7d4b293dtracker#40: "Franchises" in the main menu (desktop header after People, phone sidebar) → /franchises, marked on franchise and timeline pages; gates 365/0, 32/0, 53/0, 24/0, check-theme 0mre
  • 8751adb8tracker: report 032mre
  • 9bce1f65tracker mission 032: STATUS gate files + the hour-boundary flakemre
  • 718bfb89tracker#37 (mission 032): /people = everyone, last updated first (updatedAt stamped by the person fill; view built at boot, touched people first at once), photo + name tiles (person colour) with the /movies pagination, /people/<letter> removed; photo = our file, tmdbProfile, a cast/crew entry's profile (in-memory map at boot), else the new 'no photo' placeholder; new cast/crew/created_by people keep tmdbProfile; search people rows with the photo; /settings = the heading only; util.hl sortDesc starts from sorted runs (same result, 105k: 1.6 s -> 0.15 s); gates 369/0, 32/0, 52/0, check-theme 0; README/STATUS/LOGmre
  • 93dfb0batracker#40 (mission 034): the curated franchises — data/franchises.json (17 franchises, 31 timelines, 285 TMDB titles, movies + series, in-universe/release order, 12 TMDB collections attached); lib/franchiseseed.hl + jobs.hl franchiseSeedTick (last start job, imports missing titles via details.hl importWithCredits = the search's Add, one per step paced, then one build; franchiseseed.db: editor changes win, the creator's same-name franchise adopted / timeline left alone, 404 remembered, resumable, idempotent); timeline heads 'N titles · in-universe order' (orderKind) and wrap on a phone; series pages show the widget; new gate tests/franchiseseed.mjs (5th in deploy.sh), the others run with TRACKER_FRANCHISE_SEED=0; gates 365/0, 32/0, 52/0, 24/0, check-theme 0; real copy 196 imported, 0 failed, 7 min, restart unchanged=31mre
  • 03ec792ftracker#38 (mission 033): pagination goes exactly to the clicked page — tilelist read the clicked button's text after pagination.hl's own handler had rebuilt the buttons (real clicks only); now li.current, else the button's own text; new gate tests/pager.mjs (5 lists x 11 pages, 390/1280, real + script clicks, Back/Forward) 229/0; browser 365/0, kinds 32/0, franchises 52/0, check-theme 0mre
  • 96ba683adeploy.sh: a gate without a 'passed,' line (check-theme) no longer ends the scriptmre
  • eb3b9205tracker: report 031mre