gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit33ad4bd533ad4bd5Merge commit 'f57f64f'mre33ad4bd5/reports/013-tracker-caret-skeleton.md

3.6 KB

  1. # w057 — tracker#17: season caret up/down + skeleton rows + faster opening
  2. **Commit** 1704ec4 on main (loreana:/media/STORAGE/projects/tracker.worldapi.org; not pushed, not deployed).
  3. Files: components/show.hl, styles.hl, tests/browser.mjs, tests/realdata-057.mjs (new), README.md, STATUS.md.
  4. **What changed**
  5. - Caret: DOWN when the season is closed, UP when it is open (`season-row.expanded` rotate 180°).
  6. - Opening a season: right away in the browser, the caret turns up and min(episodes, 8) shimmering skeleton rows appear. They have the episode row's shape and height and use CSS only. Then the new face `showSeasonEpisodes(seasonId)` answers and its episodes replace the skeleton rows.
  7. - The face takes no session (the data is public), so the server does not re-render the page and sends nothing back to sync.
  8. - The watch state comes from a new member `watchedEpisodes`. It holds only this show's episodes, per season as `{ all, except }`.
  9. - Closing a season happens only in the browser, with no request.
  10. - A season closed again before the answer arrives stays closed.
  11. - Adult title pages (only their followers see them) still use the session face `showRows`.
  12. **Why opening was slow (measured):** the server work was small. On the copy, the slug scan took 60–78 ms, the watches scan 20 ms and loading the episodes 6 ms. The old face took `session`, so hl:web re-rendered the whole page on the server and shipped every session-derived member back as a sync, including `rows`. The browser then drew the rows twice.
  13. **Real data** (copy of live storage/, signed in as the creator, ms from the click, measured in the page; 390 and 1280 similar):
  14. | | Daily Show S30 (142 ep) | LWT S12 (30 ep) |
  15. |---|---|---|
  16. | before: episodes visible | 380–450 | 265–390 (one 1,093) |
  17. | after: skeleton visible | 77–106 | 25–54 |
  18. | after: episodes visible | 233–288 | 58–102 |
  19. | close before → after | 420–1388 → 135–175 | 285–390 → 28–45 |
  20. - Every season showed 8 skeleton rows (the cap). Only `showSeasonEpisodes` was sent.
  21. - The watch state filled in the browser equals the server's own rebuild: true for both shows.
  22. - Page load is unchanged (Daily Show about 310–360 ms warm). Its HTML grew from 157 to 167 kB; a plain id map would have made it 274 kB.
  23. - The adult path was checked on a second copy with Last Week Tonight set to adult: signed out it says "Not found", and the creator's season opens go through `showRows` with no double rows.
  24. - Copies, sessions and servers are removed. No port in 8720–8739 is listening.
  25. **Gate:** `TRACKER_GATE_SHOTS=/tmp/w057/shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 TRACKER_GATE_TMDB_PORT=8727 node tests/browser.mjs`
  26. → `214 passed, 0 failed` (was 208)
  27. - Checks the caret both ways.
  28. - Checks the skeleton state: an init script holds the face's websocket frame back by 1.5 s, and the gate checks 2 rows, shape/height, shimmer, caret already up and no episodes yet.
  29. - After the answer: skeleton gone, every row once (hybriel#121), watch state right.
  30. - A season closed while loading stays closed; closing sends nothing.
  31. **Screenshots** (looked at): Loreana /tmp/w057/shots/show-{skeleton,open,closed}-{390,1280}.png. Real-data ones: /tmp/w057/real-after/ and /tmp/w057/real-before/.
  32. **Open**
  33. 1. Deploy.
  34. 2. Episode and season check clicks still use session faces, so the server re-renders the page each time. Not measured; the same split could speed them up.
  35. 3. On a big show (about 264 rows) the skeleton needs about 80 ms, because hl:web redraws the whole flat row list on every write to `rows`.
  36. 4. The adult fallback is not in the gate: no fixture series is adult. Real data currently has no adult title with seasons.

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