gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit137303c5137303c5MainMenu 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; docsmre137303c5/docs/usage.md

4.1 KB

  1. # Where the shared pieces are used
  2. Kept by the WorldAPI conductor. **Before you change a component, the theme or the tokens, look here for who carries a copy;
  3. afterwards re-copy it into each of those apps (one worker per app, its gates on the new copy), then update this list.**
  4. Check with `tools/usage.sh` (exit 1 = some copy differs from its source).
  5. Sources: components → components.hybriel.worldapi.org `components/<name>/` · theme + tokens → layouts.worldapi.org
  6. `theme/`, `shared/tokens.hl` · old JS editor → worldapi-components `md-editor.js` (to be retired, creator: no hand-written JS).
  7. | app | carries | state 2026-10-18 | note |
  8. |---|---|---|---|
  9. | 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 |
  10. | 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) |
  11. | 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 |
  12. | 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 |
  13. | 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 |
  14. | gitoria.worldapi.org | theme/ (layouts dbe3de7), tokens | same (2026-10-20, gitoria m007) | own ident-toggle rule kept |
  15. | ident.worldapi.org | tokens | same | no components, no theme yet |
  16. ## Forks (own copies on purpose — listed in tools/usage.sh FORKS)
  17. - calendar: month-view (adds the user's events, editor and reminders on the days).
  18. ## Planned (conductor, 2026-10-18, creator: yes)
  19. 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.
  20. 3. tracker: re-copy modal + pagination. Then the other apps onto the theme, one by one.
  21. ## MainMenu marks the page from the route (layouts mission 011, Hybriel master 7f13a82f, hybriel#197)
  22. `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).
  23. What each app changes after it re-copies `theme/shell/main-menu.hl` (+ needs hl:web from hybriel ≥ 7f13a82f):
  24. - **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`).
  25. - **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).
  26. - **calendar**: nothing to remove (no marker of its own); drop `current = …` from MainMenu.
  27. - **tracker**: drop its own heading-type marker and use the theme's.
  28. - Items with `current = true` keep working.

Branches

Latest commits

  • 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
  • 0d0fef25paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • 2dbe0df5Re-vendor Hybriel to the shared static build 0f396652 (plugins; bin/ is git-ignored), compose cache volume + tmpfs /tmp, gate wait 120 s, report 004mre
  • 0adc551emission brief 004mre
  • 1376e905deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
  • c0fdbf6cdocker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
  • ecf70665usage: layouts on components a567b57mre
  • 315731efcomponents re-synced to components.hybriel a567b57 (md-editor tables)mre