Commit Graph
4 Commits
Author SHA1 Message Date
grabowski 424f212b23 Client texts name Lanna Desk, not B4L
CI / secret scan (push) Successful in 8s
CI / fmt, clippy, tests (push) Successful in 43s
CI / release (push) Skipped
Lanna Desk is the legal side of buildfor.life (B4L), and the client link,
its agreements, the demo agreement and the messages now name Lanna Desk:
"Lanna Desk looks after your visa ...", "Send to Lanna Desk", "Lanna
Desk keeps the signed copy". B4L stays where it is the company itself:
the employer in the Non-B pack and its BOI application.

README and PLAN say the same.

Checks: fmt, clippy, 109 unit and 57 integration tests.
2026-11-21 22:49:21 +07:00
grabowski 39980694f6 App: / leads to the back office; lannadesk.com is the website now
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 43s
CI / release (push) Skipped
lannadesk.com is Lanna Desk's own static website (B4L/lannadesk-web,
cnx-network-clan PR #163, deployed), and this app is app.lannadesk.com.
The landing page the app served at `/` goes (templates/landing.html,
static/landing.css): `/` now redirects to the back office, /desk. The
logo files in static/brand/ stay, the website copies them.

The public URL in README, PLAN, config.rs, the agreement PDF's comment and
the release notes is app.lannadesk.com.

Checks: fmt, clippy, 109 unit and 57 integration tests (`/` leads to
/desk, signed in or not).
2026-11-21 20:58:08 +07:00
grabowski e5e30c977c Lanna Desk: the app's name, for its move to lannadesk.com
CI / secret scan (push) Successful in 9s
CI / fmt, clippy, tests (push) Successful in 46s
CI / release (push) Skipped
The header (staff pages, messages and the client link), page titles,
footer, messages, the pack's cover line and the PDFs' creator now say
Lanna Desk (lannadesk.com) instead of visa.buildfor.life. The company
named in the client's texts and agreements stays B4L. Nothing depends on
the name the app is reached under: VISA_PUBLIC_URL comes from the fleet,
which moves it to https://lannadesk.com and redirects visa.buildfor.life
there with the path, so links already sent keep working.

README, AGENTS, PLAN and the release notes name the new address.

Checks: fmt, clippy, 108 unit and 57 integration tests; the header at
360 and 390 px and on a desktop.
2026-11-21 19:28:34 +07:00
grabowski d0e13dffd2 Agreements the client signs on the link (task 7.6)
CI / secret scan (push) Successful in 6s
CI / fmt, clippy, tests (push) Successful in 1m0s
CI / release (push) Skipped
Built into the app rather than a separate signing service: any number of
agreements (the processing of the client's data first, legal services
and consultations later), each in versions whose text never changes.

- Staff (Agreements in the sidebar, src/web/agreements.rs): paste the
  lawyers' text (empty line = paragraph, "# " heading, "- " list item),
  preview it as the client reads it, publish version 1; a changed text is
  the next version, the same text again is refused, and the database
  refuses any change to a published one (migrations/0007, trigger).
  Switch an agreement off and links stop asking for it.
- Client: every active agreement is the first step of every link. The
  client reads it, ticks that they accept, types their name and signs
  with a finger or the mouse (static/signature.js; a PNG of the pad). A
  text changed while they read it is refused. A new version is asked for
  again at the next link.
- The signed copy (src/agreements/pdf.rs, Sarabun so Thai prints, long
  Thai words cut without parting marks from their letter): the text, the
  name, the record, the time, the drawing, the link, the forwarded
  address, the browser and the text's SHA-256; kept as the person's
  encrypted document of kind "agreement", all in one transaction with the
  signature and the audit rows (actor link N).
- The person's page shows each agreement's state (signed, not signed, to
  sign again) and every signed copy.
- Phones: the section row now scrolls sideways instead of wrapping, so it
  keeps one height with five sections and Sign out.
- Demo data: an invented agreement with a Thai paragraph.

Checks: fmt, clippy; 105 unit and 56 integration tests (tests/agreements.rs:
versions that never change, signing with a drawing, address and browser
recorded, the PDF, signing again after a change, a stale version refused,
switched off); layout check light/dark desk/phone on the agreement pages,
the client's agreement page, the person page and the people list: no
problems; a drawn signature in Edge at 390x844 signed and printed.
2026-11-20 20:18:59 +07:00