Files
visa/src/lib.rs
T
grabowski a4155548b8
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 49s
CI / release (push) Skipped
The other side reviews a draft (phase 13, step 1)
A lawyer sends a contract version to one of its parties with a link. On
it the other side marks the text up in an editor that keeps every change
visible, as tracked changes do: deleting our text crosses it out in red,
typing is marked as added in green, and the highlighter marks a passage
in yellow with a comment. Restore and Undo take marks back. They send it
back once a round; each later version comes on the same link.

- Migration 0014: review_links (token kept as a SHA-256, one open link a
  party) and review_rounds (the reply written once: their pieces, text,
  SHA-256, name, message; a trigger refuses any other change and every
  delete). Journal entries "sent for review", "review returned" (with the
  fingerprint of their text) and "review link closed"; audit entity
  "review".
- The reply is a list of pieces (same, ins, del, mark). The server checks
  that the pieces without the added ones are exactly the version sent, so
  nothing changes unseen (reviews::check).
- Our review page: their message, the changes numbered with the words
  around them and a box each, the highlights with comments, a git-style
  diff (line numbers, - and + lines, the changed words marked, three lines
  of context per hunk) and their markup. "Take the ticked changes" opens
  the contract page with the version form filled with our text plus those
  changes.
- static/review-editor.js: edits work on the pieces and redraw, so our
  text cannot vanish; keyboard compositions and edits the browser will not
  cancel are compared with the text and taken as edits.
- Property tests (any markup is accepted and taken back exactly; markup
  that changes our text unseen is refused), the fuzz text target runs
  reviews::check, integration tests, and the demo has the label's review
  of the recording agreement.
- PLAN: phase 13.
2026-11-23 15:31:43 +07:00

42 lines
771 B
Rust

//! Lanna Desk (lannadesk.com): immigration records, deadlines and extension packs
//! for foreigners in Thailand (docs/PLAN.md).
pub mod agreements;
pub mod anchor;
pub mod audit;
pub mod companies;
pub mod config;
pub mod conflicts;
pub mod countries;
pub mod dates;
pub mod db;
pub mod deadlines;
pub mod documents;
pub mod embedded;
pub mod files;
pub mod forms;
#[doc(hidden)]
pub mod fuzzing;
pub mod gps;
pub mod journal;
pub mod legal;
pub mod links;
pub mod mail;
pub mod mrz;
pub mod oidc;
pub mod originals;
pub mod pack;
pub mod papers;
pub mod people;
#[cfg(test)]
mod props;
pub mod records;
pub mod reviews;
pub mod s3;
pub mod seed;
pub mod session;
pub mod web;
/// The version shown in the footer.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");