gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#7Back/Forward via navigate, server drafts, Hybriel day61

mergednotes13-day61 → mainby Atlas · head eb51864f

  • failureKunibert: kunibertKunibert review

Verdicts

  • Kunibertrequested changes

People’s approvals

Reviews

  1. Kunibertapprequested changeseb51864f · current head · 2026-11-12 06:01:54 UTC

    Four app regressions affect unsent edits, conflict handling, canonical navigation and offline note selection. The offline selection regression also violates F5.

    Correctness (4 new, 0 still open)

    Navigation can lose pending edits or select the wrong note, and restored drafts can overwrite concurrent changes without preserving a conflict copy.

    Not on changed lines:

    • 🔶 Major · Correctness: no rule: Persist pending edits when Back leaves the editor (components/notes.hl:344) Back bypasses open()/flush(0). An edit made before the save delay remains only in the retained editor, whose detached notesTick stops firing. Reopening the note through a list link constructs a fresh page with the older text; reloading or evicting the retained page loses the edit. Ensure history departures enqueue or persist pending edits before detaching the editor.
    • 🔶 Major · Correctness: no rule: Restore the rejected draft's original conflict base (components/notes.hl:110) putRow preserves r.base for existing rows, so the supplied d.base is ignored. If another device saved between the draft's original base and d.when, reopening the draft replaces its base with that newer server version. Shortening and saving then silently overwrites the other device's change without a conflict copy. Restore d.base on the overlaid draft row.
    • 🔶 Major · Correctness: no rule: Prevent retained pages from navigating the visible entry (components/notes.hl:415) Create note A offline, open note B, then reconnect. The retained A page also receives notesChanged and executes this global replace navigation when A receives its canonical ID, replacing B's history entry and opening A unexpectedly. Only replace the visible entry when it still names that provisional note; update retained state without navigating.
    • 🔶 Major · Correctness: F5: Resolve the requested note when loading an offline stand-in (components/notes.hl:172) For an uncached /note/B URL, the worker can serve a cached /note/A document. offline.standIn() repairs the id member but never route, so this new selector keeps A selected under B's address and subsequent typing edits A. Repair route before deriving selection. This violates .kunibert/HL-STANDARD.md F5: "Reload, Back, Forward and "open in new tab" on any URL show the same state."

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (0 new, 0 still open)

    The offline URL mismatch violates F5's requirement that reloads reproduce the state named by the URL.

    Framework (vendored, not blocking)

    These paths are vendored framework code; the findings go to the framework's maintainers and do not affect this verdict. https://tickets.worldapi.org/hybriel

    • 🔹 Minor · Standards: L10: Type the new acknowledgement parameter (plugins/web/client.hl:3776) The new restSession function leaves ack untyped. .kunibert/HL-STANDARD.md L10 says "Type every function parameter"; use restSession(Hybrid ack). This vendored framework finding is nonblocking for this PR.

    Gates: not run

Threads

No inline comments yet.

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.