gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit7fe103bb7fe103bbMerge mp-player: the media player showcase pagemre7fe103bb/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

  • 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
  • 769b99d7theme: table cells keep a word whole, code in a title stays text-sized, 'edited' is a 44 px tap target on the phonemre
  • c36b7595list rows (notes, mail) stack their parts full width: the date no longer a one-letter column beside the titlemre
  • 02aa74aasync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
  • 268b1c87sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre