gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb9a3f85fb9a3f85fLOG: MLmreb9a3f85f/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

  • 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
  • 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