components
All repositories: gitoria
4.6 KB
# F4 — MdEditor look: one focus ring, real icons, shared Icon componentBranch `f4-icons` (components, rebased on main 0d6863d = F3). Apps: `f4-icons` in tickets, notes, layouts (synced byte-verbatim from components f4-icons).## Done1. **Focus**: `md-editor article:focus, article:focus-visible, textarea:focus, textarea:focus-visible { outline: none }` (specificity 0,2,2 / 0,2,2 beats the theme's `:focus-visible` 0,1,0 and `textarea:focus` 0,1,1, no !important). The outer `md-editor:focus-within` ring is the only one.2. **`components/icons/icons.hl`** (+ README): `Icon { name = "link" }` -> `<icon-svg><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d=…></svg>`, stroke currentColor, `size` default 1.25em. Names: bold italic code link heading ul ol block undo redo file close (drawings of the old hand-written editor for link/ul/ol/code/block/undo/redo; bold/italic/heading/file/close new, same style). md-editor (11 toolbar buttons) and files-upload (the ✕ remove button, 2 places) import it. comments has no SVG/glyph icon to replace (its ♥ is a text glyph, left alone).3. Toolbar: every button = icon, `title` + `aria-label` with the shortcut, 44 px targets at 390 px, ONE scrolling row. The heading button shows the level the caret is in as a small number next to the icon (`data-level`, replaces the old `textContent = 'H2'`).4. Synced into tickets, notes, layouts; `icons/icons.hl icons/README.md` added to each `tools/sync-components.sh` FILES.## Dedupe finding: YES, Hybriel includes an imported module once per appEvidence (components demo server, served page `/__hl/` seed + module URLs):- `/md-editor` (importer of icons: md-editor only) and `/comments` (importers: md-editor AND files-upload, plus comments->md-editor): the seed has exactly ONE blueprint key `components/icons/icons.hl` in both; the module is ONE URL `/components/icons/icons.hl?v=…` (6831 bytes) with its `shapes` table once. The page fetches it once (gate check "the page fetches the icons module once").- What is NOT free: every `Icon` instance is serialised into the SSR seed (~0.4 KB: name, shape, size). Page size (components demo, raw / gzip): /md-editor 27011/4490 -> 49305/5957, /comments 61865/9202 -> 90653/10806. A thread with many readonly comment editors carries 11 icons each (their nav is hidden by CSS but still rendered) — watch that on a very long thread; a lazy toolbar for readonly would need a View-level `if` (hybriel#41 recreates DOM) and is F3/md-editor territory, not done.No Hybriel gap found, nothing to report to Anton/Arachne.## Gates (ports 8820-8849)- components: 497 passed, 0 failed (main with F3 = 492; +5 F4 checks). On OLD code (main before F3 + the new test file): 482 passed, **3 failed** (surface outline `solid/2px`, textarea `solid/2px`, toolbar buttons without svg) — the checks can fail.- tickets: browser 388 passed 0 failed (386 before + 2 new in-theme checks: focused surface and source textarea have no outline under tickets' theme, 10 icon buttons), events 52/0, check-theme 46 files 0 problems.- notes: browser 69/0 (same), check-theme 22 files 0 problems (+1 file: icons.hl).- layouts: check-theme 44 files 0 problems, browser 310/0 (same).- Note (honest): my first tickets runs were started with an unsplit `$E` in zsh, so the gate ran on its DEFAULT ports (8352/8353, Chrome 8620+) instead of my slot, for ~2 min (all failed on the clash "origin not registered"); nothing of those is left running. All reported runs use bash with exported env on 8820-8849.## Real-browser E2E (lisbeth Chrome, under the lock, one tab, about:blank tab reused and returned to about:blank)Script `s/e2e-look.mjs`: real mouse click into the editor, `Input.insertText`, source switch, real click into the textarea; measures computed outlines, svg buttons, button size, rows; screenshots. Tickets copy of the newest backup (dark theme; tickets has no light theme), components demo (`/comments`, light base look).Measured (390 and 1280): OLD tickets: focused surface `solid/2px` (double ring), source textarea `solid/2px`, 0 icon buttons. NEW: surface `none`, textarea `none`, frame `solid/2px`, 10/10 svg buttons, 44x44 at 390 px, one row, page not wider than 390.Screenshots (/media/STORAGE/claude-scratch/atlas/F4/s/shots/): tickets-old-{390,1280}-{focus-typed,source-focus}.png, tickets-new-…, light-comments-old-…, light-comments-new-… (and .json measurements). Seen: old = text buttons "B I <> Link H • List 1. List" cut off and an inner rectangle inside the ring; new = one rounded ring, icon row scrolling sideways at 390 px, clean in dark and light.## Commitscomponents: 96c9769 (Icon + toolbar + focus), ba96735 (README, gate checks). Apps: see `git log f4-icons` (sync-components + sync commit per app).
Branches
- b27b
- mainmain branch
- vl27-resetkey
Latest commits
- a06fc778Reset virtual-list window when the host changes resetKeyAtlas
- 3aab598cRe-vendor complete Hybriel day73 set for virtual-list resetAtlas
- 337ca075MD1 gate check measures frames in the page, not milliseconds from outside, and takes the middle load (components#30)mre
- f5f131c5Record AP29 autoplay comparisons and passing gatesmre
- 51c38187Gate media autoplay on first load and after client mountmre
- a3f2223dRecord successful B44 deployment and live proofmre
- 06c1e021Record passing B44 browser rerunmre
- c9861533Record B44 component proof and browser gate blockermre
- 1b7413beIgnore detached media events and space demo option outputsmre
- ca3b4959Re-vendor complete Hybriel plugins and runtime to day44mre
- df9e7df9Last-item checks run in the browser gate (components#26 fixed on day41); media-player loop is a plain Booleanmre
- 895a5afcRe-vendor complete Hybriel plugins and runtime to day41mre
- 16006bb3Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
- 88397fc3Re-vendor complete Hybriel plugins and runtime to day39mre
- 9b872cedRecord IC28 deployment and live icon verificationmre
- 46fefaa7Count the icons entry in the offline home-page checkmre
- c7e14cabRecord IC28 rerun and unchanged-main baseline comparisonmre
- 5e090ffdRecord IC28 review evidence and gate resultsmre
- adfe2c4dAdd shuffle, repeat and repeatOne shared iconsmre
- c96709c8media-player: skip = false and repeat = 'one' options (jukebox#19)mre