gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd98775e8d98775e8tests/browser.mjs: wait for hydration before the clicks after a goto('/') (tables new note, phone sidebar)mred98775e8/CONCEPT.md

2.1 KB

  1. # notes.worldapi.org — concept
  2. A notes app in Hybriel (hl:web), login via ident, offline-first later. Replaces the old `demo-notes` PWA that runs at
  3. notes.worldapi.org since 2026-08-31 (port 45000). Source of truth = the creator's words; "Decisions" are the architect's.
  4. ## The creator's words (chat, 2026-09-25, verbatim)
  5. > next i want to do the notes app. in parallel we can do the notes.worldapi.org app. we already have the md wysiwyg. the
  6. > notes have a sidebar listing the subject of the notes, ordered by last one edited. if you click on a note in the
  7. > sidebar it appears on the right in main. the notes app is then also an offline use case later. notes need to be saved
  8. > locally in the indexed db, and picked from that cache when offline. when back online it syncs with the server and
  9. > possible other changes made on other devices. there are already several demo apps for the notes case, but the
  10. > language and the framework shifted since then.
  11. > yes go ahead. make decisions on your own. if i dont like something i will request changes afterwards
  12. ## Steps (one ticket each, in this order)
  13. 1. Notes with ident login: sidebar = subjects of my notes, last edited first; click → the note on the right in main;
  14. new note, edit with the Markdown WYSIWYG editor, delete. Saved on the server.
  15. 2. Offline: notes saved in the browser's IndexedDB, read from there when offline, edits offline; back online → sync with
  16. the server and with changes from other devices.
  17. ## Decisions (architect, 2026-09-25 — changeable)
  18. - The subject = the note's first line / first heading (no separate title field).
  19. - The editor = the Hybriel MdEditor block of components.hybriel.worldapi.org (copied verbatim, mission 010; the hand-written
  20. `md-editor.js` is retired).
  21. - The old demo apps (hybriel/projects/demo-notes*) are reference only; built fresh on today's hl:web.
  22. - Storage hl:mpackdb in `storage/mpackdb/`, `@id` keys. New app on 127.0.0.1:45007, container `notes.worldapi.org`
  23. replaces the demo: at the first deploy the architect backs up the demo, stops it and points the vhost to 45007.
  24. - Sync conflicts (step 2): last write wins per note, the losing version is kept as a copy so nothing is lost.

Branches

Latest commits

  • d98775e8tests/browser.mjs: wait for hydration before the clicks after a goto('/') (tables new note, phone sidebar)mre
  • 1f3198b6tests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
  • 39cf9fdfre-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
  • db07aa84tests: short-id-switch ports from env (NOTES_SWITCH_IDENT_PORT/_PORT), defaults unchangedmre
  • ef9f9feere-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
  • 5485467cdocker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • 86ea4a85deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • edeab20fnotes mission 015: mission, report, LOG, STATUSmre
  • 542a0383notes mission 015: e2e-chrome E2E_HOST (own cookie jar in the shared Chrome)mre
  • 8b30f510notes mission 015: main-menu from layouts 0bcc629, current = true kept (route marks only /), server-HTML marker checksmre
  • 84b574c4notes mission 015: re-vendor plugins from hybriel f9614007 (incl. web, #117)mre
  • 447da53dnotes mission 014: report — remaining gates and lisbeth E2E proofmre
  • fd9f92c3notes mission 014: report (partial), LOG, STATUSmre
  • b2501360notes mission 014: open() sets asking=false before flush(0) (hybriel#196)mre
  • 9414ce59notes mission 014: merge theme 76f99f6, components 3794c59, strict single-press openAsk (fails on old open())mre
  • c08c655anotes 013: theme re-copied from layouts 76f99f6 (menu marks the current page), current = true on the menu item, e2e marker checks, reportmre
  • 21c8f65dnotes mission 012: STATUSmre
  • 0bbb3dd9notes mission 012: delete section of the browser gate de-flaked (openAsk: calm wait, press again when the question closes by itself); report 012mre
  • f431bdf8notes mission 011: notes on the layouts theme (ListFirst shell), styles cut, check-theme gate, E2E extended; reportmre
  • 1a8603d1notes mission 011 WIP: deploy.sh gate summary also matches check-theme, browser.mjs logout via the user menumre