gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit593dab6f593dab6fmission 043: report, LOGmre593dab6f/reports/011-tracker-person.md

3.9 KB

  1. # w055 — tracker#16 person pages (mission 011 (old 055))
  2. **Branch** t16-person (worktree loreana:/media/STORAGE/projects/tracker-wt16, from main 47a3cae), not pushed/merged:
  3. - 93be947 tracker#16: person pages /person/<slug> with the filmography fetched from TMDB on the first visit (step by step), gate
  4. - 139fafd tracker#16: short bio (4 lines, click = all), real-data check script, README + STATUS
  5. **Built**: `people.hl` (new), `components/person.hl` (new), `project.hl` (route `/person/:slug`, `/profiles/:name` photo route),
  6. `search.hl` (+`titleIdByTmdb`), `styles.hl` (one block). The page shows the name, a photo (TMDB w185 saved in storage/mpackdb/profiles),
  7. born/died, a short bio (four lines, click shows all) and the filmography: poster, title, year, type and role, newest first, each linking to /shows/<slug>.
  8. Adult titles are hidden (`show.adult === true` or the credit's TMDB flag). If the person is not complete yet, the page shows "Loading filmography…"
  9. and fills in without a reload. An invisible CSS-animation tick (hl:web has no mount hook) starts the client handler, which calls the face
  10. `personFill` until it says done. Step 1 is ONE TMDB request (`/person/<id>?append_to_response=combined_credits`) plus the photo.
  11. Each later step stores 40 titles, so other requests are served between steps. Missing titles get a minimal record (TMDB `adult`, overview,
  12. genres, language; no seasons or poster). They are indexed for search and added to catalog.hl. When the fill is done, the person gets
  13. `filmographyAt` and is never fetched again. No sign-in is needed.
  14. **Gate**: `TRACKER_GATE_SHOTS=/tmp/w055/shots TRACKER_GATE_PORT=8770 TRACKER_GATE_IDENT_PORT=8771 TRACKER_GATE_CHROME=8772-8775 TRACKER_GATE_TMDB_PORT=8776 node tests/browser.mjs`
  15. → `186 passed, 0 failed` (was 167). Covered:
  16. - a complete person renders at once, with no TMDB request
  17. - client-side cast link → loading state → filled without a reload (86 rows of 87 titles, the adult one hidden)
  18. - order and roles are right, and cast + crew of one title are merged into one role
  19. - one person request + the photo; the fill took 4 steps and added 85 titles
  20. - a row opens its show page and Back works; a title the fill added has its own page
  21. - a second visit adds nothing and asks TMDB nothing
  22. - a second person is only linked (added=0); a title marked adult in our records stays hidden even when TMDB's credit says not adult
  23. - search finds an added title once
  24. - 390/1280 layout
  25. **Real data** (copy of live storage/, real TMDB, :8777; copy deleted). Cast click → page shown / filled:
  26. - Tyler Hoechlin: 131 / 643 ms, 36 credits, 7 added
  27. - Grant Gustin: 68 / 593 ms, 33 credits, 21 added
  28. - Jared Harris: 85 / 869 ms, 97 credits, 80 added, 4 steps
  29. - Niamh Algar: 76 / 584 ms, 39 credits, 20 added
  30. - The TMDB request took 242–287 ms. Other requests waited at most 678 ms (median 13–32 ms).
  31. - Stress test with Eric Roberts: 758 credits, 712 added, 20 steps, 3.8 s; other requests waited at most 612 ms.
  32. - Second visit, full load: 41–120 ms. 0 console problems.
  33. **Screenshots** (looked at): gate `/tmp/w055/shots/person{,-complete}-{390,1280}.png`, real data `/tmp/w055/real/*.png` on Loreana.
  34. **Merge notes**: all shared-file changes are additive (details in STATUS #16 "Merge notes"). Fixture changes: Test Actor gets `tmdbId 3002`, genre
  35. Drama gets `tmdbId 18`, plus 2 persons. 54's `adult` field is read and written by people.hl under the same name `adult` (boolean).
  36. If 054 hides adult titles in public lists, the gate's "Hidden Adult Film" disappears from /movies; no check depends on that.
  37. **Open points**:
  38. - The TMDB step blocks the server for that one request (hl:fetch is blocking).
  39. - People are never refreshed after they are complete.
  40. - Adult people are not hidden, only titles.
  41. - Added titles have no poster file and no seasons until they are synced.
  42. - Not caused by #16: the signed-out header at 390 px wraps "choose ident" / "Log in with ident" onto two lines.
  43. **Hybriel**: no new issue. A `while` loop with `emit server` inside a client handler works.

Branches

Latest commits

  • 593dab6fmission 043: report, LOGmre
  • 1a5a4818boot scans back to iterate (slices measured slower: titles 114 s, episodes 141 s, persons failed); lambda per rowmre
  • 03d29893boot scans read primary-key slices (lib/slices.hl from mission 044): iterate is eager too; people view log line back; allShows/allEpisodes stay for toolsmre
  • 0d6293ebmission 043: mission filemre
  • 55bbd619boot: one streamed pass per table (lib/bootscan.hl) instead of find(null,null) per module; follows/watches/franchises scans streammre
  • 1d465d3ere-vendor plugins to Hybriel master f9614007 (mpackdb #202 copy fix, libmpackdb sha 6fb3b9d6)mre
  • 6648ba44mission 042: real-browser E2E on ce6f2e0a re-vendor 69/0 at 390 + 1280mre
  • 3ed3a0efmission 042: gates old/new equal (browser #41 route-table regex accepts unescaped hl:web output), real-data TTFB, E2E blocked by lisbeth lockmre
  • d5b61e90LOG 042mre
  • 4acdbaccmission 042: memory comparison old vs ce6f2e0a (stopped: warm VmHWM higher), reportmre
  • d0f620d6mission 042: re-vendor Hybriel ce6f2e0a (plugins incl. mpackdb; bin runtime built from the same archive, git-ignored), compact=false keptmre
  • 5bd14e12mission 040: theme 76f99f6 gates + E2E green; 44 px fixes (skeleton row, type-word, genre-link/pill); README, reportmre
  • 77cfa45cmission 040: partial report (theme/modal/pagination re-copied, tilelist onPage, 44 px taps; gates new + E2E pending)mre
  • 4b14822fe2e-theme: menu marker by colourmre
  • 09780f4emission 040 WIP: theme, modal, pagination, tokens re-copied from layouts 76f99f6; tilelist uses onPage; tap sizes 44 px for tracker's own small buttons; tests/e2e-theme.mjsmre
  • fb80bb8chotfix: open the 5 show stores without compaction (compact = false) — compact-on-open left another handle on stale offsets, every read gave a bare Number (hybriel mpackdb refresh after a shrink); live down 2026-10-20 05:11mre
  • e00d3bf7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • a8c7f234tracker#36 (mission 039): tools/tmdb-check.hl survives a dropped connection (on Error, asked again, failed lines) and resumes with --from N; tests/tmdbcheck.mjs 6/6 against a fake TMDBmre
  • 9c230516mission brief w39mre
  • 3609121dmission 038 docs + report (quota stop): README/kinds.md for #43 #42 #36, STATUS, LOG; HEAD browser gate 374/8 in the in-app daily run block (hour-boundary suspected, rerun pending), other gates green; #36 real run needs TMDB_READ_TOKENmre