notes
All repositories: gitoria
2.2 KB
# Mission 001 (old 051) — notes.worldapi.org#4: offline + sync in pure Hybriel (delete notes-offline.js and sw.js)Ticket + ALL comments (read them — the creator's words on the offline realm are decisive):`curl -s -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/notes.worldapi.org/tickets/4`Rules as tracker mission 002 (old 041). App loreana:/media/STORAGE/projects/notes.worldapi.org (Hybriel master ff51cf46 vendored, PWAmanifest + icons from notes#3). Ports 8760–8769.## Key facts- Creator: "try to use offline realm as concepted with the language" and "nothing replaced it. the app detects duringboot with entrypoints where the realm boundaries are". So: no Offline{} block exists; write the notes code plainly(client members, server faces) and let Hybriel's boot-time realm detection place the offline parts; use hl:web's`offline = [...]` + generated service worker (it replaces notes' own /sw.js — that clash is why notes#3 left it out).- Read first: notes-offline.js (today's behaviour: IndexedDB copy per user, sync via /api/notes, conflict → the lateredit wins, the other version becomes a copy note, edits offline queue and sync later), sw.js, the hybriel docs onoffline/realms (hybriel repo read-only: missions 078-1, 081, 099-1, 099 report; plugins/web README), and howtracker/tickets use `offline`.- If Hybriel lacks something essential (e.g. client-side persistent storage / IndexedDB access, queued emits thatsurvive a reload), STOP that part, write a precise hybriel ticket text with a minimal repro into your report, andkeep the existing JS working — do not ship a half-offline notes.## Done when- Same behaviour as today, proven by the gate: create/edit/delete offline, reload offline (notes still there),back online → synced; edit the same note on two browsers offline → later wins + the other becomes a copy; nothing lost.- notes-offline.js and sw.js deleted; no other JS added (md-editor.js stays — it's the editor, a separate topic).- All existing gate checks green + the new ones; screenshots 390/1280 looked at.## Report (short) — ALSO write it to reports/001-notes-offline-hybriel.mdWhat moved where, Hybriel gaps (with ticket texts), gate command + last line, open points.Foreground only, never wait for notifications.
Branches
Latest commits
- 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
- fd36da27notes mission 010: the note editor is the Hybriel MdEditor block (components.hybriel 1442e58, verbatim); md-editor.js, its route, script tag and offlineFiles retired; gate 66/0, realdata-offline 12/0, round-trip and Chrome E2E tests; report 010mre
- efa92170notes tests/identkit.mjs: refuse a taken ident port, cold-wait deadline, emit, identities; mission 009 reportmre
- 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