gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc37488b1c37488b1MN report: alignment updatemrec37488b1/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

  • c37488b1MN report: alignment updatemre
  • 4fb35a0enotes mobile: Delete note and the delete row exactly on the editor's edges; gate asserts 1 pxmre
  • 91736270MN report and logmre
  • 15667425notes: delete confirmation buttons at most 12rem wide on the desktopmre
  • 8f7a6a95gate: MN phone checks (list header gutter, back gap, delete question)mre
  • 90c73ed3notes mobile: back link gapmre
  • 72bd4f83notes mobile: list header on the gutter, delete confirmation as a question + two equal buttons, Delete note under the editor edgemre
  • ba1e73f8notes: a sent edit is done once the server's version is not older, so a second writer's text shows in the first tab; gate: two writers both waysmre
  • c69ef9ebsync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
  • 2eb783f5sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
  • 4dd46dadsync-components: copy icons/icons.hl + README (F4); testsmre
  • c92e4a0ftests/e2e-outside.mjs: real-Chrome E2E, a note pushed from another device while open, then typingmre
  • 0516b4ccmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
  • 38cc11ecmd-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
  • 3e7e79f5reports/H1-hydrate.mdmre
  • 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