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

+2 -1
View File
@@ -43,7 +43,8 @@ Data Protection Act (PDPA) asks.
staff close it.
- Agreements the client signs on the link: staff paste the lawyers' text
under Agreements and publish it as a version that never changes. Every
client link asks for each active agreement first; the client ticks that
client link asks for each active agreement first, and the other parts
open only once it is signed; the client ticks that
they accept, types their name and signs with a finger. The signed copy is
a PDF with the exact text, the signature, the time and where it was
signed from, kept with the person's documents. A changed text is a new