diff --git a/README.md b/README.md index 9350d9d..4999a53 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Lanna Desk (lannadesk.com) -Lanna Desk, the app `visa`, keeps the immigration records of the foreigners that B4L +Lanna Desk, the app `visa`, keeps the immigration records of the foreigners that Lanna Desk looks after in Thailand: their passports, addresses and TM.30 receipts, visas, arrivals with the TDAC, extensions of stay, re-entry permits, 90-day reports and work permits, and the companies that employ them. From those @@ -187,7 +187,7 @@ Since November 17, 2026 the app runs on cnx01 in the office, like proplan and lampbench-web: the database `visa` on cnx01's PostgreSQL, the documents in the bucket `visa-documents` of cnx01's Garage, backups by borg, and bkk01 publishing https://app.lannadesk.com (its first name, visa.buildfor.life, -and its paths on lannadesk.com redirect there with the path). Passport data stays on B4L's own +and its paths on lannadesk.com redirect there with the path). Passport data stays on buildfor.life's own servers. The fleet's module is `modules/visa` in cnx-network-clan, with its runbook in `docs/src/visa.md` there. Only members of the Kanidm group `visa` get in; members are set in the fleet's `identity/people.nix`. diff --git a/docs/PLAN.md b/docs/PLAN.md index ba22045..af5464c 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -8,17 +8,18 @@ > extension pack, and phase 7, the client link, were built on November 20, > 2026, the same day every push to main became a signed release that cnx01 > installs by itself. Task 7.6, the agreements the client signs, followed the -> same day; B4L's real text goes in under Agreements once the lawyers send +> same day; Lanna Desk's real text goes in under Agreements once the lawyers send > it. On November 21, 2026 the app took the name Lanna Desk and moved to -> https://lannadesk.com, B4L's name for an agency that also takes on legal +> https://lannadesk.com, the legal side of buildfor.life (B4L), an agency that also takes on legal > work and artists' contracts; visa.buildfor.life redirects there with the > path. The same day `/` became the public page with the logo, the back > office moved to `/desk`, and signing out ends the id.cnx.network session > too. Later that day lannadesk.com became Lanna Desk's own static website > (B4L/lannadesk-web, Astro), and the app moved to https://app.lannadesk.com; -> its `/` now leads to the back office. **Resume here: phase 8, reminders.** +> its `/` now leads to the back office, and the texts clients read name Lanna +> Desk rather than B4L. **Resume here: phase 8, reminders.** -Lanna Desk keeps the immigration records of the foreigners that B4L +Lanna Desk keeps the immigration records of the foreigners that it looks after: their passports, addresses in Thailand, arrivals with the Thailand Digital Arrival Card (TDAC), visas, extensions of stay, re-entry permits, 90-day reports and work permits. From those records it works out every @@ -52,7 +53,7 @@ The first round of questions was answered on November 17, 2026. | Client input (Nov 20) | goes straight into the person's record, logged as coming from the link; staff check it | | Link lifetime (Nov 20) | 14 days, or until the client presses Send or staff close the link | | Passport photo (Nov 20) | read in the browser with Tesseract.js and an MRZ model served by the app; the photo never leaves the device, only the lines it finds are sent, and the server checks them like typed ones | -| Client agreements (Nov 20) | built into the app rather than run as a separate signing service (DocuSeal was weighed: its embedding, single sign-on and branding are paid, and it would be a second store of client identities): any number of agreements in versions whose text never changes, each signed on the client link with the typed name and a drawing; the data processing agreement first, legal services and consultations later. The texts come from B4L's lawyers | +| Client agreements (Nov 20) | built into the app rather than run as a separate signing service (DocuSeal was weighed: its embedding, single sign-on and branding are paid, and it would be a second store of client identities): any number of agreements in versions whose text never changes, each signed on the client link with the typed name and a drawing; the data processing agreement first, legal services and consultations later. The texts come from Lanna Desk's lawyers. Since Nov 21 the texts clients read name Lanna Desk, not B4L (Alex) | Kanidm keeps persons, groups and OAuth2 clients in one namespace, so the client cannot be called `visa` like the group. It is `visa-web`, as @@ -238,7 +239,7 @@ dark at desktop and phone width, a commit and a push. | 4 | Documents: encrypted uploads (passport pages, TDAC, receipts, photo) in a bucket of cnx01's Garage (first on the dataset `zroot/visa`) with a key var, viewing and download, all audited; the office's GPS position and photo | live Nov 18, 2026; Garage built Nov 19, 2026 | | 5 | Filled-in forms: TM.7, STM.2, the overstay acknowledgment (STM.9), STM.11, STM.1, TM.47 and TM.8 as PDF | built Nov 18, 2026 | | 6 | The Non-B extension pack: B4L's company documents, the checklist, one PDF to print | built Nov 20, 2026 | -| 7 | The client link: a client fills in their own record on a phone, the MRZ read from a photo, and signs B4L's agreements | built Nov 20, 2026 | +| 7 | The client link: a client fills in their own record on a phone, the MRZ read from a photo, and signs Lanna Desk's agreements | built Nov 20, 2026 | | 8 | Reminders by Matrix room message and by email | | | later | Thai user interface, agency cases and fees, other visa categories' packs | | @@ -534,5 +535,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 typed name and +2. The agreements' texts come from Lanna Desk's lawyers. Whether a typed name and a drawing are enough for each kind of agreement is theirs to say. diff --git a/src/agreements/mod.rs b/src/agreements/mod.rs index 9510bf4..9a08aec 100644 --- a/src/agreements/mod.rs +++ b/src/agreements/mod.rs @@ -1,5 +1,5 @@ //! Agreements the client signs through their link (task 7.6): the -//! processing of their data by B4L first, later legal services or a +//! processing of their data by Lanna Desk first, later legal services or a //! consultation. An agreement has versions; a published text never changes //! (the table refuses it), so a signature names the exact words signed, by //! version and SHA-256. A new text is a new version, which each client signs @@ -358,13 +358,12 @@ mod tests { #[test] fn text_in_blocks() { - let body = - "# 1. Purpose\r\nB4L processes\nyour data.\n\n- name\n- passport\n\nEnd. \n\n\n"; + let body = "# 1. Purpose\r\nLanna Desk processes\nyour data.\n\n- name\n- passport\n\nEnd. \n\n\n"; assert_eq!( blocks(body), vec![ Block::Heading("1. Purpose".into()), - Block::Para("B4L processes your data.".into()), + Block::Para("Lanna Desk processes your data.".into()), Block::Item("name".into()), Block::Item("passport".into()), Block::Para("End.".into()), diff --git a/src/agreements/pdf.rs b/src/agreements/pdf.rs index caabbee..321d5bc 100644 --- a/src/agreements/pdf.rs +++ b/src/agreements/pdf.rs @@ -366,8 +366,9 @@ mod tests { #[test] fn a_signed_copy_renders() { - let blocks = - super::super::blocks("# Purpose\nB4L processes your data.\n\n- name\n- passport"); + let blocks = super::super::blocks( + "# Purpose\nLanna Desk processes your data.\n\n- name\n- passport", + ); let s = Signed { title: "Processing of your data", version: 1, diff --git a/src/seed.rs b/src/seed.rs index 9101dab..3c0b4fc 100644 --- a/src/seed.rs +++ b/src/seed.rs @@ -646,21 +646,21 @@ pub async fn demo(db: &PgPool, today: NaiveDate) -> Result { Ok(true) } -/// An invented agreement, so the client link shows the step to sign; B4L's +/// An invented agreement, so the client link shows the step to sign; Lanna Desk's /// real text comes from its lawyers. const DEMO_AGREEMENT: (&str, &str) = ( - "How B4L processes your personal data (demo)", + "How Lanna Desk processes your personal data (demo)", "# This text is invented for development\n\ - It shows how an agreement looks on the client's link. B4L's real text \ + It shows how an agreement looks on the client's link. Lanna Desk's real text \ comes from its lawyers and is added under Agreements.\n\ \n\ - # 1. What B4L keeps\n\ + # 1. What Lanna Desk keeps\n\ - your name, date of birth and nationality\n\ - your passport, visas and stamps\n\ - your address in Thailand and how to reach you\n\ \n\ # 2. What for\n\ - B4L keeps these to look after your visa and your stay in Thailand: \ + Lanna Desk keeps these to look after your visa and your stay in Thailand: \ the deadlines, the forms and the documents Immigration asks for.\n\ \n\ # 3. ข้อความภาษาไทย\n\ diff --git a/src/web/client.rs b/src/web/client.rs index 6050ea9..b17685a 100644 --- a/src/web/client.rs +++ b/src/web/client.rs @@ -86,7 +86,7 @@ fn closed_page(st: &AppState, link: Option<&Link>) -> Response { None => ( StatusCode::NOT_FOUND, "This link does not work", - "There is no link at this address. Check that you opened the whole link, or ask B4L \ + "There is no link at this address. Check that you opened the whole link, or ask Lanna Desk \ for a new one." .to_string(), ), @@ -94,8 +94,8 @@ fn closed_page(st: &AppState, link: Option<&Link>) -> Response { StatusCode::GONE, "Thank you", format!( - "You sent your details on {}. B4L checks them and gets in touch. To change \ - something now, ask B4L for a new link.", + "You sent your details on {}. Lanna Desk checks them and gets in touch. To change \ + something now, ask Lanna Desk for a new link.", l.sent_at.map(links::day).unwrap_or_default() ), ), @@ -103,14 +103,14 @@ fn closed_page(st: &AppState, link: Option<&Link>) -> Response { StatusCode::GONE, "This link has expired", format!( - "It worked until {}. Ask B4L for a new one; what you saved through it is kept.", + "It worked until {}. Ask Lanna Desk for a new one; what you saved through it is kept.", links::day(l.expires_at) ), ), Some(_) => ( StatusCode::GONE, "This link is closed", - "B4L closed it. Ask them for a new one if you still need to send something; what you \ + "Lanna Desk closed it. Ask for a new one if you still need to send something; what you \ saved through it is kept." .to_string(), ), @@ -267,7 +267,7 @@ async fn parts(st: &AppState, c: &Client) -> anyhow::Result> { let has = |k: &str| docs.iter().any(|d| d.kind == k); let papers = has("passport-photo-page") && has("photo"); let state = |done: bool, yes: &str, no: &str| if done { yes } else { no }.to_string(); - // the agreements first: they say what B4L does with the rest + // the agreements first: they say what Lanna Desk does with the rest let mut out: Vec = agreements::for_person(&st.db, c.id()) .await? .into_iter() @@ -627,7 +627,7 @@ pub async fn passport_save( err( &mut errors, "number", - "This passport cannot be saved here. If it is yours, tell B4L.", + "This passport cannot be saved here. If it is yours, tell Lanna Desk.", ); return Ok(passport_page(&st, &c, &pf, &errors, None)); } @@ -1133,7 +1133,7 @@ pub async fn sign( err( &mut errors, "accept", - "B4L changed the text while you read it. Read this version and sign again.", + "Lanna Desk changed the text while you read it. Read this version and sign again.", ); } if form.name.is_empty() { diff --git a/src/web/links.rs b/src/web/links.rs index 625abbc..1f222ac 100644 --- a/src/web/links.rs +++ b/src/web/links.rs @@ -169,7 +169,7 @@ fn made_page( ); format!( "mailto:{email}?subject={}&body={}", - percent_encode("Your details for B4L"), + percent_encode("Your details for Lanna Desk"), percent_encode(&body) ) }; diff --git a/templates/agreement_form.html b/templates/agreement_form.html index 2a1385e..9e56fb5 100644 --- a/templates/agreement_form.html +++ b/templates/agreement_form.html @@ -8,7 +8,7 @@
- {{ fm.text("title", "Title", d.title, err=errors.title, req=true, cls="wide", hint="As the client sees it, for example: How B4L processes your personal data.") }} + {{ fm.text("title", "Title", d.title, err=errors.title, req=true, cls="wide", hint="As the client sees it, for example: How Lanna Desk processes your personal data.") }} {{ fm.area("body", "Text", d.body, err=errors.body, rows=18, fcls="wide", hint="Paste it as legal wrote it. An empty line starts a new paragraph, # and a space a heading, - and a space a list item.") }}
diff --git a/templates/client.html b/templates/client.html index 49fa989..b14f585 100644 --- a/templates/client.html +++ b/templates/client.html @@ -1,7 +1,7 @@ {% extends "client_base.html" %} {% block main %}

{% if first_name %}Hello {{ first_name }}{% else %}Hello{% endif %}

-

B4L looks after your visa and your stay in Thailand. {% if locked %}First read and sign how B4L works with your details; then the other parts open.{% else %}Fill in the parts below.{% endif %} Each part is saved on its own, so you can stop and come back to this link. When everything is in, press Send.

+

Lanna Desk looks after your visa and your stay in Thailand. {% if locked %}First read and sign how Lanna Desk works with your details; then the other parts open.{% else %}Fill in the parts below.{% endif %} Each part is saved on its own, so you can stop and come back to this link. When everything is in, press Send.

{% if saved %}
Saved: {{ saved }}.
{% endif %}
    {% for p in parts %} @@ -28,11 +28,11 @@

    Sign the agreement first; then fill in the rest and send it.

    {% else %} -
    +

    Send

    -

    {% if missing %}Still to do: {{ missing|join(", ") }}. You can send now and give the rest to B4L later.{% else %}Everything is in. Send it, and B4L checks it.{% endif %} After Send the link closes.

    - +

    {% if missing %}Still to do: {{ missing|join(", ") }}. You can send now and give the rest to Lanna Desk later.{% else %}Everything is in. Send it, and Lanna Desk checks it.{% endif %} After Send the link closes.

    +
    {% endif %} {% endblock %} diff --git a/templates/client_agree.html b/templates/client_agree.html index d844283..6ce7ea9 100644 --- a/templates/client_agree.html +++ b/templates/client_agree.html @@ -9,7 +9,7 @@ {{ ag.text(blocks) }} {% if signed %} -
    You signed this version on {{ signed }}. B4L keeps the signed copy.
    +
    You signed this version on {{ signed }}. Lanna Desk keeps the signed copy.

    Back

    {% else %}
    @@ -36,7 +36,7 @@ Back -

    Signing records your name, the time, this link, your internet address and your browser with the exact text. B4L keeps the signed copy as a PDF.

    +

    Signing records your name, the time, this link, your internet address and your browser with the exact text. Lanna Desk keeps the signed copy as a PDF.

    {% endif %} diff --git a/templates/client_base.html b/templates/client_base.html index 9358cb0..6514b29 100644 --- a/templates/client_base.html +++ b/templates/client_base.html @@ -24,7 +24,7 @@
    {% block main %}{% endblock %} - {% if until %}
    This link works until {{ until }}. What you save here goes to B4L, who look after your visa and stay in Thailand; nobody else sees it.
    {% endif %} + {% if until %}
    This link works until {{ until }}. What you save here goes to Lanna Desk, which looks after your visa and stay in Thailand; nobody else sees it.
    {% endif %}
    diff --git a/templates/client_contact.html b/templates/client_contact.html index 73c2b40..c7df0f2 100644 --- a/templates/client_contact.html +++ b/templates/client_contact.html @@ -6,7 +6,7 @@
    -

    B4L uses them to reach you about your visa and your deadlines.

    +

    Lanna Desk uses them to reach you about your visa and your deadlines.

    {{ fm.text("phone", "Phone", f.phone, err=errors.phone, type="tel", auto="tel", hint="With the country code if it is not a Thai number.") }} {{ fm.text("email", "Email", f.email, err=errors.email, type="email", auto="email") }} diff --git a/templates/client_documents.html b/templates/client_documents.html index 014bda5..fd48574 100644 --- a/templates/client_documents.html +++ b/templates/client_documents.html @@ -25,7 +25,7 @@
    Back
    {% else %} -
    Uploads are switched off on this server. Give your papers to B4L instead.
    +
    Uploads are switched off on this server. Give your papers to Lanna Desk instead.
    {% endif %}

    Uploaded through this link

    diff --git a/tests/agreements.rs b/tests/agreements.rs index 185796e..448c8d7 100644 --- a/tests/agreements.rs +++ b/tests/agreements.rs @@ -11,7 +11,7 @@ use crate::common::{App, Resp, assert_unique_ids, local}; /// A 1 x 1 PNG, as the signature pad would send it. const DRAWING: &str = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="; -const TEXT: &str = "# 1. What B4L keeps\nYour name and passport.\n\n- name\n- passport"; +const TEXT: &str = "# 1. What Lanna Desk keeps\nYour name and passport.\n\n- name\n- passport"; async fn client_post( app: &App, @@ -63,7 +63,7 @@ async fn staff_publish_versions_that_never_change(pool: PgPool) { .await; assert_eq!(r.status, StatusCode::OK); assert!( - r.text().contains("

    1. What B4L keeps

    "), + r.text().contains("

    1. What Lanna Desk keeps

    "), "{}", r.body ); @@ -183,7 +183,7 @@ async fn the_client_signs_and_signs_again_after_a_change(pool: PgPool) { assert_eq!(r.status, StatusCode::OK); assert_unique_ids(&r.body, &uri); let t = r.text(); - assert!(t.contains("

    1. What B4L keeps

    ")); + assert!(t.contains("

    1. What Lanna Desk keeps

    ")); assert!(t.contains("value=\"Hans Becker\""), "{t}"); assert!(t.contains("/static/signature.js")); diff --git a/tests/pages.rs b/tests/pages.rs index d3eacdc..6d9ab4b 100644 --- a/tests/pages.rs +++ b/tests/pages.rs @@ -163,7 +163,7 @@ async fn every_page_renders_with_demo_data(pool: PgPool) { ), ( "/agreements".to_string(), - "How B4L processes your personal data (demo)", + "How Lanna Desk processes your personal data (demo)", ), ("/agreements/new".to_string(), "Publish version 1"), ("/agreements/1".to_string(), "ข้อความภาษาไทย"),