gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1f3198b61f3198b6tests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre1f3198b6/missions/001-notes-offline-hybriel.md

2.2 KB

  1. # Mission 001 (old 051) — notes.worldapi.org#4: offline + sync in pure Hybriel (delete notes-offline.js and sw.js)
  2. Ticket + ALL comments (read them — the creator's words on the offline realm are decisive):
  3. `curl -s -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/notes.worldapi.org/tickets/4`
  4. Rules as tracker mission 002 (old 041). App loreana:/media/STORAGE/projects/notes.worldapi.org (Hybriel master ff51cf46 vendored, PWA
  5. manifest + icons from notes#3). Ports 8760–8769.
  6. ## Key facts
  7. - Creator: "try to use offline realm as concepted with the language" and "nothing replaced it. the app detects during
  8. boot with entrypoints where the realm boundaries are". So: no Offline{} block exists; write the notes code plainly
  9. (client members, server faces) and let Hybriel's boot-time realm detection place the offline parts; use hl:web's
  10. `offline = [...]` + generated service worker (it replaces notes' own /sw.js — that clash is why notes#3 left it out).
  11. - Read first: notes-offline.js (today's behaviour: IndexedDB copy per user, sync via /api/notes, conflict → the later
  12. edit wins, the other version becomes a copy note, edits offline queue and sync later), sw.js, the hybriel docs on
  13. offline/realms (hybriel repo read-only: missions 078-1, 081, 099-1, 099 report; plugins/web README), and how
  14. tracker/tickets use `offline`.
  15. - If Hybriel lacks something essential (e.g. client-side persistent storage / IndexedDB access, queued emits that
  16. survive a reload), STOP that part, write a precise hybriel ticket text with a minimal repro into your report, and
  17. keep the existing JS working — do not ship a half-offline notes.
  18. ## Done when
  19. - Same behaviour as today, proven by the gate: create/edit/delete offline, reload offline (notes still there),
  20. back online → synced; edit the same note on two browsers offline → later wins + the other becomes a copy; nothing lost.
  21. - notes-offline.js and sw.js deleted; no other JS added (md-editor.js stays — it's the editor, a separate topic).
  22. - All existing gate checks green + the new ones; screenshots 390/1280 looked at.
  23. ## Report (short) — ALSO write it to reports/001-notes-offline-hybriel.md
  24. What moved where, Hybriel gaps (with ticket texts), gate command + last line, open points.
  25. Foreground only, never wait for notifications.

Branches

Latest commits

  • 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
  • dae2e508notes mission 011 WIP: theme dbe3de7, shell on AppHeader/MainMenu/UserMenu/Sidebar + ListFirst, styles cut to the app's own, check-theme gate, e2e auditmre