layouts
All repositories: gitoria
6.5 KB
# layouts mission 007 — display bugs found in a real Chrome (ticket #1 reopened)Worker P2, branch w7-display-bugs from 1875a05. Real browser = lisbeth's LLM test Chrome (CDP 9223 through ssh -L; app on loreana :8700 through ssh -R), ONE existing tab (48B12291…) navigated, no new tabs, no clipboard. Screenshots cannot be viewed by the worker, so bugs were found by MEASURING in the page (tests/display-audit.mjs) and the shots are saved for the creator.## SettingsCause: components/site-header.hl:16 `a { href = "/docs/using-the-theme.md" "Settings" }` — a raw Markdown file in the browser, no app around it. Worse: the crawl found the same disease in the whole Docs section: the 12 links of /docs (lib/site.hl docPages), the home page's "Use it in an app" button and 10 "README of the component" links (components/showcase/*.hl) + one link in the mock comments (lib/comments.hl:8) all opened raw .md files.Fix (both, in the showcase shell):- `/settings` (components/settings.hl): a real page in the showcase shell: the accent switcher (the one setting the showcase has) with its reason, and a link on to the user-menu doc. Header Settings → /settings.- `/read/:doc` (components/read.hl + lib/read.hl): docs and component READMEs read INSIDE the shell (header + sidebar, back link "‹ Docs"), drawn by the md editor's read-only face (same look as the comments block). Only files named in lib/site.hl (docPages / new readmePages) are read — no path comes from the address; relative links between docs are turned into /read/ links. Why this and not a bare settings page: the showcase has no settings of its own beyond the accent, and the docs are the content a visitor wants to read; the raw files stay routable at /docs/*.md and /components/*/README.md for tools and models, nothing links to them.Link crawl (59 distinct hrefs on 12 pages, each requested): before 22 raw .md links (+ 1 external: components.hybriel.worldapi.org, intentional); after 0 raw, all internal links 200 text/html. No 404s found.Real-browser E2E (tests/settings-e2e.mjs, real clicks, 390 + 1280): old → `/docs/using-the-theme.md`, content-type text/markdown, no header; new → `/settings`, h1 Settings, header present; first Docs link → `/read/using-the-theme`, header + sidebar present, rendered Markdown. Shots: shots/after/settings-click-{390,1280}.png, docs-click-{390,1280}.png (before: shots/before/same names show the raw text).## Bug list (measured in the real Chrome, 27 pages × 2 widths + sidebar/search/user menu/dialog states = 138 audits before, 154 after)| # | page | width | what | cause | fixed ||---|---|---|---|---|---|| 1 | header user menu (all pages) | 390+1280 | Settings opens a raw .md file, the app is left | components/site-header.hl:16 | yes → /settings || 2 | /docs (all 12 links), home button, 10 README links, mock comment link | 390+1280 | open raw .md, app left | lib/site.hl docPages, components/home.hl:31, components/showcase/*.hl, lib/comments.hl:8 | yes → /read/… || 3 | /elements | 390 | the CLOSED header search form floats in the middle of the page (235×58 at 77,393) and covers 10 controls (buttons, fields, summaries under it cannot be tapped: elementFromPoint at their centre returns the search input) | components/elements.hl:14 `elements-page form { display = 'grid' }` beat the browser's display:none of a closed popover (the header is inside elements-page); also its `input { width = 100% }` rule hit the header field | yes: rules scoped to `elements-page section …` (elements.hl:14-17) AND the theme now hides a closed search popover whatever a page says (theme/shell/app-header.hl `form.search:not(:popover-open) { display = 'none' }` + desktop media rule) || 4 | /shells/three-pane/m2 (Delete) | 390+1280 | red Delete text 4.13:1 on the surface strip (< 4.5) | theme/shell/three-pane.hl:32 menu background = surface; colorDanger on surface = 4.08–4.13 | yes: strip is the sunken background (≥ 5:1) || 5 | /read/* (new page, found by the walk) | 390 | back link 19 px high, doc table links 43 px | my first version; md-editor table links | yes before commit: read.hl a.back 44 px, theme/theme.hl `md-editor td a` min height layoutTap |Checked and clean (0 findings, both widths, all states): horizontal scroll, elements wider than the viewport, text cut off / spilling out of its box, overlapping siblings (header items etc.), controls hidden behind other elements (sidebar open, search open, user menu open, modal open: only the open popover's controls are tested), content under the sticky header, tap targets < 44 px, fields < 16 px.Not judged by the worker (needs eyes): colours/taste beyond the 4.5:1 text check, text over images/gradients (none), icon alignment. The PNGs are in shots/ — please look.Note: the shared theme changed (theme/shell/app-header.hl, theme/shell/three-pane.hl, theme/theme.hl) → apps need a re-copy of theme/ (a page rule like `form { display }` inside any app breaks the closed phone search in the same way). Apps untouched.## Gates- tests/browser.mjs: old 132/0 → new 244/0 (112 new checks: 3 link/Settings crawl checks + 2 widths × 19 pages × states display audit).- The new gate against the OLD code (1875a05 + new tests): 184 pass, 11 FAIL — the 3 link checks (raw .md link `/ -> /docs/using-the-theme.md`, internal link answering text/markdown, Settings not /settings), 3 display fails on /elements (stray popover + 13 covered controls), 4 on /shells/three-pane/m2 (contrast 4.13), and the run aborts at /read (no such page). So each bug class fails on the old code.- theme/check-theme.mjs: 0 problems (own gate check inside browser.mjs).- Tests added: tests/display-audit.mjs (in-page DISPLAY audit: hscroll, wide, clipped, spill, overlaps, covered, stray popovers, contrast, under header), tests/walk.mjs (walk all pages in an already running real Chrome), tests/settings-e2e.mjs.## Shotsshots/before/ (old code, port 8701, 139 files) and shots/after/ (new code, 155 files) in /media/STORAGE/claude-scratch/atlas/P2/shots/ — `<page>-<width>.png`, `-sidebar`, `-search`, `-user` states, modal-open-*, settings-click-*, docs-click-*; audit.json per run. I could not view them.## Left / questions- The creator said "a lot of display bugs": the measurable ones are above (the /elements phone one is the big one). If he saw something else (taste, alignment), the walk's PNGs are the place; tell me which page.- Apps: re-copy theme/ (not done). The raw .md routes stay; remove them if he wants no raw files at all.- Hybriel gaps: none hit. (The README/doc reader uses hl:fs tryReadFile at render.)- Not deployed, not pushed.
Branches
Latest commits
- 5b5dbf0fMedia player: the component from components.hybriel dd003e5 (sync-components), the showcase page /components/media-player with a queue, its media files served with ranges (lib/media.hl), theme rules (the seek bar, the queue's current item, the radii), the page in the overview listsmre
- 9197159fTake components e54f83a: table lines and one-row desktop toolbar in the theme, Table button gates, a table in the md-editor demomre
- e6322a44UX: report and LOG linemre
- 58c2da6fUX: nav marker without bars; chat composer is one box (files-upload pick mode, showcase); comments state footer + closer reactions row; modal footer rule only for its own footer; gates for all of itmre
- 956f107async components.hybriel 4922f9c: 44 px targets in month-view, date-picker, range-picker, pagination, modal, comments; names follow <html lang> (English default), UTC weekday fix; gate: 390 px target checks, 'edited' hit-area padding; comments showcase 'You are' is a labelled group (SY)mre
- 49940371sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- 6f7bd392gate: the phone toolbar is two even rows (E2)mre
- 3049c082sync components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
- b9a3f85fLOG: MLmre
- 7979397creport ML-mobilemre
- 85d2ed25gate: wordingmre
- 98a311c0gate: 390 px checks for list rows, table word, edited tap target, code in titlesmre
- 769b99d7theme: table cells keep a word whole, code in a title stays text-sized, 'edited' is a 44 px tap target on the phonemre
- c36b7595list rows (notes, mail) stack their parts full width: the date no longer a one-letter column beside the titlemre
- 02aa74aasync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
- 268b1c87sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre
- c51d039fsync components.hybriel 8d79ff7: bubble hugs its content, quiet 'edited' label; gate checksmre
- f4ad7eecsync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
- db258c11sync-components: copy icons/icons.hl + README (F4); testsmre
- badc1879md-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre