gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaina06fc778Reset virtual-list window when the host changes resetKeyAtlasmain/reports/VL24-virtual-list.md

14.6 KB

  1. # VL24 — deployed after Atlas approval
  2. The virtual list and its initial-position options are implemented and committed on branch `vl24-implementation`, based on main `6995424`. The worktree is `/media/STORAGE/claude-scratch/atlas/VL24/wt-final`. Atlas authorized deployment after reviewing the implementation; deployment and live verification are complete below. The earlier WIP commits are consolidated into the single commit titled `virtual-list: into main, with centerId and scrollTop/onScroll (jukebox#20)`; its exact hash is recorded in the scratch report and review-final-commit.txt.
  3. His task line, unchanged: "when i reload the tab it would be nice if it remebered its scroll position in the list and centers the currently playing song."
  4. ## Implementation and reviewed decisions
  5. The component, demo, README, index entry, routes, gate and previous/next icons from branch tip `46d90ec` were brought onto main's day38b sources. Style declarations are one per line, with nested pseudo-classes and quoted class compounds under virtualList. The virtual-list selectors and specificity remain those of the branch tip. Atlas explicitly accepted the sibling class rules under virtualList for this merge, because jukebox's own theme rules compete with them. No further Style rewrite was made. The demo's box rule lives in demo.hl; components/styles.hl is unchanged. No existing control was removed or moved, and no media query was needed for the new rules.
  6. `centerId` defaults to an empty string. `scrollTop` defaults to null, and `onScroll` defaults to null. The component applies a supplied offset at its first mount tick, then centers the matching row id in its initial loaded chunk. Centering wins when both are supplied. The parent supplies that chunk and its loadedFrom offset; a row id outside it cannot be located by the component. Later changes to those inputs or the loaded rows do not repeat the initial jump. The selectedId highlight remains independent. The callback reports the latest pixel offset on a 100 ms timer, including the final position. The parent owns storage and supplies its saved offset after a reload, using the documented member and bound-function forms. These responsibilities and limits are in the README. This mission adds the component API; it does not change the jukebox app itself.
  7. ## Gate results
  8. | Check | Result | Evidence |
  9. |---|---|---|
  10. | Main baseline on 6995424 | 612 passed, 1 failed | gate-before.log |
  11. | Integrated virtual-list behavior before options | 26 passed, 0 failed | gate-branch.log |
  12. | Old component with centering fixture | 0 passed, 1 failed at startup | red-center.log |
  13. | Old component with saved-offset fixture | 0 passed, 1 failed at startup | red-restore.log |
  14. | New centerId case | 7 passed, 0 failed | green-center.log |
  15. | New scrollTop/onScroll case | 7 passed, 0 failed | green-restore.log |
  16. | Final main gate after review | **613 passed, 0 failed** | **gate-review.log** |
  17. The old-component fixture startup refusals show that the new API checks fail on the old component. Both refusals name the undeclared centerId binding; Atlas explicitly accepted these red proofs and requested no further red runs. red-old.log is an earlier test-script quoting error and is not evidence.
  18. The option cases check initial positioning, later input updates without another jump, a real wheel, the final callback offset, throttling and a reload with the same supplied initial offset. Generated fixture edits are restored in finally. They do not test the consuming application's storage, which remains the parent's responsibility. The baseline failure was the existing MD1 30 ms editor paint limit with samples [7,15,13,24,35]. The first final main run was stopped at the earlier request cap and is historical only. The completed review run passed on its first attempt, so no muteOk rerun was necessary. No checks or timing limits were relaxed. The offline home-list expectation changes from 11 to 12 solely for the added component entry.
  19. The final main gate ran as one blocking command: `COMPONENTS_GATE_PORT=8800 COMPONENTS_GATE_CHROME=8801-8809 HL_PORT_BASE=8600 TMPDIR=/media/STORAGE/claude-scratch/atlas/VL24/review-tmp timeout 900 node tests/browser.mjs`. Ports were checked before it started.
  20. ## CSS and screenshots
  21. before.css and after.css were fetched from the local previews. css-check.json finds zero missing or changed existing selector/declaration leaf blocks. All 25 distinct added blocks concern virtual-list or its demo. The parser counts 355 leaves before and 382 after; repeated keyframe stop declarations account for the difference from the distinct-add count. This is a leaf-rule comparison, not a complete media-context/order proof. Existing selectors and their specificity were not substituted.
  22. His lisbeth Chrome :9223 was used with one own plain tab per screenshot run, under lisbeth.lock. Each tab was closed, and the page-target list was checked after every run. Before and after shots are in before/ and after/. The virtual-list demo was captured at 390x844, 800x1280, 1280x800 and 1280x900; the existing showcase pages were captured at 1280x800. contact.jpg was inspected: dense virtual-list rows, thumbnails, text and aside fit all four viewports; the existing pickers, modal, editors and upload controls remain visible.
  23. The original comparison has AE 0 for month-view, date-picker, range-picker, pagination, md-editor, code-editor, file-upload, files-upload, files-upload/pick, modal, comments and media-player. The audio-only comparison is now also **AE 0**, using fresh shots in review-full-before/ and review-full-after/ (review-full-ae.txt). Both were paused at currentTime 0, duration 45, with buffered range [0,45], a 100% buffered bar, the Play icon and text 0:00/0:45. I inspected review-full-contact.jpg; the player and its controls match.
  24. The exact cause of the earlier audio difference was unequal browser buffering: baseline buffered [0,21.753], displaying 48%, while the new tree buffered [0,16.301], displaying 36%, even though both were paused at time zero. All differing pixels were inside the buffer bar, bbox (556,132,628,138), as recorded in review-audio-original-diff-bbox.txt. The normalized rerun sets preload to auto, waits for the complete buffered range, pauses and seeks to zero, then captures after the native media events settle. It does not change app code, CSS or screenshot pixels. review-full-before.log and review-full-after.log record the native media state. These fresh shots supersede the unequal-buffer audio pair.
  25. The option interactions themselves have automated gate evidence; the actual-Chrome visual proof is the default demo. No parent storage integration or jukebox behavior is claimed. No page HTML snapshot was saved in this mission.
  26. ## DOCS
  27. DOCS: read complete HL-PRIMER.md and CODE-ORDER.md; COMPONENTS.md sections 4 Styles, 6 Rendering, 12 Composition (member parameters, bound callbacks and $parent), and relevant 6b event/run-body material; archived hl:web ARCHITECTURE.md; complete archived WORKER-RULES.md; CS23 and CS23b reports. The parameter/callback shape follows the documented Badge member binding and onHide function. The existing component's animation mount tick is retained for one-time positioning. No language refusal was encountered, and no application JavaScript workaround was added. There is no new unresolved language question from this review follow-up.
  28. ## Processes and cleanup
  29. The original process history remains in REPORT-initial-handoff.md and processes-stopped.json. Initial preview PID 2319124, final preview PID 2361948 and reverse tunnel PID 2320657 were stopped in the first phase. The stopped initial main gate and its descendants are recorded by exact numeric PID in processes-stopped.json. Earlier completed automated gates closed their children through their teardown; those child PIDs were not individually recorded, a historical ledger limitation.
  30. Review previews were PIDs **2388346** (baseline, port 8810) and **2388347** (new tree, port 8811); the reverse tunnel was PID **2388348**. All three were stopped by their saved PID after the Chrome proof, with cwd verified. review-started-snapshot.json records the review gate and its server/Chrome process snapshot; the completed gate closed its own server and browser. Screenshot scripts ended and closed their tabs. review-final-process-audit.json is an empty list, the 8800-8819 port audit has no listeners, and review-tmp profiles were removed. The pre-existing :9223 tunnel and every pre-existing tab were untouched.
  31. The initial phase used approximately 48 requests against its roughly 45-request budget. This review follow-up used about 17 of the additional 20 requests: two for source/state and gate setup, eight for proof and gate waits, and the remainder for inspection, report, commit and cleanup. No further implementation was started. Atlas subsequently approved that review and authorized the deployment recorded below.
  32. ## Final Chrome page targets
  33. Final page targets from `curl -s 127.0.0.1:9223/json/list`:
  34. ```json
  35. [
  36. {
  37. "description": "",
  38. "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@1d17a2e2ee147bb7d6ae2ab6abdb3a2510c17775/inspector.html?ws=127.0.0.1:9223/devtools/page/2B36106C7AF83C7D196B54C5C499429C",
  39. "id": "2B36106C7AF83C7D196B54C5C499429C",
  40. "title": "about:blank",
  41. "type": "page",
  42. "url": "about:blank",
  43. "webSocketDebuggerUrl": "ws://127.0.0.1:9223/devtools/page/2B36106C7AF83C7D196B54C5C499429C"
  44. }
  45. ]
  46. ```
  47. Final consolidated commit: `2e9b4a8e0084eed259a14c0d267beb21ed68d013`.
  48. ## Deployment after Atlas approval
  49. Atlas reviewed and approved the implementation, the preserved selectors and the red proofs, then authorized deployment and adding the virtual-list deploy gate. Commit `e5b98ecf48fdea4a339f8474b97840e0c4f4acb9` adds `node tests/virtual-list.mjs` to deploy.sh GATES after the main browser gate. Main was fast-forwarded from 6995424 to that commit before deploying. The main and reviewed worktrees have the same day38b bin/hybriel SHA-256, `5ff2a46db81ef88fd7a72a3c32c3d67ca1faff7bfed60587341d2307b10b6e96`.
  50. The components line in `/media/STORAGE/projects/WorldAPI/worldapi-conductor/deploy-init.sh` required one extra variable: **HL_PORT_BASE=8570**, because the virtual-list gate uses Chrome ports at base+200 through base+209. Its server already inherits COMPONENTS_GATE_PORT=8767; Chrome therefore uses 8770-8779, all inside the helper's 8767-8786 shared deployment range. COMPONENTS_GATE_CHROME=8770-8779 remains for the main gate. No other deploy-init line changed. The conductor folder is not a git repository; the exact prior script is preserved in deploy-init-before.sh. Both shell scripts passed bash -n, and the shared ports were free before deployment.
  51. `/media/STORAGE/projects/WorldAPI/worldapi-conductor/deploy-init.sh components.hybriel` completed in one run with the normal standby handover. The boot gate passed with HTTP 200 after **28 seconds**, RestartCount **0**, and total gate time **47 seconds**. In that same deployment run, `node tests/browser.mjs` passed **613/0**, and `node tests/virtual-list.mjs` passed **26/0**. No gate rerun or skip was needed. Application deploy rc=0; the public URL answered 200 on try 1. The helper pushed after rc=0 and correctly omitted a second restart. Logs are deploy-init.log, deploy-bootgate.log and deploy-app.log.
  52. The drained standby swap took **48 seconds**. Standby on 45016 answered 200 after 21 seconds. nginx marked main 45006 down and drained to zero open connections before restarting it; main answered 200 after 2 seconds. nginx was restored, tested and reloaded; standby was stopped after the settle period. The HTTP monitor covered the deployment from before the helper started through its completed swap and push: **379 requests, 379 HTTP 200, 0 HTTP 5xx, 0 other codes**. The monitor is stopped. The complete records are deploy-monitor.log and deploy-http-counts.json.
  53. Backup: `/media/STORAGE/deploy-backups/components.hybriel.worldapi.org/components.hybriel.worldapi.org-20261103-0920.tgz 492 bytes`. It passed gzip -t. The backup resides under STORAGE/deploy-backups, not SLOW1TB2. No live application data or session was edited by the proof.
  54. Immediately after the helper's successful deployment and push, main = origin/main = **e5b98ecf48fdea4a339f8474b97840e0c4f4acb9**, recorded in deployed-heads.txt. The following report/status/log commit only documents the successful deployment and is pushed afterward; its final main/origin equality is recorded in deploy-final-heads.txt.
  55. Live `/virtual-list` proof ran in his lisbeth Chrome :9223 under lisbeth.lock, using one own plain tab, at **390x844** and **1280x800**. Each viewport initially had 28 DOM rows, starting with Song number 0, and no horizontal overflow. Real wheel scrolling loaded the rows around song-101 without blank rows; a real click selected id **song-101**, the current marker kept that id, and the parent output read song-101 (row 102). Both viewport runs had **0 console errors**. The tab was closed and page targets checked after the run; his existing tab was untouched. The final HTML is saved in live/virtual-list.html. Live app.css is byte-identical to the reviewed after.css. The initial live screenshots have **AE 0** against the reviewed screenshots at both sizes (deploy-live-ae.json). I inspected all four shots in live/contact.jpg: the initial dense rows, scrolled rows, selected marker and parent output are visible and fit both sizes. No browser-wide storage or cookies were cleared.
  56. Deployment processes: monitor PID **2428691** and deploy-init PID **2428692** ended; the gate closed its own server and Chrome. deploy-running-snapshot.json records the gate process snapshot. The screenshot script ended, closed its own tab and disconnected; no local preview, browser or tunnel was started for the live proof. deploy-final-processes.json is an empty list, deploy-ports-final.txt has no listener on 8767-8786, and temporary deployment profiles are removed during final cleanup. No worker process remains. Production main remains running as intended. The pre-existing :9223 tunnel and his original tab were not touched. The site's normal service worker remains registered; only page targets are audited here.
  57. This deployment follow-up used approximately 13 requests of the additional 20-request budget. Deployment and all requested proof are complete.
  58. ### Final deployment Chrome page list
  59. Final page targets from `curl -s 127.0.0.1:9223/json/list`:
  60. ```json
  61. [
  62. {
  63. "description": "",
  64. "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@1d17a2e2ee147bb7d6ae2ab6abdb3a2510c17775/inspector.html?ws=127.0.0.1:9223/devtools/page/2B36106C7AF83C7D196B54C5C499429C",
  65. "id": "2B36106C7AF83C7D196B54C5C499429C",
  66. "title": "about:blank",
  67. "type": "page",
  68. "url": "about:blank",
  69. "webSocketDebuggerUrl": "ws://127.0.0.1:9223/devtools/page/2B36106C7AF83C7D196B54C5C499429C"
  70. }
  71. ]
  72. ```

Branches

Latest commits

  • a06fc778Reset virtual-list window when the host changes resetKeyAtlas
  • 3aab598cRe-vendor complete Hybriel day73 set for virtual-list resetAtlas
  • 337ca075MD1 gate check measures frames in the page, not milliseconds from outside, and takes the middle load (components#30)mre
  • f5f131c5Record AP29 autoplay comparisons and passing gatesmre
  • 51c38187Gate media autoplay on first load and after client mountmre
  • a3f2223dRecord successful B44 deployment and live proofmre
  • 06c1e021Record passing B44 browser rerunmre
  • c9861533Record B44 component proof and browser gate blockermre
  • 1b7413beIgnore detached media events and space demo option outputsmre
  • ca3b4959Re-vendor complete Hybriel plugins and runtime to day44mre
  • df9e7df9Last-item checks run in the browser gate (components#26 fixed on day41); media-player loop is a plain Booleanmre
  • 895a5afcRe-vendor complete Hybriel plugins and runtime to day41mre
  • 16006bb3Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 88397fc3Re-vendor complete Hybriel plugins and runtime to day39mre
  • 9b872cedRecord IC28 deployment and live icon verificationmre
  • 46fefaa7Count the icons entry in the offline home-page checkmre
  • c7e14cabRecord IC28 rerun and unchanged-main baseline comparisonmre
  • 5e090ffdRecord IC28 review evidence and gate resultsmre
  • adfe2c4dAdd shuffle, repeat and repeatOne shared iconsmre
  • c96709c8media-player: skip = false and repeat = 'one' options (jukebox#19)mre