layouts
All repositories: gitoria
5.0 KB
# Report 002: layouts.worldapi.org re-copies the components, code rules applied**Where:** commits on main in loreana:/media/STORAGE/projects/layouts.worldapi.org (parent 80ce6ba). Not pushed, notdeployed. No `.env` read (copies exclude `.env*`). Only ports 8750–8759 used; every server and Chrome stopped by its PID(the tools kill their own child; the shots server by `kill <pid>`); 8750–8759 free at the end.## What changed| | before (80ce6ba) | after ||---|---|---|| component copies | 0994575 + 13 `let out` lines different ("verbatim" was not true) | **byte-verbatim 3f93d71** (17 files) || how they are copied | by hand | `tools/sync-components.sh [commit]` (from git, not the working tree) + `--check` || `.hl` files in the root | 2 (project.hl, styles.hl) | **1** (project.hl) || `let` never reassigned (`tests/letcount.py .`) | 240 (239 in the copies, 1 own) | **0** || project.hl | map, no functions | map, no functions (import + index line for components/styles.hl) |- **Copies:** the 8 `components/<name>/<name>.hl`, their READMEs and month-view/clock.hl (17 files; no demo.hl).`git diff -U0`: 238 changed lines, each is the old line with `let ` removed (one line had two); plus the md-editor READMEline that names components.hybriel's `lib/uploads.hl`. `components/SOURCE` = `3f93d71 2026-10-03 …`.- **`tools/sync-components.sh`:** `git show <commit>:components/<file>` for each file → writes `components/SOURCE` → runs`--check`. `--check` compares every copy with the commit in SOURCE. Tested: an appended byte in modal/README.md →`DIFFERS: components/modal/README.md`, exit 1; restored → `verbatim: 17 files`. `COMPONENTS_REPO` overrides the source.- **Own code:** `styles.hl` → `components/styles.hl` (git mv; paths `../theme/theme.hl`, `../shared/tokens.hl`),project.hl imports it from there; showcase/md-editor.hl `let urls = []` → `urls = []` (only `.push`ed).lib/ and the handlers were already thin (the `/search` route lambda only calls `searchRedirect`).- **Tools/docs:** tests/same-output.mjs (new for layouts: crawls the whole site), same-output-compare.py,same-output-modules.py, letcount.py (copied from components.hybriel 3f93d71); tools/shots.mjs takes`LAYOUTS_GATE_CHROME`; README ("Update the components", "Same output", other port range), STATUS, LOG,docs/using-the-theme.md (one note: an app's styles file is components/styles.hl under the code rules).## Tests| test | before | after ||---|---|---|| gate `LAYOUTS_GATE_PORT=8750 LAYOUTS_GATE_CHROME=8751-8759 node tests/browser.mjs` | 73/0 (code-only copy of 80ce6ba) | **73/0** (after the change and again after the docs) || `node theme/check-theme.mjs .` | 35 files, 0 problems | **35 files, 0 problems** || `tools/sync-components.sh --check` | — | verbatim: 17 files = 3f93d71 |**Same output** (`node tests/same-output.mjs <code-only copy> <out>`, server 8750, Chrome 8751–8759):- records 144 HTTP answers (crawled from / over every same-origin link: 34 pages, 8 READMEs, 11 docs, app.css, runtime,manifest, sw.js, every browser module, `/search?q=` redirect, 404s) + the hydrated DOM of all 34 pages at 1280 **and**390 + a file-upload drop + a md-editor drop (exercises the changed `mdUpload`: `/not-kept/2`, `/not-kept/70`) + console problems.- two runs of the old tree: **175/175** the same.- old vs new: **166/175 the same** — all pages, all 68 DOMs, app.css, uploads, docs, own modules. The 9 differences:the 8 component browser modules — with source positions masked, the only change is the declaration keyword,`var` → `const`, **239** times = the 239 dropped `let`s — and the md-editor README (the intended line).`same-output-modules.py`: every own module "same code, same imported functions".**Screenshots looked at** (390 + 1280, `.scratch/shots/` + `.scratch/gate-shots/`): md-editor, date-picker (field +open popup), file-upload, modal open, sidebar overlay at 390, three-pane mail at 1280 — same look as before, no frames onthemed components, the drop zone keeps its dashed border, no console errors.## Found1. **The old copies were not verbatim** (13 `let out` lines differed from 0994575; components.hybriel report 002 found it).Now a script writes them from git and `--check` proves it; README says never edit them by hand.2. tools/shots.mjs had Chrome ports fixed to 8761–8764 — now `LAYOUTS_GATE_CHROME` like the gate.3. Scratch slip on Byrodin (not in the repo): the worker's scratch download of README.md overwrote a stale copy of theantcolony README in the session scratchpad (`…/scratchpad/docs/README.md`); restored from/CONTAINERS/projects/antcolony/README.md.## Open- **Deploy** (conductor, `./deploy.sh`): rsync has no `--delete`, so the root `styles.hl` stays on Byrodin — unused, deleteit by hand after the deploy. No data change.- Optional: run `tools/sync-components.sh --check` in deploy.sh's gates (not done: deploy.sh not touched).- Scratch (gitignored) `.scratch/m002/`: `old/`, `new/` code-only trees; `out-old1`, `out-old2`, `out-new`;`gate-before.txt`, `gate-after.txt`, `gate-final.txt`, `compare.txt`.
Branches
Latest commits
- 31e40b8bMerge dm3-media: range handling in the layouts media routemre
- 856dcacbLayouts media route: read suffix ranges and ignore range lists and garbage, like the components route (the layouts copy still answered 416 for the last bytes)mre
- ad5056eaMerge dm3-sync: components re-sync to c2834ddmre
- 740e2abeRe-sync the components copy to c2834dd: media player fixes (state after a queue pick, cover-less audio, accessibility labels)mre
- 7fe103bbMerge mp-player: the media player showcase pagemre
- 7db43c4eMedia route: serve the showcase's media from committed files (storage/ is not in git)mre
- f77b7d12Media player: re-sync components from 1c41293 (replay / forward 10 icons, play button surface on audio and video)mre
- 40a9e69cMP: report, LOG linemre
- 5b5dbf0fMedia player: the component from components.hybriel dd003e5 (sync-components), the showcase page /components/media-player with a queue, its media files served with ranges (lib/media.hl), theme rules (the seek bar, the queue's current item, the radii), the page in the overview listsmre
- 9197159fTake components e54f83a: table lines and one-row desktop toolbar in the theme, Table button gates, a table in the md-editor demomre
- e6322a44UX: report and LOG linemre
- 58c2da6fUX: nav marker without bars; chat composer is one box (files-upload pick mode, showcase); comments state footer + closer reactions row; modal footer rule only for its own footer; gates for all of itmre
- 956f107async components.hybriel 4922f9c: 44 px targets in month-view, date-picker, range-picker, pagination, modal, comments; names follow <html lang> (English default), UTC weekday fix; gate: 390 px target checks, 'edited' hit-area padding; comments showcase 'You are' is a labelled group (SY)mre
- 49940371sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- 6f7bd392gate: the phone toolbar is two even rows (E2)mre
- 3049c082sync components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
- b9a3f85fLOG: MLmre
- 7979397creport ML-mobilemre
- 85d2ed25gate: wordingmre
- 98a311c0gate: 390 px checks for list rows, table word, edited tap target, code in titlesmre