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
- 99db79f0re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- 30353f60tests: e2e-md-showcase Chrome range from LAYOUTS_GATE_CHROME_MD, default unchangedmre
- 16a7878cre-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
- 6af559e8docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 5599cf56deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- 0bcc6294Mission 011: e2e-197, brief, report, LOGmre
- 137303c5MainMenu marks the current page from the route (hybriel#197, server-rendered); current prop/item.current stay as fallback; tracker demo drops current; gate: SSR marker; docsmre
- 9325b403Re-vendor Hybriel to master 7f13a82f (hl:web batch 2: #190 #193 #197 #194 named regions); plugins whole, bin/hybriel static build (git-ignored)mre
- b31dc74dusage: calendar (theme 76f99f6-era ContentFirst, user menu, ☰ menu) and tracker (theme 76f99f6, modal + pagination current, own current marker until hybriel#197) rowsmre
- 8a3d5d40Mission 010: brief, report, LOG, STATUSmre
- a56abf1fSync components to components.hybriel 3794c59 (MdEditor real-key fixes); showcase real-key check on the md-editor pagemre
- 76f99f64E2E in lisbeth's Chrome for the menu's current page (mission 009): tests/e2e-menu-current.mjs, reportmre
- 159b1d53MainMenu/Sidebar: current page marked beyond colour, count badge, item current flag; gate 300/0 (mission 009)mre
- 0573eed3usage: notes + tickets on MdEditor (md-editor.js retired), gitoria on theme dbe3de7, tracker theme oldermre
- 78478f6eSync showcase to components.hybriel 1442e58: pick-mode page, comments attach, md-editor rows/files off; gates 285/0mre
- dbe3de79Display bugs from a real Chrome walk (mission 007): Settings page and in-shell doc reader instead of raw .md links, closed phone search hidden whatever a page says, /elements form rules scoped, three-pane danger contrast; display audit gate (132 -> 244 checks), walk + Settings e2e toolsmre
- 1875a051Theme: 44 px tap targets mobile first (layoutTap), 16 px fields, desktop denser only in @media 60rem; 390 px tap audit + gate checks (mission 006)mre
- 3d4f8e19Sync showcase to components.hybriel 9db927d: comments and files-upload pages, pagination onPage, md-editor readonly, gate 99 checksmre
- 64d635acmission brief 005mre
- 0d0fef25paths: projects moved into /media/STORAGE/projects/WorldAPI/mre