gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf3dec0f1f3dec0f1Merge branch 'w7'mref3dec0f1/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 existing `<md-editor>` (worldapi-components, used by tickets) until it becomes a Hybriel component on
  20. components.hybriel.worldapi.org.
  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

  • f3dec0f1Merge branch 'w7'mre
  • d1cf966dre-vendor hybriel 97bcf128: offlineFiles for the editor script, 44 px taps, 390 px offline checks, mission 008mre
  • 4a610a21paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • eeaea980report 007: say which runs included the removed checkmre
  • 8a8ad9banotes mission 007: report, LOG, STATUSmre
  • 2cce9c96code order: plain declarations where never reassigned (letcount 0 never); gate: scan every IndexedDB at log-out, soft mode for old-code runs, drop a check that could not failmre
  • 7f6a4090README: offline in Hybriel (hl:web offline, continuation, known md-editor gap); gate waits report instead of crash; realdata-offline checkmre
  • 632223f2notes#4: delete notes-offline.js and sw.js (hl:web's generated worker and kept state replace them)mre
  • 52a2acadgate: offline checks on hl:web's worker/queue, Chrome offline via CDP (reload offline first), one-offline conflict, log-out forgets the kept copymre
  • e5785b03notes#4: the notes page in Hybriel — hl:web offline = [Notes], queued faces notesPut/notesDrop, push notesChanged, value-form notesPull on a tick; notes-offline.js/sw.js no longer loaded or routedmre
  • 510aff75notes#4: server continues a run of saves of one login (by + since), loser keeps writing into its copy; notesFor listmre
  • 0176c4b5mission brief 007mre
  • 06cfa870notes mission 006: re-vendor hybriel 0f396652 (static), reportmre
  • 6c07bd91mission brief w6mre
  • cf64d3d5notes mission 005: stopped at a Hybriel gap (for list repainted during hl:web boot throws, rowKidless); report, LOG, STATUSmre
  • a43b5d2dmission brief 005mre
  • 04a625edmission 004: re-vendor hybriel a832f73b (native bin + plugins as tickets), compose HL_CACHE_DIR volume + tmpfs /tmp, deploy URL wait 120 s, tests wait 120 s per start; gate 57/0 old and new; real-data same output. Not deployed.mre
  • aefb9d44mission brief w4mre
  • 202098b3docker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
  • 304f6a9dnotes mission 003 (#5): report, STATUS, LOGmre