gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit44071d2c44071d2cMerge branch 'hl-standard-5' into mainAtlas44071d2c/README.md

6.4 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, `lib/media.hl` serves the media player files, `lib/read.hl` the docs read inside the shell, `lib/comments.hl` and `lib/pick.hl` the data of the comments and files-upload pick showcases; also `components/read.hl` and `settings.hl`.
  25. - `components/<name>/` (month-view date-picker range-picker pagination md-editor icons code-editor file-upload modal comments files-upload media-player) —
  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: hybriel docs/HL-STANDARD.md (replaces antcolony docs/code-order.md: `let` only where reassigned, project.hl = map,
  29. no `.hl` in the root but project.hl). `python3 tests/letcount.py .` → 0 never reassigned in our own files (the 20 in the
  30. verbatim `components/md-editor/` copy are not ours).
  31. - `bin/` = Hybriel set day44 bin/ + lib/ (SOURCE `222edef7cf3b0960825d005812f7c51b81cda20a`, binary SHA-256 `4f0f263ee2700cb74653172b6c490400db073adc6da92c3efff9e64439ac88dd`).
  32. Every plugin directory comes from git archive `222edef7`, with its .so files from the checked set.
  33. SHA256SUMS verified for B44B; 107 plugin files compared, 0 differ. bin/ is git-ignored and deployed by rsync.
  34. ## Run, test, deploy
  35. - Dev (Loreana): `LAYOUTS_PORT=8760 ./bin/hybriel project.hl` → http://127.0.0.1:8760 (`LAYOUTS_WATCH=0` no watcher,
  36. `HL_HOST`). Worker ports 8760–8769, 8765/8766 are foreign.
  37. - Gate: `node tests/browser.mjs` (server 8760, Chrome 8761–8764; `LAYOUTS_GATE_PORT`, `LAYOUTS_GATE_CHROME`) — 361 checks (incl. the F5/F21 keyboard + history block),
  38. 390 + 1280 px, screenshots in `.scratch/gate-shots/` (LOOK at them). `node theme/check-theme.mjs .` — 0 problems.
  39. Corner radii: the gate reads the computed radius of EVERY element on all 24 pages (only 0 / 5px / 10px / 50% pass) and
  40. feeds check-theme a fixture with good and bad radii (hl + css).
  41. - Look at pages: `node tools/shots.mjs [/path …]` with the server running (`WIDTHS=390,1280 FULL=1`, Chrome ports
  42. `LAYOUTS_GATE_CHROME`) → `.scratch/shots/`.
  43. - Other port range (e.g. antcolony workers on 8750–8759): `LAYOUTS_PORT=8750` / `LAYOUTS_GATE_PORT=8750
  44. LAYOUTS_GATE_CHROME=8751-8759` for server, gate and shots.
  45. - **Update the components** (after a commit in components.hybriel): `tools/sync-components.sh [commit]` (default its
  46. HEAD) copies the 25 files of the 12 components (`<name>.hl` + README each, plus month-view/clock.hl) out of git byte-verbatim, writes
  47. `components/SOURCE`, then checks. `tools/sync-components.sh --check` = are the copies still that commit (exit 1 +
  48. the file names if not). Then gate + check-theme + same output, commit.
  49. - **Same output** (cleanups, re-copies): on CODE-ONLY copies, server 8750 + Chrome 8751–8759:
  50. ```bash
  51. 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
  52. node tests/same-output.mjs .scratch/x-old .scratch/out-old; node tests/same-output.mjs .scratch/x-new .scratch/out-new
  53. 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
  54. python3 tests/same-output-modules.py .scratch/out-old .scratch/out-new # browser modules: same code + imported functions
  55. ```
  56. Masks `?v=` hashes and source positions. Two runs of one tree compare clean (175/175). A dropped `let` turns
  57. `var` into `const` in the browser module, nothing else.
  58. - `./deploy.sh` on Loreana (conductor): gates → backup → rsync → hand-over on Byrodin through the standby container (127.0.0.1:45019, `standby-swap.sh`), so the main container
  59. (127.0.0.1:45009, container `layouts.worldapi.org`) restarts without a gap → URL 200. First deploy needs the conductor steps in STATUS.md.
  60. ## History
  61. `LOG.md` (dated lines), `reports/NNN-*.md` (worker reports). The Vidoriel workbench's docs (ssr.md) stay in the old
  62. Byrodin folder until it is retired.

Branches

Latest commits

  • 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
  • 494d75d4Nest caller slot styles in app-sidebarmre
  • e5571680Align all plugin sources with Hybriel day38bmre