gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchhm553fb87112|||PR HM55b record six additional focused toggle bisectsTrackerhm55/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

  • 3fb87112|||PR HM55b record six additional focused toggle bisectsTracker
  • 20131f51|||PR HM55b record incomplete episode-toggle bisectTracker
  • 17feb7abHM55 WIP: hm54-fill re-applied on main; browser gate fails at ep3 toggleTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker
  • b9c7c3c8Merge branch 'records-dp74' into mainTracker
  • 85cfb4ae|||PR records: AP61 day61, DP74 liveTracker
  • b1496147Merge branch 'ap61' into mainTracker
  • 2047955bMerge branch 'u12-gateports' into mainTracker
  • c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
  • 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
  • 0b86324aMerge branch 'records-dp73' into mainTracker