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