Lanna Desk: the app's name, for its move to lannadesk.com
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.
This commit is contained in:
1 parent
1f526f17f9
commit
e5e30c977c
20 files changed
+41
-37
No files matched your search
@@ -42,7 +42,7 @@ pub struct Signed<'a> {
|
||||
pub record: &'a str,
|
||||
/// "Nov 20, 2026, 14:05 (Chiang Mai time)"
|
||||
pub at: &'a str,
|
||||
/// "client link 12 at https://visa.buildfor.life"
|
||||
/// "client link 12 at https://lannadesk.com"
|
||||
pub through: &'a str,
|
||||
pub ip: &'a str,
|
||||
pub user_agent: &'a str,
|
||||
@@ -267,7 +267,7 @@ pub fn render(s: &Signed<'_>, blocks: &[Block]) -> Result<Vec<u8>> {
|
||||
doc.set_metadata(
|
||||
Metadata::new()
|
||||
.title(format!("{}, version {}", s.title, s.version))
|
||||
.creator("visa.buildfor.life".to_string()),
|
||||
.creator("Lanna Desk (lannadesk.com)".to_string()),
|
||||
);
|
||||
for (i, ops) in l.pages.iter().enumerate() {
|
||||
let mut page = doc.start_page_with(PageSettings::from_wh(W, H).expect("A4"));
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
//! | Variable | Meaning |
|
||||
//! | -------------------------------- | ------------------------------------------------ |
|
||||
//! | `VISA_LISTEN` | address to listen on, default 127.0.0.1:8040 |
|
||||
//! | `VISA_PUBLIC_URL` | https://visa.buildfor.life (login redirects) |
|
||||
//! | `VISA_PUBLIC_URL` | https://lannadesk.com (login redirects) |
|
||||
//! | `VISA_DATABASE_URL` | postgres://user@host/db |
|
||||
//! | `VISA_DATABASE_PASSWORD_FILE` | the role's password (else credential `db-password`) |
|
||||
//! | `VISA_OIDC_ISSUER` | https://id.cnx.network/oauth2/openid/visa-web |
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
//! visa.buildfor.life: immigration records, deadlines and extension packs
|
||||
//! Lanna Desk (lannadesk.com): immigration records, deadlines and extension packs
|
||||
//! for foreigners in Thailand (docs/PLAN.md).
|
||||
|
||||
pub mod agreements;
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ use visa::files::{self, Store};
|
||||
use visa::{dates, db, documents, seed, web};
|
||||
|
||||
const USAGE: &str = "\
|
||||
visa: immigration records, deadlines and extension packs (visa.buildfor.life)
|
||||
visa: immigration records, deadlines and extension packs (Lanna Desk, lannadesk.com)
|
||||
|
||||
Usage: visa [COMMAND]
|
||||
|
||||
|
||||
+1
-1
@@ -334,7 +334,7 @@ fn build(
|
||||
doc.set_metadata(
|
||||
Metadata::new()
|
||||
.title(cover.title.clone())
|
||||
.creator("visa.buildfor.life".to_string()),
|
||||
.creator("Lanna Desk (lannadesk.com)".to_string()),
|
||||
);
|
||||
let top = |page: usize| XyzDestination::new(page, Point::from_xy(0.0, 0.0));
|
||||
let mut outline = Outline::new();
|
||||
|
||||
+1
-1
@@ -461,7 +461,7 @@ pub fn render(papers: &[Paper], v: &Values, title: &str) -> Result<Vec<u8>> {
|
||||
doc.set_metadata(
|
||||
Metadata::new()
|
||||
.title(title.to_string())
|
||||
.creator("visa.buildfor.life".to_string()),
|
||||
.creator("Lanna Desk (lannadesk.com)".to_string()),
|
||||
);
|
||||
for &paper in papers {
|
||||
add_form(&mut doc, &pen, paper, v)?;
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ use sqlx::PgPool;
|
||||
|
||||
use crate::oidc::random_token;
|
||||
|
||||
/// `__Host-`: Secure, Path=/ and no Domain, so no other name under
|
||||
/// buildfor.life can set or read it.
|
||||
/// `__Host-`: Secure, Path=/ and no Domain, so no other name under the
|
||||
/// app's domain can set or read it.
|
||||
pub const SESSION_COOKIE: &str = "__Host-visa";
|
||||
/// Binds a login in progress to the browser that started it.
|
||||
pub const FLOW_COOKIE: &str = "__Host-visa-login";
|
||||
|
||||
+2
-2
@@ -38,7 +38,7 @@ pub async fn login(
|
||||
&st,
|
||||
StatusCode::SERVICE_UNAVAILABLE,
|
||||
"The login service is not reachable yet",
|
||||
"visa.buildfor.life fetches id.cnx.network's settings when it starts and keeps \
|
||||
"Lanna Desk fetches id.cnx.network's settings when it starts and keeps \
|
||||
trying. Try again in a minute.",
|
||||
("/", "Try again"),
|
||||
);
|
||||
@@ -247,7 +247,7 @@ pub async fn signed_out(State(st): State<Arc<AppState>>) -> Response {
|
||||
&st,
|
||||
StatusCode::OK,
|
||||
"Signed out",
|
||||
"You are signed out of visa.buildfor.life. Your session at id.cnx.network stays open \
|
||||
"You are signed out of Lanna Desk. Your session at id.cnx.network stays open \
|
||||
until you sign out there.",
|
||||
("/", "Sign in again"),
|
||||
)
|
||||
|
||||
+1
-1
@@ -454,7 +454,7 @@ async fn forms_guard(State(st): State<Arc<AppState>>, req: Request, next: Next)
|
||||
&st,
|
||||
StatusCode::FORBIDDEN,
|
||||
"Refused",
|
||||
"This form was sent from another site. Open visa.buildfor.life and try again there.",
|
||||
"This form was sent from another site. Open lannadesk.com and try again there.",
|
||||
("/", "Open the app"),
|
||||
);
|
||||
}
|
||||
|
||||
+1
-1
@@ -276,7 +276,7 @@ pub async fn pdf(
|
||||
person: whose.clone(),
|
||||
lines,
|
||||
made: format!(
|
||||
"Put together by visa.buildfor.life for {} on {}.",
|
||||
"Put together by Lanna Desk (lannadesk.com) for {} on {}.",
|
||||
user.login,
|
||||
dates::fmt_datetime(Utc::now())
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user