gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita6ddccd2a6ddccd2re-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)mrea6ddccd2/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

  • a6ddccd2re-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
  • 81e036b7docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • 5d8d2cf6deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • 58e8c02cmission 024: report, LOG, STATUS, e2e fixmre
  • 50778073tests/e2e-route-marker.mjs: first paint marker, comments post/edit redrawmre
  • c5203298mission 024: MainMenu marks the page from the route (layouts 0bcc629 main-menu.hl); browser-side marker removed; gate: marker in the server HTMLmre
  • b1a4c270re-vendor Hybriel master f9614007: bin/ (git-ignored) and plugins wholemre
  • 866397a0mission 023: theme from layouts 76f99f6 (current marker, menu count badge), components from 3794c59 (MdEditor keys); Inbox count as badge, current by address; gates and E2E; reportmre
  • 7ed2e5e5deploy.sh: a gate without a 'passed,' line (check-theme) no longer ends the script silently (grep under pipefail), as gitoria/layoutsmre
  • bf9064a3mission 022: tickets on the layouts theme (step 1): shell, styles, gates, audit, E2E; reportmre
  • f3d61711mission 022 WIP: tickets on the layouts theme (dbe3de7): AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst shell, styles reduced to the app's own, check-theme in the gates, 390 audit + real-Chrome walk scriptmre
  • 31cabfccmission 021: E2E script, report, LOG, STATUSmre
  • 6aea8683editor look: .empty rule only for p.empty, files off where tickets has no upload, state note one line, events test scrolls the editor into view; synced md-editor (components d702d76+6f27ad3); gate 377/0, events 52/0mre
  • dce6ffa6Merge branch 'w28-deflake'mre
  • 536092a1tickets (mission 019): de-flake the m016 comment clicks (B: unliked) — calmClick waits until the button stops moving; test only, no app changemre
  • 9c5fd42amission 020: attachments E2E proof (lisbeth Chrome, real-data copy), reportmre
  • 1206404fREADME attachments, report 018, LOG/STATUSmre
  • 3d9e7f3ctests: m017 gate fixes (list count, waits before delete clicks); gate 373/0mre
  • dd41d5bcre-sync components 15be2ac; mission 018mre
  • 420ad1bbtickets (mission 017 WIP, tickets#27): comment attachments — lib/attachments.hl (storage/attachments, limits, type by content, members-only GET /api/attachments/:id, delete drops, edit keeps), multipart POST …/comments (lib/multipart.hl), Respond block in FilesUpload (blocks verbatim from components w27c 1f8d79d), gate m017 checks written (not yet run); report, LOG, STATUSmre