gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/reports/021-mdeditor-look.md

4.6 KB

  1. # Report 021 — Markdown editor look (worker Q2) — branch w29-mdeditor-look, NOT deployed, NOT pushed
  2. Why it changed: the Hybriel MdEditor replaced the hand-written one (mission 016); four things were wrong that are not "the new look" but bugs. Fixed 1–4 (the optional colour / border / heading parity NOT done).
  3. | # | fix | before → after (E2E, lisbeth's Chrome, copy of backup 20261020-2034, ticket hycon/40) |
  4. |---|---|---|
  5. | 1 | styles.hl `.empty` → `p.empty` (all 10 uses are `<p class="empty">`) and the block's own state class renamed `empty` → `md-empty` (components d702d76; two reasons: no host rule can hit it again, and the block no longer depends on the host's naming) | empty editor: `1px dashed`, padding 16 px, placeholder 16 px left of the caret (182.3 / 198.3 at 1280), +34 px jump… → border 0, padding 0, placeholder = text (181.3 / 181.3), **jump on first letter 0 px** (was −34 px). All 5 fields. |
  6. | 2 | `files = "off"` on the 4 tickets fields (new ticket, state note, edit summary, settings). Cleaner than a block switch: the block already has `files` (mission 009); only the host knows whether it has an `mdUpload` face; hiding in CSS from the host would be a selector hack. | File button visible in 4 of 5 fields (comment already off) → **in none**; 10 buttons instead of 11 |
  7. | 3 | block: surface `min-height = rows × 1.5 em` (style from a root String), source view likewise; README `rows`; tickets state note `rows = 2 → 1`; comments block form `rows 4 → 3` (form only, bubbles untouched; components d702d76) | article height (px): state note 128 → **43.2** (old original 37.6); comment 128 → **72** (old 80.8); new-ticket summary (rows 4) 128 → **96** (old 102); settings (rows 6) 128 → **144** (old 145.6); Edit summary (rows 8) 128 → 192 min (grows with text). Whole host at 1280: note 241 → 122, comment 241 → 151. |
  8. | 4 | block: at ≤ 40 rem the toolbar is ONE row that scrolls sideways (`flex-wrap: nowrap; overflow-x: auto`), buttons min 44 × 44; `contain: inline-size` on it so the long row never widens a grid parent (the first version made `m017 390px: no horizontal overflow` red — found by the gate, fixed in 6f27ad3). 10 buttons × 44 px cannot fit 358 px, hence the scroll, not icons. | 390: toolbar 2 rows / 78.4 px / smallest target 32 px → **1 row / 55.2 px / ≥ 44 px**; docW 390 (no sideways scroll). 1280 unchanged (1 row 42.8 px). |
  9. Gates: components browser **357/0 → 360/0** (3 new `m010:` checks, all 3 FAIL on the old block: class `empty`, article 128 px ≠ 144, toolbar 2 rows). tickets browser **373/0 → 377/0** (4 new `m021:` checks, all 4 FAIL on dce6ffa: border `1px dashed`/pad 16, File visible, art 128, 2 rows/tap 32); events **52/0** old and new. Events test needed one test-side change: it clicked the editor centre without scrolling, and with the shorter layout that point lies below the 813 px viewport (clicked nothing) — `scrollIntoView` added (a human scrolls); passes old and new.
  10. E2E: tests/e2e-editor-look.mjs (real mouse click into the editor, real `Input.insertText`, nothing submitted), old server :8732 (dce6ffa) / new :8733, each on its own extracted copy of tickets.worldapi.org-20261020-2034.tgz, session made in the copy (tests/e2e-start-app.sh), reverse ssh -R forwards, ONE existing tab (about:blank, put back to about:blank), CDP via the already-present 9223 tunnel (another worker's; I did not touch it). Raw numbers for every field/width, empty and after typing: not kept in git (copy: /media/STORAGE/claude-scratch/atlas/Q2/e2e-old.json, e2e-new.json). 390 / 1280 table: host height empty (old → new) new ticket 276.8 → 187.5 / 241.2 → 175.2; comment 276.8 → 163.5 / 241.2 → 151.2; note 276.8 → 134.7 / 241.2 → 122.3; settings 276.8 → 235.5 / 241.2 → 223.2; edit summary (real 8 rows of text) 242.8 → 851.5 at 390 (old measured empty-looking 128 box: the old run had the editor before its text rendered — compare with FINDINGS: 792→899 there) / 207 → 271 at 1280.
  11. Shots (36 PNGs, I cannot view them — numbers count): /media/STORAGE/claude-scratch/atlas/Q2/shots/{old,new}-{390,1280}-{newticket,comment,statenote,editsummary,settings}-{empty,typed}.png (editsummary has only -empty).
  12. Not done: text colour 245/250/255 vs 195/200/205, 14.4 vs 16 px root font, 1 px frame, heading sizes (optional in the brief; FINDINGS 4/6). Edit summary at 390 is still ~60 px taller than the old one (font 16 vs 14.4, p margins).
  13. Cleanup: servers and the -R tunnel killed by PID, data copies and old worktree removed; ss shows nothing of mine (8731 is foreign).
  14. Commits (branch w29-mdeditor-look): see git log; components worktree branch w10-mdeditor-look d702d76, 6f27ad3.

Branches

Latest commits

  • 5d144817Merge branch 'records-t40' into mainTickets
  • 44ee6f06|||PR records: #43 #45 livemre
  • b8fdeee9Merge branch 'p39-routes' into mainTickets
  • a0187a0a|||PR Remove redundant route-order loopmre
  • 369e4b9cMerge branch 'k40-lists' into mainTickets
  • 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
  • 610d8e8aMerge branch 'records-t39' into mainTickets
  • 32bcdf24|||PR records: GO P39 K40mre
  • 4123c6d1Merge branch 'records-t38' into mainTickets
  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre