gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit33ad4bd533ad4bd5Merge commit 'f57f64f'mre33ad4bd5/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

  • 33ad4bd5Merge commit 'f57f64f'mre
  • 7d38cec4docker-compose: nofile 65536 (default soft 1024 refused boot: errno 24 in fs.listDir, Hybriel 528bc89f)mre
  • f57f64f0mission 046: report, LOGmre
  • 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • efe1b485mission 046: re-vendor Hybriel master 60b2817b (integration 8, #203): plugins mpackdb + web (bin/ git-ignored: hybriel, libhlrt.a, hlc.o, hlrt/ from native/zig-out)mre
  • 53099ffbmission 046: person page reads a slim per-title credit row cache (no whole-record fetch per credit); gate tests/person-lookup.mjsmre
  • 9b3828aemission 046a: report, LOGmre
  • 4b37356emission 046: franchise seed supersedeCollections reads the curated timelines once (10 s one-tick block at the end of boot)mre
  • ac6268e3mission 046a: re-vendor Hybriel 528bc89f (integration 6): plugins mpackdb/time/web (bin/ git-ignored)mre
  • 322b3293mission 046: photoQueue guard for non-row fetch results (damaged persons index)mre
  • e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
  • 31dcf2admission 045: report, LOGmre
  • 9c3971d0tests/persons-skip-count.hlmre
  • 4d72e365mission 045mre
  • b9cae4c9slices: skip and count non-row values from range(); merge persons pass falls back to iterate; guard testmre
  • 3db7dc31merge w44-jobs-slices into w43-trkmemmre
  • 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
  • 23375c58mission 044: report, LOG, STATUSmre