gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit76f99f6476f99f64E2E in lisbeth's Chrome for the menu's current page (mission 009): tests/e2e-menu-current.mjs, reportmre76f99f64/reports/008-sync-components-1442e58.md

5.2 KB

  1. # Mission 008 — showcase synced to components.hybriel 1442e58 (worker S2, branch w8-sync-components from dbe3de7)
  2. ## What changed
  3. - `tools/sync-components.sh 1442e58`: 21 files copied byte-verbatim (`--check`: "verbatim: 21 files = components.hybriel 1442e58"). Changed copies: comments, files-upload, md-editor (+ READMEs), `components/SOURCE`. No copy edited.
  4. - **Pages (Hybriel, no JS):**
  5. - NEW `/components/files-upload-pick` (`components/showcase/files-upload-pick.hl`, helper `lib/pick.hl`): pick mode, chat form in the slot, `files = attached`, `onChange = picked`; choose, paste, thumbnails, ✕, 2 MB `maxSize`; Send shows the text + file names and empties the list; nothing leaves the browser. A page of its own because one FilesUpload per page (the upload-at-once page keeps its own). Route in `project.hl`, entry in `lib/site.hl`, page-root display rule in `components/styles.hl`.
  6. - `/components/comments`: `attach = "true" maxFileSize = 2 MB`; `posted(text, files)` stores names/sizes only (`shownFiles` in `lib/comments.hl`, no url → plain row, nothing stored); mock comment c3 carries a file row; `withEdit` / `withLike` keep `files`.
  7. - `/components/md-editor`: new section "One row, no File button" (`rows = 1 files = "off"`).
  8. - Theme (`theme/theme.hl`): radii for `pick-area` (large), `label.camera`, thumbs / kind badge / ✕ (small) — the component's own .5/.35/.5rem failed the 5/10 px rule.
  9. - `md-empty`: grep over theme/, components/styles.hl, lib/, tests/: no layouts style or test uses `md-empty` or the old editor class `empty` (`p.empty` in theme.hl is a paragraph class, not the editor's; `p.who:empty` is the pseudo-class). Nothing to change; the new gate check asserts the editor has `md-empty`, not `empty`.
  10. - Display audit: `md-editor nav` (the one-row phone toolbar, `overflow-x:auto` by design) added to the audit's scroll-area exemption — its buttons lie past 390 inside the scroller. Page `/components/files-upload-pick` added to the audit list.
  11. - docs/usage.md: layouts carries components 1442e58. README gate count 285.
  12. ## Gates (default ports 8760+ are outside my slot: run with LAYOUTS_GATE_PORT=8720 LAYOUTS_GATE_CHROME=8721-8724)
  13. | gate | before | after |
  14. |---|---|---|
  15. | tests/browser.mjs | 244 / 0 | **285 / 0** (incl. 390/1280 display audit, new page: 0 issues) |
  16. | theme/check-theme.mjs | 0 problems | 0 problems (43 files) |
  17. | sync-components --check | ok 9db927d | ok 1442e58 |
  18. | letcount | 0 | 0 |
  19. New checks (×2 widths unless said): pick: choose picture + pdf → 2 rows, thumbnail (img.thumb), PDF kind; paste into text field → 3rd row; oversize → "Too big" refused row; ✕ on refused and on a row; ✕ ≥ 44 × 44; Send → text + "2 files: pic.png, pasted.png", list and field emptied; no sideways scroll. Comments: form inside pick area, File button hidden; c3 shows a plain file row (span, no link); 2 chosen + 1 pasted into the editor → 3 waiting; Ctrl+Enter posts → told "post with 3 files", new comment lists 3 file rows, waiting cleared. md-editor: rows=1 surface < 3 lines with min-height 24px, File button hidden, `md-empty` and not `empty`; default editor keeps File and six rows; one-row toolbar is one row at 390.
  20. **They fail on the old copy:** with the old components (9db927d) in the new tree the app does not start ("TheComments has no member 'attach'"; gate: "server did not come up", 3 passed / 1 failed); on live dbe3de7 `/components/files-upload-pick` is 404 (before shots). Three intermediate runs of mine failed (15/279, 2/279 → tests wrong: my first selector hit the md-editor's hidden file input instead of the FilesUpload's; thresholds; audit exemption) — fixed in tests/theme, not product bugs.
  21. ## Real browser (lisbeth Chrome 9223, one existing tab, reverse forward 8711/8712, no clipboard)
  22. `tests/e2e-lisbeth.mjs`: real mouse clicks and key events, `DOM.setFileInputFiles` (files in lisbeth:/tmp/atlas-S2-e2e, deleted afterwards), a synthetic `paste` event with a File (`DataTransfer`), at 390 and 1280: **24 ok / 0 FAIL** on the new tree (8711); the same walk on live dbe3de7 (8712) was only used for the before shots (pick page 404).
  23. Caught by this run: a **background tab** (visibilityState hidden) never builds the editors (all `md-editor` empty, `md-empty` missing) — a first run showed 4 false FAILs; `Page.bringToFront` fixed it. Not a product bug as far as seen, but worth knowing for anyone driving that shared Chrome. The tab was shared with other workers (the about:blank tab I took first was navigated by someone else): I used the stale layouts tab left on 127.0.0.1:8700 (no listener), navigated it, left it at about:blank.
  24. Shots: /media/STORAGE/claude-scratch/atlas/S2/shots/ — `before-{390,1280}-{pick,comments,mdeditor}.png`; `after-{390,1280}-pick-{1-empty,2-three,3-typed,4-sent}.png`, `after-*-comments-{1-attached,2-posted}.png`, `after-*-mdeditor-1-typed.png`. Gate headless shots: wt/.scratch/gate-shots/ (pick-*, comments-*, mdeditor-*). **I cannot view PNGs; I did not look at any.** All claims are DOM / computed style / event results.
  25. ## Hybriel gaps
  26. None hit. Not run: tests/same-output. Not deployed, not pushed.
  27. Cleanup: my servers (8711, 8712), both ssh tunnels (-L 9223, -R 8711/8712), gate servers and Chromes ended; `ss` shows nothing of mine; the scratch copies oldtree/old-live deleted.

Branches

Latest commits

  • 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
  • 2dbe0df5Re-vendor Hybriel to the shared static build 0f396652 (plugins; bin/ is git-ignored), compose cache volume + tmpfs /tmp, gate wait 120 s, report 004mre
  • 0adc551emission brief 004mre
  • 1376e905deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
  • c0fdbf6cdocker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
  • ecf70665usage: layouts on components a567b57mre
  • 315731efcomponents re-synced to components.hybriel a567b57 (md-editor tables)mre
  • b59e2ee9docs/usage.md + tools/usage.sh: which app carries which component/theme/tokens copy, and whether it matches the sourcemre
  • 0222f67ctheme: two corner radii only (radiusSmall 5px, radiusLarge 10px); check-theme flags any other radius; gate 76/0mre
  • 877b63acdesign rules: two radii only (5px small, 10px large)mre
  • 635234dfcomponents re-synced to components.hybriel 5a98d77 (#15 black/white base look); gate 73/0, check-theme 0, screenshots unchangedmre
  • 876b2064docs: workaround note for hybriel#130 (slot marker mid-line)mre