Skip to main content

Module review

Module review 

Source
Expand description

The review document: the comments a reviewer leaves on a diff, and every operation that may change them.

This is the state that lives in the browser’s localStorage. The page’s JavaScript never edits it directly — it calls into the WASM build of this crate for every mutation, so upsert/delete/merge/ordering semantics are defined exactly once, here, and are identical in tests, in the CLI, and in the browser.

Purity contract: the model has no clock and no entropy. Comment ids and RFC 3339 timestamps are supplied by the caller; the model validates and orders them.

Structs§

Comment
One review comment, anchored to a diff line.
ReviewDocument
The mutable review state for one (repo, base_sha, head_sha) diff.

Enums§

Side
Which side of the diff a comment anchors to. Serialized as the bare CamelCase variant name ("Old" / "New").