layouts
All repositories: gitoria
4.1 KB
# Where the shared pieces are usedKept by the WorldAPI conductor. **Before you change a component, the theme or the tokens, look here for who carries a copy;afterwards re-copy it into each of those apps (one worker per app, its gates on the new copy), then update this list.**Check with `tools/usage.sh` (exit 1 = some copy differs from its source).Sources: components → components.hybriel.worldapi.org `components/<name>/` · theme + tokens → layouts.worldapi.org`theme/`, `shared/tokens.hl` · old JS editor → worldapi-components `md-editor.js` (to be retired, creator: no hand-written JS).| app | carries | state 2026-10-18 | note ||---|---|---|---|| layouts.worldapi.org | all 10 components (`components/<name>/`, via `tools/sync-components.sh`), tokens | same (components.hybriel **3794c59**, 2026-10-21: MdEditor real-key fixes — table after a list or heading, Ctrl+K on a link, Ctrl+E, Enter twice leaves a code block, build on focus; before: 1442e58) | showcase; new page /components/files-upload-pick || tracker.worldapi.org | theme/, modal.hl, pagination.hl, tokens | theme **76f99f6**, modal + pagination current (mission 040, branch w40-theme, not yet deployed) | tracker's own small buttons set to 44 px deliberately; **own current marker kept** (heading type → colour) until it takes main-menu.hl of layouts mission 011 (hybriel#197 is on master) || calendar.worldapi.org | theme/ (layouts **dbe3de7**: ContentFirst shell, AppHeader, MainMenu + ☰ Sidebar, UserMenu with Log out / Log in), month-view (**fork**: + events editor, reminders; keeps only its own styles in styles.hl), tokens | theme dbe3de7 (mission 006, main ba9b495; deploy pending 2026-10-21); month-view fork | changes to month-view: port by hand; theme gate `node theme/check-theme.mjs .` 0 || notes.worldapi.org | md-editor (components.hybriel 1442e58 via tools/sync-components.sh), tokens | same (2026-10-21, notes m010: md-editor.js removed) | theme move still open || tickets.worldapi.org | comments, md-editor, files-upload (components.hybriel 1442e58 via tools/sync-components.sh), tokens | same (2026-10-20, m016/m017/m021) | theme move still open || gitoria.worldapi.org | theme/ (layouts dbe3de7), tokens | same (2026-10-20, gitoria m007) | own ident-toggle rule kept || ident.worldapi.org | tokens | same | no components, no theme yet |## Forks (own copies on purpose — listed in tools/usage.sh FORKS)- calendar: month-view (adds the user's events, editor and reminders on the days).## Planned (conductor, 2026-10-18, creator: yes)1. ~~Tables in MdEditor~~ (a567b57, live 2026-10-19). 2. ~~notes, then tickets onto MdEditor; md-editor.js removed~~ (tickets m016 2026-10-20, notes m010 2026-10-21). Theme for notes + tickets still open.3. tracker: re-copy modal + pagination. Then the other apps onto the theme, one by one.## MainMenu marks the page from the route (layouts mission 011, Hybriel master 7f13a82f, hybriel#197)`theme/shell/main-menu.hl` declares `route = null`: every component that does gets `{ path, params, pattern }` of the matched route, also in the server's HTML — so the marked item is in the first paint (no flicker) and moves on a client click. It works for a MainMenu nested anywhere under the page/shell (checked in the tracker demo: header and phone sidebar). The one rule now: **give MainMenu no `current`** — a non-empty `current` still wins (the one-more-round fallback), then the route decides (exact href or a page below it).What each app changes after it re-copies `theme/shell/main-menu.hl` (+ needs hl:web from hybriel ≥ 7f13a82f):- **tickets**: delete the browser-side marker (the script / own code that sets the current item) and `MainMenu { current = … }`; keep `count = n` on the item (the "Inbox (n)" label becomes `label = 'Inbox' count = n`).- **gitoria, notes** (current = true on an item, or `current = "/x"` on the menu): remove them; keep `current = "/docs"` or `current = true` only where the route does not tell (a page that lives under another item's path, e.g. /read/x under Docs).- **calendar**: nothing to remove (no marker of its own); drop `current = …` from MainMenu.- **tracker**: drop its own heading-type marker and use the theme's.- Items with `current = true` keep working.
Branches
Latest commits
- 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
- dbe3de79Display bugs from a real Chrome walk (mission 007): Settings page and in-shell doc reader instead of raw .md links, closed phone search hidden whatever a page says, /elements form rules scoped, three-pane danger contrast; display audit gate (132 -> 244 checks), walk + Settings e2e toolsmre
- 1875a051Theme: 44 px tap targets mobile first (layoutTap), 16 px fields, desktop denser only in @media 60rem; 390 px tap audit + gate checks (mission 006)mre
- 3d4f8e19Sync showcase to components.hybriel 9db927d: comments and files-upload pages, pagination onPage, md-editor readonly, gate 99 checksmre
- 64d635acmission brief 005mre