gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitea2e440eea2e440esecurity audit (ST): JSON body cap, relation rights, login session rotation, __Host- Secure cookie, API security headers, CSP+referrer meta, /connect cap, one-line subjects, tests/security.mjs, reportmreea2e440e/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

  • ea2e440esecurity audit (ST): JSON body cap, relation rights, login session rotation, __Host- Secure cookie, API security headers, CSP+referrer meta, /connect cap, one-line subjects, tests/security.mjs, reportmre
  • 7c8c2282sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • b6277497report MT-mobile, LOGmre
  • 6709398blist paging: the newest rows come first (the sorted array was not used); filter rows hide their scrollbar; gate checks the ordermre
  • 31736a80gate: member-name check fails on the old row layout toomre
  • e03ae537gate: the phone checks run on without the Show more button (so old code reports every failed check)mre
  • adf7f132gate: 390 px checks for the mobile audit fixes (row number, filters, field widths, Edit, member names, relation taps, paging)mre
  • 28e9c938ticket list: draw the newest 50 rows and a Show more button (500 rows were a 2-4 s first paint, 740 KB, a 90 000 px phone page)mre
  • ccebb0c7mobile: ticket number stays on one line, filter chips one scrolling row, fields full width under their caption, Edit/action buttons, member names whole, 44 px relation linksmre
  • f2dc7741gate: the phone toolbar is two even rows (E2)mre
  • 20f7c33async components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
  • d74a5482sync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
  • 9d02c540sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre
  • 22751914sync components.hybriel 8d79ff7: bubble hugs its content, quiet 'edited' label; gate checksmre
  • c8452453sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
  • 52ba11e8sync-components: copy icons/icons.hl + README (F4); testsmre
  • 138d198dmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
  • 18d2df60md-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
  • f6764bedreports/H1-hydrate.mdmre
  • 1bbbf0edtests/browser.mjs: wait for hydration before clicking the login button on / (device B)mre