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
Latest commits
- 8d2fb24ccomponents: a standby container (port 45016, profile standby); deploy hands over through standby-swap.sh without a gapmre
- c2834dd3Merge mr-fixes: media player state after a queue pick, Range handling, cover-less audio, accessibility labelsmre
- 354fe3c6Media player: audio without a cover starts and shows its time (the mount tick sits on the seek bar, which every item has); the speed button names the current speed, the seek slider says its time in words; a gate page for the first render on cover-less audio and a fourth demo queue item without a covermre
- ee4aee1eMedia player: a new queue item shows its own speed, mute, play state and time and starts when asked, also for two videos in a row; the media route reads suffix ranges and ignores range lists and garbage instead of answering 500; stronger gate checks (the 10 percent drag, the played bar, the queue tap)mre
- 9a4f9b31Merge mp-player: media served from the committed filesmre
- ab96e686Media route: serve the demo's media from the committed files in components/media-player (storage/ is not in git, the deploy gate found no files)mre
- b2980734Merge mp-player: the media player (components/media-player), its demo and the media iconsmre
- 1c41293eMediaPlayer: back / forward 10 s as replay / forward 10 icons (circular arrow with a 10), the play button keeps its surface background on audio and video, the media route's range end is a letmre
- 9e1ab228MP: report, LOG line, STATUS entrymre
- dd003e5dMediaPlayer: audio and video in one phone-first player (components/media-player), its demo /media-player with a queue, the media icons in components/icons, the demo's media files served with ranges (lib/media.hl), 35 gate checksmre
- e54f83adMdEditor: text typed before the editor is built is kept (the build takes it in once, the input handler no longer writes it to the field first), tickets#35mre
- 8c920932gate: the 11 old drop-zone checks now test the one-box pick mode (drop anywhere in the box, Choose files button inside it, no drop zone)mre
- 626de199MdEditor: copy and cut put the selection's Markdown on the clipboard, a clipboard with HTML only pastes its text, gate checks for copy, cut and paste (components#20)mre
- 5228126dUX: components synced from the tickets/layouts UX mission (comments: State select in the footer and button words; files-upload: one-box pick mode; modal: footer rule for its own footer). WIP: the gate's #18 pick-mode checks still expect the old drop zone (11 fail), see the UX2 reportmre
- 0a9216fbMdEditor: a Table button in the toolbar, a typed pipe row fills the cells, tables take the page theme's look; gate checks updated for 12 toolbar buttonsmre
- f9d405c8comments: reactions row half as far from its comment (creator 2026-10-24: 'half this distance please'); the 44 px tap targets staymre
- 4922f9cfsessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- 0355975areports/MC-mobile.md, LOG, STATUS (MC)mre
- 3f0a7229Month view, date picker, range picker: names follow the page language (English by default, not the browser's), weekday/month names formatted in UTC (a UTC+12 zone showed Tue first), 44 px day cells and buttons, Send row air; gate checks at 390 px for every page, popup and dialog (MC)mre
- 29eb07eaPhone: 44 px targets on the site (brand, home links, buttons), comments, modal and pagination; the header is the brand alone on a phone; comments demo: labelled 'You are' group with the chosen user pressed (MC)mre