gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainfe209ffeMerge branch 'w56-owner-members' into mainGitoriamain/reports/B1-blocks.md

3.3 KB

  1. # B1 — compact Markdown blocks (gitoria, README tab data)
  2. Branch `b1-blocks` (from main cd99d2f). Change: `lib/markdown.hl` only; the view `components/markdown.hl` is untouched.
  3. * Block = one flag naming its kind (`isP`/`isH1`/`isH2`/`isH3`/`isUl`/`isOl`/`isCode`/`isQuote`/`isTable`/`isHr` = true) plus only the fields that kind has
  4. (`spans`; `items` (+`start` for ol); `code`; `head`+`rows`). Was: 10 booleans + `spans items start code head rows` on EVERY block.
  5. * Span = `{ text, isText|isStrong|isEm|isStrongEm|isCode|isLink = true }` (+`href` for links only). Was: text + 6 booleans + href on every span (the bulk of the 607 KB).
  6. * NOT a literal `kind` string: a View `if` takes a member/field path, not a comparison ("hl:web: a View `if` takes a member, a field path … this one is an expression" — tried, the app does not boot). So the kind is the (single) present true field, the rest omitted. A `kind` string would need hl:web to allow `if (b.kind == 'p')` in a View (gap for Arachne, not worked around with JS).
  7. ## Proof 1 — rendered HTML byte-identical
  8. Newest backup (gitoria.worldapi.org-20261022-2202.tgz) extracted to a COPY (two copies: old and new server), 14 repos' homepages fetched as server-rendered HTML
  9. (Host: <repo>.localhost), seed script and `?v=` hashes and ports normalised: all 14 `cmp` identical (9 real READMEs: tracker 1655 lines, antcolony 1294, tickets 945, ident 744, routger, gitoria, notes, calendar, components; 3 without README).
  10. `termuplex` got the 2 005-line "longdoc" README (G2's generator); `email` got an edge README (h1–h5, empty `#`, strong/em/both, code, links incl. a refused `javascript:`, bare and `<…>` URLs, quote, hr, ul/ol with start 3, `1)`, wrapped item, table with inline spans, fenced js, tilde fence, unclosed fence): identical too.
  11. Client-rendered DOM (after the Code→Readme click in Chrome): `#homepage` innerHTML sha256 c5b6dfd2785a64a2 (640 282 chars), identical old/new, at 1280 and 390.
  12. Method sensitivity: the first compare run flagged differences from ports alone (cmp fails on any byte); tools: s/snap.sh.
  13. ## Proof 2 — value size and click→text, longdoc, headless real Chrome (/opt/google/chrome/chrome; lisbeth's Chrome on :9223 did not answer), 5 runs, G2's stopwatch (pointerdown → h2 in DOM + 2 rAF)
  14. * Page values (`hl-seed` text): **675 229 → 221 941 chars (−67 %)**. The Code→Readme click ships one websocket frame: **675 265 → 221 977 chars**. Full page HTML (longdoc) 1 319 761 → 866 473; tracker 1 465 979 → 1 071 925 bytes.
  15. * click→text ms (runs; median): 1280 old 2712 2639 2565 2348 2195 (2565) | new 2739 2953 2677 2640 2557 (2677). 390 old 2622 2629 3227 3125 2937 (2937) | new 2440 2592 2399 2736 2916 (2592). Long tasks ~500–800 ms both.
  16. * Honest reading: **no measurable click→text gain** (differences are inside the machine noise); the time is the client building ~2 600 elements (hl:web, Arachne's W85), not parse/copy of the values. The win is 3x smaller values/frames/page HTML and less server serialisation.
  17. ## Proof 3 — gates (deploy.sh GATES, my ports 8720–8723, Chrome 8710–8719, Firefox 8729)
  18. old (cd99d2f): theme check rc 0; browser.mjs **232 passed, 0 failed**. new: theme rc 0; browser.mjs **232 passed, 0 failed**. (One earlier new run had 1 FAIL "chain: Back button" while a stray worktree sat inside my tree and the theme check scanned it; rerun clean: 0 failed.)

Branches

Latest commits

  • fe209ffeMerge branch 'w56-owner-members' into mainGitoria
  • fa0754c8|||PR repository owner transfer and members API (#55)mre
  • 8862e537Merge branch 'w55-rename-org' into mainGitoria
  • 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
  • 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
  • 499f25f2Review fixes for the Settings organization move (#53)mre
  • ed3b922b|||PR move a repository into an organization in Settings (#53)mre
  • 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
  • 9f7ce8d8Preserve rename compatibility and live page titlesmre
  • c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
  • ce08920dMerge branch 'w52c-header-phone' into mainGitoria
  • 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
  • e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
  • c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
  • 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
  • 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
  • 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
  • 155861f6Merge branch 'w52-person-approval' into mainGitoria
  • b5435de8|||PR person approvals: second Kunibert round (#52)mre
  • 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre