gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf4ad7eecf4ad7eecsync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mref4ad7eec/README.md

5.9 KB

  1. # layouts.worldapi.org
  2. **The WorldAPI theme for Hybriel apps** and the showcase site that serves it. components.hybriel.worldapi.org delivers the
  3. components in a plain base; this theme is how WorldAPI makes them look for itself: palette + named roles, borderless
  4. plain elements, the components themed without forking them, three app shells with a header that works on a phone.
  5. Goal (creator): "when we have our set of basic components and their styles all we need to do in the future is patch them
  6. together and change the accent color". https://layouts.worldapi.org — replaces the Vidoriel workbench (retired 2026-10-03).
  7. ## For an app
  8. - **How to use it**: [docs/using-the-theme.md](docs/using-the-theme.md) — copy `theme/`, `inherit './theme/theme.hl'` in
  9. styles.hl, set `colorAccent` + `colorType1…6`, pick a shell, run `node theme/check-theme.mjs .` in the gate.
  10. - One doc per layout (purpose, parent/children, classes/states, phone/desktop, semantics, example, do-not-use):
  11. [theme](docs/layouts/theme.md) · [AppHeader](docs/layouts/app-header.md) · [MainMenu](docs/layouts/main-menu.md) ·
  12. [UserMenu](docs/layouts/user-menu.md) · [Sidebar](docs/layouts/app-sidebar.md) ·
  13. [ContentFirst](docs/layouts/content-first.md) · [ListFirst](docs/layouts/list-first.md) · [ThreePane](docs/layouts/three-pane.md)
  14. - Rules: [docs/design-rules.md](docs/design-rules.md) (borderless, no GitHub look, theme colours only),
  15. [docs/shells.md](docs/shells.md) (the three ground types, header flush), [docs/conventions.md](docs/conventions.md).
  16. ## Layout of this folder
  17. - `theme/` — **what apps copy**: `theme.hl` (styles file: tokens, plain elements, html-prefixed rules for the
  18. components.hybriel components), `shell/*.hl` (AppHeader, MainMenu, UserMenu, Sidebar, ContentFirst, ListFirst,
  19. ThreePane — each with its own Style; toggles are the browser's `popover`, no script), `check-theme.mjs` (gate helper).
  20. - `shared/tokens.hl` — verbatim copy of the WorldAPI tokens (same file as in every app).
  21. - The showcase: `project.hl` (the map), `components/styles.hl` (inherits the theme), `components/main.hl` (body + the accent the
  22. switcher kept), `components/site-header.hl` / `site-sidebar.hl` / `accent-switcher.hl`, pages `components/home.hl`,
  23. `elements.hl`, `search.hl`, `pages/*.hl` + `list-pages.hl`, `showcase/*.hl` (one per component), `demo/*.hl` (the
  24. shells as mock tracker / notes / mail); `lib/site.hl` menus, `lib/mock.hl` mock data, `lib/search.hl` the search redirect.
  25. - `components/<name>/` (month-view date-picker range-picker pagination md-editor code-editor file-upload files-upload comments modal) —
  26. **verbatim copies** of components.hybriel.worldapi.org (the commit is in `components/SOURCE`), never edited
  27. (`.check-theme-ignore` skips them). Only `tools/sync-components.sh` writes them (see "Update the components").
  28. - Code rules: antcolony docs/code-order.md (`let` only where reassigned, project.hl = map, no `.hl` in the root but
  29. project.hl). `python3 tests/letcount.py .` → 0 never reassigned.
  30. - `bin/hybriel` + `plugins/` (core crypto data fetch fs http http1 mpackdb proc time web) = the shared static Hybriel build **0f396652**
  31. (2026-10-19; `bin/hybriel` statically linked, sha256 `60fa02f3…c5a39080`; from /media/STORAGE/claude-scratch/vendor-0f396652, its README.txt
  32. has the build line). bin/ is git-ignored (deployed by rsync). No local patch.
  33. ## Run, test, deploy
  34. - Dev (Loreana): `LAYOUTS_PORT=8760 ./bin/hybriel project.hl` → http://127.0.0.1:8760 (`LAYOUTS_WATCH=0` no watcher,
  35. `HL_HOST`). Worker ports 8760–8769, 8765/8766 are foreign.
  36. - Gate: `node tests/browser.mjs` (server 8760, Chrome 8761–8764; `LAYOUTS_GATE_PORT`, `LAYOUTS_GATE_CHROME`) — 285 checks,
  37. 390 + 1280 px, screenshots in `.scratch/gate-shots/` (LOOK at them). `node theme/check-theme.mjs .` — 0 problems.
  38. Corner radii: the gate reads the computed radius of EVERY element on all 23 pages (only 0 / 5px / 10px / 50% pass) and
  39. feeds check-theme a fixture with good and bad radii (hl + css).
  40. - Look at pages: `node tools/shots.mjs [/path …]` with the server running (`WIDTHS=390,1280 FULL=1`, Chrome ports
  41. `LAYOUTS_GATE_CHROME`) → `.scratch/shots/`.
  42. - Other port range (e.g. antcolony workers on 8750–8759): `LAYOUTS_PORT=8750` / `LAYOUTS_GATE_PORT=8750
  43. LAYOUTS_GATE_CHROME=8751-8759` for server, gate and shots.
  44. - **Update the components** (after a commit in components.hybriel): `tools/sync-components.sh [commit]` (default its
  45. HEAD) copies the 21 files (10 × `<name>.hl` + README, month-view/clock.hl) out of git byte-verbatim, writes
  46. `components/SOURCE`, then checks. `tools/sync-components.sh --check` = are the copies still that commit (exit 1 +
  47. the file names if not). Then gate + check-theme + same output, commit.
  48. - **Same output** (cleanups, re-copies): on CODE-ONLY copies, server 8750 + Chrome 8751–8759:
  49. ```bash
  50. rsync -a --exclude .scratch --exclude storage --exclude .sessions --exclude .git --exclude '.env*' --exclude missions ./ .scratch/x-new/ # old tree: same from git archive / a copy made before
  51. node tests/same-output.mjs .scratch/x-old .scratch/out-old; node tests/same-output.mjs .scratch/x-new .scratch/out-new
  52. python3 tests/same-output-compare.py .scratch/out-old .scratch/out-new -v # every answer (crawled), DOM of 34 pages × 390/1280, file-upload + md-editor drop
  53. python3 tests/same-output-modules.py .scratch/out-old .scratch/out-new # browser modules: same code + imported functions
  54. ```
  55. Masks `?v=` hashes and source positions. Two runs of one tree compare clean (175/175). A dropped `let` turns
  56. `var` into `const` in the browser module, nothing else.
  57. - `./deploy.sh` on Loreana (conductor): gates → backup → rsync → `docker compose up -d --build` on Byrodin
  58. (127.0.0.1:45009, container `layouts.worldapi.org`) → URL 200. First deploy needs the conductor steps in STATUS.md.
  59. ## History
  60. `LOG.md` (dated lines), `reports/NNN-*.md` (worker reports). The Vidoriel workbench's docs (ssr.md) stay in the old
  61. Byrodin folder until it is retired.

Branches

Latest commits

  • 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
  • 137303c5MainMenu marks the current page from the route (hybriel#197, server-rendered); current prop/item.current stay as fallback; tracker demo drops current; gate: SSR marker; docsmre
  • 9325b403Re-vendor Hybriel to master 7f13a82f (hl:web batch 2: #190 #193 #197 #194 named regions); plugins whole, bin/hybriel static build (git-ignored)mre
  • b31dc74dusage: calendar (theme 76f99f6-era ContentFirst, user menu, ☰ menu) and tracker (theme 76f99f6, modal + pagination current, own current marker until hybriel#197) rowsmre
  • 8a3d5d40Mission 010: brief, report, LOG, STATUSmre
  • a56abf1fSync components to components.hybriel 3794c59 (MdEditor real-key fixes); showcase real-key check on the md-editor pagemre
  • 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