gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain4099e64aMerge branch 'font-segoe-ui' into mainAtlasmain/reports/007-display-bugs.md

6.5 KB

  1. # layouts mission 007 — display bugs found in a real Chrome (ticket #1 reopened)
  2. 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.
  3. ## Settings
  4. Cause: 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.
  5. Fix (both, in the showcase shell):
  6. - `/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.
  7. - `/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.
  8. 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.
  9. 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).
  10. ## Bug list (measured in the real Chrome, 27 pages × 2 widths + sidebar/search/user menu/dialog states = 138 audits before, 154 after)
  11. | # | page | width | what | cause | fixed |
  12. |---|---|---|---|---|---|
  13. | 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 |
  14. | 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/… |
  15. | 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) |
  16. | 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) |
  17. | 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 |
  18. 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.
  19. 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.
  20. 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.
  21. ## Gates
  22. - tests/browser.mjs: old 132/0 → new 244/0 (112 new checks: 3 link/Settings crawl checks + 2 widths × 19 pages × states display audit).
  23. - 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.
  24. - theme/check-theme.mjs: 0 problems (own gate check inside browser.mjs).
  25. - 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.
  26. ## Shots
  27. shots/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.
  28. ## Left / questions
  29. - 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.
  30. - Apps: re-copy theme/ (not done). The raw .md routes stay; remove them if he wants no raw files at all.
  31. - Hybriel gaps: none hit. (The README/doc reader uses hl:fs tryReadFile at render.)
  32. - Not deployed, not pushed.

Branches

Latest commits

  • 4099e64aMerge branch 'font-segoe-ui' into mainAtlas
  • e14fb795|||PR Theme font: Segoe UI first (his choice 2026-11-19)Atlas
  • 44071d2cMerge branch 'hl-standard-5' into mainAtlas
  • 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
  • 2752ceddMerge branch 'hl-standard-4' into mainAtlas
  • ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
  • 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
  • 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
  • ab54a39dMerge branch 'hl-standard' into mainAtlas
  • 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
  • 220c8fa4Merge branch 'readme-audit' into mainAtlas
  • b78fb85a|||PR README matches the codemre
  • 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
  • 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
  • b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
  • ebd00b6cNest caller slot styles in three-panemre
  • 009991efNest caller slot styles in list-firstmre