gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit097c52ba097c52baStyle the login error through its View idmre097c52ba/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

  • 097c52baStyle the login error through its View idmre
  • c6d9c86aOwn the not-found code rule in its componentmre
  • 055424c2Record W61 replacement theme gates, sidebar repro and baselinemre
  • 2ed09441Use layouts theme 17e0f03 for W61 compatibilitymre
  • b8609a91Merge branch 'main' into w61-stylemre
  • 4639caf7Report W61 theme startup blocker and day39 Style probemre
  • 81f0a0bbREADME: two caches were restored by 90b4f72; log W62mre
  • 4a3f557eImport layouts theme ebd00b6 for W61 (startup blocked)mre
  • ab12a257Merge W62: #25 commit page measurements and proc repromre
  • 41323e49gitoria#25: measure commit request costs and reproduce blocking process waitsmre
  • 53ca42b2log: W60 merged, W61 W62 startedmre
  • 80870a33mission W61: style passmre
  • 560fd208Merge W60: helpers, bound forms, login in topics, two form fixes (gitoria#28 #32 #33)mre
  • ac5ba6a4log: W60, #25 measuredmre
  • 220f6342W60: record corrected form proof, full AE and remaining gapsmre
  • 7e31cac5gitoria#28: restrict reply form layout to reply formsmre
  • ae373cfdgitoria#28: keep each reply draft in its thread componentmre
  • eeeebd5agitoria: insert a newly created organization oncemre
  • 34d2d5cagitoria: clear the bound public-key textarea after creationmre
  • 119e54c0W60: restore conductor-owned tracking filesmre