layouts
All repositories: gitoria
5.2 KB
# Mission 008 — showcase synced to components.hybriel 1442e58 (worker S2, branch w8-sync-components from dbe3de7)## What changed- `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.- **Pages (Hybriel, no JS):**- 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`.- `/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`.- `/components/md-editor`: new section "One row, no File button" (`rows = 1 files = "off"`).- 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.- `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`.- 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.- docs/usage.md: layouts carries components 1442e58. README gate count 285.## Gates (default ports 8760+ are outside my slot: run with LAYOUTS_GATE_PORT=8720 LAYOUTS_GATE_CHROME=8721-8724)| gate | before | after ||---|---|---|| tests/browser.mjs | 244 / 0 | **285 / 0** (incl. 390/1280 display audit, new page: 0 issues) || theme/check-theme.mjs | 0 problems | 0 problems (43 files) || sync-components --check | ok 9db927d | ok 1442e58 || letcount | 0 | 0 |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.**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.## Real browser (lisbeth Chrome 9223, one existing tab, reverse forward 8711/8712, no clipboard)`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).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.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.## Hybriel gapsNone hit. Not run: tests/same-output. Not deployed, not pushed.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
- e5571680Align all plugin sources with Hybriel day38bmre
- 5d204c46Re-vendor layouts to Hybriel set day38bmre
- 17e0f03eNest html-prefixed theme component overridesmre
- e54e735eFormat plain theme elements with nested rules and bare mediamre
- 547f834eRecord LY7 deployment and live verificationmre
- fa4600b1Link caller-slot style exceptions to hybriel#270mre
- 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
- b810453etracker-demo: nest child and compound selectors in Stylemre
- 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
- ab22bdc2mail-demo: nest child and compound selectors in Stylemre
- fe2d8de9home: nest child and compound selectors in Stylemre
- e631791buser-menu: nest child and compound selectors in Stylemre
- 69604944three-pane: nest child and compound selectors in Stylemre
- 3e389b83main-menu: nest child and compound selectors in Stylemre
- 05413975list-first: nest child and compound selectors in Stylemre
- c545b642content-first: nest child and compound selectors in Stylemre
- eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
- 69c9f784Record LY7 slot nesting blocker and minimal repromre
- b1d4f379app-header: nest child and compound selectors in Stylemre
- 6385ff8eRecord LY7 style formatting proof and review statusmre