Client texts name Lanna Desk, not B4L
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.
This commit is contained in:
1 parent
3d2d8fa30b
commit
424f212b23
15 files changed
+44
-43
No files matched your search
@@ -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()),
|
||||
|
||||
@@ -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,
|
||||
|
||||
+5
-5
@@ -646,21 +646,21 @@ pub async fn demo(db: &PgPool, today: NaiveDate) -> Result<bool> {
|
||||
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\
|
||||
|
||||
+8
-8
@@ -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<Vec<Part>> {
|
||||
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<Part> = 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() {
|
||||
|
||||
+1
-1
@@ -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)
|
||||
)
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user