gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc37488b1c37488b1MN report: alignment updatemrec37488b1/missions/005-offline-pure-hybriel.md

2.1 KB

  1. # notes mission 005 — notes#4: offline and sync in pure Hybriel; delete notes-offline.js and sw.js
  2. Ticket: https://tickets.worldapi.org/notes.worldapi.org/4 (read it fully, incl. the creator's words:
  3. "try to use offline realm as concepted with the language"; correction: "nothing replaced it. the app detects during boot
  4. with entrypoints where the realm boundaries are" — write the notes code plainly, let the boundary detection place the
  5. offline parts; no Offline {} block).
  6. The previous attempt = mission 001 (reports/001-notes-offline-hybriel.md): its DESIGN (rows derived from notes +
  7. __hlQueue + mine, statement-form faces notesPut/notesDrop queued offline, push notesChanged, value-form notesPull on
  8. reconnect, server accepts same `by`+`from` saves as continuation, loser device updates its copy) was blocked only by
  9. hybriel #123 #124 #125 — all three are DONE now. Notes runs hybriel a832f73b (commit 04a625e), which contains them.
  10. Build it, behaviour as today: per-user local copy, edit/create/delete offline, sync on reconnect, conflict → copy, same
  11. UI; installable PWA still works (hl:web's own manifest + generated service worker). Then DELETE notes-offline.js and
  12. sw.js (and their routes). No hand-written JS anywhere. A Hybriel gap → STOP that part, minimal repro in .scratch/w5/,
  13. report (Atlas → Anton).
  14. Proof: gate tests/browser.mjs green (57 old checks; offline checks rewritten where they tested the JS files) + NEW checks
  15. acting like a human: Chrome offline (CDP Network.emulateNetworkConditions offline), edit an existing note and create one
  16. with real keys, reload offline (data still there), go online → server has both; two browsers edit the same note, one
  17. offline → conflict copy; sign out → the local copy of that user is gone. Show the new checks fail on the old code where
  18. they test new behaviour. Real-data copy (newest /media/STORAGE/deploy-backups/notes.worldapi.org/*.tgz, az5b2 session):
  19. all 49 notes load, an offline edit syncs. Screenshots 390/1280 looked at (or checked as text + colours, say so).
  20. Worktree /media/STORAGE/projects/notes-w5 (branch w5), ports 8720–8739. Report reports/005-offline-pure-hybriel.md.

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