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).
This commit is contained in:
grabowski committed 2026-11-21 20:58:08 +07:00
1 parent eafe918bcc
commit 39980694f6
11 files changed
+29 -397

No files matched your search

+3 -13
View File
@@ -47,20 +47,10 @@ async fn the_gate_sends_people_to_the_login(pool: PgPool) {
"{t}"
);
assert!(t.contains("Sign out of id.cnx.network"), "{t}");
// the public page is open; the back office behind it is not
// `/` leads to the back office, which asks for the sign-in; the public
// website is lannadesk.com, a site of its own
let r = app.get("/").await;
assert_eq!(r.status, StatusCode::OK);
let t = r.text();
assert!(
t.contains("Lanna Desk") && t.contains("mailto:contact@lannadesk.com"),
"{t}"
);
assert!(
t.contains("href=\"/desk\" id=\"staff\">Staff sign-in"),
"{t}"
);
assert!(!t.contains("Deadlines") && !t.contains("MUSTERMANN"), "{t}");
assert_eq!(app.get("/static/landing.css").await.status, StatusCode::OK);
assert_eq!(r.location(), "/desk");
assert_eq!(
app.get("/static/brand/lannadesk-logo-dark.svg")
.await
+2 -4
View File
@@ -266,10 +266,8 @@ async fn open_paths_headers_and_not_found(pool: PgPool) {
let r = app.get("/desk").await;
assert_eq!(r.status, StatusCode::OK);
assert!(r.text().contains("No people yet"));
// `/` is the public page, the same signed in or not
let r = app.get("/").await;
assert_eq!(r.status, StatusCode::OK);
assert!(r.text().contains("Visas, work permits and contracts"));
// `/` leads to the back office
assert_eq!(app.get("/").await.location(), "/desk");
let r = app.get("/people/999999").await;
assert_eq!(r.status, StatusCode::NOT_FOUND);