Client link: read and sign the agreements first, then the details
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 1m1s
CI / release (push) Skipped

While an active agreement is unsigned in its current version, the
link's other parts are locked: the overview shows them dashed with
"After signing" and no Send button, and every other page of the link
(About you, Contact, Passport, Address, Documents, Send) redirects to the
agreement and takes nothing posted to it. A new version locks them again
until it is signed.

Checks: fmt, clippy, 105 unit and 56 integration tests (tests/agreements.rs
asserts the redirects, that nothing posted before signing is saved, and
that the parts open after signing and close at a new version); the
locked overview checked on a phone in light and dark.
This commit is contained in:
grabowski committed 2026-11-20 20:40:26 +07:00
1 parent d0e13dffd2
commit 506221ecd0
6 files changed
+120 -17

No files matched your search

+8 -5
View File
@@ -499,8 +499,12 @@ Planned on November 20, 2026, from Alex's answers (decisions table).
paragraphs, `# ` a heading, `- ` a list item) and publish it as
version 1; a published text never changes (the table refuses it), a
changed one is the next version. Every active agreement is the first
step of every client link, in its current version: the client reads
it, ticks that they accept, types their name and signs with a finger.
step of every client link, in its current version, and the rest of
the link opens only once each is signed (Alex, Nov 20: read and sign
first, then enter the details); every other page of the link leads
to the agreement until then and takes nothing posted to it. The
client reads it, ticks that they accept, types their name and signs
with a finger.
The signed copy is a PDF (Sarabun, so Thai prints) with the text, the
name, the drawing, the time, the link, the client's address and
browser and the text's SHA-256, kept as the person's encrypted
@@ -512,6 +516,5 @@ Planned on November 20, 2026, from Alex's answers (decisions table).
1. B4L's BOI application: once B4L is promoted, its staff extend their stay
through the BOI's One Start One Stop center, which changes phase 6's pack.
2. The agreements' texts come from B4L's lawyers. Whether a client must
sign before entering any data, and whether a typed name and a drawing are
enough for each kind of agreement, is theirs to say.
2. The agreements' texts come from B4L's lawyers. Whether a typed name and
a drawing are enough for each kind of agreement is theirs to say.