tracker
All repositories: gitoria
3.9 KB
# w055 — tracker#16 person pages (mission 011 (old 055))**Branch** t16-person (worktree loreana:/media/STORAGE/projects/tracker-wt16, from main 47a3cae), not pushed/merged:- 93be947 tracker#16: person pages /person/<slug> with the filmography fetched from TMDB on the first visit (step by step), gate- 139fafd tracker#16: short bio (4 lines, click = all), real-data check script, README + STATUS**Built**: `people.hl` (new), `components/person.hl` (new), `project.hl` (route `/person/:slug`, `/profiles/:name` photo route),`search.hl` (+`titleIdByTmdb`), `styles.hl` (one block). The page shows the name, a photo (TMDB w185 saved in storage/mpackdb/profiles),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>.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…"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`personFill` until it says done. Step 1 is ONE TMDB request (`/person/<id>?append_to_response=combined_credits`) plus the photo.Each later step stores 40 titles, so other requests are served between steps. Missing titles get a minimal record (TMDB `adult`, overview,genres, language; no seasons or poster). They are indexed for search and added to catalog.hl. When the fill is done, the person gets`filmographyAt` and is never fetched again. No sign-in is needed.**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`→ `186 passed, 0 failed` (was 167). Covered:- a complete person renders at once, with no TMDB request- client-side cast link → loading state → filled without a reload (86 rows of 87 titles, the adult one hidden)- order and roles are right, and cast + crew of one title are merged into one role- one person request + the photo; the fill took 4 steps and added 85 titles- a row opens its show page and Back works; a title the fill added has its own page- a second visit adds nothing and asks TMDB nothing- 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- search finds an added title once- 390/1280 layout**Real data** (copy of live storage/, real TMDB, :8777; copy deleted). Cast click → page shown / filled:- Tyler Hoechlin: 131 / 643 ms, 36 credits, 7 added- Grant Gustin: 68 / 593 ms, 33 credits, 21 added- Jared Harris: 85 / 869 ms, 97 credits, 80 added, 4 steps- Niamh Algar: 76 / 584 ms, 39 credits, 20 added- The TMDB request took 242–287 ms. Other requests waited at most 678 ms (median 13–32 ms).- Stress test with Eric Roberts: 758 credits, 712 added, 20 steps, 3.8 s; other requests waited at most 612 ms.- Second visit, full load: 41–120 ms. 0 console problems.**Screenshots** (looked at): gate `/tmp/w055/shots/person{,-complete}-{390,1280}.png`, real data `/tmp/w055/real/*.png` on Loreana.**Merge notes**: all shared-file changes are additive (details in STATUS #16 "Merge notes"). Fixture changes: Test Actor gets `tmdbId 3002`, genreDrama gets `tmdbId 18`, plus 2 persons. 54's `adult` field is read and written by people.hl under the same name `adult` (boolean).If 054 hides adult titles in public lists, the gate's "Hidden Adult Film" disappears from /movies; no check depends on that.**Open points**:- The TMDB step blocks the server for that one request (hl:fetch is blocking).- People are never refreshed after they are complete.- Adult people are not hidden, only titles.- Added titles have no poster file and no seasons until they are synced.- Not caused by #16: the signed-out header at 390 px wraps "choose ident" / "Log in with ident" onto two lines.**Hybriel**: no new issue. A `while` loop with `emit server` inside a client handler works.
Branches
Latest commits
- 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
- c6fd928emission 044: 4096 slices for tables over 200 K rows, 15 ms budget, TRACKER_SLICE_DEPTH for testsmre
- fb057680mission 044: jobs.hl imports mergeLeft (gate found it), mission file, slices benchmre
- 0d6293ebmission 043: mission filemre
- d25bd14amission 044: sliced merge prepare + sliced collections prepare; jobs-dump old/new check + bulk fixturemre