gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit02aa74aa02aa74aasync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre02aa74aa/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

  • 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
  • 867a8375md-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
  • 5d8d2c67tests: wait for hydration before real clicks after a navigation (H2)mre
  • 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