gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit134b4e3e134b4e3eMdEditor: an editor the framework puts into the page is built at once (page observer), a surface put in anew under a built editor is redrawn; gates for both (hybriel#211)mre134b4e3e/reports/012-revendor-ce6f2e0a.md

5.0 KB

  1. # Report 012 — re-vendor ce6f2e0a — worker C7, branch w12-revendor-ce6f2e0a (NOT merged, NOT deployed) — **BLOCKED by a Hybriel regression (2 gate checks)**
  2. ## Vendor
  3. - bin/hybriel = hybriel native/zig-out/bin/hybriel (static, 13:29 on ce6f2e0a), sha256 eb5b4b29685fcc6a33327646e934296d6e46dfbda2d0df1e620a5b2c5d4f79e1 (was 60fa02f3…). bin/ is git-ignored and ALSO holds hlc.o, libhlrt.a and hlrt/ (runtime .hl files): all replaced from the same build's zig-out/lib. plugins core crypto data fetch fs http http1 mpackdb proc time web replaced whole (committed; 23 files changed incl. libcrypto/libfs/libmpackdb .so); plugins/fetch unchanged.
  4. ## Gates (own cold HL_CACHE_DIR; logs atlas-evidence/C7/{old,new}-gate.log, new-gate2.log)
  5. - OLD (main 3794c59, old bin): **480 passed / 0 failed**.
  6. - NEW: **478 passed / 2 failed**, same two on the rerun (so real): "comments: a text changed by the host from outside (a push) is drawn anew, 'Edited 3 times'" and "comments: Delete — … the next row keeps its own text". No check-theme in this repo.
  7. ## The regression (Hybriel gap — no JS workaround made)
  8. /comments demo: click "bob edits his comment elsewhere (a push)" (page does `thread = withEdit(thread,'c2',…)` → new Hybrid list into Comments { comments = thread }). OLD: the c2 text in the readonly MdEditor is drawn anew ("Changed elsewhere: …"). NEW: the history title updates to "Edited 3 times" but the MdEditor surface keeps the old text — the child component with the changed bound `value = c.text` is no longer rebuilt (comments.hl header comment says it relies on this: "hl:web builds a composed child anew when a value bound into it changes"). The Delete failure is the follow-on (the row after a deleted one keeps a stale text).
  9. - Repro in-app (probe/push.mjs, in evidence): /comments before → after push; old 'Changed elsewhere: bob edit…', new 'Edited twice — the earlier versions fold'.
  10. - Smaller repro attempts (evidence repro-rep/: page → List child → for-rows with MdEditor { value = c.text }) do NOT reproduce: old behaves like new there (child not rebuilt on either), so the trigger is something more specific in comments.hl (rows via `shown`, `if (c.notEditing)` branch around the MdEditor). Not reduced further (quota). Hybriel owner should bisect 7f13a82f..ce6f2e0a (candidates: web batch 2 / js186 / fix192).
  11. ## E2E in lisbeth's Chrome (flock lisbeth.lock, one existing about:blank tab, reverse tunnel for my ports, left at about:blank)
  12. - md-keys real keys on NEW (8788): **390: 60 passed / 0 failed; 1280: 60 passed / 0 failed** (logs lis-keys390.log, lis-keys1280.log).
  13. - Shots old (8792) vs new (8788), 390 + 1280, pages home, md-editor, comments, modal, pagination, code-editor, files-upload: 28 PNGs in atlas-evidence/C7/{old,new}-{390,1280}-<page>.png; **byte-identical old vs new for all 14 pairs** (static page state after load; the push regression is not visible there). Looked at new-390-comments (thread, 3 comments, buttons, attachment row intact) and new-1280-md-editor (toolbar, formatted note, source value, empty editor with placeholder) — fine.
  14. ## Cold compile (both started together, fresh cache, load ~7)
  15. old 23.3 s, new 20.2 s.
  16. ## Not done / notes
  17. No push, deploy or merge. Do NOT merge this branch until the comments regression is fixed in Hybriel (or the demo is shown to be wrong). Own servers/Chrome/tunnel stopped; ports 8788-8794 empty.
  18. ## UPDATE (worker C8): moved to Hybriel master f9614007 — regression fixed, UNBLOCKED
  19. Target changed from ce6f2e0a to **f9614007** (fix for hybriel#200 comments push-redraw + Anton's integration 4). Vendored from /media/STORAGE/projects/hybriel static build of 21 Oct 18:48.
  20. - sha256 bin/hybriel 9d957fed77d0bd7f0bfeb3b90beb358b524d24d555f63578d3340ecd63706b65; bin/hlc.o cf4fb7d3e37f7aa59b9124aa1bd1a97fb929688870ee5c7ae1c718621793f65d; bin/libhlrt.a 868266c424b96cb71fb937ef8d97c601164bf5e0b4fc422e589a44fb1944babb; bin/hlrt/ (tree sha of file hashes) 2e26de1849583dec91ce411214f311b01b0295c948bebf967558facef880b1ff. bin/ is git-ignored. plugins (same 11 dirs as before: core crypto data fetch fs http http1 mpackdb proc time web) replaced whole from hybriel master: mpackdb engine/.so, web README/WebFramework/client/compile changed, web/push.hl + web/server.hl new.
  21. - Gate (own cold cache, ports 8788/8789-8794): **480 passed / 0 failed**; both previously failing comments checks pass. Log atlas-evidence/C8/gate.log. repro-push.mjs: c2 → "Changed elsewhere: bob edited it in anot…", title "Edited 3 times" (repro-push.log).
  22. - lisbeth Chrome (flock, existing tab, server 8796, left at about:blank): md-keys real keys **390: 60/0, 1280: 60/0** (lis-keys390/1280.log); real click on /comments #elsewhere at 390 and 1280 (push-e2e.mjs, lis-push.log): c2 text redrawn "Changed elsewhere: bob edited it in another tab." + "Edited 3 times". Shots push-{390,1280}-{before,after}.png in atlas-evidence/C8/; looked at both after-shots: bob's comment shows the new Markdown (bold "elsewhere"), "edited" toggle, attachment row intact.
  23. - Own server + ssh tunnel stopped; ports empty. Deploy-ready: yes (not deployed/merged/pushed).

Branches

Latest commits

  • 134b4e3eMdEditor: an editor the framework puts into the page is built at once (page observer), a surface put in anew under a built editor is redrawn; gates for both (hybriel#211)mre
  • 0dce2899reports/K1-bubble.mdmre
  • 6b0936a0comments: 'edited' foldable also drops the theme's border, margin and radius (display: contents alone left them computed)mre
  • 8d79ff79comments bubble hugs its content: a readonly md-editor surface gets no inline min-height (it beat the stylesheet's min-height 0); 'edited' is a quiet label beside the time, versions unframed; gate checksmre
  • ef253fecreports/F4-icons.mdmre
  • ba96735ficons: README, md-editor README note, gate checks for the single focus ring and toolbar iconsmre
  • 96c97691icons: shared Icon component; md-editor toolbar and files-upload remove use it; no inner focus ring in md-editormre
  • 0d6863d6reports/F3-mdvalue.mdmre
  • d58ed98bMdEditor: an older text of the editor handed back is not an outside change (kept surface, written back); gate for itmre
  • c2d0de59MdEditor: show a value that changes from outside (data-value observer), demo button and gatemre
  • c4272fa3re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
  • 2e22618etests: cdp-blank/md-bg/md-keys-run Chrome range and base port from env (MDK_CHROME, MDK_PORT), defaults unchangedmre
  • a5d2384bre-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • 52902d23docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • 022b943fdeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • d17f8543mission 012: re-vendor Hybriel master f9614007 (plugins), fixes comments push redraw; gate 480/0mre
  • 5f95de05mission 012: re-vendor Hybriel ce6f2e0a (plugins), report: gate 478/2 on comments push redrawmre
  • 3794c591mission 011: report, LOG, STATUS, md-keys-run widths, cdp-blank helpermre
  • 77a93c16mission 011: gate hook for md-keys (480/0), flatten() runs one at a time (removeChild race), surface also built on first focus / pointer-down (background tab), md-bg test, README keysmre
  • 3c906718mission 011: md-editor key tests (real keys) and fixes: nested p/ul flatten, bare br, link change, Ctrl+E, code block exit (WIP)mre