forge
Explore
Log in

Don't you dare go Hollow

The program is called izlek, everywhere

Browse files at this commit

37a37699a084ca6bc05201d0bb4fce4a9686a9a5Ahmet Kaan GümüşParent: 4448aed
  • refactor
    • the program is called izlek, everywhere
Show full message
🚚 refactor: the program is called izlek, everywhere

Crates, binary, config file, database file, key file, UI wordmark and
every string that said dizey now say izlek. The one non-mechanical spot:
the known-answer digest test in auth.rs hashed the literal product name,
so its precomputed SHA-256 constant was recomputed for "izlek".
.gitignoremodified+2 -2
@@ -4,6 +4,6 @@
4 *.db4 *.db
5 *.db-*5 *.db-*
6 .env6 .env
7-dizey.key7+izlek.key
8-dizey.toml8+izlek.toml
9 CLAUDE.md9 CLAUDE.md
Cargo.lockmodified+46 -46
@@ -964,52 +964,6 @@ dependencies = [
964 "syn 3.0.4",964 "syn 3.0.4",
965 ]965 ]
966 966
967-[[package]]
968-name = "dizey-core"
969-version = "0.1.0"
970-dependencies = [
971- "argon2",
972- "async-trait",
973- "base64 0.22.1",
974- "chacha20poly1305",
975- "rand 0.10.2",
976- "serde",
977- "serde_json",
978- "sha2 0.11.0",
979- "subtle",
980- "thiserror",
981- "time",
982- "tokio",
983- "toml",
984- "turso",
985- "uuid",
986-]
987-
988-[[package]]
989-name = "dizey-web"
990-version = "0.1.0"
991-dependencies = [
992- "async-trait",
993- "axum",
994- "console_error_panic_hook",
995- "dizey-core",
996- "leptos",
997- "leptos_axum",
998- "leptos_meta",
999- "leptos_router",
1000- "lettre",
1001- "serde",
1002- "serde_json",
1003- "thiserror",
1004- "time",
1005- "tokio",
1006- "tower",
1007- "tower-http 0.7.0",
1008- "turso",
1009- "uuid",
1010- "wasm-bindgen",
1011-]
1012-
1013 [[package]]967 [[package]]
1014 name = "downcast-rs"968 name = "downcast-rs"
1015 version = "2.0.2"969 version = "2.0.2"
@@ -1893,6 +1847,52 @@ version = "1.0.18"
1893 source = "registry+https://github.com/rust-lang/crates.io-index"1847 source = "registry+https://github.com/rust-lang/crates.io-index"
1894 checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"1848 checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
1895 1849
1850+[[package]]
1851+name = "izlek-core"
1852+version = "0.1.0"
1853+dependencies = [
1854+ "argon2",
1855+ "async-trait",
1856+ "base64 0.22.1",
1857+ "chacha20poly1305",
1858+ "rand 0.10.2",
1859+ "serde",
1860+ "serde_json",
1861+ "sha2 0.11.0",
1862+ "subtle",
1863+ "thiserror",
1864+ "time",
1865+ "tokio",
1866+ "toml",
1867+ "turso",
1868+ "uuid",
1869+]
1870+
1871+[[package]]
1872+name = "izlek-web"
1873+version = "0.1.0"
1874+dependencies = [
1875+ "async-trait",
1876+ "axum",
1877+ "console_error_panic_hook",
1878+ "izlek-core",
1879+ "leptos",
1880+ "leptos_axum",
1881+ "leptos_meta",
1882+ "leptos_router",
1883+ "lettre",
1884+ "serde",
1885+ "serde_json",
1886+ "thiserror",
1887+ "time",
1888+ "tokio",
1889+ "tower",
1890+ "tower-http 0.7.0",
1891+ "turso",
1892+ "uuid",
1893+ "wasm-bindgen",
1894+]
1895+
1896 [[package]]1896 [[package]]
1897 name = "jobserver"1897 name = "jobserver"
1898 version = "0.1.35"1898 version = "0.1.35"
Cargo.tomlmodified+7 -7
@@ -1,15 +1,15 @@
1 [workspace]1 [workspace]
2 resolver = "3"2 resolver = "3"
3-members = ["crates/dizey-core", "crates/dizey-web"]3+members = ["crates/izlek-core", "crates/izlek-web"]
4 4
5 [workspace.package]5 [workspace.package]
6 version = "0.1.0"6 version = "0.1.0"
7 edition = "2024"7 edition = "2024"
8 license = "AGPL-3.0-or-later"8 license = "AGPL-3.0-or-later"
9-repository = "https://github.com/DizeyLab/izlek"9+repository = "https://github.com/IzlekLab/izlek"
10 10
11 [workspace.dependencies]11 [workspace.dependencies]
12-dizey-core = { path = "crates/dizey-core", default-features = false }12+izlek-core = { path = "crates/izlek-core", default-features = false }
13 serde = { version = "1.0.229", features = ["derive"] }13 serde = { version = "1.0.229", features = ["derive"] }
14 serde_json = "1.0.145"14 serde_json = "1.0.145"
15 thiserror = "2.0.20"15 thiserror = "2.0.20"
@@ -31,10 +31,10 @@ lto = true
31 31
32 # cargo-leptos drives the two-target (server bin + wasm lib) build.32 # cargo-leptos drives the two-target (server bin + wasm lib) build.
33 [[workspace.metadata.leptos]]33 [[workspace.metadata.leptos]]
34-name = "dizey"34+name = "izlek"
35-bin-package = "dizey-web"35+bin-package = "izlek-web"
36-lib-package = "dizey-web"36+lib-package = "izlek-web"
37-output-name = "dizey"37+output-name = "izlek"
38 site-root = "target/site"38 site-root = "target/site"
39 site-pkg-dir = "pkg"39 site-pkg-dir = "pkg"
40 style-file = "style/main.scss"40 style-file = "style/main.scss"
crates/dizey-core/Cargo.toml → crates/izlek-core/Cargo.tomlrenamed+2 -2
@@ -1,10 +1,10 @@
1 [package]1 [package]
2-name = "dizey-core"2+name = "izlek-core"
3 version.workspace = true3 version.workspace = true
4 edition.workspace = true4 edition.workspace = true
5 license.workspace = true5 license.workspace = true
6 repository.workspace = true6 repository.workspace = true
7-description = "Domain model and storage for Dizey"7+description = "Domain model and storage for Izlek"
8 8
9 [features]9 [features]
10 # The domain vocabulary (roles, record shapes) compiles anywhere, including the10 # The domain vocabulary (roles, record shapes) compiles anywhere, including the
crates/dizey-core/migrations/0001_init.sql → crates/izlek-core/migrations/0001_init.sqlrenamed+2 -2
@@ -1,4 +1,4 @@
1--- Dizey initial schema.1+-- Izlek initial schema.
2 --2 --
3 -- Plain versioned SQL applied at boot: Turso has no migration runner of its3 -- Plain versioned SQL applied at boot: Turso has no migration runner of its
4 -- own, and keeping the schema as SQL is what makes the store trait swappable.4 -- own, and keeping the schema as SQL is what makes the store trait swappable.
@@ -171,7 +171,7 @@ CREATE TABLE mail_send (
171 );171 );
172 CREATE UNIQUE INDEX mail_send_once ON mail_send(rule_id, task_id, transition);172 CREATE UNIQUE INDEX mail_send_once ON mail_send(rule_id, task_id, transition);
173 173
174--- Read-only links: dizey.sh/v/<id>. Only the hash of the token is stored, so a174+-- Read-only links: izlek.sh/v/<id>. Only the hash of the token is stored, so a
175 -- database copy does not hand out working links; revoking is server-side and175 -- database copy does not hand out working links; revoking is server-side and
176 -- immediate.176 -- immediate.
177 CREATE TABLE view_link (177 CREATE TABLE view_link (
crates/dizey-core/migrations/0002_auth.sql → crates/izlek-core/migrations/0002_auth.sqlrenamed+0 -0
crates/dizey-core/migrations/0003_transition.sql → crates/izlek-core/migrations/0003_transition.sqlrenamed+0 -0
crates/dizey-core/migrations/0004_mail.sql → crates/izlek-core/migrations/0004_mail.sqlrenamed+0 -0
crates/dizey-core/migrations/0005_freeing.sql → crates/izlek-core/migrations/0005_freeing.sqlrenamed+0 -0
crates/dizey-core/migrations/0006_sender_is_config.sql → crates/izlek-core/migrations/0006_sender_is_config.sqlrenamed+2 -2
@@ -6,8 +6,8 @@
6 -- database file that is copied for a backup carries it along. The sender is6 -- database file that is copied for a backup carries it along. The sender is
7 -- infrastructure, not workspace content — it is the same for everyone in the7 -- infrastructure, not workspace content — it is the same for everyone in the
8 -- workspace, it changes when the deployment changes, and it is already read8 -- workspace, it changes when the deployment changes, and it is already read
9--- from `DIZEY_SMTP_HOST`, `DIZEY_SMTP_PORT`, `DIZEY_SMTP_USERNAME`,9+-- from `IZLEK_SMTP_HOST`, `IZLEK_SMTP_PORT`, `IZLEK_SMTP_USERNAME`,
10--- `DIZEY_SMTP_PASSWORD` and `DIZEY_MAIL_FROM` at boot.10+-- `IZLEK_SMTP_PASSWORD` and `IZLEK_MAIL_FROM` at boot.
11 --11 --
12 -- So the columns go. Settings shows what the process is configured with and12 -- So the columns go. Settings shows what the process is configured with and
13 -- says the password lives in the server's configuration; changing it means13 -- says the password lives in the server's configuration; changing it means
crates/dizey-core/migrations/0007_who_invited.sql → crates/izlek-core/migrations/0007_who_invited.sqlrenamed+0 -0
crates/dizey-core/migrations/0008_sender_is_settings.sql → crates/izlek-core/migrations/0008_sender_is_settings.sqlrenamed+0 -0
crates/dizey-core/migrations/0009_sender_test.sql → crates/izlek-core/migrations/0009_sender_test.sqlrenamed+0 -0
crates/dizey-core/migrations/0010_attachments_live_in_the_file.sql → crates/izlek-core/migrations/0010_attachments_live_in_the_file.sqlrenamed+1 -1
@@ -1,7 +1,7 @@
1 -- Attachments, moved off the filesystem and into the database file.1 -- Attachments, moved off the filesystem and into the database file.
2 --2 --
3 -- The table 0001 wrote kept a `stored_path`, and nothing ever filled it in.3 -- The table 0001 wrote kept a `stored_path`, and nothing ever filled it in.
4--- A path is the wrong shape for two reasons. Dizey is one process over one4+-- A path is the wrong shape for two reasons. Izlek is one process over one
5 -- database file, and a second place to keep state is a second thing to back5 -- database file, and a second place to keep state is a second thing to back
6 -- up, to lock, and to get out of step with the rows that name it. And a path6 -- up, to lock, and to get out of step with the rows that name it. And a path
7 -- is exactly where an uploaded file name must never end up: `../../etc` is a7 -- is exactly where an uploaded file name must never end up: `../../etc` is a
crates/dizey-core/src/accounts.rs → crates/izlek-core/src/accounts.rsrenamed+0 -0
crates/dizey-core/src/auth.rs → crates/izlek-core/src/auth.rsrenamed+6 -6
@@ -231,11 +231,11 @@ mod tests {
231 231
232 #[test]232 #[test]
233 fn known_answer_for_the_token_digest() {233 fn known_answer_for_the_token_digest() {
234- // SHA-256("dizey"), so a refactor cannot quietly change the algorithm234+ // SHA-256("izlek"), so a refactor cannot quietly change the algorithm
235 // under stored hashes.235 // under stored hashes.
236 assert_eq!(236 assert_eq!(
237- hash_token("dizey"),237+ hash_token("izlek"),
238- "ecef066ddcba712d09eca07be6a8625343e795c97b73a7f2f03417cce1fa58d7"238+ "d81eac046551d3591888f0c7012b8faece2cc3501f63398bc040118bfd835d8e"
239 );239 );
240 }240 }
241 241
@@ -249,7 +249,7 @@ mod tests {
249 249
250 #[test]250 #[test]
251 fn password_rules_are_the_ones_on_the_screen() {251 fn password_rules_are_the_ones_on_the_screen() {
252- let email = "grace@dizey.sh";252+ let email = "grace@izlek.sh";
253 let name = "Grace Hopper";253 let name = "Grace Hopper";
254 assert_eq!(254 assert_eq!(
255 check_password("short", email, name),255 check_password("short", email, name),
@@ -265,7 +265,7 @@ mod tests {
265 "case must not be an escape hatch"265 "case must not be an escape hatch"
266 );266 );
267 assert_eq!(267 assert_eq!(
268- check_password("grace@dizey.sh!!", email, name),268+ check_password("grace@izlek.sh!!", email, name),
269 Err(PasswordProblem::LooksLikeYou)269 Err(PasswordProblem::LooksLikeYou)
270 );270 );
271 assert!(check_password("tide-tables-1892", email, name).is_ok());271 assert!(check_password("tide-tables-1892", email, name).is_ok());
@@ -280,7 +280,7 @@ mod tests {
280 280
281 #[cfg(test)]281 #[cfg(test)]
282 mod dummy_hash_generator {282 mod dummy_hash_generator {
283- //! Run with `cargo test -p dizey-core --lib print_a_dummy_hash -- --ignored283+ //! Run with `cargo test -p izlek-core --lib print_a_dummy_hash -- --ignored
284 //! --nocapture` to mint a replacement for [`super::dummy_password_hash`].284 //! --nocapture` to mint a replacement for [`super::dummy_password_hash`].
285 #[test]285 #[test]
286 #[ignore = "generator, not a check"]286 #[ignore = "generator, not a check"]
crates/dizey-core/src/board.rs → crates/izlek-core/src/board.rsrenamed+0 -0
crates/dizey-core/src/config.rs → crates/izlek-core/src/config.rsrenamed+25 -25
@@ -1,16 +1,16 @@
1-//! Everything Dizey reads from `dizey.toml`, in one place.1+//! Everything Izlek reads from `izlek.toml`, in one place.
2 //!2 //!
3 //! Nothing here has a silent default once the file exists. A key that is3 //! Nothing here has a silent default once the file exists. A key that is
4 //! missing, empty or unusable stops the boot and says which key and which4 //! missing, empty or unusable stops the boot and says which key and which
5 //! file, because the alternative is worse than not starting: a wrong5 //! file, because the alternative is worse than not starting: a wrong
6-//! `database` does not mean "no data", it means a second Dizey quietly6+//! `database` does not mean "no data", it means a second Izlek quietly
7 //! writing a different file while everyone believes they are looking at the7 //! writing a different file while everyone believes they are looking at the
8 //! same board — and Turso is single-writer, so the two are not even8 //! same board — and Turso is single-writer, so the two are not even
9 //! reconcilable afterwards. A wrong `base_url` mails people a sign-in link9 //! reconcilable afterwards. A wrong `base_url` mails people a sign-in link
10 //! pointing at a host that is not us.10 //! pointing at a host that is not us.
11 //!11 //!
12 //! Development still needs to be one command, so the *absence* of12 //! Development still needs to be one command, so the *absence* of
13-//! `dizey.toml` is the opt-in that takes the development defaults: the app13+//! `izlek.toml` is the opt-in that takes the development defaults: the app
14 //! writes the file itself, with those defaults in it and comments saying14 //! writes the file itself, with those defaults in it and comments saying
15 //! what each key does, and starts. That is opt-in on purpose too — it only15 //! what each key does, and starts. That is opt-in on purpose too — it only
16 //! ever happens once, because the second boot finds the file it wrote the16 //! ever happens once, because the second boot finds the file it wrote the
@@ -32,17 +32,17 @@ use std::fmt;
32 use std::path::{Path, PathBuf};32 use std::path::{Path, PathBuf};
33 33
34 /// The name of the file `Config::load` reads and, failing that, writes.34 /// The name of the file `Config::load` reads and, failing that, writes.
35-const FILE_NAME: &str = "dizey.toml";35+const FILE_NAME: &str = "izlek.toml";
36 36
37-/// What a freshly written `dizey.toml` says, comments included. Development37+/// What a freshly written `izlek.toml` says, comments included. Development
38-/// defaults, so that a plain `dizey` in an empty directory is one command.38+/// defaults, so that a plain `izlek` in an empty directory is one command.
39 const DEVELOPMENT_DEFAULTS: &str = r#"# Where the one database file lives. One process holds it.39 const DEVELOPMENT_DEFAULTS: &str = r#"# Where the one database file lives. One process holds it.
40-database = "dizey.db"40+database = "izlek.db"
41 # The origin sign-in links in mail point at.41 # The origin sign-in links in mail point at.
42 base_url = "http://127.0.0.1:3000"42 base_url = "http://127.0.0.1:3000"
43 "#;43 "#;
44 44
45-/// The shape of `dizey.toml`, before the values are checked.45+/// The shape of `izlek.toml`, before the values are checked.
46 #[derive(Deserialize)]46 #[derive(Deserialize)]
47 struct Toml {47 struct Toml {
48 database: Option<String>,48 database: Option<String>,
@@ -56,7 +56,7 @@ pub struct Config {
56 pub database: PathBuf,56 pub database: PathBuf,
57 /// The origin links in mail point at, with no trailing slash.57 /// The origin links in mail point at, with no trailing slash.
58 pub base_url: String,58 pub base_url: String,
59- /// Whether `dizey.toml` did not exist and was just written with the59+ /// Whether `izlek.toml` did not exist and was just written with the
60 /// development defaults this boot.60 /// development defaults this boot.
61 pub defaulted: bool,61 pub defaulted: bool,
62 }62 }
@@ -101,7 +101,7 @@ impl fmt::Display for ConfigError {
101 impl std::error::Error for ConfigError {}101 impl std::error::Error for ConfigError {}
102 102
103 impl Config {103 impl Config {
104- /// Reads `dizey.toml` from the current directory, writing it with the104+ /// Reads `izlek.toml` from the current directory, writing it with the
105 /// development defaults first if it is not there.105 /// development defaults first if it is not there.
106 pub fn load() -> Result<Config, ConfigError> {106 pub fn load() -> Result<Config, ConfigError> {
107 Config::load_from(Path::new("."))107 Config::load_from(Path::new("."))
@@ -109,7 +109,7 @@ impl Config {
109 109
110 /// The same reading, against any directory — which is how it is tested110 /// The same reading, against any directory — which is how it is tested
111 /// without a test being able to disturb another test's working111 /// without a test being able to disturb another test's working
112- /// directory, or another test's `dizey.toml`.112+ /// directory, or another test's `izlek.toml`.
113 pub fn load_from(dir: &Path) -> Result<Config, ConfigError> {113 pub fn load_from(dir: &Path) -> Result<Config, ConfigError> {
114 let path = dir.join(FILE_NAME);114 let path = dir.join(FILE_NAME);
115 match std::fs::read_to_string(&path) {115 match std::fs::read_to_string(&path) {
@@ -119,7 +119,7 @@ impl Config {
119 ConfigError::Io(format!("could not write {}: {err}", path.display()))119 ConfigError::Io(format!("could not write {}: {err}", path.display()))
120 })?;120 })?;
121 println!(121 println!(
122- "dizey wrote {FILE_NAME} with development defaults — edit it for a real deployment"122+ "izlek wrote {FILE_NAME} with development defaults — edit it for a real deployment"
123 );123 );
124 Config::parse(DEVELOPMENT_DEFAULTS, dir, true)124 Config::parse(DEVELOPMENT_DEFAULTS, dir, true)
125 }125 }
@@ -173,7 +173,7 @@ impl Config {
173 }173 }
174 174
175 /// An absolute path for a file that may not exist yet: the directory is175 /// An absolute path for a file that may not exist yet: the directory is
176-/// resolved against `base` (the directory `dizey.toml` was read from), the176+/// resolved against `base` (the directory `izlek.toml` was read from), the
177 /// file name is kept as written.177 /// file name is kept as written.
178 fn absolute(base: &Path, path: &Path) -> PathBuf {178 fn absolute(base: &Path, path: &Path) -> PathBuf {
179 if path.is_absolute() {179 if path.is_absolute() {
@@ -199,7 +199,7 @@ mod tests {
199 /// A scratch directory, cleaned up when the test ends, so `load_from` can199 /// A scratch directory, cleaned up when the test ends, so `load_from` can
200 /// be exercised without touching the process's own working directory.200 /// be exercised without touching the process's own working directory.
201 fn scratch() -> PathBuf {201 fn scratch() -> PathBuf {
202- let dir = std::env::temp_dir().join(format!("dizey-config-test-{}", uuid_like()));202+ let dir = std::env::temp_dir().join(format!("izlek-config-test-{}", uuid_like()));
203 std::fs::create_dir_all(&dir).unwrap();203 std::fs::create_dir_all(&dir).unwrap();
204 dir204 dir
205 }205 }
@@ -220,7 +220,7 @@ mod tests {
220 let config = Config::load_from(&dir).unwrap();220 let config = Config::load_from(&dir).unwrap();
221 assert!(config.defaulted);221 assert!(config.defaulted);
222 assert!(config.database.is_absolute(), "{:?}", config.database);222 assert!(config.database.is_absolute(), "{:?}", config.database);
223- assert!(config.database.ends_with("dizey.db"));223+ assert!(config.database.ends_with("izlek.db"));
224 assert_eq!(config.base_url, "http://127.0.0.1:3000");224 assert_eq!(config.base_url, "http://127.0.0.1:3000");
225 225
226 let written = std::fs::read_to_string(dir.join(FILE_NAME)).unwrap();226 let written = std::fs::read_to_string(dir.join(FILE_NAME)).unwrap();
@@ -235,7 +235,7 @@ mod tests {
235 #[test]235 #[test]
236 fn an_empty_string_is_not_a_value() {236 fn an_empty_string_is_not_a_value() {
237 let problem = Config::parse(237 let problem = Config::parse(
238- "database = \" \"\nbase_url = \"https://dizey.sh\"\n",238+ "database = \" \"\nbase_url = \"https://izlek.sh\"\n",
239 Path::new("."),239 Path::new("."),
240 false,240 false,
241 )241 )
@@ -245,12 +245,12 @@ mod tests {
245 245
246 #[test]246 #[test]
247 fn a_missing_key_names_itself_rather_than_guessing() {247 fn a_missing_key_names_itself_rather_than_guessing() {
248- let problem = Config::parse("base_url = \"https://dizey.sh\"\n", Path::new("."), false)248+ let problem = Config::parse("base_url = \"https://izlek.sh\"\n", Path::new("."), false)
249 .unwrap_err();249 .unwrap_err();
250 assert_eq!(problem, ConfigError::Missing("database"));250 assert_eq!(problem, ConfigError::Missing("database"));
251 let said = problem.to_string();251 let said = problem.to_string();
252 assert!(said.contains("database"), "{said}");252 assert!(said.contains("database"), "{said}");
253- assert!(said.contains("dizey.toml"), "{said}");253+ assert!(said.contains("izlek.toml"), "{said}");
254 }254 }
255 255
256 #[test]256 #[test]
@@ -261,20 +261,20 @@ mod tests {
261 matches!(problem, ConfigError::Unparseable { .. }),261 matches!(problem, ConfigError::Unparseable { .. }),
262 "{problem:?}"262 "{problem:?}"
263 );263 );
264- assert!(problem.to_string().contains("dizey.toml"));264+ assert!(problem.to_string().contains("izlek.toml"));
265 }265 }
266 266
267 #[test]267 #[test]
268 fn a_relative_database_is_reported_absolute() {268 fn a_relative_database_is_reported_absolute() {
269 let dir = scratch();269 let dir = scratch();
270 let config = Config::parse(270 let config = Config::parse(
271- "database = \"state/dizey.db\"\nbase_url = \"https://dizey.sh\"\n",271+ "database = \"state/izlek.db\"\nbase_url = \"https://izlek.sh\"\n",
272 &dir,272 &dir,
273 false,273 false,
274 )274 )
275 .unwrap();275 .unwrap();
276 assert!(config.database.is_absolute(), "{:?}", config.database);276 assert!(config.database.is_absolute(), "{:?}", config.database);
277- assert!(config.database.ends_with("dizey.db"));277+ assert!(config.database.ends_with("izlek.db"));
278 let report = config.report().join("\n");278 let report = config.report().join("\n");
279 assert!(279 assert!(
280 report.contains(&config.database.display().to_string()),280 report.contains(&config.database.display().to_string()),
@@ -285,7 +285,7 @@ mod tests {
285 #[test]285 #[test]
286 fn a_base_url_that_is_not_an_origin_stops_the_boot() {286 fn a_base_url_that_is_not_an_origin_stops_the_boot() {
287 let problem = Config::parse(287 let problem = Config::parse(
288- "database = \"/srv/dizey.db\"\nbase_url = \"dizey.sh\"\n",288+ "database = \"/srv/izlek.db\"\nbase_url = \"izlek.sh\"\n",
289 Path::new("."),289 Path::new("."),
290 false,290 false,
291 )291 )
@@ -305,12 +305,12 @@ mod tests {
305 #[test]305 #[test]
306 fn the_base_url_keeps_no_trailing_slash_so_links_are_built_once() {306 fn the_base_url_keeps_no_trailing_slash_so_links_are_built_once() {
307 let config = Config::parse(307 let config = Config::parse(
308- "database = \"/srv/dizey.db\"\nbase_url = \"https://dizey.sh/\"\n",308+ "database = \"/srv/izlek.db\"\nbase_url = \"https://izlek.sh/\"\n",
309 Path::new("."),309 Path::new("."),
310 false,310 false,
311 )311 )
312 .unwrap();312 .unwrap();
313- assert_eq!(config.base_url, "https://dizey.sh");313+ assert_eq!(config.base_url, "https://izlek.sh");
314 }314 }
315 315
316 /// The sender used to be environment variables read directly. It is316 /// The sender used to be environment variables read directly. It is
@@ -321,7 +321,7 @@ mod tests {
321 #[test]321 #[test]
322 fn unrelated_keys_are_ignored_entirely() {322 fn unrelated_keys_are_ignored_entirely() {
323 let config = Config::parse(323 let config = Config::parse(
324- "database = \"/srv/dizey.db\"\nbase_url = \"https://dizey.sh\"\nsmtp_password = \"hunter2-and-then-some\"\n",324+ "database = \"/srv/izlek.db\"\nbase_url = \"https://izlek.sh\"\nsmtp_password = \"hunter2-and-then-some\"\n",
325 Path::new("."),325 Path::new("."),
326 false,326 false,
327 )327 )
crates/dizey-core/src/detail.rs → crates/izlek-core/src/detail.rsrenamed+0 -0
crates/dizey-core/src/lib.rs → crates/izlek-core/src/lib.rsrenamed+1 -1
@@ -1,4 +1,4 @@
1-//! Domain model and storage for Dizey.1+//! Domain model and storage for Izlek.
2 //!2 //!
3 //! The vocabulary — roles and record shapes — compiles everywhere, so the UI3 //! The vocabulary — roles and record shapes — compiles everywhere, so the UI
4 //! and the server speak the same types. The `server` feature adds the halves4 //! and the server speak the same types. The `server` feature adds the halves
crates/dizey-core/src/mail.rs → crates/izlek-core/src/mail.rsrenamed+3 -3
@@ -9,7 +9,7 @@
9 //!9 //!
10 //! Nobody is ever mailed about their own action. A rule's audience is resolved10 //! Nobody is ever mailed about their own action. A rule's audience is resolved
11 //! and the person who did the thing is taken off it, on every audience, always:11 //! and the person who did the thing is taken off it, on every audience, always:
12-//! three people on one board do not need Dizey telling each of them what they12+//! three people on one board do not need Izlek telling each of them what they
13 //! themselves just did. A rule whose audience is only the actor sends nothing13 //! themselves just did. A rule whose audience is only the actor sends nothing
14 //! and owes nothing — that is not a failure and does not appear as one.14 //! and owes nothing — that is not a failure and does not appear as one.
15 //!15 //!
@@ -147,8 +147,8 @@ impl Engine {
147 pub async fn send_test(&self, to: &str) -> std::result::Result<Duration, MailError> {147 pub async fn send_test(&self, to: &str) -> std::result::Result<Duration, MailError> {
148 let mail = Outgoing {148 let mail = Outgoing {
149 to: to.to_string(),149 to: to.to_string(),
150- subject: "Dizey test mail".to_string(),150+ subject: "Izlek test mail".to_string(),
151- body: "Somebody pressed the test button in Dizey's settings, and this \151+ body: "Somebody pressed the test button in Izlek's settings, and this \
152 is what came out. Nothing else was sent, and nobody else was \152 is what came out. Nothing else was sent, and nobody else was \
153 written to.\n"153 written to.\n"
154 .to_string(),154 .to_string(),
crates/dizey-core/src/role.rs → crates/izlek-core/src/role.rsrenamed+0 -0
crates/dizey-core/src/store/mod.rs → crates/izlek-core/src/store/mod.rsrenamed+1 -1
@@ -528,7 +528,7 @@ pub trait Store: BoardReads + DetailReads + 'static {
528 ) -> Result<String>;528 ) -> Result<String>;
529 529
530 /// Hangs a file off a task. The bytes go into the database file with the530 /// Hangs a file off a task. The bytes go into the database file with the
531- /// row: there is no second place for a Dizey deployment to keep, and no531+ /// row: there is no second place for a Izlek deployment to keep, and no
532 /// path for an uploaded name to become.532 /// path for an uploaded name to become.
533 ///533 ///
534 /// Nothing here decides whether the file was allowed — its size, its type534 /// Nothing here decides whether the file was allowed — its size, its type
crates/dizey-core/src/store/secret.rs → crates/izlek-core/src/store/secret.rsrenamed+3 -3
@@ -5,7 +5,7 @@
5 //! file — a backup, a snapshot, an `scp` by someone who should not have had5 //! file — a backup, a snapshot, an `scp` by someone who should not have had
6 //! it — carries the plaintext right along with it. This module is the fix:6 //! it — carries the plaintext right along with it. This module is the fix:
7 //! the column holds ciphertext, and the key that opens it lives in a second7 //! the column holds ciphertext, and the key that opens it lives in a second
8-//! file (`dizey.key`, beside the database) that a database backup does not8+//! file (`izlek.key`, beside the database) that a database backup does not
9 //! automatically include.9 //! automatically include.
10 //!10 //!
11 //! The envelope is `v1:` followed by base64 of a 24-byte XChaCha20-Poly130511 //! The envelope is `v1:` followed by base64 of a 24-byte XChaCha20-Poly1305
@@ -172,9 +172,9 @@ mod tests {
172 172
173 #[test]173 #[test]
174 fn load_or_create_key_persists_and_restricts() {174 fn load_or_create_key_persists_and_restricts() {
175- let dir = std::env::temp_dir().join(format!("dizey-key-test-{}", uuid_lite()));175+ let dir = std::env::temp_dir().join(format!("izlek-key-test-{}", uuid_lite()));
176 std::fs::create_dir_all(&dir).unwrap();176 std::fs::create_dir_all(&dir).unwrap();
177- let path = dir.join("dizey.key");177+ let path = dir.join("izlek.key");
178 let first = load_or_create_key(&path).unwrap();178 let first = load_or_create_key(&path).unwrap();
179 let second = load_or_create_key(&path).unwrap();179 let second = load_or_create_key(&path).unwrap();
180 assert_eq!(first, second, "a second open reuses the same key");180 assert_eq!(first, second, "a second open reuses the same key");
crates/dizey-core/src/store/turso_store.rs → crates/izlek-core/src/store/turso_store.rsrenamed+15 -15
@@ -3,7 +3,7 @@
3 //! Turso is in-process and SQLite-compatible, so the schema is plain SQL and3 //! Turso is in-process and SQLite-compatible, so the schema is plain SQL and
4 //! there is no server to run alongside the binary. It ships no migration runner4 //! there is no server to run alongside the binary. It ships no migration runner
5 //! of its own; [`TursoStore::open`] applies the numbered files in5 //! of its own; [`TursoStore::open`] applies the numbered files in
6-//! `crates/dizey-core/migrations` at boot and records the version.6+//! `crates/izlek-core/migrations` at boot and records the version.
7 7
8 use async_trait::async_trait;8 use async_trait::async_trait;
9 use rand::Rng;9 use rand::Rng;
@@ -328,7 +328,7 @@ async fn recipients_from(rows: &mut turso::Rows) -> Result<Vec<Recipient>> {
328 }328 }
329 329
330 /// `path` with its file name suffixed, for the WAL/SHM files Turso may leave330 /// `path` with its file name suffixed, for the WAL/SHM files Turso may leave
331-/// beside the main one (`dizey.db-wal`, `dizey.db-shm`).331+/// beside the main one (`izlek.db-wal`, `izlek.db-shm`).
332 fn sibling(path: &str, suffix: &str) -> std::path::PathBuf {332 fn sibling(path: &str, suffix: &str) -> std::path::PathBuf {
333 let mut name = std::path::Path::new(path)333 let mut name = std::path::Path::new(path)
334 .file_name()334 .file_name()
@@ -363,7 +363,7 @@ fn load_key(path: &str) -> Result<secret::Key> {
363 .parent()363 .parent()
364 .filter(|d| !d.as_os_str().is_empty())364 .filter(|d| !d.as_os_str().is_empty())
365 .unwrap_or_else(|| std::path::Path::new("."));365 .unwrap_or_else(|| std::path::Path::new("."));
366- secret::load_or_create_key(&dir.join("dizey.key")).map_err(backend)366+ secret::load_or_create_key(&dir.join("izlek.key")).map_err(backend)
367 }367 }
368 368
369 fn backend<E: std::fmt::Display>(e: E) -> StoreError {369 fn backend<E: std::fmt::Display>(e: E) -> StoreError {
@@ -722,7 +722,7 @@ impl Store for TursoStore {
722 None => return Err(StoreError::NotFound),722 None => return Err(StoreError::NotFound),
723 };723 };
724 // A decrypt failure — wrong key, damaged ciphertext, a restored724 // A decrypt failure — wrong key, damaged ciphertext, a restored
725- // backup missing its `dizey.key` — comes back as `None` rather than725+ // backup missing its `izlek.key` — comes back as `None` rather than
726 // an error. To every caller that is indistinguishable from a726 // an error. To every caller that is indistinguishable from a
727 // workspace that never had a sender, which is the intended727 // workspace that never had a sender, which is the intended
728 // degradation: mail send falls back to the no-sender path instead of728 // degradation: mail send falls back to the no-sender path instead of
@@ -2663,7 +2663,7 @@ mod probe {
2663 2663
2664 #[tokio::test]2664 #[tokio::test]
2665 async fn durability_defaults_are_recorded() {2665 async fn durability_defaults_are_recorded() {
2666- let dir = std::env::temp_dir().join(format!("dizey-probe-{}", Uuid::new_v4()));2666+ let dir = std::env::temp_dir().join(format!("izlek-probe-{}", Uuid::new_v4()));
2667 std::fs::create_dir_all(&dir).unwrap();2667 std::fs::create_dir_all(&dir).unwrap();
2668 let path = dir.join("probe.db");2668 let path = dir.join("probe.db");
2669 let db = Builder::new_local(path.to_str().unwrap())2669 let db = Builder::new_local(path.to_str().unwrap())
@@ -2681,7 +2681,7 @@ mod probe {
2681 2681
2682 #[tokio::test]2682 #[tokio::test]
2683 async fn concurrent_writers_on_one_database() {2683 async fn concurrent_writers_on_one_database() {
2684- let dir = std::env::temp_dir().join(format!("dizey-probe-{}", Uuid::new_v4()));2684+ let dir = std::env::temp_dir().join(format!("izlek-probe-{}", Uuid::new_v4()));
2685 std::fs::create_dir_all(&dir).unwrap();2685 std::fs::create_dir_all(&dir).unwrap();
2686 let path = dir.join("probe.db");2686 let path = dir.join("probe.db");
2687 let db = Builder::new_local(path.to_str().unwrap())2687 let db = Builder::new_local(path.to_str().unwrap())
@@ -2724,7 +2724,7 @@ mod probe {
2724 #[tokio::test(flavor = "multi_thread", worker_threads = 4)]2724 #[tokio::test(flavor = "multi_thread", worker_threads = 4)]
2725 async fn two_database_handles_on_one_file() {2725 async fn two_database_handles_on_one_file() {
2726 // Two handles on the same file is the shape a second process takes.2726 // Two handles on the same file is the shape a second process takes.
2727- let dir = std::env::temp_dir().join(format!("dizey-probe-{}", Uuid::new_v4()));2727+ let dir = std::env::temp_dir().join(format!("izlek-probe-{}", Uuid::new_v4()));
2728 std::fs::create_dir_all(&dir).unwrap();2728 std::fs::create_dir_all(&dir).unwrap();
2729 let path = dir.join("probe.db");2729 let path = dir.join("probe.db");
2730 let p = path.to_str().unwrap().to_string();2730 let p = path.to_str().unwrap().to_string();
@@ -2797,15 +2797,15 @@ mod probe {
2797 /// is asserted against the real query rather than against a comment.2797 /// is asserted against the real query rather than against a comment.
2798 #[tokio::test]2798 #[tokio::test]
2799 async fn the_workspace_read_path_cannot_carry_the_password() {2799 async fn the_workspace_read_path_cannot_carry_the_password() {
2800- let dir = std::env::temp_dir().join(format!("dizey-sender-{}", Uuid::new_v4()));2800+ let dir = std::env::temp_dir().join(format!("izlek-sender-{}", Uuid::new_v4()));
2801 std::fs::create_dir_all(&dir).unwrap();2801 std::fs::create_dir_all(&dir).unwrap();
2802- let store = TursoStore::open(dir.join("dizey.db").to_str().unwrap())2802+ let store = TursoStore::open(dir.join("izlek.db").to_str().unwrap())
2803 .await2803 .await
2804 .unwrap();2804 .unwrap();
2805 use crate::store::Store as _;2805 use crate::store::Store as _;
2806 2806
2807 let (ws, _admin) = store2807 let (ws, _admin) = store
2808- .claim_workspace("Dizey", "ada@dizey.sh", "Ada", "hash")2808+ .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "hash")
2809 .await2809 .await
2810 .unwrap();2810 .unwrap();
2811 store2811 store
@@ -2814,10 +2814,10 @@ mod probe {
2814 NewSender {2814 NewSender {
2815 host: "smtp.fastmail.com".into(),2815 host: "smtp.fastmail.com".into(),
2816 port: 587,2816 port: 587,
2817- username: "dizey".into(),2817+ username: "izlek".into(),
2818 password: Some("hunter2-and-then-some".into()),2818 password: Some("hunter2-and-then-some".into()),
2819- from_name: "Dizey".into(),2819+ from_name: "Izlek".into(),
2820- from_address: "dizey@dizey.sh".into(),2820+ from_address: "izlek@izlek.sh".into(),
2821 },2821 },
2822 )2822 )
2823 .await2823 .await
@@ -2853,9 +2853,9 @@ mod migration {
2853 /// only half-apply is a migration that can lose the mail ledger.2853 /// only half-apply is a migration that can lose the mail ledger.
2854 #[tokio::test]2854 #[tokio::test]
2855 async fn a_migration_that_fails_partway_leaves_nothing_behind() {2855 async fn a_migration_that_fails_partway_leaves_nothing_behind() {
2856- let dir = std::env::temp_dir().join(format!("dizey-migration-{}", Uuid::new_v4()));2856+ let dir = std::env::temp_dir().join(format!("izlek-migration-{}", Uuid::new_v4()));
2857 std::fs::create_dir_all(&dir).unwrap();2857 std::fs::create_dir_all(&dir).unwrap();
2858- let store = TursoStore::open(dir.join("dizey.db").to_str().unwrap())2858+ let store = TursoStore::open(dir.join("izlek.db").to_str().unwrap())
2859 .await2859 .await
2860 .unwrap();2860 .unwrap();
2861 let before = store.schema_version().await.unwrap();2861 let before = store.schema_version().await.unwrap();
crates/dizey-core/tests/store.rs → crates/izlek-core/tests/store.rsrenamed+180 -180
@@ -1,4 +1,4 @@
1-//! Integration tests for dizey-core: the storage boundary driven through the1+//! Integration tests for izlek-core: the storage boundary driven through the
2 //! Turso implementation, and the account flows on top of it.2 //! Turso implementation, and the account flows on top of it.
3 //!3 //!
4 //! New integration tests belong in this file rather than a new `tests/*.rs`:4 //! New integration tests belong in this file rather than a new `tests/*.rs`:
@@ -6,9 +6,9 @@
6 6
7 use std::path::PathBuf;7 use std::path::PathBuf;
8 8
9-use dizey_core::Role;9+use izlek_core::Role;
10-use dizey_core::auth::{Token, hash_password};10+use izlek_core::auth::{Token, hash_password};
11-use dizey_core::store::{11+use izlek_core::store::{
12 Audience, MailRule, NewAttachment, NewSender, NewUser, SendState, Store, StoreError, Trigger,12 Audience, MailRule, NewAttachment, NewSender, NewUser, SendState, Store, StoreError, Trigger,
13 TursoStore, User,13 TursoStore, User,
14 };14 };
@@ -24,9 +24,9 @@ struct Scratch {
24 24
25 impl Scratch {25 impl Scratch {
26 async fn open() -> Self {26 async fn open() -> Self {
27- let dir = std::env::temp_dir().join(format!("dizey-test-{}", Uuid::new_v4()));27+ let dir = std::env::temp_dir().join(format!("izlek-test-{}", Uuid::new_v4()));
28 std::fs::create_dir_all(&dir).unwrap();28 std::fs::create_dir_all(&dir).unwrap();
29- let store = TursoStore::open(dir.join("dizey.db").to_str().unwrap())29+ let store = TursoStore::open(dir.join("izlek.db").to_str().unwrap())
30 .await30 .await
31 .unwrap();31 .unwrap();
32 Self { dir, store }32 Self { dir, store }
@@ -37,7 +37,7 @@ impl Scratch {
37 /// need to see a column the way it actually sits on disk rather than through37 /// need to see a column the way it actually sits on disk rather than through
38 /// [`Store`]'s API.38 /// [`Store`]'s API.
39 async fn raw_conn(scratch: &Scratch) -> turso::Connection {39 async fn raw_conn(scratch: &Scratch) -> turso::Connection {
40- let db = turso::Builder::new_local(scratch.dir.join("dizey.db").to_str().unwrap())40+ let db = turso::Builder::new_local(scratch.dir.join("izlek.db").to_str().unwrap())
41 .build()41 .build()
42 .await42 .await
43 .unwrap();43 .unwrap();
@@ -55,8 +55,8 @@ async fn workspace_with_admin() -> (Scratch, String, String) {
55 let (ws, admin) = scratch55 let (ws, admin) = scratch
56 .store56 .store
57 .claim_workspace(57 .claim_workspace(
58- "Dizey",58+ "Izlek",
59- "ada@dizey.sh",59+ "ada@izlek.sh",
60 "Ada",60 "Ada",
61 &hash_password("tide-tables-1892").unwrap(),61 &hash_password("tide-tables-1892").unwrap(),
62 )62 )
@@ -70,8 +70,8 @@ async fn workspace_with_admin() -> (Scratch, String, String) {
70 async fn claim(store: &TursoStore) -> (String, String) {70 async fn claim(store: &TursoStore) -> (String, String) {
71 let (ws, admin) = store71 let (ws, admin) = store
72 .claim_workspace(72 .claim_workspace(
73- "Dizey",73+ "Izlek",
74- "ada@dizey.sh",74+ "ada@izlek.sh",
75 "Ada",75 "Ada",
76 &hash_password("tide-tables-1892").unwrap(),76 &hash_password("tide-tables-1892").unwrap(),
77 )77 )
@@ -96,9 +96,9 @@ async fn member(store: &TursoStore, workspace_id: &str, email: &str, name: &str)
96 96
97 #[tokio::test]97 #[tokio::test]
98 async fn migrations_apply_once_and_survive_reopen() {98 async fn migrations_apply_once_and_survive_reopen() {
99- let dir = std::env::temp_dir().join(format!("dizey-test-{}", Uuid::new_v4()));99+ let dir = std::env::temp_dir().join(format!("izlek-test-{}", Uuid::new_v4()));
100 std::fs::create_dir_all(&dir).unwrap();100 std::fs::create_dir_all(&dir).unwrap();
101- let path = dir.join("dizey.db").to_string_lossy().into_owned();101+ let path = dir.join("izlek.db").to_string_lossy().into_owned();
102 102
103 let first = TursoStore::open(&path).await.unwrap();103 let first = TursoStore::open(&path).await.unwrap();
104 assert_eq!(first.schema_version().await.unwrap(), 10);104 assert_eq!(first.schema_version().await.unwrap(), 10);
@@ -109,7 +109,7 @@ async fn migrations_apply_once_and_survive_reopen() {
109 // must not lose what the first open wrote.109 // must not lose what the first open wrote.
110 let second = TursoStore::open(&path).await.unwrap();110 let second = TursoStore::open(&path).await.unwrap();
111 assert_eq!(second.schema_version().await.unwrap(), 10);111 assert_eq!(second.schema_version().await.unwrap(), 10);
112- assert_eq!(second.workspace().await.unwrap().unwrap().name, "Dizey");112+ assert_eq!(second.workspace().await.unwrap().unwrap().name, "Izlek");
113 drop(second);113 drop(second);
114 let _ = std::fs::remove_dir_all(&dir);114 let _ = std::fs::remove_dir_all(&dir);
115 }115 }
@@ -146,7 +146,7 @@ async fn a_second_claim_loses_and_changes_nothing() {
146 // The loser must not have joined as anything at all.146 // The loser must not have joined as anything at all.
147 assert_eq!(147 assert_eq!(
148 scratch.store.workspace().await.unwrap().unwrap().name,148 scratch.store.workspace().await.unwrap().unwrap().name,
149- "Dizey"149+ "Izlek"
150 );150 );
151 assert_eq!(scratch.store.count_users("").await.unwrap(), 0);151 assert_eq!(scratch.store.count_users("").await.unwrap(), 0);
152 let ws_id = scratch.store.workspace().await.unwrap().unwrap().id;152 let ws_id = scratch.store.workspace().await.unwrap().unwrap().id;
@@ -163,9 +163,9 @@ async fn a_second_claim_loses_and_changes_nothing() {
163 163
164 #[tokio::test(flavor = "multi_thread", worker_threads = 4)]164 #[tokio::test(flavor = "multi_thread", worker_threads = 4)]
165 async fn concurrent_claims_produce_exactly_one_admin() {165 async fn concurrent_claims_produce_exactly_one_admin() {
166- let dir = std::env::temp_dir().join(format!("dizey-test-{}", Uuid::new_v4()));166+ let dir = std::env::temp_dir().join(format!("izlek-test-{}", Uuid::new_v4()));
167 std::fs::create_dir_all(&dir).unwrap();167 std::fs::create_dir_all(&dir).unwrap();
168- let path = dir.join("dizey.db").to_string_lossy().into_owned();168+ let path = dir.join("izlek.db").to_string_lossy().into_owned();
169 let store = std::sync::Arc::new(TursoStore::open(&path).await.unwrap());169 let store = std::sync::Arc::new(TursoStore::open(&path).await.unwrap());
170 170
171 let hash = hash_password("tide-tables-1892").unwrap();171 let hash = hash_password("tide-tables-1892").unwrap();
@@ -176,8 +176,8 @@ async fn concurrent_claims_produce_exactly_one_admin() {
176 claims.push(tokio::spawn(async move {176 claims.push(tokio::spawn(async move {
177 store177 store
178 .claim_workspace(178 .claim_workspace(
179- "Dizey",179+ "Izlek",
180- &format!("claimant{i}@dizey.sh"),180+ &format!("claimant{i}@izlek.sh"),
181 &format!("Claimant {i}"),181 &format!("Claimant {i}"),
182 &hash,182 &hash,
183 )183 )
@@ -215,8 +215,8 @@ async fn workspace_defaults_match_the_settings_screen() {
215 let (ws, _) = scratch215 let (ws, _) = scratch
216 .store216 .store
217 .claim_workspace(217 .claim_workspace(
218- "Dizey",218+ "Izlek",
219- "ada@dizey.sh",219+ "ada@izlek.sh",
220 "Ada",220 "Ada",
221 &hash_password("tide-tables-1892").unwrap(),221 &hash_password("tide-tables-1892").unwrap(),
222 )222 )
@@ -247,10 +247,10 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() {
247 NewSender {247 NewSender {
248 host: "smtp.fastmail.com".into(),248 host: "smtp.fastmail.com".into(),
249 port: 587,249 port: 587,
250- username: "dizey".into(),250+ username: "izlek".into(),
251 password: Some("a-very-secret-string".into()),251 password: Some("a-very-secret-string".into()),
252- from_name: "Dizey".into(),252+ from_name: "Izlek".into(),
253- from_address: "dizey@dizey.sh".into(),253+ from_address: "izlek@izlek.sh".into(),
254 },254 },
255 )255 )
256 .await256 .await
@@ -259,9 +259,9 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() {
259 let ws = scratch.store.workspace().await.unwrap().unwrap();259 let ws = scratch.store.workspace().await.unwrap().unwrap();
260 assert_eq!(ws.smtp_host.as_deref(), Some("smtp.fastmail.com"));260 assert_eq!(ws.smtp_host.as_deref(), Some("smtp.fastmail.com"));
261 assert_eq!(ws.smtp_port, Some(587));261 assert_eq!(ws.smtp_port, Some(587));
262- assert_eq!(ws.smtp_username.as_deref(), Some("dizey"));262+ assert_eq!(ws.smtp_username.as_deref(), Some("izlek"));
263- assert_eq!(ws.smtp_from_name.as_deref(), Some("Dizey"));263+ assert_eq!(ws.smtp_from_name.as_deref(), Some("Izlek"));
264- assert_eq!(ws.smtp_from_address.as_deref(), Some("dizey@dizey.sh"));264+ assert_eq!(ws.smtp_from_address.as_deref(), Some("izlek@izlek.sh"));
265 assert!(ws.smtp_password_set, "the screen must be able to say 'set'");265 assert!(ws.smtp_password_set, "the screen must be able to say 'set'");
266 266
267 let serialised = serde_json::to_string(&ws).unwrap();267 let serialised = serde_json::to_string(&ws).unwrap();
@@ -280,10 +280,10 @@ async fn a_save_with_no_password_typed_keeps_the_stored_one() {
280 let mut sender = NewSender {280 let mut sender = NewSender {
281 host: "smtp.fastmail.com".into(),281 host: "smtp.fastmail.com".into(),
282 port: 587,282 port: 587,
283- username: "dizey".into(),283+ username: "izlek".into(),
284 password: Some("keep-me".into()),284 password: Some("keep-me".into()),
285- from_name: "Dizey".into(),285+ from_name: "Izlek".into(),
286- from_address: "dizey@dizey.sh".into(),286+ from_address: "izlek@izlek.sh".into(),
287 };287 };
288 scratch.store.set_sender(&ws_id, sender.clone()).await.unwrap();288 scratch.store.set_sender(&ws_id, sender.clone()).await.unwrap();
289 289
@@ -308,10 +308,10 @@ async fn a_typed_password_replaces_the_stored_one() {
308 let mut sender = NewSender {308 let mut sender = NewSender {
309 host: "smtp.fastmail.com".into(),309 host: "smtp.fastmail.com".into(),
310 port: 587,310 port: 587,
311- username: "dizey".into(),311+ username: "izlek".into(),
312 password: Some("the-old-one".into()),312 password: Some("the-old-one".into()),
313- from_name: "Dizey".into(),313+ from_name: "Izlek".into(),
314- from_address: "dizey@dizey.sh".into(),314+ from_address: "izlek@izlek.sh".into(),
315 };315 };
316 scratch.store.set_sender(&ws_id, sender.clone()).await.unwrap();316 scratch.store.set_sender(&ws_id, sender.clone()).await.unwrap();
317 sender.password = Some("the-new-one".into());317 sender.password = Some("the-new-one".into());
@@ -336,10 +336,10 @@ async fn the_stored_password_is_not_the_plaintext_on_disk() {
336 NewSender {336 NewSender {
337 host: "smtp.fastmail.com".into(),337 host: "smtp.fastmail.com".into(),
338 port: 587,338 port: 587,
339- username: "dizey".into(),339+ username: "izlek".into(),
340 password: Some("a-very-secret-string".into()),340 password: Some("a-very-secret-string".into()),
341- from_name: "Dizey".into(),341+ from_name: "Izlek".into(),
342- from_address: "dizey@dizey.sh".into(),342+ from_address: "izlek@izlek.sh".into(),
343 },343 },
344 )344 )
345 .await345 .await
@@ -365,7 +365,7 @@ async fn the_stored_password_is_not_the_plaintext_on_disk() {
365 );365 );
366 }366 }
367 367
368-/// A backup restored without its sibling `dizey.key`, or a key file damaged368+/// A backup restored without its sibling `izlek.key`, or a key file damaged
369 /// in place, must not crash mail sending or the settings screen — it has to369 /// in place, must not crash mail sending or the settings screen — it has to
370 /// degrade to "no password set", exactly like a workspace that never had a370 /// degrade to "no password set", exactly like a workspace that never had a
371 /// sender, so the admin can heal it by retyping the password once.371 /// sender, so the admin can heal it by retyping the password once.
@@ -379,10 +379,10 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() {
379 NewSender {379 NewSender {
380 host: "smtp.fastmail.com".into(),380 host: "smtp.fastmail.com".into(),
381 port: 587,381 port: 587,
382- username: "dizey".into(),382+ username: "izlek".into(),
383 password: Some("a-very-secret-string".into()),383 password: Some("a-very-secret-string".into()),
384- from_name: "Dizey".into(),384+ from_name: "Izlek".into(),
385- from_address: "dizey@dizey.sh".into(),385+ from_address: "izlek@izlek.sh".into(),
386 },386 },
387 )387 )
388 .await388 .await
@@ -413,10 +413,10 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() {
413 NewSender {413 NewSender {
414 host: "smtp.fastmail.com".into(),414 host: "smtp.fastmail.com".into(),
415 port: 587,415 port: 587,
416- username: "dizey".into(),416+ username: "izlek".into(),
417 password: Some("a-fresh-password".into()),417 password: Some("a-fresh-password".into()),
418- from_name: "Dizey".into(),418+ from_name: "Izlek".into(),
419- from_address: "dizey@dizey.sh".into(),419+ from_address: "izlek@izlek.sh".into(),
420 },420 },
421 )421 )
422 .await422 .await
@@ -435,8 +435,8 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() {
435 async fn the_database_and_key_file_are_owner_only() {435 async fn the_database_and_key_file_are_owner_only() {
436 use std::os::unix::fs::PermissionsExt;436 use std::os::unix::fs::PermissionsExt;
437 let scratch = Scratch::open().await;437 let scratch = Scratch::open().await;
438- let db_path = scratch.dir.join("dizey.db");438+ let db_path = scratch.dir.join("izlek.db");
439- let key_path = scratch.dir.join("dizey.key");439+ let key_path = scratch.dir.join("izlek.key");
440 for path in [&db_path, &key_path] {440 for path in [&db_path, &key_path] {
441 let mode = std::fs::metadata(path)441 let mode = std::fs::metadata(path)
442 .unwrap_or_else(|e| panic!("{}: {e}", path.display()))442 .unwrap_or_else(|e| panic!("{}: {e}", path.display()))
@@ -469,7 +469,7 @@ async fn an_invited_member_has_no_password_until_they_choose_one() {
469 .store469 .store
470 .create_user(NewUser {470 .create_user(NewUser {
471 workspace_id: ws_id.clone(),471 workspace_id: ws_id.clone(),
472- email: "grace@dizey.sh".into(),472+ email: "grace@izlek.sh".into(),
473 display_name: "Grace".into(),473 display_name: "Grace".into(),
474 role: Role::Member,474 role: Role::Member,
475 invited_by: None,475 invited_by: None,
@@ -495,7 +495,7 @@ async fn addresses_are_unique_and_case_insensitive() {
495 .store495 .store
496 .create_user(NewUser {496 .create_user(NewUser {
497 workspace_id: ws_id.clone(),497 workspace_id: ws_id.clone(),
498- email: " ADA@Dizey.sh ".into(),498+ email: " ADA@Izlek.sh ".into(),
499 display_name: "Ada again".into(),499 display_name: "Ada again".into(),
500 role: Role::Member,500 role: Role::Member,
501 invited_by: None,501 invited_by: None,
@@ -505,7 +505,7 @@ async fn addresses_are_unique_and_case_insensitive() {
505 assert!(505 assert!(
506 scratch506 scratch
507 .store507 .store
508- .user_by_email(&ws_id, "Ada@DIZEY.sh")508+ .user_by_email(&ws_id, "Ada@IZLEK.sh")
509 .await509 .await
510 .unwrap()510 .unwrap()
511 .is_some()511 .is_some()
@@ -520,7 +520,7 @@ async fn an_unknown_address_is_a_plain_none() {
520 assert!(520 assert!(
521 scratch521 scratch
522 .store522 .store
523- .user_by_email(&ws_id, "nobody@dizey.sh")523+ .user_by_email(&ws_id, "nobody@izlek.sh")
524 .await524 .await
525 .unwrap()525 .unwrap()
526 .is_none()526 .is_none()
@@ -531,8 +531,8 @@ async fn an_unknown_address_is_a_plain_none() {
531 async fn members_list_and_count_for_the_admin_screen() {531 async fn members_list_and_count_for_the_admin_screen() {
532 let (scratch, ws_id, admin_id) = workspace_with_admin().await;532 let (scratch, ws_id, admin_id) = workspace_with_admin().await;
533 for (email, name, role) in [533 for (email, name, role) in [
534- ("grace@dizey.sh", "Grace", Role::Member),534+ ("grace@izlek.sh", "Grace", Role::Member),
535- ("linus@dizey.sh", "Linus", Role::Viewer),535+ ("linus@izlek.sh", "Linus", Role::Viewer),
536 ] {536 ] {
537 scratch537 scratch
538 .store538 .store
@@ -559,7 +559,7 @@ async fn profile_and_role_updates_stick() {
559 .store559 .store
560 .create_user(NewUser {560 .create_user(NewUser {
561 workspace_id: ws_id,561 workspace_id: ws_id,
562- email: "grace@dizey.sh".into(),562+ email: "grace@izlek.sh".into(),
563 display_name: "Grace".into(),563 display_name: "Grace".into(),
564 role: Role::Member,564 role: Role::Member,
565 invited_by: None,565 invited_by: None,
@@ -629,7 +629,7 @@ async fn a_signin_link_stores_only_the_hash_and_is_used_once() {
629 .store629 .store
630 .create_user(NewUser {630 .create_user(NewUser {
631 workspace_id: ws_id,631 workspace_id: ws_id,
632- email: "grace@dizey.sh".into(),632+ email: "grace@izlek.sh".into(),
633 display_name: "Grace".into(),633 display_name: "Grace".into(),
634 role: Role::Member,634 role: Role::Member,
635 invited_by: None,635 invited_by: None,
@@ -694,7 +694,7 @@ async fn an_expired_link_is_still_a_live_account() {
694 .store694 .store
695 .create_user(NewUser {695 .create_user(NewUser {
696 workspace_id: ws_id,696 workspace_id: ws_id,
697- email: "grace@dizey.sh".into(),697+ email: "grace@izlek.sh".into(),
698 display_name: "Grace".into(),698 display_name: "Grace".into(),
699 role: Role::Member,699 role: Role::Member,
700 invited_by: None,700 invited_by: None,
@@ -726,7 +726,7 @@ async fn the_store_is_usable_behind_a_trait_object() {
726 let scratch = Scratch::open().await;726 let scratch = Scratch::open().await;
727 let store: &dyn Store = &scratch.store;727 let store: &dyn Store = &scratch.store;
728 store728 store
729- .claim_workspace("Dizey", "ada@dizey.sh", "Ada", "$argon2id$fake")729+ .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "$argon2id$fake")
730 .await730 .await
731 .unwrap();731 .unwrap();
732 assert!(store.workspace().await.unwrap().is_some());732 assert!(store.workspace().await.unwrap().is_some());
@@ -734,12 +734,12 @@ async fn the_store_is_usable_behind_a_trait_object() {
734 734
735 #[tokio::test(flavor = "multi_thread", worker_threads = 4)]735 #[tokio::test(flavor = "multi_thread", worker_threads = 4)]
736 async fn a_prefetched_link_is_consumed_exactly_once() {736 async fn a_prefetched_link_is_consumed_exactly_once() {
737- let dir = std::env::temp_dir().join(format!("dizey-test-{}", Uuid::new_v4()));737+ let dir = std::env::temp_dir().join(format!("izlek-test-{}", Uuid::new_v4()));
738 std::fs::create_dir_all(&dir).unwrap();738 std::fs::create_dir_all(&dir).unwrap();
739- let path = dir.join("dizey.db").to_string_lossy().into_owned();739+ let path = dir.join("izlek.db").to_string_lossy().into_owned();
740 let store = std::sync::Arc::new(TursoStore::open(&path).await.unwrap());740 let store = std::sync::Arc::new(TursoStore::open(&path).await.unwrap());
741 let (ws_id, _) = claim(&store).await;741 let (ws_id, _) = claim(&store).await;
742- let user_id = member(&store, &ws_id, "grace@dizey.sh", "Grace").await;742+ let user_id = member(&store, &ws_id, "grace@izlek.sh", "Grace").await;
743 743
744 let token = Token::mint();744 let token = Token::mint();
745 let now = OffsetDateTime::now_utc();745 let now = OffsetDateTime::now_utc();
@@ -772,7 +772,7 @@ async fn a_prefetched_link_is_consumed_exactly_once() {
772 #[tokio::test]772 #[tokio::test]
773 async fn a_session_lives_until_it_expires_or_is_revoked() {773 async fn a_session_lives_until_it_expires_or_is_revoked() {
774 let (scratch, ws_id, _) = workspace_with_admin().await;774 let (scratch, ws_id, _) = workspace_with_admin().await;
775- let user_id = member(&scratch.store, &ws_id, "grace@dizey.sh", "Grace").await;775+ let user_id = member(&scratch.store, &ws_id, "grace@izlek.sh", "Grace").await;
776 776
777 let token = Token::mint();777 let token = Token::mint();
778 let now = OffsetDateTime::now_utc();778 let now = OffsetDateTime::now_utc();
@@ -827,7 +827,7 @@ async fn a_session_lives_until_it_expires_or_is_revoked() {
827 #[tokio::test]827 #[tokio::test]
828 async fn an_expired_session_is_not_live() {828 async fn an_expired_session_is_not_live() {
829 let (scratch, ws_id, _) = workspace_with_admin().await;829 let (scratch, ws_id, _) = workspace_with_admin().await;
830- let user_id = member(&scratch.store, &ws_id, "grace@dizey.sh", "Grace").await;830+ let user_id = member(&scratch.store, &ws_id, "grace@izlek.sh", "Grace").await;
831 let now = OffsetDateTime::now_utc();831 let now = OffsetDateTime::now_utc();
832 let session = scratch832 let session = scratch
833 .store833 .store
@@ -840,8 +840,8 @@ async fn an_expired_session_is_not_live() {
840 #[tokio::test]840 #[tokio::test]
841 async fn changing_a_password_can_sign_out_every_other_device() {841 async fn changing_a_password_can_sign_out_every_other_device() {
842 let (scratch, ws_id, _) = workspace_with_admin().await;842 let (scratch, ws_id, _) = workspace_with_admin().await;
843- let user_id = member(&scratch.store, &ws_id, "grace@dizey.sh", "Grace").await;843+ let user_id = member(&scratch.store, &ws_id, "grace@izlek.sh", "Grace").await;
844- let other_id = member(&scratch.store, &ws_id, "linus@dizey.sh", "Linus").await;844+ let other_id = member(&scratch.store, &ws_id, "linus@izlek.sh", "Linus").await;
845 let now = OffsetDateTime::now_utc();845 let now = OffsetDateTime::now_utc();
846 846
847 let mut hashes = Vec::new();847 let mut hashes = Vec::new();
@@ -890,7 +890,7 @@ async fn auth_attempts_are_counted_over_a_window() {
890 for minutes_ago in [30, 20, 10, 5, 1] {890 for minutes_ago in [30, 20, 10, 5, 1] {
891 scratch891 scratch
892 .store892 .store
893- .record_auth_attempt("grace@dizey.sh", now - Duration::minutes(minutes_ago))893+ .record_auth_attempt("grace@izlek.sh", now - Duration::minutes(minutes_ago))
894 .await894 .await
895 .unwrap();895 .unwrap();
896 }896 }
@@ -904,7 +904,7 @@ async fn auth_attempts_are_counted_over_a_window() {
904 assert_eq!(904 assert_eq!(
905 scratch905 scratch
906 .store906 .store
907- .count_auth_attempts("grace@dizey.sh", window)907+ .count_auth_attempts("grace@izlek.sh", window)
908 .await908 .await
909 .unwrap(),909 .unwrap(),
910 3910 3
@@ -920,7 +920,7 @@ async fn auth_attempts_are_counted_over_a_window() {
920 assert_eq!(920 assert_eq!(
921 scratch921 scratch
922 .store922 .store
923- .count_auth_attempts("nobody@dizey.sh", window)923+ .count_auth_attempts("nobody@izlek.sh", window)
924 .await924 .await
925 .unwrap(),925 .unwrap(),
926 0926 0
@@ -929,13 +929,13 @@ async fn auth_attempts_are_counted_over_a_window() {
929 // A success clears the bucket that succeeded, and only that one.929 // A success clears the bucket that succeeded, and only that one.
930 scratch930 scratch
931 .store931 .store
932- .clear_auth_attempts("grace@dizey.sh")932+ .clear_auth_attempts("grace@izlek.sh")
933 .await933 .await
934 .unwrap();934 .unwrap();
935 assert_eq!(935 assert_eq!(
936 scratch936 scratch
937 .store937 .store
938- .count_auth_attempts("grace@dizey.sh", window)938+ .count_auth_attempts("grace@izlek.sh", window)
939 .await939 .await
940 .unwrap(),940 .unwrap(),
941 0941 0
@@ -952,7 +952,7 @@ async fn auth_attempts_are_counted_over_a_window() {
952 // Pruning drops what is out of every window.952 // Pruning drops what is out of every window.
953 scratch953 scratch
954 .store954 .store
955- .record_auth_attempt("grace@dizey.sh", now - Duration::hours(2))955+ .record_auth_attempt("grace@izlek.sh", now - Duration::hours(2))
956 .await956 .await
957 .unwrap();957 .unwrap();
958 let pruned = scratch958 let pruned = scratch
@@ -967,15 +967,15 @@ async fn auth_attempts_are_counted_over_a_window() {
967 // Account flows.967 // Account flows.
968 // ---------------------------------------------------------------------------968 // ---------------------------------------------------------------------------
969 969
970-use dizey_core::accounts::{AccountError, Accounts, RATE_LIMIT, SIGNIN_LINK_LIFETIME};970+use izlek_core::accounts::{AccountError, Accounts, RATE_LIMIT, SIGNIN_LINK_LIFETIME};
971-use dizey_core::auth::PasswordProblem;971+use izlek_core::auth::PasswordProblem;
972 use std::sync::Arc;972 use std::sync::Arc;
973 973
974 /// An accounts service over a throwaway database. The directory is kept alive974 /// An accounts service over a throwaway database. The directory is kept alive
975 /// by the returned guard.975 /// by the returned guard.
976 async fn accounts() -> (Scratch, Accounts) {976 async fn accounts() -> (Scratch, Accounts) {
977 let scratch = Scratch::open().await;977 let scratch = Scratch::open().await;
978- let store = TursoStore::open(scratch.dir.join("dizey.db").to_str().unwrap())978+ let store = TursoStore::open(scratch.dir.join("izlek.db").to_str().unwrap())
979 .await979 .await
980 .unwrap();980 .unwrap();
981 let accounts = Accounts::new(Arc::new(store) as Arc<dyn Store>);981 let accounts = Accounts::new(Arc::new(store) as Arc<dyn Store>);
@@ -985,7 +985,7 @@ async fn accounts() -> (Scratch, Accounts) {
985 async fn claimed() -> (Scratch, Accounts, User) {985 async fn claimed() -> (Scratch, Accounts, User) {
986 let (scratch, accounts) = accounts().await;986 let (scratch, accounts) = accounts().await;
987 let (_, signed_in) = accounts987 let (_, signed_in) = accounts
988- .claim_workspace("Dizey", "ada@dizey.sh", "Ada", "tide-tables-1892")988+ .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "tide-tables-1892")
989 .await989 .await
990 .unwrap();990 .unwrap();
991 (scratch, accounts, signed_in.user)991 (scratch, accounts, signed_in.user)
@@ -995,10 +995,10 @@ async fn claimed() -> (Scratch, Accounts, User) {
995 async fn claiming_makes_an_admin_and_signs_them_in() {995 async fn claiming_makes_an_admin_and_signs_them_in() {
996 let (_scratch, accounts) = accounts().await;996 let (_scratch, accounts) = accounts().await;
997 let (workspace, signed_in) = accounts997 let (workspace, signed_in) = accounts
998- .claim_workspace("Dizey", "ada@dizey.sh", "Ada", "tide-tables-1892")998+ .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "tide-tables-1892")
999 .await999 .await
1000 .unwrap();1000 .unwrap();
1001- assert_eq!(workspace.name, "Dizey");1001+ assert_eq!(workspace.name, "Izlek");
1002 assert_eq!(signed_in.user.role, Role::Admin);1002 assert_eq!(signed_in.user.role, Role::Admin);
1003 1003
1004 // The cookie value works and is not what is stored.1004 // The cookie value works and is not what is stored.
@@ -1021,7 +1021,7 @@ async fn claiming_makes_an_admin_and_signs_them_in() {
1021 async fn the_claim_screen_enforces_its_own_password_rules() {1021 async fn the_claim_screen_enforces_its_own_password_rules() {
1022 let (_scratch, accounts) = accounts().await;1022 let (_scratch, accounts) = accounts().await;
1023 let too_short = accounts1023 let too_short = accounts
1024- .claim_workspace("Dizey", "ada@dizey.sh", "Ada", "short")1024+ .claim_workspace("Izlek", "ada@izlek.sh", "Ada", "short")
1025 .await;1025 .await;
1026 assert!(matches!(1026 assert!(matches!(
1027 too_short,1027 too_short,
@@ -1049,7 +1049,7 @@ async fn a_second_claim_is_refused() {
1049 async fn an_invited_member_chooses_their_own_password() {1049 async fn an_invited_member_chooses_their_own_password() {
1050 let (_scratch, accounts, admin) = claimed().await;1050 let (_scratch, accounts, admin) = claimed().await;
1051 let invitation = accounts1051 let invitation = accounts
1052- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1052+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1053 .await1053 .await
1054 .unwrap();1054 .unwrap();
1055 assert!(!invitation.user.has_signed_in(), "no password yet");1055 assert!(!invitation.user.has_signed_in(), "no password yet");
@@ -1060,7 +1060,7 @@ async fn an_invited_member_chooses_their_own_password() {
1060 1060
1061 // The admin cannot sign in as them in the meantime.1061 // The admin cannot sign in as them in the meantime.
1062 let as_them = accounts1062 let as_them = accounts
1063- .sign_in("grace@dizey.sh", "tide-tables-1892", "198.51.100.7")1063+ .sign_in("grace@izlek.sh", "tide-tables-1892", "198.51.100.7")
1064 .await;1064 .await;
1065 assert!(matches!(as_them, Err(AccountError::Rejected)));1065 assert!(matches!(as_them, Err(AccountError::Rejected)));
1066 1066
@@ -1077,7 +1077,7 @@ async fn an_invited_member_chooses_their_own_password() {
1077 1077
1078 // And now the password they chose works, and only that one.1078 // And now the password they chose works, and only that one.
1079 accounts1079 accounts
1080- .sign_in("grace@dizey.sh", "sextant-and-chart", "198.51.100.7")1080+ .sign_in("grace@izlek.sh", "sextant-and-chart", "198.51.100.7")
1081 .await1081 .await
1082 .unwrap();1082 .unwrap();
1083 }1083 }
@@ -1086,7 +1086,7 @@ async fn an_invited_member_chooses_their_own_password() {
1086 async fn only_an_admin_may_invite() {1086 async fn only_an_admin_may_invite() {
1087 let (_scratch, accounts, admin) = claimed().await;1087 let (_scratch, accounts, admin) = claimed().await;
1088 let invitation = accounts1088 let invitation = accounts
1089- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1089+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1090 .await1090 .await
1091 .unwrap();1091 .unwrap();
1092 let member = accounts1092 let member = accounts
@@ -1101,7 +1101,7 @@ async fn only_an_admin_may_invite() {
1101 1101
1102 // Server-side, not merely hidden: a member calling the flow is refused.1102 // Server-side, not merely hidden: a member calling the flow is refused.
1103 let attempt = accounts1103 let attempt = accounts
1104- .invite(&member, "linus@dizey.sh", "Linus", Role::Member)1104+ .invite(&member, "linus@izlek.sh", "Linus", Role::Member)
1105 .await;1105 .await;
1106 assert!(matches!(attempt, Err(AccountError::Forbidden)));1106 assert!(matches!(attempt, Err(AccountError::Forbidden)));
1107 1107
@@ -1109,7 +1109,7 @@ async fn only_an_admin_may_invite() {
1109 viewer.role = Role::Viewer;1109 viewer.role = Role::Viewer;
1110 assert!(matches!(1110 assert!(matches!(
1111 accounts1111 accounts
1112- .invite(&viewer, "linus@dizey.sh", "Linus", Role::Viewer)1112+ .invite(&viewer, "linus@izlek.sh", "Linus", Role::Viewer)
1113 .await,1113 .await,
1114 Err(AccountError::Forbidden)1114 Err(AccountError::Forbidden)
1115 ));1115 ));
@@ -1119,7 +1119,7 @@ async fn only_an_admin_may_invite() {
1119 async fn a_link_works_once_and_a_wrong_one_never_does() {1119 async fn a_link_works_once_and_a_wrong_one_never_does() {
1120 let (_scratch, accounts, admin) = claimed().await;1120 let (_scratch, accounts, admin) = claimed().await;
1121 let invitation = accounts1121 let invitation = accounts
1122- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1122+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1123 .await1123 .await
1124 .unwrap();1124 .unwrap();
1125 1125
@@ -1147,7 +1147,7 @@ async fn a_link_works_once_and_a_wrong_one_never_does() {
1147 1147
1148 // The password they actually set is untouched by either failure.1148 // The password they actually set is untouched by either failure.
1149 accounts1149 accounts
1150- .sign_in("grace@dizey.sh", "sextant-and-chart", "198.51.100.7")1150+ .sign_in("grace@izlek.sh", "sextant-and-chart", "198.51.100.7")
1151 .await1151 .await
1152 .unwrap();1152 .unwrap();
1153 }1153 }
@@ -1156,7 +1156,7 @@ async fn a_link_works_once_and_a_wrong_one_never_does() {
1156 async fn a_rejected_password_does_not_burn_the_invitation() {1156 async fn a_rejected_password_does_not_burn_the_invitation() {
1157 let (_scratch, accounts, admin) = claimed().await;1157 let (_scratch, accounts, admin) = claimed().await;
1158 let invitation = accounts1158 let invitation = accounts
1159- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1159+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1160 .await1160 .await
1161 .unwrap();1161 .unwrap();
1162 1162
@@ -1191,7 +1191,7 @@ async fn a_rejected_password_does_not_burn_the_invitation() {
1191 async fn an_expired_link_is_refused_and_resending_opens_the_same_account() {1191 async fn an_expired_link_is_refused_and_resending_opens_the_same_account() {
1192 let (_scratch, accounts, admin) = claimed().await;1192 let (_scratch, accounts, admin) = claimed().await;
1193 let invitation = accounts1193 let invitation = accounts
1194- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1194+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1195 .await1195 .await
1196 .unwrap();1196 .unwrap();
1197 1197
@@ -1229,10 +1229,10 @@ async fn an_expired_link_is_refused_and_resending_opens_the_same_account() {
1229 async fn an_unknown_address_and_a_wrong_password_are_indistinguishable() {1229 async fn an_unknown_address_and_a_wrong_password_are_indistinguishable() {
1230 let (_scratch, accounts, _admin) = claimed().await;1230 let (_scratch, accounts, _admin) = claimed().await;
1231 let unknown = accounts1231 let unknown = accounts
1232- .sign_in("nobody@dizey.sh", "tide-tables-1892", "198.51.100.7")1232+ .sign_in("nobody@izlek.sh", "tide-tables-1892", "198.51.100.7")
1233 .await;1233 .await;
1234 let wrong = accounts1234 let wrong = accounts
1235- .sign_in("ada@dizey.sh", "not-her-password", "198.51.100.8")1235+ .sign_in("ada@izlek.sh", "not-her-password", "198.51.100.8")
1236 .await;1236 .await;
1237 assert!(matches!(unknown, Err(AccountError::Rejected)));1237 assert!(matches!(unknown, Err(AccountError::Rejected)));
1238 assert!(matches!(wrong, Err(AccountError::Rejected)));1238 assert!(matches!(wrong, Err(AccountError::Rejected)));
@@ -1251,13 +1251,13 @@ async fn the_miss_path_costs_what_the_hit_path_costs() {
1251 // which a skipped verify could not.1251 // which a skipped verify could not.
1252 let baseline = std::time::Instant::now();1252 let baseline = std::time::Instant::now();
1253 let _ = accounts1253 let _ = accounts
1254- .sign_in("ada@dizey.sh", "not-her-password", "198.51.100.7")1254+ .sign_in("ada@izlek.sh", "not-her-password", "198.51.100.7")
1255 .await;1255 .await;
1256 let hit_cost = baseline.elapsed();1256 let hit_cost = baseline.elapsed();
1257 1257
1258 let started = std::time::Instant::now();1258 let started = std::time::Instant::now();
1259 let _ = accounts1259 let _ = accounts
1260- .sign_in("nobody@dizey.sh", "not-a-password", "198.51.100.8")1260+ .sign_in("nobody@izlek.sh", "not-a-password", "198.51.100.8")
1261 .await;1261 .await;
1262 let miss_cost = started.elapsed();1262 let miss_cost = started.elapsed();
1263 1263
@@ -1271,12 +1271,12 @@ async fn the_miss_path_costs_what_the_hit_path_costs() {
1271 async fn an_invited_account_that_has_no_password_cannot_be_signed_into() {1271 async fn an_invited_account_that_has_no_password_cannot_be_signed_into() {
1272 let (_scratch, accounts, admin) = claimed().await;1272 let (_scratch, accounts, admin) = claimed().await;
1273 accounts1273 accounts
1274- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1274+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1275 .await1275 .await
1276 .unwrap();1276 .unwrap();
1277 // Not "set your password first" — that would confirm the address exists.1277 // Not "set your password first" — that would confirm the address exists.
1278 assert!(matches!(1278 assert!(matches!(
1279- accounts.sign_in("grace@dizey.sh", "", "198.51.100.7").await,1279+ accounts.sign_in("grace@izlek.sh", "", "198.51.100.7").await,
1280 Err(AccountError::Rejected)1280 Err(AccountError::Rejected)
1281 ));1281 ));
1282 }1282 }
@@ -1286,20 +1286,20 @@ async fn sign_in_attempts_are_rate_limited_per_address() {
1286 let (_scratch, accounts, _admin) = claimed().await;1286 let (_scratch, accounts, _admin) = claimed().await;
1287 for _ in 0..RATE_LIMIT {1287 for _ in 0..RATE_LIMIT {
1288 let _ = accounts1288 let _ = accounts
1289- .sign_in("ada@dizey.sh", "wrong", "198.51.100.7")1289+ .sign_in("ada@izlek.sh", "wrong", "198.51.100.7")
1290 .await;1290 .await;
1291 }1291 }
1292 // The next attempt is refused before any Argon2 work happens.1292 // The next attempt is refused before any Argon2 work happens.
1293 assert!(matches!(1293 assert!(matches!(
1294 accounts1294 accounts
1295- .sign_in("ada@dizey.sh", "wrong", "203.0.113.9")1295+ .sign_in("ada@izlek.sh", "wrong", "203.0.113.9")
1296 .await,1296 .await,
1297 Err(AccountError::RateLimited)1297 Err(AccountError::RateLimited)
1298 ));1298 ));
1299 // A different address from a fresh client is unaffected.1299 // A different address from a fresh client is unaffected.
1300 assert!(matches!(1300 assert!(matches!(
1301 accounts1301 accounts
1302- .sign_in("someone@dizey.sh", "wrong", "203.0.113.9")1302+ .sign_in("someone@izlek.sh", "wrong", "203.0.113.9")
1303 .await,1303 .await,
1304 Err(AccountError::Rejected)1304 Err(AccountError::Rejected)
1305 ));1305 ));
@@ -1315,12 +1315,12 @@ async fn a_flooded_address_never_locks_the_owner_out() {
1315 // Each guess from its own client, so only the address bucket fills.1315 // Each guess from its own client, so only the address bucket fills.
1316 for i in 0..(RATE_LIMIT + 5) {1316 for i in 0..(RATE_LIMIT + 5) {
1317 let _ = accounts1317 let _ = accounts
1318- .sign_in("ada@dizey.sh", "wrong", &format!("203.0.113.{i}"))1318+ .sign_in("ada@izlek.sh", "wrong", &format!("203.0.113.{i}"))
1319 .await;1319 .await;
1320 }1320 }
1321 // The owner, from a client of their own, still gets in.1321 // The owner, from a client of their own, still gets in.
1322 accounts1322 accounts
1323- .sign_in("ada@dizey.sh", "tide-tables-1892", "198.51.100.7")1323+ .sign_in("ada@izlek.sh", "tide-tables-1892", "198.51.100.7")
1324 .await1324 .await
1325 .unwrap();1325 .unwrap();
1326 }1326 }
@@ -1331,13 +1331,13 @@ async fn sign_in_attempts_are_rate_limited_per_client() {
1331 let (_scratch, accounts, _admin) = claimed().await;1331 let (_scratch, accounts, _admin) = claimed().await;
1332 for i in 0..RATE_LIMIT {1332 for i in 0..RATE_LIMIT {
1333 let _ = accounts1333 let _ = accounts
1334- .sign_in(&format!("nobody{i}@dizey.sh"), "wrong", "203.0.113.9")1334+ .sign_in(&format!("nobody{i}@izlek.sh"), "wrong", "203.0.113.9")
1335 .await;1335 .await;
1336 }1336 }
1337 // Refused before any Argon2 work, whatever address it asks about.1337 // Refused before any Argon2 work, whatever address it asks about.
1338 assert!(matches!(1338 assert!(matches!(
1339 accounts1339 accounts
1340- .sign_in("ada@dizey.sh", "tide-tables-1892", "203.0.113.9")1340+ .sign_in("ada@izlek.sh", "tide-tables-1892", "203.0.113.9")
1341 .await,1341 .await,
1342 Err(AccountError::RateLimited)1342 Err(AccountError::RateLimited)
1343 ));1343 ));
@@ -1350,7 +1350,7 @@ async fn sign_in_attempts_are_rate_limited_per_client() {
1350 async fn link_redemption_is_rate_limited_per_client() {1350 async fn link_redemption_is_rate_limited_per_client() {
1351 let (_scratch, accounts, admin) = claimed().await;1351 let (_scratch, accounts, admin) = claimed().await;
1352 let invitation = accounts1352 let invitation = accounts
1353- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1353+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1354 .await1354 .await
1355 .unwrap();1355 .unwrap();
1356 for i in 0..RATE_LIMIT {1356 for i in 0..RATE_LIMIT {
@@ -1412,17 +1412,17 @@ async fn a_successful_sign_in_clears_the_bucket() {
1412 let (_scratch, accounts, _admin) = claimed().await;1412 let (_scratch, accounts, _admin) = claimed().await;
1413 for _ in 0..(RATE_LIMIT - 1) {1413 for _ in 0..(RATE_LIMIT - 1) {
1414 let _ = accounts1414 let _ = accounts
1415- .sign_in("ada@dizey.sh", "wrong", "198.51.100.7")1415+ .sign_in("ada@izlek.sh", "wrong", "198.51.100.7")
1416 .await;1416 .await;
1417 }1417 }
1418 accounts1418 accounts
1419- .sign_in("ada@dizey.sh", "tide-tables-1892", "198.51.100.7")1419+ .sign_in("ada@izlek.sh", "tide-tables-1892", "198.51.100.7")
1420 .await1420 .await
1421 .unwrap();1421 .unwrap();
1422 // Someone who mistypes and then gets it right is not left at the edge.1422 // Someone who mistypes and then gets it right is not left at the edge.
1423 assert!(matches!(1423 assert!(matches!(
1424 accounts1424 accounts
1425- .sign_in("ada@dizey.sh", "wrong", "198.51.100.7")1425+ .sign_in("ada@izlek.sh", "wrong", "198.51.100.7")
1426 .await,1426 .await,
1427 Err(AccountError::Rejected)1427 Err(AccountError::Rejected)
1428 ));1428 ));
@@ -1432,11 +1432,11 @@ async fn a_successful_sign_in_clears_the_bucket() {
1432 async fn changing_a_password_signs_out_every_device() {1432 async fn changing_a_password_signs_out_every_device() {
1433 let (_scratch, accounts, admin) = claimed().await;1433 let (_scratch, accounts, admin) = claimed().await;
1434 let first = accounts1434 let first = accounts
1435- .sign_in("ada@dizey.sh", "tide-tables-1892", "198.51.100.7")1435+ .sign_in("ada@izlek.sh", "tide-tables-1892", "198.51.100.7")
1436 .await1436 .await
1437 .unwrap();1437 .unwrap();
1438 let second = accounts1438 let second = accounts
1439- .sign_in("ada@dizey.sh", "tide-tables-1892", "198.51.100.8")1439+ .sign_in("ada@izlek.sh", "tide-tables-1892", "198.51.100.8")
1440 .await1440 .await
1441 .unwrap();1441 .unwrap();
1442 assert!(1442 assert!(
@@ -1475,7 +1475,7 @@ async fn changing_a_password_signs_out_every_device() {
1475 .is_some()1475 .is_some()
1476 );1476 );
1477 accounts1477 accounts
1478- .sign_in("ada@dizey.sh", "chronometer-1761", "198.51.100.7")1478+ .sign_in("ada@izlek.sh", "chronometer-1761", "198.51.100.7")
1479 .await1479 .await
1480 .unwrap();1480 .unwrap();
1481 }1481 }
@@ -1497,7 +1497,7 @@ async fn changing_a_password_needs_the_current_one_and_obeys_the_rules() {
1497 ));1497 ));
1498 // The old password still works after both refusals.1498 // The old password still works after both refusals.
1499 accounts1499 accounts
1500- .sign_in("ada@dizey.sh", "tide-tables-1892", "198.51.100.7")1500+ .sign_in("ada@izlek.sh", "tide-tables-1892", "198.51.100.7")
1501 .await1501 .await
1502 .unwrap();1502 .unwrap();
1503 }1503 }
@@ -1506,11 +1506,11 @@ async fn changing_a_password_needs_the_current_one_and_obeys_the_rules() {
1506 async fn signing_out_ends_that_browser_only() {1506 async fn signing_out_ends_that_browser_only() {
1507 let (_scratch, accounts, _admin) = claimed().await;1507 let (_scratch, accounts, _admin) = claimed().await;
1508 let laptop = accounts1508 let laptop = accounts
1509- .sign_in("ada@dizey.sh", "tide-tables-1892", "198.51.100.7")1509+ .sign_in("ada@izlek.sh", "tide-tables-1892", "198.51.100.7")
1510 .await1510 .await
1511 .unwrap();1511 .unwrap();
1512 let phone = accounts1512 let phone = accounts
1513- .sign_in("ada@dizey.sh", "tide-tables-1892", "198.51.100.8")1513+ .sign_in("ada@izlek.sh", "tide-tables-1892", "198.51.100.8")
1514 .await1514 .await
1515 .unwrap();1515 .unwrap();
1516 1516
@@ -1540,18 +1540,18 @@ async fn signing_out_ends_that_browser_only() {
1540 async fn an_address_can_only_be_invited_once() {1540 async fn an_address_can_only_be_invited_once() {
1541 let (_scratch, accounts, admin) = claimed().await;1541 let (_scratch, accounts, admin) = claimed().await;
1542 accounts1542 accounts
1543- .invite(&admin, "grace@dizey.sh", "Grace", Role::Member)1543+ .invite(&admin, "grace@izlek.sh", "Grace", Role::Member)
1544 .await1544 .await
1545 .unwrap();1545 .unwrap();
1546 assert!(matches!(1546 assert!(matches!(
1547 accounts1547 accounts
1548- .invite(&admin, "GRACE@dizey.sh", "Grace again", Role::Member)1548+ .invite(&admin, "GRACE@izlek.sh", "Grace again", Role::Member)
1549 .await,1549 .await,
1550 Err(AccountError::AddressTaken)1550 Err(AccountError::AddressTaken)
1551 ));1551 ));
1552 assert!(matches!(1552 assert!(matches!(
1553 accounts1553 accounts
1554- .invite(&admin, "ada@dizey.sh", "Ada again", Role::Member)1554+ .invite(&admin, "ada@izlek.sh", "Ada again", Role::Member)
1555 .await,1555 .await,
1556 Err(AccountError::AddressTaken)1556 Err(AccountError::AddressTaken)
1557 ));1557 ));
@@ -1559,8 +1559,8 @@ async fn an_address_can_only_be_invited_once() {
1559 1559
1560 // -- board ------------------------------------------------------------------1560 // -- board ------------------------------------------------------------------
1561 1561
1562-use dizey_core::board::{BoardReads, BoardView, Moved, Person, load};1562+use izlek_core::board::{BoardReads, BoardView, Moved, Person, load};
1563-use dizey_core::store::NewTask;1563+use izlek_core::store::NewTask;
1564 use std::sync::atomic::{AtomicUsize, Ordering};1564 use std::sync::atomic::{AtomicUsize, Ordering};
1565 use time::Date;1565 use time::Date;
1566 use time::macros::date;1566 use time::macros::date;
@@ -1597,12 +1597,12 @@ impl BoardReads for CountingReads<'_> {
1597 async fn board(1597 async fn board(
1598 &self,1598 &self,
1599 workspace_id: &str,1599 workspace_id: &str,
1600- ) -> Result<Option<dizey_core::board::BoardMeta>, StoreError> {1600+ ) -> Result<Option<izlek_core::board::BoardMeta>, StoreError> {
1601 self.tick();1601 self.tick();
1602 self.inner.board(workspace_id).await1602 self.inner.board(workspace_id).await
1603 }1603 }
1604 1604
1605- async fn columns(&self, board_id: &str) -> Result<Vec<dizey_core::board::Column>, StoreError> {1605+ async fn columns(&self, board_id: &str) -> Result<Vec<izlek_core::board::Column>, StoreError> {
1606 self.tick();1606 self.tick();
1607 self.inner.columns(board_id).await1607 self.inner.columns(board_id).await
1608 }1608 }
@@ -1610,7 +1610,7 @@ impl BoardReads for CountingReads<'_> {
1610 async fn tasks_for_board(1610 async fn tasks_for_board(
1611 &self,1611 &self,
1612 board_id: &str,1612 board_id: &str,
1613- ) -> Result<Vec<dizey_core::board::TaskRow>, StoreError> {1613+ ) -> Result<Vec<izlek_core::board::TaskRow>, StoreError> {
1614 self.tick();1614 self.tick();
1615 self.inner.tasks_for_board(board_id).await1615 self.inner.tasks_for_board(board_id).await
1616 }1616 }
@@ -1724,7 +1724,7 @@ async fn a_card_carries_its_assignees_comments_and_dependency_keys() {
1724 let mel = store1724 let mel = store
1725 .create_user(NewUser {1725 .create_user(NewUser {
1726 workspace_id: workspace.clone(),1726 workspace_id: workspace.clone(),
1727- email: "mel@dizey.sh".into(),1727+ email: "mel@izlek.sh".into(),
1728 display_name: "Mel Duarte".into(),1728 display_name: "Mel Duarte".into(),
1729 role: Role::Member,1729 role: Role::Member,
1730 invited_by: None,1730 invited_by: None,
@@ -1921,7 +1921,7 @@ fn initials_fall_back_to_two_letters() {
1921 1921
1922 // -- task detail ------------------------------------------------------------1922 // -- task detail ------------------------------------------------------------
1923 1923
1924-use dizey_core::detail::{1924+use izlek_core::detail::{
1925 ActivityEntry, ActivityKind, Comment, DependencyEdge, DetailReads, TaskFacts,1925 ActivityEntry, ActivityKind, Comment, DependencyEdge, DetailReads, TaskFacts,
1926 load as load_detail,1926 load as load_detail,
1927 };1927 };
@@ -1960,7 +1960,7 @@ impl DetailReads for CountingDetail<'_> {
1960 async fn columns_for_board(1960 async fn columns_for_board(
1961 &self,1961 &self,
1962 board_id: &str,1962 board_id: &str,
1963- ) -> Result<Vec<dizey_core::Column>, StoreError> {1963+ ) -> Result<Vec<izlek_core::Column>, StoreError> {
1964 self.tick();1964 self.tick();
1965 self.inner.columns_for_board(board_id).await1965 self.inner.columns_for_board(board_id).await
1966 }1966 }
@@ -1991,7 +1991,7 @@ impl DetailReads for CountingDetail<'_> {
1991 async fn files_for_task(1991 async fn files_for_task(
1992 &self,1992 &self,
1993 task_id: &str,1993 task_id: &str,
1994- ) -> Result<Vec<dizey_core::detail::FileLine>, StoreError> {1994+ ) -> Result<Vec<izlek_core::detail::FileLine>, StoreError> {
1995 self.tick();1995 self.tick();
1996 self.inner.files_for_task(task_id).await1996 self.inner.files_for_task(task_id).await
1997 }1997 }
@@ -2044,7 +2044,7 @@ async fn a_viewer_is_never_offered_as_an_assignee() {
2044 let quiet = store2044 let quiet = store
2045 .create_user(NewUser {2045 .create_user(NewUser {
2046 workspace_id: workspace.clone(),2046 workspace_id: workspace.clone(),
2047- email: "quiet@dizey.sh".into(),2047+ email: "quiet@izlek.sh".into(),
2048 display_name: "Quiet Reader".into(),2048 display_name: "Quiet Reader".into(),
2049 role: Role::Viewer,2049 role: Role::Viewer,
2050 invited_by: None,2050 invited_by: None,
@@ -2314,7 +2314,7 @@ async fn a_task_detail_costs_eight_queries_whatever_it_carries() {
2314 let person = store2314 let person = store
2315 .create_user(NewUser {2315 .create_user(NewUser {
2316 workspace_id: workspace.clone(),2316 workspace_id: workspace.clone(),
2317- email: format!("member{n}@dizey.sh"),2317+ email: format!("member{n}@izlek.sh"),
2318 display_name: format!("Member {n}"),2318 display_name: format!("Member {n}"),
2319 role: Role::Member,2319 role: Role::Member,
2320 invited_by: None,2320 invited_by: None,
@@ -2627,7 +2627,7 @@ async fn an_orphan_row_is_refused() {
2627 .store2627 .store
2628 .create_user(NewUser {2628 .create_user(NewUser {
2629 workspace_id: "no-such-workspace".into(),2629 workspace_id: "no-such-workspace".into(),
2630- email: "orphan@dizey.sh".into(),2630+ email: "orphan@izlek.sh".into(),
2631 display_name: "Orphan".into(),2631 display_name: "Orphan".into(),
2632 role: Role::Member,2632 role: Role::Member,
2633 invited_by: None,2633 invited_by: None,
@@ -2650,9 +2650,9 @@ async fn an_orphan_row_is_refused() {
2650 .len();2650 .len();
2651 assert_eq!(existing, 1, "only the admin");2651 assert_eq!(existing, 1, "only the admin");
2652 2652
2653- let dir = std::env::temp_dir().join(format!("dizey-fk-{}", Uuid::new_v4()));2653+ let dir = std::env::temp_dir().join(format!("izlek-fk-{}", Uuid::new_v4()));
2654 std::fs::create_dir_all(&dir).unwrap();2654 std::fs::create_dir_all(&dir).unwrap();
2655- let path = dir.join("dizey.db").to_str().unwrap().to_owned();2655+ let path = dir.join("izlek.db").to_str().unwrap().to_owned();
2656 {2656 {
2657 TursoStore::open(&path).await.unwrap();2657 TursoStore::open(&path).await.unwrap();
2658 }2658 }
@@ -2672,7 +2672,7 @@ async fn an_orphan_row_is_refused() {
2672 let refused = conn2672 let refused = conn
2673 .execute(2673 .execute(
2674 "INSERT INTO user (id, workspace_id, email, display_name, role, created_at) \2674 "INSERT INTO user (id, workspace_id, email, display_name, role, created_at) \
2675- VALUES ('u-orphan', 'no-such-workspace', 'orphan@dizey.sh', 'Orphan', \2675+ VALUES ('u-orphan', 'no-such-workspace', 'orphan@izlek.sh', 'Orphan', \
2676 'member', '2026-08-26T00:00:00Z')",2676 'member', '2026-08-26T00:00:00Z')",
2677 (),2677 (),
2678 )2678 )
@@ -2693,7 +2693,7 @@ async fn moved_to(
2693 from: &str,2693 from: &str,
2694 to: &str,2694 to: &str,
2695 actor: &str,2695 actor: &str,
2696-) -> dizey_core::board::Transition {2696+) -> izlek_core::board::Transition {
2697 let from_id = column_named(store, workspace, from).await;2697 let from_id = column_named(store, workspace, from).await;
2698 let to_id = column_named(store, workspace, to).await;2698 let to_id = column_named(store, workspace, to).await;
2699 match store2699 match store
@@ -2727,9 +2727,9 @@ async fn a_rule_that_fires_on_nothing_is_refused_by_the_schema() {
2727 // past it: a status rule with no column, straight at the table. The check2727 // past it: a status rule with no column, straight at the table. The check
2728 // constraint is the guard, and if it were ever dropped this insert would2728 // constraint is the guard, and if it were ever dropped this insert would
2729 // quietly succeed and the engine would carry a rule that matches nothing.2729 // quietly succeed and the engine would carry a rule that matches nothing.
2730- let dir = std::env::temp_dir().join(format!("dizey-test-{}", Uuid::new_v4()));2730+ let dir = std::env::temp_dir().join(format!("izlek-test-{}", Uuid::new_v4()));
2731 std::fs::create_dir_all(&dir).unwrap();2731 std::fs::create_dir_all(&dir).unwrap();
2732- let path = dir.join("dizey.db").to_string_lossy().into_owned();2732+ let path = dir.join("izlek.db").to_string_lossy().into_owned();
2733 let store = TursoStore::open(&path).await.unwrap();2733 let store = TursoStore::open(&path).await.unwrap();
2734 let (workspace, _admin) = claim(&store).await;2734 let (workspace, _admin) = claim(&store).await;
2735 let board = store.board(&workspace).await.unwrap().unwrap();2735 let board = store.board(&workspace).await.unwrap().unwrap();
@@ -2810,7 +2810,7 @@ async fn the_index_decides_who_owns_a_send() {
2810 let now = OffsetDateTime::now_utc();2810 let now = OffsetDateTime::now_utc();
2811 let first = scratch2811 let first = scratch
2812 .store2812 .store
2813- .claim_send(&rule.id, &transition.id, &task, "ada@dizey.sh", now)2813+ .claim_send(&rule.id, &transition.id, &task, "ada@izlek.sh", now)
2814 .await2814 .await
2815 .unwrap();2815 .unwrap();
2816 assert!(first.is_some(), "the first run owns the send");2816 assert!(first.is_some(), "the first run owns the send");
@@ -2820,7 +2820,7 @@ async fn the_index_decides_who_owns_a_send() {
2820 // first: the insert loses.2820 // first: the insert loses.
2821 let second = scratch2821 let second = scratch
2822 .store2822 .store
2823- .claim_send(&rule.id, &transition.id, &task, "ada@dizey.sh", now)2823+ .claim_send(&rule.id, &transition.id, &task, "ada@izlek.sh", now)
2824 .await2824 .await
2825 .unwrap();2825 .unwrap();
2826 assert!(second.is_none(), "the second run owns nothing");2826 assert!(second.is_none(), "the second run owns nothing");
@@ -2856,7 +2856,7 @@ async fn a_second_crossing_is_a_second_send() {
2856 assert!(2856 assert!(
2857 scratch2857 scratch
2858 .store2858 .store
2859- .claim_send(&rule.id, &transition.id, &task, "ada@dizey.sh", now)2859+ .claim_send(&rule.id, &transition.id, &task, "ada@izlek.sh", now)
2860 .await2860 .await
2861 .unwrap()2861 .unwrap()
2862 .is_some()2862 .is_some()
@@ -2890,7 +2890,7 @@ async fn a_refused_send_is_recorded_and_owed_again() {
2890 let now = OffsetDateTime::now_utc();2890 let now = OffsetDateTime::now_utc();
2891 let send = scratch2891 let send = scratch
2892 .store2892 .store
2893- .claim_send(&rule.id, &transition.id, &task, "ada@dizey.sh", now)2893+ .claim_send(&rule.id, &transition.id, &task, "ada@izlek.sh", now)
2894 .await2894 .await
2895 .unwrap()2895 .unwrap()
2896 .unwrap();2896 .unwrap();
@@ -2943,7 +2943,7 @@ async fn a_refused_address_is_not_retried_forever() {
2943 let now = OffsetDateTime::now_utc();2943 let now = OffsetDateTime::now_utc();
2944 let send = scratch2944 let send = scratch
2945 .store2945 .store
2946- .claim_send(&rule.id, &transition.id, &task, "gone@dizey.sh", now)2946+ .claim_send(&rule.id, &transition.id, &task, "gone@izlek.sh", now)
2947 .await2947 .await
2948 .unwrap()2948 .unwrap()
2949 .unwrap();2949 .unwrap();
@@ -2986,7 +2986,7 @@ async fn an_accepted_send_stops_being_owed() {
2986 let now = OffsetDateTime::now_utc();2986 let now = OffsetDateTime::now_utc();
2987 let send = scratch2987 let send = scratch
2988 .store2988 .store
2989- .claim_send(&rule.id, &transition.id, &task, "ada@dizey.sh", now)2989+ .claim_send(&rule.id, &transition.id, &task, "ada@izlek.sh", now)
2990 .await2990 .await
2991 .unwrap()2991 .unwrap()
2992 .unwrap();2992 .unwrap();
@@ -3017,14 +3017,14 @@ async fn a_viewer_is_never_a_recipient() {
3017 .store3017 .store
3018 .create_user(NewUser {3018 .create_user(NewUser {
3019 workspace_id: workspace.clone(),3019 workspace_id: workspace.clone(),
3020- email: "viewer@dizey.sh".into(),3020+ email: "viewer@izlek.sh".into(),
3021 display_name: "Vera".into(),3021 display_name: "Vera".into(),
3022 role: Role::Viewer,3022 role: Role::Viewer,
3023 invited_by: None,3023 invited_by: None,
3024 })3024 })
3025 .await3025 .await
3026 .unwrap();3026 .unwrap();
3027- let mate = member(&scratch.store, &workspace, "emre@dizey.sh", "Emre").await;3027+ let mate = member(&scratch.store, &workspace, "emre@izlek.sh", "Emre").await;
3028 let task = add_task(3028 let task = add_task(
3029 &scratch.store,3029 &scratch.store,
3030 &workspace,3030 &workspace,
@@ -3045,7 +3045,7 @@ async fn a_viewer_is_never_a_recipient() {
3045 scratch.store.recipients_for_board(&board.id).await.unwrap(),3045 scratch.store.recipients_for_board(&board.id).await.unwrap(),
3046 ] {3046 ] {
3047 assert!(3047 assert!(
3048- list.iter().all(|person| person.email != "viewer@dizey.sh"),3048+ list.iter().all(|person| person.email != "viewer@izlek.sh"),
3049 "a Viewer was about to be mailed: {list:?}"3049 "a Viewer was about to be mailed: {list:?}"
3050 );3050 );
3051 }3051 }
@@ -3055,7 +3055,7 @@ async fn a_viewer_is_never_a_recipient() {
3055 .iter()3055 .iter()
3056 .map(|p| p.email.as_str())3056 .map(|p| p.email.as_str())
3057 .collect::<Vec<_>>(),3057 .collect::<Vec<_>>(),
3058- ["emre@dizey.sh"]3058+ ["emre@izlek.sh"]
3059 );3059 );
3060 }3060 }
3061 3061
@@ -3076,7 +3076,7 @@ async fn deleting_a_rule_takes_its_ledger_with_it() {
3076 let now = OffsetDateTime::now_utc();3076 let now = OffsetDateTime::now_utc();
3077 scratch3077 scratch
3078 .store3078 .store
3079- .claim_send(&rule.id, &transition.id, &task, "ada@dizey.sh", now)3079+ .claim_send(&rule.id, &transition.id, &task, "ada@izlek.sh", now)
3080 .await3080 .await
3081 .unwrap();3081 .unwrap();
3082 3082
@@ -3097,7 +3097,7 @@ async fn deleting_a_rule_takes_its_ledger_with_it() {
3097 3097
3098 // -- the engine ------------------------------------------------------------3098 // -- the engine ------------------------------------------------------------
3099 3099
3100-use dizey_core::mail::{Engine, MailError, Mailer, Outgoing, backoff};3100+use izlek_core::mail::{Engine, MailError, Mailer, Outgoing, backoff};
3101 use std::sync::Mutex;3101 use std::sync::Mutex;
3102 3102
3103 /// A mail server that remembers instead of sending, and refuses when told to.3103 /// A mail server that remembers instead of sending, and refuses when told to.
@@ -3140,10 +3140,10 @@ impl Mailer for Remembering {
3140 3140
3141 /// A store shared between the tests and an engine.3141 /// A store shared between the tests and an engine.
3142 async fn shared() -> (PathBuf, Arc<TursoStore>, String, String) {3142 async fn shared() -> (PathBuf, Arc<TursoStore>, String, String) {
3143- let dir = std::env::temp_dir().join(format!("dizey-test-{}", Uuid::new_v4()));3143+ let dir = std::env::temp_dir().join(format!("izlek-test-{}", Uuid::new_v4()));
3144 std::fs::create_dir_all(&dir).unwrap();3144 std::fs::create_dir_all(&dir).unwrap();
3145 let store = Arc::new(3145 let store = Arc::new(
3146- TursoStore::open(dir.join("dizey.db").to_str().unwrap())3146+ TursoStore::open(dir.join("izlek.db").to_str().unwrap())
3147 .await3147 .await
3148 .unwrap(),3148 .unwrap(),
3149 );3149 );
@@ -3154,7 +3154,7 @@ async fn shared() -> (PathBuf, Arc<TursoStore>, String, String) {
3154 #[tokio::test]3154 #[tokio::test]
3155 async fn a_crossing_mails_the_people_on_the_card_once() {3155 async fn a_crossing_mails_the_people_on_the_card_once() {
3156 let (dir, store, workspace, admin) = shared().await;3156 let (dir, store, workspace, admin) = shared().await;
3157- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3157+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3158 let task = add_task(3158 let task = add_task(
3159 &store,3159 &store,
3160 &workspace,3160 &workspace,
@@ -3168,7 +3168,7 @@ async fn a_crossing_mails_the_people_on_the_card_once() {
3168 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;3168 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;
3169 3169
3170 let mailer = Remembering::taking_everything();3170 let mailer = Remembering::taking_everything();
3171- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3171+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3172 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;3172 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;
3173 3173
3174 let first = engine.on_transition(&transition).await.unwrap();3174 let first = engine.on_transition(&transition).await.unwrap();
@@ -3181,11 +3181,11 @@ async fn a_crossing_mails_the_people_on_the_card_once() {
3181 3181
3182 let sent = mailer.sent();3182 let sent = mailer.sent();
3183 assert_eq!(sent.len(), 1);3183 assert_eq!(sent.len(), 1);
3184- assert_eq!(sent[0].to, "emre@dizey.sh");3184+ assert_eq!(sent[0].to, "emre@izlek.sh");
3185 assert_eq!(sent[0].subject, "Task completed");3185 assert_eq!(sent[0].subject, "Task completed");
3186 assert!(sent[0].body.contains("CLI install script"));3186 assert!(sent[0].body.contains("CLI install script"));
3187 assert!(3187 assert!(
3188- sent[0].body.contains("https://dizey.sh/?task="),3188+ sent[0].body.contains("https://izlek.sh/?task="),
3189 "the mail links back to the task: {}",3189 "the mail links back to the task: {}",
3190 sent[0].body3190 sent[0].body
3191 );3191 );
@@ -3196,12 +3196,12 @@ async fn a_crossing_mails_the_people_on_the_card_once() {
3196 #[tokio::test]3196 #[tokio::test]
3197 async fn an_edited_rule_does_not_remail_a_crossing_it_already_covered() {3197 async fn an_edited_rule_does_not_remail_a_crossing_it_already_covered() {
3198 let (dir, store, workspace, admin) = shared().await;3198 let (dir, store, workspace, admin) = shared().await;
3199- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3199+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3200 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3200 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3201 store.assign_task(&task, &mate).await.unwrap();3201 store.assign_task(&task, &mate).await.unwrap();
3202 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;3202 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;
3203 let mailer = Remembering::taking_everything();3203 let mailer = Remembering::taking_everything();
3204- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3204+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3205 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;3205 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;
3206 engine.on_transition(&transition).await.unwrap();3206 engine.on_transition(&transition).await.unwrap();
3207 3207
@@ -3219,14 +3219,14 @@ async fn an_edited_rule_does_not_remail_a_crossing_it_already_covered() {
3219 #[tokio::test]3219 #[tokio::test]
3220 async fn a_rule_that_is_off_sends_nothing() {3220 async fn a_rule_that_is_off_sends_nothing() {
3221 let (dir, store, workspace, admin) = shared().await;3221 let (dir, store, workspace, admin) = shared().await;
3222- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3222+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3223 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3223 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3224 store.assign_task(&task, &mate).await.unwrap();3224 store.assign_task(&task, &mate).await.unwrap();
3225 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;3225 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;
3226 store.set_mail_rule_enabled(&rule.id, false).await.unwrap();3226 store.set_mail_rule_enabled(&rule.id, false).await.unwrap();
3227 3227
3228 let mailer = Remembering::taking_everything();3228 let mailer = Remembering::taking_everything();
3229- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3229+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3230 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;3230 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;
3231 assert_eq!(3231 assert_eq!(
3232 engine.on_transition(&transition).await.unwrap(),3232 engine.on_transition(&transition).await.unwrap(),
@@ -3242,7 +3242,7 @@ async fn a_rule_that_is_off_sends_nothing() {
3242 #[tokio::test]3242 #[tokio::test]
3243 async fn a_mail_says_when_the_card_moved_not_when_it_was_sent() {3243 async fn a_mail_says_when_the_card_moved_not_when_it_was_sent() {
3244 let (dir, store, workspace, admin) = shared().await;3244 let (dir, store, workspace, admin) = shared().await;
3245- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3245+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3246 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3246 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3247 store.assign_task(&task, &mate).await.unwrap();3247 store.assign_task(&task, &mate).await.unwrap();
3248 a_rule(&store, &workspace, "Done", "Task completed").await;3248 a_rule(&store, &workspace, "Done", "Task completed").await;
@@ -3250,7 +3250,7 @@ async fn a_mail_says_when_the_card_moved_not_when_it_was_sent() {
3250 // The server is down when the card moves and comes back later. The mail3250 // The server is down when the card moves and comes back later. The mail
3251 // that finally goes out has to say Tuesday, not Thursday.3251 // that finally goes out has to say Tuesday, not Thursday.
3252 let mailer = Remembering::refusing(vec![MailError::retryable("connection refused")]);3252 let mailer = Remembering::refusing(vec![MailError::retryable("connection refused")]);
3253- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3253+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3254 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;3254 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;
3255 let refused = engine.on_transition(&transition).await.unwrap();3255 let refused = engine.on_transition(&transition).await.unwrap();
3256 assert_eq!(refused.failed, 1);3256 assert_eq!(refused.failed, 1);
@@ -3271,28 +3271,28 @@ async fn a_mail_says_when_the_card_moved_not_when_it_was_sent() {
3271 #[tokio::test]3271 #[tokio::test]
3272 async fn a_failing_send_is_retried_a_bounded_number_of_times_and_then_written_off() {3272 async fn a_failing_send_is_retried_a_bounded_number_of_times_and_then_written_off() {
3273 let (dir, store, workspace, admin) = shared().await;3273 let (dir, store, workspace, admin) = shared().await;
3274- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3274+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3275 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3275 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3276 store.assign_task(&task, &mate).await.unwrap();3276 store.assign_task(&task, &mate).await.unwrap();
3277 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;3277 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;
3278 3278
3279 let mailer = Remembering::refusing(3279 let mailer = Remembering::refusing(
3280- (0..dizey_core::mail::MAX_ATTEMPTS)3280+ (0..izlek_core::mail::MAX_ATTEMPTS)
3281 .map(|_| MailError::retryable("connection timed out"))3281 .map(|_| MailError::retryable("connection timed out"))
3282 .collect(),3282 .collect(),
3283 );3283 );
3284- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3284+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3285 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;3285 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;
3286 engine.on_transition(&transition).await.unwrap();3286 engine.on_transition(&transition).await.unwrap();
3287 3287
3288 let mut when = OffsetDateTime::now_utc();3288 let mut when = OffsetDateTime::now_utc();
3289- for _ in 1..dizey_core::mail::MAX_ATTEMPTS {3289+ for _ in 1..izlek_core::mail::MAX_ATTEMPTS {
3290- when += backoff(dizey_core::mail::MAX_ATTEMPTS) + Duration::minutes(1);3290+ when += backoff(izlek_core::mail::MAX_ATTEMPTS) + Duration::minutes(1);
3291 engine.deliver_owed(when, 10).await.unwrap();3291 engine.deliver_owed(when, 10).await.unwrap();
3292 }3292 }
3293 3293
3294 let ledger = &store.sends_for_rule(&rule.id, 10).await.unwrap()[0];3294 let ledger = &store.sends_for_rule(&rule.id, 10).await.unwrap()[0];
3295- assert_eq!(ledger.attempts, dizey_core::mail::MAX_ATTEMPTS);3295+ assert_eq!(ledger.attempts, izlek_core::mail::MAX_ATTEMPTS);
3296 assert_eq!(ledger.state, SendState::Abandoned);3296 assert_eq!(ledger.state, SendState::Abandoned);
3297 assert_eq!(ledger.last_error.as_deref(), Some("connection timed out"));3297 assert_eq!(ledger.last_error.as_deref(), Some("connection timed out"));
3298 assert!(3298 assert!(
@@ -3310,13 +3310,13 @@ async fn a_failing_send_is_retried_a_bounded_number_of_times_and_then_written_of
3310 #[tokio::test]3310 #[tokio::test]
3311 async fn a_refused_address_is_written_off_at_the_first_answer() {3311 async fn a_refused_address_is_written_off_at_the_first_answer() {
3312 let (dir, store, workspace, admin) = shared().await;3312 let (dir, store, workspace, admin) = shared().await;
3313- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3313+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3314 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3314 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3315 store.assign_task(&task, &mate).await.unwrap();3315 store.assign_task(&task, &mate).await.unwrap();
3316 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;3316 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;
3317 3317
3318 let mailer = Remembering::refusing(vec![MailError::permanent("550 no such mailbox")]);3318 let mailer = Remembering::refusing(vec![MailError::permanent("550 no such mailbox")]);
3319- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3319+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3320 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;3320 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &admin).await;
3321 let report = engine.on_transition(&transition).await.unwrap();3321 let report = engine.on_transition(&transition).await.unwrap();
3322 assert_eq!(report.abandoned, 1);3322 assert_eq!(report.abandoned, 1);
@@ -3331,7 +3331,7 @@ async fn a_refused_address_is_written_off_at_the_first_answer() {
3331 #[tokio::test]3331 #[tokio::test]
3332 async fn you_can_start_now_waits_for_the_last_blocker() {3332 async fn you_can_start_now_waits_for_the_last_blocker() {
3333 let (dir, store, workspace, admin) = shared().await;3333 let (dir, store, workspace, admin) = shared().await;
3334- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3334+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3335 let board = store.board(&workspace).await.unwrap().unwrap();3335 let board = store.board(&workspace).await.unwrap().unwrap();
3336 let waiting = add_task(3336 let waiting = add_task(
3337 &store,3337 &store,
@@ -3368,7 +3368,7 @@ async fn you_can_start_now_waits_for_the_last_blocker() {
3368 .unwrap();3368 .unwrap();
3369 3369
3370 let mailer = Remembering::taking_everything();3370 let mailer = Remembering::taking_everything();
3371- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3371+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3372 3372
3373 // One blocker finished is not unblocked: the other one is still in the way,3373 // One blocker finished is not unblocked: the other one is still in the way,
3374 // and telling Emre to start would be a lie.3374 // and telling Emre to start would be a lie.
@@ -3380,7 +3380,7 @@ async fn you_can_start_now_waits_for_the_last_blocker() {
3380 assert_eq!(engine.on_transition(&two).await.unwrap().sent, 1);3380 assert_eq!(engine.on_transition(&two).await.unwrap().sent, 1);
3381 let sent = mailer.sent();3381 let sent = mailer.sent();
3382 assert_eq!(sent.len(), 1);3382 assert_eq!(sent.len(), 1);
3383- assert_eq!(sent[0].to, "emre@dizey.sh");3383+ assert_eq!(sent[0].to, "emre@izlek.sh");
3384 assert!(3384 assert!(
3385 sent[0].body.contains("Onboarding mails"),3385 sent[0].body.contains("Onboarding mails"),
3386 "the mail is about the freed task, not the blocker: {}",3386 "the mail is about the freed task, not the blocker: {}",
@@ -3392,7 +3392,7 @@ async fn you_can_start_now_waits_for_the_last_blocker() {
3392 #[tokio::test]3392 #[tokio::test]
3393 async fn a_card_that_did_not_move_owes_nobody_a_mail() {3393 async fn a_card_that_did_not_move_owes_nobody_a_mail() {
3394 let (dir, store, workspace, admin) = shared().await;3394 let (dir, store, workspace, admin) = shared().await;
3395- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3395+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3396 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3396 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3397 store.assign_task(&task, &mate).await.unwrap();3397 store.assign_task(&task, &mate).await.unwrap();
3398 a_rule(&store, &workspace, "Done", "Task completed").await;3398 a_rule(&store, &workspace, "Done", "Task completed").await;
@@ -3412,7 +3412,7 @@ async fn a_card_that_did_not_move_owes_nobody_a_mail() {
3412 #[tokio::test]3412 #[tokio::test]
3413 async fn a_deleted_blocker_also_says_you_can_start_now() {3413 async fn a_deleted_blocker_also_says_you_can_start_now() {
3414 let (dir, store, workspace, admin) = shared().await;3414 let (dir, store, workspace, admin) = shared().await;
3415- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3415+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3416 let board = store.board(&workspace).await.unwrap().unwrap();3416 let board = store.board(&workspace).await.unwrap().unwrap();
3417 let waiting = add_task(3417 let waiting = add_task(
3418 &store,3418 &store,
@@ -3439,7 +3439,7 @@ async fn a_deleted_blocker_also_says_you_can_start_now() {
3439 .unwrap();3439 .unwrap();
3440 3440
3441 let mailer = Remembering::taking_everything();3441 let mailer = Remembering::taking_everything();
3442- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3442+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3443 3443
3444 // A blocker can leave the way in two ways, and being deleted is one of3444 // A blocker can leave the way in two ways, and being deleted is one of
3445 // them. The person waiting hears about it either way.3445 // them. The person waiting hears about it either way.
@@ -3457,7 +3457,7 @@ async fn a_deleted_blocker_also_says_you_can_start_now() {
3457 3457
3458 let sent = mailer.sent();3458 let sent = mailer.sent();
3459 assert_eq!(sent.len(), 1);3459 assert_eq!(sent.len(), 1);
3460- assert_eq!(sent[0].to, "emre@dizey.sh");3460+ assert_eq!(sent[0].to, "emre@izlek.sh");
3461 assert_eq!(sent[0].subject, "You can start now");3461 assert_eq!(sent[0].subject, "You can start now");
3462 assert!(3462 assert!(
3463 sent[0].body.contains("Onboarding mails"),3463 sent[0].body.contains("Onboarding mails"),
@@ -3475,7 +3475,7 @@ async fn a_deleted_blocker_also_says_you_can_start_now() {
3475 #[tokio::test]3475 #[tokio::test]
3476 async fn a_delete_that_leaves_somebody_still_waiting_mails_nobody() {3476 async fn a_delete_that_leaves_somebody_still_waiting_mails_nobody() {
3477 let (dir, store, workspace, admin) = shared().await;3477 let (dir, store, workspace, admin) = shared().await;
3478- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3478+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3479 let board = store.board(&workspace).await.unwrap().unwrap();3479 let board = store.board(&workspace).await.unwrap().unwrap();
3480 let waiting = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3480 let waiting = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3481 let first = add_task(&store, &workspace, "Backlog", "Signing keys", None, &admin).await;3481 let first = add_task(&store, &workspace, "Backlog", "Signing keys", None, &admin).await;
@@ -3504,7 +3504,7 @@ async fn a_delete_that_leaves_somebody_still_waiting_mails_nobody() {
3504 .unwrap();3504 .unwrap();
3505 3505
3506 let mailer = Remembering::taking_everything();3506 let mailer = Remembering::taking_everything();
3507- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3507+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3508 3508
3509 // Deleting one of two blockers frees nobody, so there is no event at all3509 // Deleting one of two blockers frees nobody, so there is no event at all
3510 // and nothing to fire on.3510 // and nothing to fire on.
@@ -3531,7 +3531,7 @@ async fn a_delete_that_leaves_somebody_still_waiting_mails_nobody() {
3531 #[tokio::test]3531 #[tokio::test]
3532 async fn a_mail_owed_by_a_delete_is_rebuilt_from_the_delete_on_a_retry() {3532 async fn a_mail_owed_by_a_delete_is_rebuilt_from_the_delete_on_a_retry() {
3533 let (dir, store, workspace, admin) = shared().await;3533 let (dir, store, workspace, admin) = shared().await;
3534- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3534+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3535 let board = store.board(&workspace).await.unwrap().unwrap();3535 let board = store.board(&workspace).await.unwrap().unwrap();
3536 let waiting = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3536 let waiting = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3537 let blocker = add_task(&store, &workspace, "Backlog", "Signing keys", None, &admin).await;3537 let blocker = add_task(&store, &workspace, "Backlog", "Signing keys", None, &admin).await;
@@ -3554,7 +3554,7 @@ async fn a_mail_owed_by_a_delete_is_rebuilt_from_the_delete_on_a_retry() {
3554 // readable back as an event — the deleted task's key included, since the3554 // readable back as an event — the deleted task's key included, since the
3555 // task itself is gone.3555 // task itself is gone.
3556 let mailer = Remembering::refusing(vec![MailError::retryable("connection refused")]);3556 let mailer = Remembering::refusing(vec![MailError::retryable("connection refused")]);
3557- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3557+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3558 let deletion = store.delete_task(&blocker, &admin, now).await.unwrap();3558 let deletion = store.delete_task(&blocker, &admin, now).await.unwrap();
3559 let freeing = deletion.event.clone().unwrap();3559 let freeing = deletion.event.clone().unwrap();
3560 assert_eq!(3560 assert_eq!(
@@ -3584,16 +3584,16 @@ async fn a_mail_owed_by_a_delete_is_rebuilt_from_the_delete_on_a_retry() {
3584 #[tokio::test]3584 #[tokio::test]
3585 async fn nobody_is_mailed_about_what_they_did_themselves() {3585 async fn nobody_is_mailed_about_what_they_did_themselves() {
3586 let (dir, store, workspace, admin) = shared().await;3586 let (dir, store, workspace, admin) = shared().await;
3587- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3587+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3588 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3588 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3589 store.assign_task(&task, &mate).await.unwrap();3589 store.assign_task(&task, &mate).await.unwrap();
3590 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;3590 let rule = a_rule(&store, &workspace, "Done", "Task completed").await;
3591 3591
3592 let mailer = Remembering::taking_everything();3592 let mailer = Remembering::taking_everything();
3593- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3593+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3594 3594
3595 // Emre is the only assignee and Emre moved the card. Telling him what he3595 // Emre is the only assignee and Emre moved the card. Telling him what he
3596- // just did is how a person learns to filter Dizey's mail away.3596+ // just did is how a person learns to filter Izlek's mail away.
3597 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &mate).await;3597 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &mate).await;
3598 let report = engine.on_transition(&transition).await.unwrap();3598 let report = engine.on_transition(&transition).await.unwrap();
3599 assert_eq!(report, Default::default());3599 assert_eq!(report, Default::default());
@@ -3607,7 +3607,7 @@ async fn nobody_is_mailed_about_what_they_did_themselves() {
3607 #[tokio::test]3607 #[tokio::test]
3608 async fn the_actor_comes_off_the_board_audience_too_and_the_rest_still_get_it() {3608 async fn the_actor_comes_off_the_board_audience_too_and_the_rest_still_get_it() {
3609 let (dir, store, workspace, admin) = shared().await;3609 let (dir, store, workspace, admin) = shared().await;
3610- let mate = member(&store, &workspace, "emre@dizey.sh", "Emre").await;3610+ let mate = member(&store, &workspace, "emre@izlek.sh", "Emre").await;
3611 let board = store.board(&workspace).await.unwrap().unwrap();3611 let board = store.board(&workspace).await.unwrap().unwrap();
3612 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;3612 let task = add_task(&store, &workspace, "Backlog", "Ship it", None, &admin).await;
3613 let column_id = column_named(&store, &workspace, "Done").await;3613 let column_id = column_named(&store, &workspace, "Done").await;
@@ -3623,13 +3623,13 @@ async fn the_actor_comes_off_the_board_audience_too_and_the_rest_still_get_it()
3623 .unwrap();3623 .unwrap();
3624 3624
3625 let mailer = Remembering::taking_everything();3625 let mailer = Remembering::taking_everything();
3626- let engine = Engine::new(store.clone(), mailer.clone(), "https://dizey.sh");3626+ let engine = Engine::new(store.clone(), mailer.clone(), "https://izlek.sh");
3627 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &mate).await;3627 let transition = moved_to(&store, &workspace, &task, "Backlog", "Done", &mate).await;
3628 assert_eq!(engine.on_transition(&transition).await.unwrap().sent, 1);3628 assert_eq!(engine.on_transition(&transition).await.unwrap().sent, 1);
3629 3629
3630 let sent = mailer.sent();3630 let sent = mailer.sent();
3631 assert_eq!(sent.len(), 1, "the board minus the person who moved it");3631 assert_eq!(sent.len(), 1, "the board minus the person who moved it");
3632- assert_eq!(sent[0].to, "ada@dizey.sh");3632+ assert_eq!(sent[0].to, "ada@izlek.sh");
3633 let _ = std::fs::remove_dir_all(&dir);3633 let _ = std::fs::remove_dir_all(&dir);
3634 }3634 }
3635 3635
@@ -3646,7 +3646,7 @@ async fn an_account_records_the_admin_who_made_it() {
3646 .store3646 .store
3647 .create_user(NewUser {3647 .create_user(NewUser {
3648 workspace_id: ws_id,3648 workspace_id: ws_id,
3649- email: "grace@dizey.sh".into(),3649+ email: "grace@izlek.sh".into(),
3650 display_name: "Grace".into(),3650 display_name: "Grace".into(),
3651 role: Role::Member,3651 role: Role::Member,
3652 invited_by: Some(admin_id.clone()),3652 invited_by: Some(admin_id.clone()),
@@ -3721,7 +3721,7 @@ async fn a_file_name_that_is_a_path_is_stored_as_the_label_it_is() {
3721 let written: Vec<String> = std::fs::read_dir(&scratch.dir)3721 let written: Vec<String> = std::fs::read_dir(&scratch.dir)
3722 .unwrap()3722 .unwrap()
3723 .map(|entry| entry.unwrap().file_name().to_string_lossy().into_owned())3723 .map(|entry| entry.unwrap().file_name().to_string_lossy().into_owned())
3724- .filter(|name| !name.starts_with("dizey.db") && name != "dizey.key")3724+ .filter(|name| !name.starts_with("izlek.db") && name != "izlek.key")
3725 .collect();3725 .collect();
3726 assert!(written.is_empty(), "{written:?}");3726 assert!(written.is_empty(), "{written:?}");
3727 }3727 }
crates/dizey-web/Cargo.toml → crates/izlek-web/Cargo.tomlrenamed+5 -5
@@ -1,10 +1,10 @@
1 [package]1 [package]
2-name = "dizey-web"2+name = "izlek-web"
3 version.workspace = true3 version.workspace = true
4 edition.workspace = true4 edition.workspace = true
5 license.workspace = true5 license.workspace = true
6 repository.workspace = true6 repository.workspace = true
7-description = "Dizey web app: leptos UI, server functions and the axum server"7+description = "Izlek web app: leptos UI, server functions and the axum server"
8 8
9 [lib]9 [lib]
10 crate-type = ["cdylib", "rlib"]10 crate-type = ["cdylib", "rlib"]
@@ -18,7 +18,7 @@ serde.workspace = true
18 time.workspace = true18 time.workspace = true
19 thiserror.workspace = true19 thiserror.workspace = true
20 20
21-dizey-core = { workspace = true }21+izlek-core = { workspace = true }
22 axum = { version = "0.8.9", features = ["multipart"], optional = true }22 axum = { version = "0.8.9", features = ["multipart"], optional = true }
23 tokio = { workspace = true, optional = true }23 tokio = { workspace = true, optional = true }
24 tower = { version = "0.5.2", optional = true }24 tower = { version = "0.5.2", optional = true }
@@ -56,7 +56,7 @@ ssr = [
56 "dep:tokio",56 "dep:tokio",
57 "dep:tower",57 "dep:tower",
58 "dep:tower-http",58 "dep:tower-http",
59- "dizey-core/server",59+ "izlek-core/server",
60 "dep:turso",60 "dep:turso",
61 "dep:serde_json",61 "dep:serde_json",
62 "dep:lettre",62 "dep:lettre",
@@ -64,7 +64,7 @@ ssr = [
64 ]64 ]
65 65
66 # The HTTP test drives the real router, so it needs the server side of the app.66 # The HTTP test drives the real router, so it needs the server side of the app.
67-# Run it with `cargo test -p dizey-web --features ssr`.67+# Run it with `cargo test -p izlek-web --features ssr`.
68 [dev-dependencies]68 [dev-dependencies]
69 tokio = { workspace = true }69 tokio = { workspace = true }
70 tower = { version = "0.5.2", features = ["util"] }70 tower = { version = "0.5.2", features = ["util"] }
crates/dizey-web/src/app.rs → crates/izlek-web/src/app.rsrenamed+3 -3
@@ -8,7 +8,7 @@ use crate::rules::RulesPage;
8 use crate::settings::SettingsPage;8 use crate::settings::SettingsPage;
9 9
10 /// The HTML document the server streams. `cargo-leptos` writes the bundle to10 /// The HTML document the server streams. `cargo-leptos` writes the bundle to
11-/// `/pkg/dizey.{js,wasm,css}`, which is what the tags below point at.11+/// `/pkg/izlek.{js,wasm,css}`, which is what the tags below point at.
12 pub fn shell(options: LeptosOptions) -> impl IntoView {12 pub fn shell(options: LeptosOptions) -> impl IntoView {
13 view! {13 view! {
14 <!DOCTYPE html>14 <!DOCTYPE html>
@@ -38,8 +38,8 @@ pub fn App() -> impl IntoView {
38 provide_meta_context();38 provide_meta_context();
39 39
40 view! {40 view! {
41- <Stylesheet id="leptos" href="/pkg/dizey.css"/>41+ <Stylesheet id="leptos" href="/pkg/izlek.css"/>
42- <Title text="Dizey"/>42+ <Title text="Izlek"/>
43 <Router>43 <Router>
44 // In-order streaming, not the out-of-order default. Out-of-order ships44 // In-order streaming, not the out-of-order default. Out-of-order ships
45 // the page inside a <template> and relies on a script to move it into45 // the page inside a <template> and relies on a script to move it into
crates/dizey-web/src/auth.rs → crates/izlek-web/src/auth.rsrenamed+10 -10
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
9 9
10 /// The two password wordings, as the store states them. They are repeated here10 /// The two password wordings, as the store states them. They are repeated here
11 /// because a password problem has to be named on the client — which has no11 /// because a password problem has to be named on the client — which has no
12-/// `dizey_core::auth` — and `the_password_wordings_match_the_store` below fails12+/// `izlek_core::auth` — and `the_password_wordings_match_the_store` below fails
13 /// the build if the two ever drift apart.13 /// the build if the two ever drift apart.
14 const TOO_SHORT: &str = "at least 10 characters";14 const TOO_SHORT: &str = "at least 10 characters";
15 const LOOKS_LIKE_YOU: &str = "not your address or your name";15 const LOOKS_LIKE_YOU: &str = "not your address or your name";
@@ -279,7 +279,7 @@ mod refusal_tests {
279 #[cfg(feature = "ssr")]279 #[cfg(feature = "ssr")]
280 #[test]280 #[test]
281 fn the_password_wordings_match_the_store() {281 fn the_password_wordings_match_the_store() {
282- use dizey_core::auth::PasswordProblem;282+ use izlek_core::auth::PasswordProblem;
283 assert_eq!(PasswordProblem::TooShort.to_string(), TOO_SHORT);283 assert_eq!(PasswordProblem::TooShort.to_string(), TOO_SHORT);
284 assert_eq!(PasswordProblem::LooksLikeYou.to_string(), LOOKS_LIKE_YOU);284 assert_eq!(PasswordProblem::LooksLikeYou.to_string(), LOOKS_LIKE_YOU);
285 }285 }
@@ -305,7 +305,7 @@ pub struct Me {
305 pub id: String,305 pub id: String,
306 pub display_name: String,306 pub display_name: String,
307 pub email: String,307 pub email: String,
308- pub role: dizey_core::Role,308+ pub role: izlek_core::Role,
309 }309 }
310 310
311 /// Which of the three doors this browser is standing at.311 /// Which of the three doors this browser is standing at.
@@ -330,7 +330,7 @@ pub struct Invited {
330 330
331 /// The workspace has exactly one name and no screen that sets it, so it is a331 /// The workspace has exactly one name and no screen that sets it, so it is a
332 /// constant rather than a field nobody was shown.332 /// constant rather than a field nobody was shown.
333-pub const WORKSPACE_NAME: &str = "Dizey";333+pub const WORKSPACE_NAME: &str = "Izlek";
334 334
335 /// Which door to show. (The `#[server]` macro names a struct after the335 /// Which door to show. (The `#[server]` macro names a struct after the
336 /// function, so the call is `current_gate` and the answer is a `Gate`.)336 /// function, so the call is `current_gate` and the answer is a `Gate`.)
@@ -367,7 +367,7 @@ pub async fn claim_workspace(
367 password: String,367 password: String,
368 ) -> Result<Option<Refusal>, ServerFnError> {368 ) -> Result<Option<Refusal>, ServerFnError> {
369 use crate::server::{accounts, set_session_cookie};369 use crate::server::{accounts, set_session_cookie};
370- use dizey_core::accounts::SESSION_LIFETIME;370+ use izlek_core::accounts::SESSION_LIFETIME;
371 371
372 match accounts()372 match accounts()
373 .claim_workspace(WORKSPACE_NAME, &email, &display_name, &password)373 .claim_workspace(WORKSPACE_NAME, &email, &display_name, &password)
@@ -385,7 +385,7 @@ pub async fn claim_workspace(
385 #[server]385 #[server]
386 pub async fn invitation(token: String) -> Result<Option<Invited>, ServerFnError> {386 pub async fn invitation(token: String) -> Result<Option<Invited>, ServerFnError> {
387 use crate::server::accounts;387 use crate::server::accounts;
388- use dizey_core::auth::hash_token;388+ use izlek_core::auth::hash_token;
389 use time::OffsetDateTime;389 use time::OffsetDateTime;
390 390
391 let store = accounts().store().clone();391 let store = accounts().store().clone();
@@ -430,7 +430,7 @@ pub async fn redeem_link(
430 password: String,430 password: String,
431 ) -> Result<Option<Refusal>, ServerFnError> {431 ) -> Result<Option<Refusal>, ServerFnError> {
432 use crate::server::{accounts, client_label, set_session_cookie};432 use crate::server::{accounts, client_label, set_session_cookie};
433- use dizey_core::accounts::SESSION_LIFETIME;433+ use izlek_core::accounts::SESSION_LIFETIME;
434 434
435 match accounts()435 match accounts()
436 .redeem_signin_link(&token, &password, &client_label())436 .redeem_signin_link(&token, &password, &client_label())
@@ -449,7 +449,7 @@ pub async fn redeem_link(
449 #[server]449 #[server]
450 pub async fn sign_in(email: String, password: String) -> Result<Option<Refusal>, ServerFnError> {450 pub async fn sign_in(email: String, password: String) -> Result<Option<Refusal>, ServerFnError> {
451 use crate::server::{accounts, client_label, set_session_cookie};451 use crate::server::{accounts, client_label, set_session_cookie};
452- use dizey_core::accounts::SESSION_LIFETIME;452+ use izlek_core::accounts::SESSION_LIFETIME;
453 453
454 match accounts().sign_in(&email, &password, &client_label()).await {454 match accounts().sign_in(&email, &password, &client_label()).await {
455 Ok(signed_in) => {455 Ok(signed_in) => {
@@ -487,7 +487,7 @@ pub async fn change_password(
487 new: String,487 new: String,
488 ) -> Result<Option<Refusal>, ServerFnError> {488 ) -> Result<Option<Refusal>, ServerFnError> {
489 use crate::server::{client_label, require_user, set_session_cookie};489 use crate::server::{client_label, require_user, set_session_cookie};
490- use dizey_core::accounts::SESSION_LIFETIME;490+ use izlek_core::accounts::SESSION_LIFETIME;
491 491
492 let user = match require_user().await {492 let user = match require_user().await {
493 Ok(user) => user,493 Ok(user) => user,
@@ -511,7 +511,7 @@ pub async fn change_password(
511 pub async fn invite_member(511 pub async fn invite_member(
512 email: String,512 email: String,
513 display_name: String,513 display_name: String,
514- role: dizey_core::Role,514+ role: izlek_core::Role,
515 ) -> Result<Result<String, Refusal>, ServerFnError> {515 ) -> Result<Result<String, Refusal>, ServerFnError> {
516 use crate::server::{accounts, require_admin};516 use crate::server::{accounts, require_admin};
517 517
crates/dizey-web/src/board.rs → crates/izlek-web/src/board.rsrenamed+8 -8
@@ -5,7 +5,7 @@
5 //! is refused in the server functions below — the missing button is a courtesy,5 //! is refused in the server functions below — the missing button is a courtesy,
6 //! not the guard.6 //! not the guard.
7 7
8-use dizey_core::board::{BoardView, Person, TaskCard};8+use izlek_core::board::{BoardView, Person, TaskCard};
9 use leptos::prelude::*;9 use leptos::prelude::*;
10 use serde::{Deserialize, Serialize};10 use serde::{Deserialize, Serialize};
11 use time::Date;11 use time::Date;
@@ -29,7 +29,7 @@ pub struct BoardSnapshot {
29 #[server]29 #[server]
30 pub async fn current_board() -> Result<Result<BoardSnapshot, Refusal>, ServerFnError> {30 pub async fn current_board() -> Result<Result<BoardSnapshot, Refusal>, ServerFnError> {
31 use crate::server::{accounts, require_user};31 use crate::server::{accounts, require_user};
32- use dizey_core::board::load;32+ use izlek_core::board::load;
33 use time::OffsetDateTime;33 use time::OffsetDateTime;
34 34
35 let user = match require_user().await {35 let user = match require_user().await {
@@ -62,7 +62,7 @@ pub async fn create_task(
62 column_id: String,62 column_id: String,
63 ) -> Result<Option<Refusal>, ServerFnError> {63 ) -> Result<Option<Refusal>, ServerFnError> {
64 use crate::server::{accounts, require_writer};64 use crate::server::{accounts, require_writer};
65- use dizey_core::store::NewTask;65+ use izlek_core::store::NewTask;
66 66
67 let user = match require_writer().await {67 let user = match require_writer().await {
68 Ok(user) => user,68 Ok(user) => user,
@@ -74,7 +74,7 @@ pub async fn create_task(
74 }74 }
75 75
76 let store = accounts().store().clone();76 let store = accounts().store().clone();
77- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());77+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
78 let Some(board) = store.board(&user.workspace_id).await.map_err(fail)? else {78 let Some(board) = store.board(&user.workspace_id).await.map_err(fail)? else {
79 return Ok(Some(Refusal::Unavailable));79 return Ok(Some(Refusal::Unavailable));
80 };80 };
@@ -113,7 +113,7 @@ pub async fn move_card(
113 ) -> Result<Option<Refusal>, ServerFnError> {113 ) -> Result<Option<Refusal>, ServerFnError> {
114 use crate::detail::guard::writer_and_task;114 use crate::detail::guard::writer_and_task;
115 use crate::server::accounts;115 use crate::server::accounts;
116- use dizey_core::board::Moved;116+ use izlek_core::board::Moved;
117 use time::OffsetDateTime;117 use time::OffsetDateTime;
118 118
119 let (user, facts) = match writer_and_task(&task_id).await {119 let (user, facts) = match writer_and_task(&task_id).await {
@@ -124,7 +124,7 @@ pub async fn move_card(
124 // store is asked, so a column id from another board is refused by the124 // store is asked, so a column id from another board is refused by the
125 // handler and not merely by a foreign key.125 // handler and not merely by a foreign key.
126 let store = accounts().store().clone();126 let store = accounts().store().clone();
127- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());127+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
128 let columns = store.columns(&facts.board_id).await.map_err(fail)?;128 let columns = store.columns(&facts.board_id).await.map_err(fail)?;
129 if !columns.iter().any(|column| column.id == to_column_id) {129 if !columns.iter().any(|column| column.id == to_column_id) {
130 return Ok(Some(Refusal::Forbidden));130 return Ok(Some(Refusal::Forbidden));
@@ -151,7 +151,7 @@ pub async fn move_card(
151 // error: the board simply re-reads and looks the same.151 // error: the board simply re-reads and looks the same.
152 Ok(Moved::Unchanged) => Ok(None),152 Ok(Moved::Unchanged) => Ok(None),
153 Ok(Moved::Stale) => Ok(Some(Refusal::MovedAlready)),153 Ok(Moved::Stale) => Ok(Some(Refusal::MovedAlready)),
154- Err(dizey_core::store::StoreError::NotFound) => Ok(Some(Refusal::NotFound)),154+ Err(izlek_core::store::StoreError::NotFound) => Ok(Some(Refusal::NotFound)),
155 Err(error) => {155 Err(error) => {
156 eprintln!("store error: {error}");156 eprintln!("store error: {error}");
157 Ok(Some(Refusal::Unavailable))157 Ok(Some(Refusal::Unavailable))
@@ -376,7 +376,7 @@ fn BoardScreen(
376 view! {376 view! {
377 <header class="topbar">377 <header class="topbar">
378 <div class="wordmark">378 <div class="wordmark">
379- <span class="wordmark-text">"dizey"</span>379+ <span class="wordmark-text">"izlek"</span>
380 <span class="wordmark-dot"></span>380 <span class="wordmark-dot"></span>
381 </div>381 </div>
382 <div class="topbar-divider"></div>382 <div class="topbar-divider"></div>
crates/dizey-web/src/detail.rs → crates/izlek-web/src/detail.rsrenamed+19 -19
@@ -6,8 +6,8 @@
6 //! asker's workspace before it does anything — a task id in a form is an6 //! asker's workspace before it does anything — a task id in a form is an
7 //! authorization question, not a validation one.7 //! authorization question, not a validation one.
8 8
9-use dizey_core::board::Person;9+use izlek_core::board::Person;
10-use dizey_core::detail::{Comment, DeletionCost, DependencyEdge, TaskDetail};10+use izlek_core::detail::{Comment, DeletionCost, DependencyEdge, TaskDetail};
11 use leptos::either::Either;11 use leptos::either::Either;
12 use leptos::prelude::*;12 use leptos::prelude::*;
13 use serde::{Deserialize, Serialize};13 use serde::{Deserialize, Serialize};
@@ -57,8 +57,8 @@ pub enum Direction {
57 #[cfg(feature = "ssr")]57 #[cfg(feature = "ssr")]
58 pub(crate) mod guard {58 pub(crate) mod guard {
59 use crate::auth::Refusal;59 use crate::auth::Refusal;
60- use dizey_core::detail::TaskFacts;60+ use izlek_core::detail::TaskFacts;
61- use dizey_core::store::{Store, User};61+ use izlek_core::store::{Store, User};
62 62
63 /// The task, if this person's workspace is the one holding it. A task in63 /// The task, if this person's workspace is the one holding it. A task in
64 /// another workspace is not found rather than forbidden: the answer says64 /// another workspace is not found rather than forbidden: the answer says
@@ -96,7 +96,7 @@ pub(crate) mod guard {
96 #[server]96 #[server]
97 pub async fn fetch_task(task_id: String) -> Result<Result<DetailSnapshot, Refusal>, ServerFnError> {97 pub async fn fetch_task(task_id: String) -> Result<Result<DetailSnapshot, Refusal>, ServerFnError> {
98 use crate::server::{accounts, require_user};98 use crate::server::{accounts, require_user};
99- use dizey_core::detail::load;99+ use izlek_core::detail::load;
100 use time::OffsetDateTime;100 use time::OffsetDateTime;
101 101
102 let user = match require_user().await {102 let user = match require_user().await {
@@ -104,7 +104,7 @@ pub async fn fetch_task(task_id: String) -> Result<Result<DetailSnapshot, Refusa
104 Err(refusal) => return Ok(Err(refusal)),104 Err(refusal) => return Ok(Err(refusal)),
105 };105 };
106 let store = accounts().store().clone();106 let store = accounts().store().clone();
107- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());107+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
108 108
109 let Some(detail) = load(store.as_ref(), &user.workspace_id, &task_id)109 let Some(detail) = load(store.as_ref(), &user.workspace_id, &task_id)
110 .await110 .await
@@ -242,7 +242,7 @@ pub async fn save_task(
242 #[server]242 #[server]
243 pub async fn assign(task_id: String, user_id: String) -> Result<Option<Refusal>, ServerFnError> {243 pub async fn assign(task_id: String, user_id: String) -> Result<Option<Refusal>, ServerFnError> {
244 use crate::server::accounts;244 use crate::server::accounts;
245- use dizey_core::detail::ActivityKind;245+ use izlek_core::detail::ActivityKind;
246 use time::OffsetDateTime;246 use time::OffsetDateTime;
247 247
248 let (actor, _) = match guard::writer_and_task(&task_id).await {248 let (actor, _) = match guard::writer_and_task(&task_id).await {
@@ -250,7 +250,7 @@ pub async fn assign(task_id: String, user_id: String) -> Result<Option<Refusal>,
250 Err(refusal) => return Ok(Some(refusal)),250 Err(refusal) => return Ok(Some(refusal)),
251 };251 };
252 let store = accounts().store().clone();252 let store = accounts().store().clone();
253- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());253+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
254 254
255 // The person named in the form is checked against this workspace, not255 // The person named in the form is checked against this workspace, not
256 // trusted, and a viewer is refused here rather than left out of the picker.256 // trusted, and a viewer is refused here rather than left out of the picker.
@@ -284,7 +284,7 @@ pub async fn assign(task_id: String, user_id: String) -> Result<Option<Refusal>,
284 #[server]284 #[server]
285 pub async fn unassign(task_id: String, user_id: String) -> Result<Option<Refusal>, ServerFnError> {285 pub async fn unassign(task_id: String, user_id: String) -> Result<Option<Refusal>, ServerFnError> {
286 use crate::server::accounts;286 use crate::server::accounts;
287- use dizey_core::detail::ActivityKind;287+ use izlek_core::detail::ActivityKind;
288 use time::OffsetDateTime;288 use time::OffsetDateTime;
289 289
290 let (actor, _) = match guard::writer_and_task(&task_id).await {290 let (actor, _) = match guard::writer_and_task(&task_id).await {
@@ -292,7 +292,7 @@ pub async fn unassign(task_id: String, user_id: String) -> Result<Option<Refusal
292 Err(refusal) => return Ok(Some(refusal)),292 Err(refusal) => return Ok(Some(refusal)),
293 };293 };
294 let store = accounts().store().clone();294 let store = accounts().store().clone();
295- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());295+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
296 296
297 let Some(person) = store.user(&user_id).await.map_err(fail)? else {297 let Some(person) = store.user(&user_id).await.map_err(fail)? else {
298 return Ok(Some(Refusal::NotFound));298 return Ok(Some(Refusal::NotFound));
@@ -327,8 +327,8 @@ pub async fn link_tasks(
327 direction: Direction,327 direction: Direction,
328 ) -> Result<Option<Refusal>, ServerFnError> {328 ) -> Result<Option<Refusal>, ServerFnError> {
329 use crate::server::accounts;329 use crate::server::accounts;
330- use dizey_core::detail::ActivityKind;330+ use izlek_core::detail::ActivityKind;
331- use dizey_core::store::StoreError;331+ use izlek_core::store::StoreError;
332 use time::OffsetDateTime;332 use time::OffsetDateTime;
333 333
334 let (actor, _) = match guard::writer_and_task(&task_id).await {334 let (actor, _) = match guard::writer_and_task(&task_id).await {
@@ -373,7 +373,7 @@ pub async fn unlink_tasks(
373 direction: Direction,373 direction: Direction,
374 ) -> Result<Option<Refusal>, ServerFnError> {374 ) -> Result<Option<Refusal>, ServerFnError> {
375 use crate::server::accounts;375 use crate::server::accounts;
376- use dizey_core::detail::ActivityKind;376+ use izlek_core::detail::ActivityKind;
377 use time::OffsetDateTime;377 use time::OffsetDateTime;
378 378
379 let (actor, _) = match guard::writer_and_task(&task_id).await {379 let (actor, _) = match guard::writer_and_task(&task_id).await {
@@ -391,7 +391,7 @@ pub async fn unlink_tasks(
391 Direction::Blocks => (other_id.clone(), task_id.clone()),391 Direction::Blocks => (other_id.clone(), task_id.clone()),
392 };392 };
393 let now = OffsetDateTime::now_utc();393 let now = OffsetDateTime::now_utc();
394- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());394+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
395 store395 store
396 .clear_dependency(&blocked, &blocking, now)396 .clear_dependency(&blocked, &blocking, now)
397 .await397 .await
@@ -540,7 +540,7 @@ pub async fn delete_file(file_id: String) -> Result<Option<Refusal>, ServerFnErr
540 fn StatusControl(540 fn StatusControl(
541 task_id: StoredValue<String>,541 task_id: StoredValue<String>,
542 column_id: String,542 column_id: String,
543- columns: Vec<dizey_core::board::Column>,543+ columns: Vec<izlek_core::board::Column>,
544 action: ServerAction<crate::board::MoveCard>,544 action: ServerAction<crate::board::MoveCard>,
545 ) -> impl IntoView {545 ) -> impl IntoView {
546 // An effect never runs on the server, so this is false through SSR and546 // An effect never runs on the server, so this is false through SSR and
@@ -1506,7 +1506,7 @@ fn DetailScreen(
1506 .actor1506 .actor
1507 .as_ref()1507 .as_ref()
1508 .map(|person| person.display_name.clone())1508 .map(|person| person.display_name.clone())
1509- .unwrap_or_else(|| "Dizey".to_string());1509+ .unwrap_or_else(|| "Izlek".to_string());
1510 view! {1510 view! {
1511 <div class="activity-line">1511 <div class="activity-line">
1512 <span class="activity-stamp">{entry.moment()}</span>1512 <span class="activity-stamp">{entry.moment()}</span>
@@ -1563,7 +1563,7 @@ fn DetailScreen(
1563 })}1563 })}
1564 </ul>1564 </ul>
1565 <div class="confirm-note">1565 <div class="confirm-note">
1566- "The task keeps its record in the database, but nothing in Dizey brings it back."1566+ "The task keeps its record in the database, but nothing in Izlek brings it back."
1567 </div>1567 </div>
1568 <div class="confirm-row">1568 <div class="confirm-row">
1569 <button1569 <button
@@ -1737,7 +1737,7 @@ fn DepRow(
1737 /// quiet note saying where it came from.1737 /// quiet note saying where it came from.
1738 #[component]1738 #[component]
1739 fn FileChip(1739 fn FileChip(
1740- file: dizey_core::detail::FileLine,1740+ file: izlek_core::detail::FileLine,
1741 me: Me,1741 me: Me,
1742 action: ServerAction<DeleteFile>,1742 action: ServerAction<DeleteFile>,
1743 ) -> impl IntoView {1743 ) -> impl IntoView {
@@ -1770,7 +1770,7 @@ fn FileChip(
1770 1770
1771 #[component]1771 #[component]
1772 fn CommentRow(comment: Comment) -> impl IntoView {1772 fn CommentRow(comment: Comment) -> impl IntoView {
1773- use dizey_core::detail::moment_label;1773+ use izlek_core::detail::moment_label;
1774 1774
1775 let author = comment.author.clone();1775 let author = comment.author.clone();
1776 view! {1776 view! {
crates/dizey-web/src/files.rs → crates/izlek-web/src/files.rsrenamed+3 -3
@@ -9,8 +9,8 @@
9 use axum::extract::{Extension, Multipart, Path};9 use axum::extract::{Extension, Multipart, Path};
10 use axum::http::{HeaderMap, HeaderValue, StatusCode};10 use axum::http::{HeaderMap, HeaderValue, StatusCode};
11 use axum::response::{IntoResponse, Redirect, Response};11 use axum::response::{IntoResponse, Redirect, Response};
12-use dizey_core::accounts::Accounts;12+use izlek_core::accounts::Accounts;
13-use dizey_core::store::{NewAttachment, User};13+use izlek_core::store::{NewAttachment, User};
14 use time::OffsetDateTime;14 use time::OffsetDateTime;
15 15
16 use crate::auth::Refusal;16 use crate::auth::Refusal;
@@ -210,7 +210,7 @@ pub async fn upload(
210 }210 }
211 211
212 /// The `Content-Disposition` header for one download: always `attachment`, so212 /// The `Content-Disposition` header for one download: always `attachment`, so
213-/// an uploaded HTML or SVG file is offered to save rather than run on Dizey's213+/// an uploaded HTML or SVG file is offered to save rather than run on Izlek's
214 /// origin. The ASCII fallback keeps only characters no quoting scheme could214 /// origin. The ASCII fallback keeps only characters no quoting scheme could
215 /// turn into a delimiter or a control character; `filename*` carries the real215 /// turn into a delimiter or a control character; `filename*` carries the real
216 /// name, percent-encoded, for browsers that read it.216 /// name, percent-encoded, for browsers that read it.
crates/dizey-web/src/lib.rs → crates/izlek-web/src/lib.rsrenamed+0 -0
crates/dizey-web/src/main.rs → crates/izlek-web/src/main.rsrenamed+16 -16
@@ -1,26 +1,26 @@
1 #[cfg(feature = "ssr")]1 #[cfg(feature = "ssr")]
2 #[tokio::main]2 #[tokio::main]
3 async fn main() {3 async fn main() {
4- use dizey_core::accounts::Accounts;4+ use izlek_core::accounts::Accounts;
5- use dizey_core::store::TursoStore;5+ use izlek_core::store::TursoStore;
6 use leptos::prelude::*;6 use leptos::prelude::*;
7 use std::sync::Arc;7 use std::sync::Arc;
8 8
9- // dizey.toml is read here, before anything is opened, and written with9+ // izlek.toml is read here, before anything is opened, and written with
10 // development defaults if it is not there yet. A broken key stops the10 // development defaults if it is not there yet. A broken key stops the
11 // boot with its name in the message: the failure this prevents is not an11 // boot with its name in the message: the failure this prevents is not an
12- // empty database, it is a second Dizey writing a different file while12+ // empty database, it is a second Izlek writing a different file while
13 // everyone believes they share a board.13 // everyone believes they share a board.
14- let config = match dizey_core::Config::load() {14+ let config = match izlek_core::Config::load() {
15 Ok(config) => config,15 Ok(config) => config,
16 Err(problem) => {16 Err(problem) => {
17- eprintln!("dizey: {problem}");17+ eprintln!("izlek: {problem}");
18 std::process::exit(2);18 std::process::exit(2);
19 }19 }
20 };20 };
21 // Said once, so the answer to "which file are we on" lives in the log.21 // Said once, so the answer to "which file are we on" lives in the log.
22 for line in config.report() {22 for line in config.report() {
23- println!("dizey {line}");23+ println!("izlek {line}");
24 }24 }
25 25
26 // One process per database file: Turso is a single-writer engine and a26 // One process per database file: Turso is a single-writer engine and a
@@ -30,31 +30,31 @@ async fn main() {
30 let store = TursoStore::open(&config.database.to_string_lossy())30 let store = TursoStore::open(&config.database.to_string_lossy())
31 .await31 .await
32 .expect("failed to open the database");32 .expect("failed to open the database");
33- let store: Arc<dyn dizey_core::store::Store> = Arc::new(store);33+ let store: Arc<dyn izlek_core::store::Store> = Arc::new(store);
34 let accounts = Accounts::new(store.clone());34 let accounts = Accounts::new(store.clone());
35 35
36 // The engine is always built, because a sender can appear at any moment:36 // The engine is always built, because a sender can appear at any moment:
37 // an admin fills the panel in and the next sweep sends what was held. It37 // an admin fills the panel in and the next sweep sends what was held. It
38 // holds one connection pool, rebuilt only when the settings behind it38 // holds one connection pool, rebuilt only when the settings behind it
39 // change, and two things use it — every committed crossing, and the sweep.39 // change, and two things use it — every committed crossing, and the sweep.
40- let engine = Arc::new(dizey_core::MailEngine::new(40+ let engine = Arc::new(izlek_core::MailEngine::new(
41 store.clone(),41 store.clone(),
42- Arc::new(dizey_web::smtp::WorkspaceSmtp::new(store.clone())),42+ Arc::new(izlek_web::smtp::WorkspaceSmtp::new(store.clone())),
43 config.base_url.clone(),43 config.base_url.clone(),
44 ));44 ));
45 tokio::spawn(sweep(engine.clone()));45 tokio::spawn(sweep(engine.clone()));
46- let mail = dizey_web::server::Mail::sending(engine);46+ let mail = izlek_web::server::Mail::sending(engine);
47 47
48 let conf = get_configuration(None).expect("failed to read leptos configuration");48 let conf = get_configuration(None).expect("failed to read leptos configuration");
49 let leptos_options = conf.leptos_options;49 let leptos_options = conf.leptos_options;
50 let addr = leptos_options.site_addr;50 let addr = leptos_options.site_addr;
51 51
52- let app = dizey_web::server::router(accounts, mail, leptos_options);52+ let app = izlek_web::server::router(accounts, mail, leptos_options);
53 53
54 let listener = tokio::net::TcpListener::bind(&addr)54 let listener = tokio::net::TcpListener::bind(&addr)
55 .await55 .await
56 .expect("failed to bind");56 .expect("failed to bind");
57- println!("dizey listening on http://{addr}");57+ println!("izlek listening on http://{addr}");
58 axum::serve(58 axum::serve(
59 listener,59 listener,
60 app.into_make_service_with_connect_info::<std::net::SocketAddr>(),60 app.into_make_service_with_connect_info::<std::net::SocketAddr>(),
@@ -72,7 +72,7 @@ async fn main() {
72 /// own, and a send that has used its attempts is written off rather than72 /// own, and a send that has used its attempts is written off rather than
73 /// carried forever.73 /// carried forever.
74 #[cfg(feature = "ssr")]74 #[cfg(feature = "ssr")]
75-async fn sweep(engine: std::sync::Arc<dizey_core::MailEngine>) {75+async fn sweep(engine: std::sync::Arc<izlek_core::MailEngine>) {
76 /// Enough that a morning's backlog clears in a few passes, few enough that76 /// Enough that a morning's backlog clears in a few passes, few enough that
77 /// one pass cannot sit on the mail server for minutes.77 /// one pass cannot sit on the mail server for minutes.
78 const PER_PASS: u32 = 50;78 const PER_PASS: u32 = 50;
@@ -85,11 +85,11 @@ async fn sweep(engine: std::sync::Arc<dizey_core::MailEngine>) {
85 .await85 .await
86 {86 {
87 Ok(report) if report.sent + report.failed + report.abandoned > 0 => println!(87 Ok(report) if report.sent + report.failed + report.abandoned > 0 => println!(
88- "dizey mail sweep: {} sent, {} to retry, {} given up on",88+ "izlek mail sweep: {} sent, {} to retry, {} given up on",
89 report.sent, report.failed, report.abandoned89 report.sent, report.failed, report.abandoned
90 ),90 ),
91 Ok(_) => {}91 Ok(_) => {}
92- Err(problem) => eprintln!("dizey mail sweep could not read the ledger: {problem}"),92+ Err(problem) => eprintln!("izlek mail sweep could not read the ledger: {problem}"),
93 }93 }
94 }94 }
95 }95 }
crates/dizey-web/src/pages.rs → crates/izlek-web/src/pages.rsrenamed+4 -4
@@ -55,14 +55,14 @@ fn Topbar() -> impl IntoView {
55 view! {55 view! {
56 <header class="topbar">56 <header class="topbar">
57 <div class="wordmark">57 <div class="wordmark">
58- <span class="wordmark-text">"dizey"</span>58+ <span class="wordmark-text">"izlek"</span>
59 <span class="wordmark-dot"></span>59 <span class="wordmark-dot"></span>
60 </div>60 </div>
61 </header>61 </header>
62 }62 }
63 }63 }
64 64
65-/// "Set up Dizey" — the first account in an empty workspace.65+/// "Set up Izlek" — the first account in an empty workspace.
66 #[component]66 #[component]
67 fn SetupCard(on_done: impl Fn() + Copy + Send + Sync + 'static) -> impl IntoView {67 fn SetupCard(on_done: impl Fn() + Copy + Send + Sync + 'static) -> impl IntoView {
68 let action = ServerAction::<ClaimWorkspace>::new();68 let action = ServerAction::<ClaimWorkspace>::new();
@@ -79,7 +79,7 @@ fn SetupCard(on_done: impl Fn() + Copy + Send + Sync + 'static) -> impl IntoView
79 <span class="auth-kicker">"FIRST ACCOUNT — EMPTY WORKSPACE"</span>79 <span class="auth-kicker">"FIRST ACCOUNT — EMPTY WORKSPACE"</span>
80 <div class="auth-card">80 <div class="auth-card">
81 <div class="auth-head">81 <div class="auth-head">
82- <div class="auth-title">"Set up Dizey"</div>82+ <div class="auth-title">"Set up Izlek"</div>
83 <div class="auth-sub">83 <div class="auth-sub">
84 "Nobody has signed in yet, so this account administers the workspace: the mail sender, the limits and the member list are yours."84 "Nobody has signed in yet, so this account administers the workspace: the mail sender, the limits and the member list are yours."
85 </div>85 </div>
@@ -272,7 +272,7 @@ fn SignInCard(on_done: impl Fn() + Copy + Send + Sync + 'static) -> impl IntoVie
272 <span class="auth-kicker">"SIGN IN"</span>272 <span class="auth-kicker">"SIGN IN"</span>
273 <div class="auth-card">273 <div class="auth-card">
274 <div class="auth-head">274 <div class="auth-head">
275- <div class="auth-title">"Sign in to Dizey"</div>275+ <div class="auth-title">"Sign in to Izlek"</div>
276 <div class="auth-sub">276 <div class="auth-sub">
277 "Accounts are made by the admin. If you were invited, use the link you were sent — it is where you choose your password."277 "Accounts are made by the admin. If you were invited, use the link you were sent — it is where you choose your password."
278 </div>278 </div>
crates/dizey-web/src/rules.rs → crates/izlek-web/src/rules.rsrenamed+9 -9
@@ -52,8 +52,8 @@ pub struct RulesSnapshot {
52 52
53 /// The word for an audience, as the artboard writes it.53 /// The word for an audience, as the artboard writes it.
54 #[cfg(feature = "ssr")]54 #[cfg(feature = "ssr")]
55-fn audience_word(audience: dizey_core::store::Audience) -> &'static str {55+fn audience_word(audience: izlek_core::store::Audience) -> &'static str {
56- use dizey_core::store::Audience;56+ use izlek_core::store::Audience;
57 match audience {57 match audience {
58 Audience::Assignees => "assignees",58 Audience::Assignees => "assignees",
59 Audience::Board => "everyone on board",59 Audience::Board => "everyone on board",
@@ -65,14 +65,14 @@ fn audience_word(audience: dizey_core::store::Audience) -> &'static str {
65 #[server]65 #[server]
66 pub async fn current_rules() -> Result<Result<RulesSnapshot, Refusal>, ServerFnError> {66 pub async fn current_rules() -> Result<Result<RulesSnapshot, Refusal>, ServerFnError> {
67 use crate::server::{accounts, require_admin};67 use crate::server::{accounts, require_admin};
68- use dizey_core::store::Trigger;68+ use izlek_core::store::Trigger;
69 69
70 let user = match require_admin().await {70 let user = match require_admin().await {
71 Ok(user) => user,71 Ok(user) => user,
72 Err(refusal) => return Ok(Err(refusal)),72 Err(refusal) => return Ok(Err(refusal)),
73 };73 };
74 let store = accounts().store().clone();74 let store = accounts().store().clone();
75- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());75+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
76 let Some(board) = store.board(&user.workspace_id).await.map_err(fail)? else {76 let Some(board) = store.board(&user.workspace_id).await.map_err(fail)? else {
77 return Ok(Err(Refusal::Unavailable));77 return Ok(Err(Refusal::Unavailable));
78 };78 };
@@ -115,7 +115,7 @@ pub async fn current_rules() -> Result<Result<RulesSnapshot, Refusal>, ServerFnE
115 last_sent: last_sent115 last_sent: last_sent
116 .iter()116 .iter()
117 .find(|(id, _)| id == &rule.id)117 .find(|(id, _)| id == &rule.id)
118- .map(|(_, at)| dizey_core::detail::moment_label(*at)),118+ .map(|(_, at)| izlek_core::detail::moment_label(*at)),
119 id: rule.id,119 id: rule.id,
120 }120 }
121 })121 })
@@ -151,7 +151,7 @@ pub async fn create_rule(
151 audience: String,151 audience: String,
152 ) -> Result<Option<Refusal>, ServerFnError> {152 ) -> Result<Option<Refusal>, ServerFnError> {
153 use crate::server::{accounts, require_admin};153 use crate::server::{accounts, require_admin};
154- use dizey_core::store::{Audience, Trigger};154+ use izlek_core::store::{Audience, Trigger};
155 155
156 let user = match require_admin().await {156 let user = match require_admin().await {
157 Ok(user) => user,157 Ok(user) => user,
@@ -168,7 +168,7 @@ pub async fn create_rule(
168 };168 };
169 169
170 let store = accounts().store().clone();170 let store = accounts().store().clone();
171- let fail = |e: dizey_core::store::StoreError| ServerFnError::new(e.to_string());171+ let fail = |e: izlek_core::store::StoreError| ServerFnError::new(e.to_string());
172 let Some(board) = store.board(&user.workspace_id).await.map_err(fail)? else {172 let Some(board) = store.board(&user.workspace_id).await.map_err(fail)? else {
173 return Ok(Some(Refusal::Unavailable));173 return Ok(Some(Refusal::Unavailable));
174 };174 };
@@ -239,7 +239,7 @@ pub async fn delete_rule(rule_id: String) -> Result<Option<Refusal>, ServerFnErr
239 #[cfg(feature = "ssr")]239 #[cfg(feature = "ssr")]
240 async fn rule_of_this_workspace(240 async fn rule_of_this_workspace(
241 rule_id: &str,241 rule_id: &str,
242-) -> Result<std::sync::Arc<dyn dizey_core::store::Store>, Refusal> {242+) -> Result<std::sync::Arc<dyn izlek_core::store::Store>, Refusal> {
243 use crate::server::{accounts, require_admin};243 use crate::server::{accounts, require_admin};
244 244
245 let user = require_admin().await?;245 let user = require_admin().await?;
@@ -316,7 +316,7 @@ fn RulesScreen(snapshot: RulesSnapshot, on_change: Callback<()>) -> impl IntoVie
316 view! {316 view! {
317 <header class="topbar">317 <header class="topbar">
318 <div class="wordmark">318 <div class="wordmark">
319- <span class="wordmark-text">"dizey"</span>319+ <span class="wordmark-text">"izlek"</span>
320 <span class="wordmark-dot"></span>320 <span class="wordmark-dot"></span>
321 </div>321 </div>
322 <div class="topbar-divider"></div>322 <div class="topbar-divider"></div>
crates/dizey-web/src/server.rs → crates/izlek-web/src/server.rsrenamed+18 -18
@@ -7,15 +7,15 @@
7 use axum::http::HeaderValue;7 use axum::http::HeaderValue;
8 use axum::http::header::{COOKIE, SET_COOKIE};8 use axum::http::header::{COOKIE, SET_COOKIE};
9 use axum::http::request::Parts;9 use axum::http::request::Parts;
10-use dizey_core::accounts::{AccountError, Accounts};10+use izlek_core::accounts::{AccountError, Accounts};
11-use dizey_core::board::Transition;11+use izlek_core::board::Transition;
12-use dizey_core::mail::Engine;12+use izlek_core::mail::Engine;
13-use dizey_core::store::{Freeing, User};13+use izlek_core::store::{Freeing, User};
14 use leptos::prelude::*;14 use leptos::prelude::*;
15 use leptos_axum::ResponseOptions;15 use leptos_axum::ResponseOptions;
16 16
17 /// The session cookie's name. One cookie, one browser, one session row.17 /// The session cookie's name. One cookie, one browser, one session row.
18-pub const SESSION_COOKIE: &str = "dizey_session";18+pub const SESSION_COOKIE: &str = "izlek_session";
19 19
20 /// The workspace's account service, put into context by the router.20 /// The workspace's account service, put into context by the router.
21 pub fn accounts() -> Accounts {21 pub fn accounts() -> Accounts {
@@ -76,21 +76,21 @@ impl Mail {
76 /// Sends one test mail and waits for the answer, because the answer is the76 /// Sends one test mail and waits for the answer, because the answer is the
77 /// whole point of pressing the button. `None` means this process has no77 /// whole point of pressing the button. `None` means this process has no
78 /// engine at all, which happens only in tests.78 /// engine at all, which happens only in tests.
79- pub async fn test(&self, to: &str) -> Option<Result<time::Duration, dizey_core::MailError>> {79+ pub async fn test(&self, to: &str) -> Option<Result<time::Duration, izlek_core::MailError>> {
80 let engine = self.0.clone()?;80 let engine = self.0.clone()?;
81 Some(engine.send_test(to).await)81 Some(engine.send_test(to).await)
82 }82 }
83 83
84- fn log(report: dizey_core::store::Result<dizey_core::mail::Report>) {84+ fn log(report: izlek_core::store::Result<izlek_core::mail::Report>) {
85 match report {85 match report {
86 Ok(report) if report.sent + report.failed + report.abandoned > 0 => {86 Ok(report) if report.sent + report.failed + report.abandoned > 0 => {
87 println!(87 println!(
88- "dizey mail {} sent, {} to retry, {} given up on",88+ "izlek mail {} sent, {} to retry, {} given up on",
89 report.sent, report.failed, report.abandoned89 report.sent, report.failed, report.abandoned
90 );90 );
91 }91 }
92 Ok(_) => {}92 Ok(_) => {}
93- Err(problem) => eprintln!("dizey mail the ledger could not be read: {problem}"),93+ Err(problem) => eprintln!("izlek mail the ledger could not be read: {problem}"),
94 }94 }
95 }95 }
96 }96 }
@@ -125,7 +125,7 @@ pub fn session_in(headers: &axum::http::HeaderMap) -> Option<String> {
125 }125 }
126 126
127 /// A stable-enough label for the client, for rate limiting. A proxy header is127 /// A stable-enough label for the client, for rate limiting. A proxy header is
128-/// only trusted because Dizey is meant to sit behind one; the address bucket is128+/// only trusted because Izlek is meant to sit behind one; the address bucket is
129 /// the limit that actually protects the Argon2 work either way.129 /// the limit that actually protects the Argon2 work either way.
130 pub fn client_label() -> String {130 pub fn client_label() -> String {
131 let Some(parts) = use_context::<Parts>() else {131 let Some(parts) = use_context::<Parts>() else {
@@ -290,7 +290,7 @@ pub fn router(
290 /// browser without script has no such thing: it posts the form, the server290 /// browser without script has no such thing: it posts the form, the server
291 /// function handler answers `302` back to the page it came from, and the value291 /// function handler answers `302` back to the page it came from, and the value
292 /// — the whole refusal — sits in a body nobody will ever look at. The click292 /// — the whole refusal — sits in a body nobody will ever look at. The click
293-/// then looks like nothing happening, which is the worst answer Dizey can give.293+/// then looks like nothing happening, which is the worst answer Izlek can give.
294 ///294 ///
295 /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`,295 /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`,
296 /// and the page renders it from the query. This is one place rather than296 /// and the page renders it from the query. This is one place rather than
@@ -350,7 +350,7 @@ fn carrying(location: &str, code: &str, called: &str) -> Option<String> {
350 }350 }
351 // The Location we are rewriting came from the form post's Referer, and on a351 // The Location we are rewriting came from the form post's Referer, and on a
352 // cross-origin post the Referer is whatever the other site is. Sending the352 // cross-origin post the Referer is whatever the other site is. Sending the
353- // browser back there would make Dizey an open redirect, so the address is353+ // browser back there would make Izlek an open redirect, so the address is
354 // rebuilt from its path and query alone and anything that is not a plain354 // rebuilt from its path and query alone and anything that is not a plain
355 // absolute path is answered with the board.355 // absolute path is answered with the board.
356 let here = same_origin(location);356 let here = same_origin(location);
@@ -396,7 +396,7 @@ mod refusal_redirect_tests {
396 #[test]396 #[test]
397 fn a_bare_address_gains_a_query() {397 fn a_bare_address_gains_a_query() {
398 assert_eq!(398 assert_eq!(
399- carrying("http://dizey.sh/", "cycle", "link_tasks").as_deref(),399+ carrying("http://izlek.sh/", "cycle", "link_tasks").as_deref(),
400 Some("/?refusal=cycle&on=link_tasks")400 Some("/?refusal=cycle&on=link_tasks")
401 );401 );
402 }402 }
@@ -404,7 +404,7 @@ mod refusal_redirect_tests {
404 #[test]404 #[test]
405 fn an_open_modal_stays_open() {405 fn an_open_modal_stays_open() {
406 assert_eq!(406 assert_eq!(
407- carrying("http://dizey.sh/?task=DZ-01", "cycle", "link_tasks").as_deref(),407+ carrying("http://izlek.sh/?task=DZ-01", "cycle", "link_tasks").as_deref(),
408 Some("/?task=DZ-01&refusal=cycle&on=link_tasks")408 Some("/?task=DZ-01&refusal=cycle&on=link_tasks")
409 );409 );
410 }410 }
@@ -413,7 +413,7 @@ mod refusal_redirect_tests {
413 fn a_second_refusal_replaces_the_first() {413 fn a_second_refusal_replaces_the_first() {
414 assert_eq!(414 assert_eq!(
415 carrying(415 carrying(
416- "http://dizey.sh/?task=DZ-01&refusal=cycle&on=link_tasks",416+ "http://izlek.sh/?task=DZ-01&refusal=cycle&on=link_tasks",
417 "not-found",417 "not-found",
418 "link_tasks"418 "link_tasks"
419 )419 )
@@ -423,7 +423,7 @@ mod refusal_redirect_tests {
423 }423 }
424 424
425 // The Referer of a cross-origin post is the other site's address, and it425 // The Referer of a cross-origin post is the other site's address, and it
426- // reaches this function as the Location. Dizey answers on its own ground or426+ // reaches this function as the Location. Izlek answers on its own ground or
427 // not at all.427 // not at all.
428 #[test]428 #[test]
429 fn another_site_cannot_be_redirected_to() {429 fn another_site_cannot_be_redirected_to() {
@@ -442,7 +442,7 @@ mod refusal_redirect_tests {
442 }442 }
443 // An address with a path keeps the path — it is read as a path on this443 // An address with a path keeps the path — it is read as a path on this
444 // site, which is the point: whatever the Referer claimed, the browser444 // site, which is the point: whatever the Referer claimed, the browser
445- // is sent somewhere on Dizey.445+ // is sent somewhere on Izlek.
446 let carried = carrying(446 let carried = carrying(
447 "http://elsewhere.example/steal?task=DZ-01",447 "http://elsewhere.example/steal?task=DZ-01",
448 "cycle",448 "cycle",
@@ -464,6 +464,6 @@ mod refusal_redirect_tests {
464 464
465 #[test]465 #[test]
466 fn a_call_with_no_name_carries_nothing() {466 fn a_call_with_no_name_carries_nothing() {
467- assert_eq!(carrying("http://dizey.sh/", "cycle", ""), None);467+ assert_eq!(carrying("http://izlek.sh/", "cycle", ""), None);
468 }468 }
469 }469 }
crates/dizey-web/src/settings.rs → crates/izlek-web/src/settings.rsrenamed+11 -11
@@ -56,7 +56,7 @@ impl Sender {
56 #[cfg(feature = "ssr")]56 #[cfg(feature = "ssr")]
57 impl Sender {57 impl Sender {
58 /// What the screen may see of the workspace's sender.58 /// What the screen may see of the workspace's sender.
59- pub fn of(workspace: &dizey_core::store::Workspace) -> Self {59+ pub fn of(workspace: &izlek_core::store::Workspace) -> Self {
60 Self {60 Self {
61 host: workspace.smtp_host.clone().unwrap_or_default(),61 host: workspace.smtp_host.clone().unwrap_or_default(),
62 // 587 is submission with STARTTLS, which is what a new panel should62 // 587 is submission with STARTTLS, which is what a new panel should
@@ -67,7 +67,7 @@ impl Sender {
67 from_address: workspace.smtp_from_address.clone().unwrap_or_default(),67 from_address: workspace.smtp_from_address.clone().unwrap_or_default(),
68 password_set: workspace.smtp_password_set,68 password_set: workspace.smtp_password_set,
69 test: workspace.sender_test.as_ref().map(|test| TestResult {69 test: workspace.sender_test.as_ref().map(|test| TestResult {
70- moment: dizey_core::detail::moment_label(test.at),70+ moment: izlek_core::detail::moment_label(test.at),
71 took: test.error.is_none().then(|| took_label(test.took_ms)),71 took: test.error.is_none().then(|| took_label(test.took_ms)),
72 error: test.error.clone(),72 error: test.error.clone(),
73 }),73 }),
@@ -115,7 +115,7 @@ pub struct Member {
115 pub id: String,115 pub id: String,
116 pub display_name: String,116 pub display_name: String,
117 pub email: String,117 pub email: String,
118- pub role: dizey_core::Role,118+ pub role: izlek_core::Role,
119 pub has_password: bool,119 pub has_password: bool,
120 /// The day they last signed in, as the list writes it, or nothing.120 /// The day they last signed in, as the list writes it, or nothing.
121 pub last_signed_in: Option<String>,121 pub last_signed_in: Option<String>,
@@ -191,7 +191,7 @@ async fn sender_now() -> Result<Sender, ServerFnError> {
191 }191 }
192 192
193 #[cfg(feature = "ssr")]193 #[cfg(feature = "ssr")]
194-async fn members_now(asking: &dizey_core::store::User) -> Result<Vec<Member>, ServerFnError> {194+async fn members_now(asking: &izlek_core::store::User) -> Result<Vec<Member>, ServerFnError> {
195 let store = crate::server::accounts().store().clone();195 let store = crate::server::accounts().store().clone();
196 let owner = store196 let owner = store
197 .owner()197 .owner()
@@ -206,7 +206,7 @@ async fn members_now(asking: &dizey_core::store::User) -> Result<Vec<Member>, Se
206 .into_iter()206 .into_iter()
207 .map(|user| Member {207 .map(|user| Member {
208 has_password: user.password_hash.is_some(),208 has_password: user.password_hash.is_some(),
209- last_signed_in: user.last_signed_in_at.map(|at| dizey_core::board::day_label(at.date())),209+ last_signed_in: user.last_signed_in_at.map(|at| izlek_core::board::day_label(at.date())),
210 is_you: user.id == asking.id,210 is_you: user.id == asking.id,
211 is_owner: owner.as_deref() == Some(user.id.as_str()),211 is_owner: owner.as_deref() == Some(user.id.as_str()),
212 id: user.id,212 id: user.id,
@@ -319,7 +319,7 @@ pub async fn save_sender(
319 from_address: String,319 from_address: String,
320 ) -> Result<Option<Refusal>, ServerFnError> {320 ) -> Result<Option<Refusal>, ServerFnError> {
321 use crate::server::{accounts, require_admin};321 use crate::server::{accounts, require_admin};
322- use dizey_core::store::NewSender;322+ use izlek_core::store::NewSender;
323 323
324 let admin = match require_admin().await {324 let admin = match require_admin().await {
325 Ok(admin) => admin,325 Ok(admin) => admin,
@@ -387,12 +387,12 @@ pub async fn save_sender(
387 /// went so the answer survives a reload.387 /// went so the answer survives a reload.
388 ///388 ///
389 /// It goes to their own address and nowhere else. A test that could be pointed389 /// It goes to their own address and nowhere else. A test that could be pointed
390-/// at an address somebody typed would be a way to make Dizey mail a stranger390+/// at an address somebody typed would be a way to make Izlek mail a stranger
391 /// on demand, which is a thing worth not building.391 /// on demand, which is a thing worth not building.
392 #[server]392 #[server]
393 pub async fn send_test_mail() -> Result<Option<Refusal>, ServerFnError> {393 pub async fn send_test_mail() -> Result<Option<Refusal>, ServerFnError> {
394 use crate::server::{accounts, mail, require_admin};394 use crate::server::{accounts, mail, require_admin};
395- use dizey_core::store::SenderTest;395+ use izlek_core::store::SenderTest;
396 396
397 let admin = match require_admin().await {397 let admin = match require_admin().await {
398 Ok(admin) => admin,398 Ok(admin) => admin,
@@ -568,7 +568,7 @@ fn SettingsScreen(
568 view! {568 view! {
569 <header class="topbar">569 <header class="topbar">
570 <div class="wordmark">570 <div class="wordmark">
571- <span class="wordmark-text">"dizey"</span>571+ <span class="wordmark-text">"izlek"</span>
572 <span class="wordmark-dot"></span>572 <span class="wordmark-dot"></span>
573 </div>573 </div>
574 <div class="topbar-divider"></div>574 <div class="topbar-divider"></div>
@@ -818,7 +818,7 @@ fn SenderPanel(sender: Sender, on_change: Callback<()>) -> impl IntoView {
818 type="text"818 type="text"
819 name="from_name"819 name="from_name"
820 value=sender.from_name820 value=sender.from_name
821- placeholder="Dizey"821+ placeholder="Izlek"
822 />822 />
823 </label>823 </label>
824 <label class="field">824 <label class="field">
@@ -828,7 +828,7 @@ fn SenderPanel(sender: Sender, on_change: Callback<()>) -> impl IntoView {
828 type="text"828 type="text"
829 name="from_address"829 name="from_address"
830 value=sender.from_address830 value=sender.from_address
831- placeholder="board@dizey.sh"831+ placeholder="board@izlek.sh"
832 />832 />
833 </label>833 </label>
834 </div>834 </div>
crates/dizey-web/src/smtp.rs → crates/izlek-web/src/smtp.rsrenamed+2 -2
@@ -19,8 +19,8 @@
19 19
20 use std::sync::Arc;20 use std::sync::Arc;
21 21
22-use dizey_core::store::Store;22+use izlek_core::store::Store;
23-use dizey_core::mail::{MailError, Mailer, Outgoing};23+use izlek_core::mail::{MailError, Mailer, Outgoing};
24 use lettre::message::header::ContentType;24 use lettre::message::header::ContentType;
25 use lettre::transport::smtp::authentication::Credentials;25 use lettre::transport::smtp::authentication::Credentials;
26 use lettre::{AsyncSmtpTransport, AsyncTransport, Message, Tokio1Executor};26 use lettre::{AsyncSmtpTransport, AsyncTransport, Message, Tokio1Executor};
crates/dizey-web/tests/http.rs → crates/izlek-web/tests/http.rsrenamed+187 -187
@@ -15,10 +15,10 @@ use std::sync::Arc;
15 use axum::Router;15 use axum::Router;
16 use axum::body::Body;16 use axum::body::Body;
17 use axum::http::{HeaderValue, Request, StatusCode, header};17 use axum::http::{HeaderValue, Request, StatusCode, header};
18-use dizey_core::Role;18+use izlek_core::Role;
19-use dizey_core::accounts::Accounts;19+use izlek_core::accounts::Accounts;
20-use dizey_core::store::TursoStore;20+use izlek_core::store::TursoStore;
21-use dizey_web::server::SESSION_COOKIE;21+use izlek_web::server::SESSION_COOKIE;
22 use leptos::prelude::LeptosOptions;22 use leptos::prelude::LeptosOptions;
23 use leptos::server_fn::ServerFn;23 use leptos::server_fn::ServerFn;
24 use tower::ServiceExt;24 use tower::ServiceExt;
@@ -32,15 +32,15 @@ struct App {
32 32
33 impl App {33 impl App {
34 async fn open() -> Self {34 async fn open() -> Self {
35- let dir = std::env::temp_dir().join(format!("dizey-http-{}", Uuid::new_v4()));35+ let dir = std::env::temp_dir().join(format!("izlek-http-{}", Uuid::new_v4()));
36 std::fs::create_dir_all(&dir).unwrap();36 std::fs::create_dir_all(&dir).unwrap();
37- let store = TursoStore::open(dir.join("dizey.db").to_str().unwrap())37+ let store = TursoStore::open(dir.join("izlek.db").to_str().unwrap())
38 .await38 .await
39 .unwrap();39 .unwrap();
40- let options = LeptosOptions::builder().output_name("dizey").build();40+ let options = LeptosOptions::builder().output_name("izlek").build();
41- let router = dizey_web::server::router(41+ let router = izlek_web::server::router(
42 Accounts::new(Arc::new(store)),42 Accounts::new(Arc::new(store)),
43- dizey_web::server::Mail::silent(),43+ izlek_web::server::Mail::silent(),
44 options,44 options,
45 );45 );
46 Self { dir, router }46 Self { dir, router }
@@ -156,7 +156,7 @@ impl App {
156 fields: &[(&str, &str)],156 fields: &[(&str, &str)],
157 file: Option<(&str, &str, &[u8])>,157 file: Option<(&str, &str, &[u8])>,
158 ) -> Answer {158 ) -> Answer {
159- const BOUNDARY: &str = "dizey-test-boundary";159+ const BOUNDARY: &str = "izlek-test-boundary";
160 let mut body = Vec::new();160 let mut body = Vec::new();
161 for (name, value) in fields {161 for (name, value) in fields {
162 body.extend_from_slice(162 body.extend_from_slice(
@@ -308,15 +308,15 @@ const SENDER_PASSWORD: &str = "cavalry-battery-hinge-40";
308 async fn sender_saved(app: &App, admin: &str) -> bool {308 async fn sender_saved(app: &App, admin: &str) -> bool {
309 let answer = app309 let answer = app
310 .post(310 .post(
311- path::<dizey_web::settings::SaveSender>(),311+ path::<izlek_web::settings::SaveSender>(),
312 Some(admin),312 Some(admin),
313 &[313 &[
314 ("host", "smtp.fastmail.com"),314 ("host", "smtp.fastmail.com"),
315 ("port", "465"),315 ("port", "465"),
316- ("username", "dizey"),316+ ("username", "izlek"),
317 ("password", SENDER_PASSWORD),317 ("password", SENDER_PASSWORD),
318- ("from_name", "Dizey"),318+ ("from_name", "Izlek"),
319- ("from_address", "dizey@dizey.sh"),319+ ("from_address", "izlek@izlek.sh"),
320 ],320 ],
321 )321 )
322 .await;322 .await;
@@ -327,11 +327,11 @@ async fn sender_saved(app: &App, admin: &str) -> bool {
327 async fn admin(app: &App) -> String {327 async fn admin(app: &App) -> String {
328 let answer = app328 let answer = app
329 .post(329 .post(
330- path::<dizey_web::auth::ClaimWorkspace>(),330+ path::<izlek_web::auth::ClaimWorkspace>(),
331 None,331 None,
332 &[332 &[
333 ("display_name", "Ada Lovelace"),333 ("display_name", "Ada Lovelace"),
334- ("email", "ada@dizey.sh"),334+ ("email", "ada@izlek.sh"),
335 ("password", "correct horse battery staple"),335 ("password", "correct horse battery staple"),
336 ],336 ],
337 )337 )
@@ -350,7 +350,7 @@ async fn invited(app: &App, admin: &str, email: &str, name: &str, role: Role) ->
350 };350 };
351 let answer = app351 let answer = app
352 .post(352 .post(
353- path::<dizey_web::auth::InviteMember>(),353+ path::<izlek_web::auth::InviteMember>(),
354 Some(admin),354 Some(admin),
355 &[("email", email), ("display_name", name), ("role", role)],355 &[("email", email), ("display_name", name), ("role", role)],
356 )356 )
@@ -365,7 +365,7 @@ async fn invited(app: &App, admin: &str, email: &str, name: &str, role: Role) ->
365 365
366 let answer = app366 let answer = app
367 .post(367 .post(
368- path::<dizey_web::auth::RedeemLink>(),368+ path::<izlek_web::auth::RedeemLink>(),
369 None,369 None,
370 &[370 &[
371 ("token", &token),371 ("token", &token),
@@ -381,7 +381,7 @@ async fn invited(app: &App, admin: &str, email: &str, name: &str, role: Role) ->
381 /// The id of the board's first column, read the way the board page reads it.381 /// The id of the board's first column, read the way the board page reads it.
382 async fn first_column(app: &App, cookie: &str) -> String {382 async fn first_column(app: &App, cookie: &str) -> String {
383 let answer = app383 let answer = app
384- .post(path::<dizey_web::board::CurrentBoard>(), Some(cookie), &[])384+ .post(path::<izlek_web::board::CurrentBoard>(), Some(cookie), &[])
385 .await;385 .await;
386 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);386 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);
387 answer387 answer
@@ -396,12 +396,12 @@ async fn first_column(app: &App, cookie: &str) -> String {
396 async fn a_viewer_who_posts_to_create_task_anyway_is_refused() {396 async fn a_viewer_who_posts_to_create_task_anyway_is_refused() {
397 let app = App::open().await;397 let app = App::open().await;
398 let admin = admin(&app).await;398 let admin = admin(&app).await;
399- let viewer = invited(&app, &admin, "quiet@dizey.sh", "Quiet Reader", Role::Viewer).await;399+ let viewer = invited(&app, &admin, "quiet@izlek.sh", "Quiet Reader", Role::Viewer).await;
400 let column = first_column(&app, &admin).await;400 let column = first_column(&app, &admin).await;
401 401
402 let answer = app402 let answer = app
403 .post(403 .post(
404- path::<dizey_web::board::CreateTask>(),404+ path::<izlek_web::board::CreateTask>(),
405 Some(&viewer),405 Some(&viewer),
406 &[406 &[
407 ("title", "Viewer should not get this"),407 ("title", "Viewer should not get this"),
@@ -415,7 +415,7 @@ async fn a_viewer_who_posts_to_create_task_anyway_is_refused() {
415 415
416 // And the refusal is not cosmetic: the board is still empty.416 // And the refusal is not cosmetic: the board is still empty.
417 let answer = app417 let answer = app
418- .post(path::<dizey_web::board::CurrentBoard>(), Some(&admin), &[])418+ .post(path::<izlek_web::board::CurrentBoard>(), Some(&admin), &[])
419 .await;419 .await;
420 assert!(420 assert!(
421 !answer.body.contains("Viewer should not get this"),421 !answer.body.contains("Viewer should not get this"),
@@ -428,12 +428,12 @@ async fn a_viewer_who_posts_to_create_task_anyway_is_refused() {
428 async fn a_member_may_create_a_task() {428 async fn a_member_may_create_a_task() {
429 let app = App::open().await;429 let app = App::open().await;
430 let admin = admin(&app).await;430 let admin = admin(&app).await;
431- let member = invited(&app, &admin, "mo@dizey.sh", "Mo Dubois", Role::Member).await;431+ let member = invited(&app, &admin, "mo@izlek.sh", "Mo Dubois", Role::Member).await;
432 let column = first_column(&app, &admin).await;432 let column = first_column(&app, &admin).await;
433 433
434 let answer = app434 let answer = app
435 .post(435 .post(
436- path::<dizey_web::board::CreateTask>(),436+ path::<izlek_web::board::CreateTask>(),
437 Some(&member),437 Some(&member),
438 &[("title", "Wire the deadline chip"), ("column_id", &column)],438 &[("title", "Wire the deadline chip"), ("column_id", &column)],
439 )439 )
@@ -441,7 +441,7 @@ async fn a_member_may_create_a_task() {
441 assert_eq!(answer.body, "null", "a member was refused: {}", answer.body);441 assert_eq!(answer.body, "null", "a member was refused: {}", answer.body);
442 442
443 let answer = app443 let answer = app
444- .post(path::<dizey_web::board::CurrentBoard>(), Some(&admin), &[])444+ .post(path::<izlek_web::board::CurrentBoard>(), Some(&admin), &[])
445 .await;445 .await;
446 assert!(answer.body.contains("Wire the deadline chip"));446 assert!(answer.body.contains("Wire the deadline chip"));
447 assert!(answer.body.contains("DZ-01"), "no key on the new task");447 assert!(answer.body.contains("DZ-01"), "no key on the new task");
@@ -454,7 +454,7 @@ async fn a_task_cannot_be_dropped_into_another_workspaces_column() {
454 454
455 let answer = app455 let answer = app
456 .post(456 .post(
457- path::<dizey_web::board::CreateTask>(),457+ path::<izlek_web::board::CreateTask>(),
458 Some(&admin),458 Some(&admin),
459 &[459 &[
460 ("title", "Wrong column"),460 ("title", "Wrong column"),
@@ -473,7 +473,7 @@ async fn a_card_needs_a_title() {
473 473
474 let answer = app474 let answer = app
475 .post(475 .post(
476- path::<dizey_web::board::CreateTask>(),476+ path::<izlek_web::board::CreateTask>(),
477 Some(&admin),477 Some(&admin),
478 &[("title", " "), ("column_id", &column)],478 &[("title", " "), ("column_id", &column)],
479 )479 )
@@ -487,7 +487,7 @@ async fn the_board_is_not_readable_without_a_session() {
487 let _admin = admin(&app).await;487 let _admin = admin(&app).await;
488 488
489 let answer = app489 let answer = app
490- .post(path::<dizey_web::board::CurrentBoard>(), None, &[])490+ .post(path::<izlek_web::board::CurrentBoard>(), None, &[])
491 .await;491 .await;
492 assert_eq!(answer.body, "{\"Err\":\"SignInFirst\"}");492 assert_eq!(answer.body, "{\"Err\":\"SignInFirst\"}");
493 }493 }
@@ -497,7 +497,7 @@ async fn the_board_is_not_readable_without_a_session() {
497 async fn a_task(app: &App, cookie: &str, column: &str, title: &str) -> String {497 async fn a_task(app: &App, cookie: &str, column: &str, title: &str) -> String {
498 let answer = app498 let answer = app
499 .post(499 .post(
500- path::<dizey_web::board::CreateTask>(),500+ path::<izlek_web::board::CreateTask>(),
501 Some(cookie),501 Some(cookie),
502 &[("title", title), ("column_id", column)],502 &[("title", title), ("column_id", column)],
503 )503 )
@@ -505,7 +505,7 @@ async fn a_task(app: &App, cookie: &str, column: &str, title: &str) -> String {
505 assert_eq!(answer.body, "null", "the task was refused: {}", answer.body);505 assert_eq!(answer.body, "null", "the task was refused: {}", answer.body);
506 506
507 let answer = app507 let answer = app
508- .post(path::<dizey_web::board::CurrentBoard>(), Some(cookie), &[])508+ .post(path::<izlek_web::board::CurrentBoard>(), Some(cookie), &[])
509 .await;509 .await;
510 let needle = format!("\"title\":\"{title}\"");510 let needle = format!("\"title\":\"{title}\"");
511 let before = answer511 let before = answer
@@ -524,13 +524,13 @@ async fn a_task(app: &App, cookie: &str, column: &str, title: &str) -> String {
524 async fn a_viewer_who_posts_a_comment_anyway_is_refused() {524 async fn a_viewer_who_posts_a_comment_anyway_is_refused() {
525 let app = App::open().await;525 let app = App::open().await;
526 let admin = admin(&app).await;526 let admin = admin(&app).await;
527- let viewer = invited(&app, &admin, "eyes@dizey.sh", "Ida Eyes", Role::Viewer).await;527+ let viewer = invited(&app, &admin, "eyes@izlek.sh", "Ida Eyes", Role::Viewer).await;
528 let column = first_column(&app, &admin).await;528 let column = first_column(&app, &admin).await;
529 let task = a_task(&app, &admin, &column, "Ship the detail modal").await;529 let task = a_task(&app, &admin, &column, "Ship the detail modal").await;
530 530
531 let answer = app531 let answer = app
532 .post(532 .post(
533- path::<dizey_web::detail::PostComment>(),533+ path::<izlek_web::detail::PostComment>(),
534 Some(&viewer),534 Some(&viewer),
535 &[("task_id", &task), ("body", "Viewers cannot say this")],535 &[("task_id", &task), ("body", "Viewers cannot say this")],
536 )536 )
@@ -541,7 +541,7 @@ async fn a_viewer_who_posts_a_comment_anyway_is_refused() {
541 // The refusal is not cosmetic: nothing was written.541 // The refusal is not cosmetic: nothing was written.
542 let answer = app542 let answer = app
543 .post(543 .post(
544- path::<dizey_web::detail::FetchTask>(),544+ path::<izlek_web::detail::FetchTask>(),
545 Some(&admin),545 Some(&admin),
546 &[("task_id", &task)],546 &[("task_id", &task)],
547 )547 )
@@ -557,13 +557,13 @@ async fn a_viewer_who_posts_a_comment_anyway_is_refused() {
557 async fn a_member_may_comment_and_the_author_is_the_session() {557 async fn a_member_may_comment_and_the_author_is_the_session() {
558 let app = App::open().await;558 let app = App::open().await;
559 let admin = admin(&app).await;559 let admin = admin(&app).await;
560- let member = invited(&app, &admin, "kai@dizey.sh", "Kai Renner", Role::Member).await;560+ let member = invited(&app, &admin, "kai@izlek.sh", "Kai Renner", Role::Member).await;
561 let column = first_column(&app, &admin).await;561 let column = first_column(&app, &admin).await;
562 let task = a_task(&app, &admin, &column, "Wire the picker").await;562 let task = a_task(&app, &admin, &column, "Wire the picker").await;
563 563
564 let answer = app564 let answer = app
565 .post(565 .post(
566- path::<dizey_web::detail::PostComment>(),566+ path::<izlek_web::detail::PostComment>(),
567 Some(&member),567 Some(&member),
568 &[("task_id", &task), ("body", "Picker is narrow on purpose")],568 &[("task_id", &task), ("body", "Picker is narrow on purpose")],
569 )569 )
@@ -572,7 +572,7 @@ async fn a_member_may_comment_and_the_author_is_the_session() {
572 572
573 let answer = app573 let answer = app
574 .post(574 .post(
575- path::<dizey_web::detail::FetchTask>(),575+ path::<izlek_web::detail::FetchTask>(),
576 Some(&admin),576 Some(&admin),
577 &[("task_id", &task)],577 &[("task_id", &task)],
578 )578 )
@@ -595,7 +595,7 @@ async fn a_link_that_would_close_a_circle_is_refused_at_the_endpoint() {
595 595
596 let answer = app596 let answer = app
597 .post(597 .post(
598- path::<dizey_web::detail::LinkTasks>(),598+ path::<izlek_web::detail::LinkTasks>(),
599 Some(&admin),599 Some(&admin),
600 &[600 &[
601 ("task_id", &second),601 ("task_id", &second),
@@ -612,7 +612,7 @@ async fn a_link_that_would_close_a_circle_is_refused_at_the_endpoint() {
612 612
613 let answer = app613 let answer = app
614 .post(614 .post(
615- path::<dizey_web::detail::LinkTasks>(),615+ path::<izlek_web::detail::LinkTasks>(),
616 Some(&admin),616 Some(&admin),
617 &[617 &[
618 ("task_id", &first),618 ("task_id", &first),
@@ -633,7 +633,7 @@ async fn a_refusal_reaches_a_browser_with_no_script() {
633 let second = a_task(&app, &admin, &column, "Light the cable").await;633 let second = a_task(&app, &admin, &column, "Light the cable").await;
634 634
635 app.post(635 app.post(
636- path::<dizey_web::detail::LinkTasks>(),636+ path::<izlek_web::detail::LinkTasks>(),
637 Some(&admin),637 Some(&admin),
638 &[638 &[
639 ("task_id", &second),639 ("task_id", &second),
@@ -647,9 +647,9 @@ async fn a_refusal_reaches_a_browser_with_no_script() {
647 // to read the answer's body.647 // to read the answer's body.
648 let answer = app648 let answer = app
649 .post_without_script(649 .post_without_script(
650- path::<dizey_web::detail::LinkTasks>(),650+ path::<izlek_web::detail::LinkTasks>(),
651 Some(&admin),651 Some(&admin),
652- &format!("http://dizey.test/?task={first}"),652+ &format!("http://izlek.test/?task={first}"),
653 &[653 &[
654 ("task_id", &first),654 ("task_id", &first),
655 ("other_id", &second),655 ("other_id", &second),
@@ -679,9 +679,9 @@ async fn a_call_that_was_not_refused_carries_nothing_back() {
679 679
680 let answer = app680 let answer = app
681 .post_without_script(681 .post_without_script(
682- path::<dizey_web::detail::LinkTasks>(),682+ path::<izlek_web::detail::LinkTasks>(),
683 Some(&admin),683 Some(&admin),
684- "http://dizey.test/",684+ "http://izlek.test/",
685 &[685 &[
686 ("task_id", &second),686 ("task_id", &second),
687 ("other_id", &first),687 ("other_id", &first),
@@ -704,7 +704,7 @@ async fn a_task_id_from_nowhere_is_not_found() {
704 704
705 let answer = app705 let answer = app
706 .post(706 .post(
707- path::<dizey_web::detail::FetchTask>(),707+ path::<izlek_web::detail::FetchTask>(),
708 Some(&admin),708 Some(&admin),
709 &[("task_id", "00000000-0000-0000-0000-000000000000")],709 &[("task_id", "00000000-0000-0000-0000-000000000000")],
710 )710 )
@@ -716,13 +716,13 @@ async fn a_task_id_from_nowhere_is_not_found() {
716 async fn a_viewer_who_posts_a_delete_anyway_is_refused() {716 async fn a_viewer_who_posts_a_delete_anyway_is_refused() {
717 let app = App::open().await;717 let app = App::open().await;
718 let admin = admin(&app).await;718 let admin = admin(&app).await;
719- let viewer = invited(&app, &admin, "wren@dizey.sh", "Wren Ash", Role::Viewer).await;719+ let viewer = invited(&app, &admin, "wren@izlek.sh", "Wren Ash", Role::Viewer).await;
720 let column = first_column(&app, &admin).await;720 let column = first_column(&app, &admin).await;
721 let task = a_task(&app, &admin, &column, "Viewers cannot remove this").await;721 let task = a_task(&app, &admin, &column, "Viewers cannot remove this").await;
722 722
723 let answer = app723 let answer = app
724 .post(724 .post(
725- path::<dizey_web::detail::DeleteTask>(),725+ path::<izlek_web::detail::DeleteTask>(),
726 Some(&viewer),726 Some(&viewer),
727 &[("task_id", &task)],727 &[("task_id", &task)],
728 )728 )
@@ -730,7 +730,7 @@ async fn a_viewer_who_posts_a_delete_anyway_is_refused() {
730 assert_eq!(answer.body, "\"Forbidden\"");730 assert_eq!(answer.body, "\"Forbidden\"");
731 731
732 let answer = app732 let answer = app
733- .post(path::<dizey_web::board::CurrentBoard>(), Some(&admin), &[])733+ .post(path::<izlek_web::board::CurrentBoard>(), Some(&admin), &[])
734 .await;734 .await;
735 assert!(735 assert!(
736 answer.body.contains("Viewers cannot remove this"),736 answer.body.contains("Viewers cannot remove this"),
@@ -743,14 +743,14 @@ async fn a_viewer_who_posts_a_delete_anyway_is_refused() {
743 async fn a_member_may_delete_and_the_delete_is_soft() {743 async fn a_member_may_delete_and_the_delete_is_soft() {
744 let app = App::open().await;744 let app = App::open().await;
745 let admin = admin(&app).await;745 let admin = admin(&app).await;
746- let member = invited(&app, &admin, "rae@dizey.sh", "Rae Okonkwo", Role::Member).await;746+ let member = invited(&app, &admin, "rae@izlek.sh", "Rae Okonkwo", Role::Member).await;
747 let column = first_column(&app, &admin).await;747 let column = first_column(&app, &admin).await;
748 let task = a_task(&app, &admin, &column, "Mistyped in a hurry").await;748 let task = a_task(&app, &admin, &column, "Mistyped in a hurry").await;
749 749
750 // What it would cost is a read: it says so and writes nothing.750 // What it would cost is a read: it says so and writes nothing.
751 let answer = app751 let answer = app
752 .post(752 .post(
753- path::<dizey_web::detail::WhatDeleteCosts>(),753+ path::<izlek_web::detail::WhatDeleteCosts>(),
754 Some(&member),754 Some(&member),
755 &[("task_id", &task)],755 &[("task_id", &task)],
756 )756 )
@@ -761,7 +761,7 @@ async fn a_member_may_delete_and_the_delete_is_soft() {
761 answer.body761 answer.body
762 );762 );
763 let answer = app763 let answer = app
764- .post(path::<dizey_web::board::CurrentBoard>(), Some(&admin), &[])764+ .post(path::<izlek_web::board::CurrentBoard>(), Some(&admin), &[])
765 .await;765 .await;
766 assert!(766 assert!(
767 answer.body.contains("Mistyped in a hurry"),767 answer.body.contains("Mistyped in a hurry"),
@@ -770,7 +770,7 @@ async fn a_member_may_delete_and_the_delete_is_soft() {
770 770
771 let answer = app771 let answer = app
772 .post(772 .post(
773- path::<dizey_web::detail::DeleteTask>(),773+ path::<izlek_web::detail::DeleteTask>(),
774 Some(&member),774 Some(&member),
775 &[("task_id", &task)],775 &[("task_id", &task)],
776 )776 )
@@ -779,7 +779,7 @@ async fn a_member_may_delete_and_the_delete_is_soft() {
779 779
780 // Gone from the board, and gone from the detail: soft is not visible.780 // Gone from the board, and gone from the detail: soft is not visible.
781 let answer = app781 let answer = app
782- .post(path::<dizey_web::board::CurrentBoard>(), Some(&admin), &[])782+ .post(path::<izlek_web::board::CurrentBoard>(), Some(&admin), &[])
783 .await;783 .await;
784 assert!(784 assert!(
785 !answer.body.contains("Mistyped in a hurry"),785 !answer.body.contains("Mistyped in a hurry"),
@@ -788,7 +788,7 @@ async fn a_member_may_delete_and_the_delete_is_soft() {
788 );788 );
789 let answer = app789 let answer = app
790 .post(790 .post(
791- path::<dizey_web::detail::FetchTask>(),791+ path::<izlek_web::detail::FetchTask>(),
792 Some(&admin),792 Some(&admin),
793 &[("task_id", &task)],793 &[("task_id", &task)],
794 )794 )
@@ -800,7 +800,7 @@ async fn a_member_may_delete_and_the_delete_is_soft() {
800 /// browser would.800 /// browser would.
801 async fn columns_of(app: &App, cookie: &str) -> Vec<String> {801 async fn columns_of(app: &App, cookie: &str) -> Vec<String> {
802 let answer = app802 let answer = app
803- .post(path::<dizey_web::board::CurrentBoard>(), Some(cookie), &[])803+ .post(path::<izlek_web::board::CurrentBoard>(), Some(cookie), &[])
804 .await;804 .await;
805 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);805 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);
806 answer806 answer
@@ -816,13 +816,13 @@ async fn columns_of(app: &App, cookie: &str) -> Vec<String> {
816 async fn a_viewer_who_posts_a_move_anyway_is_refused() {816 async fn a_viewer_who_posts_a_move_anyway_is_refused() {
817 let app = App::open().await;817 let app = App::open().await;
818 let admin = admin(&app).await;818 let admin = admin(&app).await;
819- let viewer = invited(&app, &admin, "quiet@dizey.sh", "Quiet Reader", Role::Viewer).await;819+ let viewer = invited(&app, &admin, "quiet@izlek.sh", "Quiet Reader", Role::Viewer).await;
820 let columns = columns_of(&app, &admin).await;820 let columns = columns_of(&app, &admin).await;
821 let task = a_task(&app, &admin, &columns[0], "Stays in Backlog").await;821 let task = a_task(&app, &admin, &columns[0], "Stays in Backlog").await;
822 822
823 let answer = app823 let answer = app
824 .post(824 .post(
825- path::<dizey_web::board::MoveCard>(),825+ path::<izlek_web::board::MoveCard>(),
826 Some(&viewer),826 Some(&viewer),
827 &[827 &[
828 ("task_id", &task),828 ("task_id", &task),
@@ -838,7 +838,7 @@ async fn a_viewer_who_posts_a_move_anyway_is_refused() {
838 // And nothing moved: the refusal is in the handler, not in the drawing.838 // And nothing moved: the refusal is in the handler, not in the drawing.
839 let answer = app839 let answer = app
840 .post(840 .post(
841- path::<dizey_web::detail::FetchTask>(),841+ path::<izlek_web::detail::FetchTask>(),
842 Some(&admin),842 Some(&admin),
843 &[("task_id", &task)],843 &[("task_id", &task)],
844 )844 )
@@ -854,13 +854,13 @@ async fn a_viewer_who_posts_a_move_anyway_is_refused() {
854 async fn a_member_may_move_a_card() {854 async fn a_member_may_move_a_card() {
855 let app = App::open().await;855 let app = App::open().await;
856 let admin = admin(&app).await;856 let admin = admin(&app).await;
857- let member = invited(&app, &admin, "mo@dizey.sh", "Mo Dubois", Role::Member).await;857+ let member = invited(&app, &admin, "mo@izlek.sh", "Mo Dubois", Role::Member).await;
858 let columns = columns_of(&app, &admin).await;858 let columns = columns_of(&app, &admin).await;
859 let task = a_task(&app, &admin, &columns[0], "Gets picked up").await;859 let task = a_task(&app, &admin, &columns[0], "Gets picked up").await;
860 860
861 let answer = app861 let answer = app
862 .post(862 .post(
863- path::<dizey_web::board::MoveCard>(),863+ path::<izlek_web::board::MoveCard>(),
864 Some(&member),864 Some(&member),
865 &[865 &[
866 ("task_id", &task),866 ("task_id", &task),
@@ -873,7 +873,7 @@ async fn a_member_may_move_a_card() {
873 873
874 let answer = app874 let answer = app
875 .post(875 .post(
876- path::<dizey_web::detail::FetchTask>(),876+ path::<izlek_web::detail::FetchTask>(),
877 Some(&admin),877 Some(&admin),
878 &[("task_id", &task)],878 &[("task_id", &task)],
879 )879 )
@@ -885,14 +885,14 @@ async fn a_member_may_move_a_card() {
885 async fn a_drop_decided_against_a_stale_board_is_refused() {885 async fn a_drop_decided_against_a_stale_board_is_refused() {
886 let app = App::open().await;886 let app = App::open().await;
887 let admin = admin(&app).await;887 let admin = admin(&app).await;
888- let member = invited(&app, &admin, "mo@dizey.sh", "Mo Dubois", Role::Member).await;888+ let member = invited(&app, &admin, "mo@izlek.sh", "Mo Dubois", Role::Member).await;
889 let columns = columns_of(&app, &admin).await;889 let columns = columns_of(&app, &admin).await;
890 let task = a_task(&app, &admin, &columns[0], "Contested").await;890 let task = a_task(&app, &admin, &columns[0], "Contested").await;
891 891
892 // Two people picked the same card up out of Backlog.892 // Two people picked the same card up out of Backlog.
893 let first = app893 let first = app
894 .post(894 .post(
895- path::<dizey_web::board::MoveCard>(),895+ path::<izlek_web::board::MoveCard>(),
896 Some(&admin),896 Some(&admin),
897 &[897 &[
898 ("task_id", &task),898 ("task_id", &task),
@@ -905,7 +905,7 @@ async fn a_drop_decided_against_a_stale_board_is_refused() {
905 905
906 let second = app906 let second = app
907 .post(907 .post(
908- path::<dizey_web::board::MoveCard>(),908+ path::<izlek_web::board::MoveCard>(),
909 Some(&member),909 Some(&member),
910 &[910 &[
911 ("task_id", &task),911 ("task_id", &task),
@@ -919,7 +919,7 @@ async fn a_drop_decided_against_a_stale_board_is_refused() {
919 // The winner's move stands, and there is exactly one crossing.919 // The winner's move stands, and there is exactly one crossing.
920 let answer = app920 let answer = app
921 .post(921 .post(
922- path::<dizey_web::detail::FetchTask>(),922+ path::<izlek_web::detail::FetchTask>(),
923 Some(&admin),923 Some(&admin),
924 &[("task_id", &task)],924 &[("task_id", &task)],
925 )925 )
@@ -941,7 +941,7 @@ async fn a_card_cannot_be_moved_into_another_boards_column() {
941 941
942 let answer = app942 let answer = app
943 .post(943 .post(
944- path::<dizey_web::board::MoveCard>(),944+ path::<izlek_web::board::MoveCard>(),
945 Some(&admin),945 Some(&admin),
946 &[946 &[
947 ("task_id", &task),947 ("task_id", &task),
@@ -962,7 +962,7 @@ async fn a_signed_out_browser_is_told_nothing_by_the_settings_call() {
962 assert!(sender_saved(&app, &admin_cookie).await);962 assert!(sender_saved(&app, &admin_cookie).await);
963 963
964 let answer = app964 let answer = app
965- .post(path::<dizey_web::settings::CurrentSettings>(), None, &[])965+ .post(path::<izlek_web::settings::CurrentSettings>(), None, &[])
966 .await;966 .await;
967 967
968 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);968 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);
@@ -978,11 +978,11 @@ async fn a_member_is_told_nothing_about_the_sender() {
978 let app = App::open().await;978 let app = App::open().await;
979 let admin_cookie = admin(&app).await;979 let admin_cookie = admin(&app).await;
980 assert!(sender_saved(&app, &admin_cookie).await);980 assert!(sender_saved(&app, &admin_cookie).await);
981- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;981+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
982 982
983 let answer = app983 let answer = app
984 .post(984 .post(
985- path::<dizey_web::settings::CurrentSettings>(),985+ path::<izlek_web::settings::CurrentSettings>(),
986 Some(&member),986 Some(&member),
987 &[],987 &[],
988 )988 )
@@ -1004,7 +1004,7 @@ async fn an_admin_sees_the_sender_and_never_a_password() {
1004 1004
1005 let answer = app1005 let answer = app
1006 .post(1006 .post(
1007- path::<dizey_web::settings::CurrentSettings>(),1007+ path::<izlek_web::settings::CurrentSettings>(),
1008 Some(&admin_cookie),1008 Some(&admin_cookie),
1009 &[],1009 &[],
1010 )1010 )
@@ -1014,8 +1014,8 @@ async fn an_admin_sees_the_sender_and_never_a_password() {
1014 assert!(1014 assert!(
1015 answer.body.contains(1015 answer.body.contains(
1016 "\"sender\":{\"host\":\"smtp.fastmail.com\",\"port\":465,\1016 "\"sender\":{\"host\":\"smtp.fastmail.com\",\"port\":465,\
1017- \"username\":\"dizey\",\"from_name\":\"Dizey\",\1017+ \"username\":\"izlek\",\"from_name\":\"Izlek\",\
1018- \"from_address\":\"dizey@dizey.sh\",\"password_set\":true,\1018+ \"from_address\":\"izlek@izlek.sh\",\"password_set\":true,\
1019 \"test\":null}"1019 \"test\":null}"
1020 ),1020 ),
1021 "{}",1021 "{}",
@@ -1034,19 +1034,19 @@ async fn an_admin_sees_the_sender_and_never_a_password() {
1034 async fn only_an_admin_may_write_the_sender() {1034 async fn only_an_admin_may_write_the_sender() {
1035 let app = App::open().await;1035 let app = App::open().await;
1036 let admin_cookie = admin(&app).await;1036 let admin_cookie = admin(&app).await;
1037- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1037+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1038 1038
1039 let answer = app1039 let answer = app
1040 .post(1040 .post(
1041- path::<dizey_web::settings::SaveSender>(),1041+ path::<izlek_web::settings::SaveSender>(),
1042 Some(&member),1042 Some(&member),
1043 &[1043 &[
1044 ("host", "smtp.attacker.example"),1044 ("host", "smtp.attacker.example"),
1045 ("port", "587"),1045 ("port", "587"),
1046 ("username", "emre"),1046 ("username", "emre"),
1047 ("password", "let-me-in"),1047 ("password", "let-me-in"),
1048- ("from_name", "Dizey"),1048+ ("from_name", "Izlek"),
1049- ("from_address", "emre@dizey.sh"),1049+ ("from_address", "emre@izlek.sh"),
1050 ],1050 ],
1051 )1051 )
1052 .await;1052 .await;
@@ -1057,7 +1057,7 @@ async fn only_an_admin_may_write_the_sender() {
1057 // And nothing was written: the admin's own view still shows no sender.1057 // And nothing was written: the admin's own view still shows no sender.
1058 let seen = app1058 let seen = app
1059 .post(1059 .post(
1060- path::<dizey_web::settings::CurrentSettings>(),1060+ path::<izlek_web::settings::CurrentSettings>(),
1061 Some(&admin_cookie),1061 Some(&admin_cookie),
1062 &[],1062 &[],
1063 )1063 )
@@ -1073,15 +1073,15 @@ async fn a_signed_out_browser_may_not_write_the_sender() {
1073 1073
1074 let answer = app1074 let answer = app
1075 .post(1075 .post(
1076- path::<dizey_web::settings::SaveSender>(),1076+ path::<izlek_web::settings::SaveSender>(),
1077 None,1077 None,
1078 &[1078 &[
1079 ("host", "smtp.attacker.example"),1079 ("host", "smtp.attacker.example"),
1080 ("port", "587"),1080 ("port", "587"),
1081 ("username", "nobody"),1081 ("username", "nobody"),
1082 ("password", "let-me-in"),1082 ("password", "let-me-in"),
1083- ("from_name", "Dizey"),1083+ ("from_name", "Izlek"),
1084- ("from_address", "nobody@dizey.sh"),1084+ ("from_address", "nobody@izlek.sh"),
1085 ],1085 ],
1086 )1086 )
1087 .await;1087 .await;
@@ -1091,7 +1091,7 @@ async fn a_signed_out_browser_may_not_write_the_sender() {
1091 1091
1092 let seen = app1092 let seen = app
1093 .post(1093 .post(
1094- path::<dizey_web::settings::CurrentSettings>(),1094+ path::<izlek_web::settings::CurrentSettings>(),
1095 Some(&admin_cookie),1095 Some(&admin_cookie),
1096 &[],1096 &[],
1097 )1097 )
@@ -1111,15 +1111,15 @@ async fn an_edit_with_no_password_typed_keeps_the_stored_one() {
1111 1111
1112 let answer = app1112 let answer = app
1113 .post(1113 .post(
1114- path::<dizey_web::settings::SaveSender>(),1114+ path::<izlek_web::settings::SaveSender>(),
1115 Some(&admin_cookie),1115 Some(&admin_cookie),
1116 &[1116 &[
1117 ("host", "smtp.fastmail.com"),1117 ("host", "smtp.fastmail.com"),
1118 ("port", "587"),1118 ("port", "587"),
1119- ("username", "dizey"),1119+ ("username", "izlek"),
1120 ("password", ""),1120 ("password", ""),
1121- ("from_name", "Dizey"),1121+ ("from_name", "Izlek"),
1122- ("from_address", "dizey@dizey.sh"),1122+ ("from_address", "izlek@izlek.sh"),
1123 ],1123 ],
1124 )1124 )
1125 .await;1125 .await;
@@ -1127,7 +1127,7 @@ async fn an_edit_with_no_password_typed_keeps_the_stored_one() {
1127 1127
1128 let seen = app1128 let seen = app
1129 .post(1129 .post(
1130- path::<dizey_web::settings::CurrentSettings>(),1130+ path::<izlek_web::settings::CurrentSettings>(),
1131 Some(&admin_cookie),1131 Some(&admin_cookie),
1132 &[],1132 &[],
1133 )1133 )
@@ -1150,15 +1150,15 @@ async fn a_first_sender_with_no_password_is_refused_and_says_why() {
1150 1150
1151 let answer = app1151 let answer = app
1152 .post(1152 .post(
1153- path::<dizey_web::settings::SaveSender>(),1153+ path::<izlek_web::settings::SaveSender>(),
1154 Some(&admin_cookie),1154 Some(&admin_cookie),
1155 &[1155 &[
1156 ("host", "smtp.fastmail.com"),1156 ("host", "smtp.fastmail.com"),
1157 ("port", "587"),1157 ("port", "587"),
1158- ("username", "dizey"),1158+ ("username", "izlek"),
1159 ("password", ""),1159 ("password", ""),
1160- ("from_name", "Dizey"),1160+ ("from_name", "Izlek"),
1161- ("from_address", "dizey@dizey.sh"),1161+ ("from_address", "izlek@izlek.sh"),
1162 ],1162 ],
1163 )1163 )
1164 .await;1164 .await;
@@ -1180,17 +1180,17 @@ async fn a_sender_field_that_cannot_work_is_refused_by_name() {
1180 ("port", &[("port", "0")]),1180 ("port", &[("port", "0")]),
1181 ("port", &[("port", "99999")]),1181 ("port", &[("port", "99999")]),
1182 ("username", &[("username", "")]),1182 ("username", &[("username", "")]),
1183- ("from_address", &[("from_address", "board-at-dizey")]),1183+ ("from_address", &[("from_address", "board-at-izlek")]),
1184- ("from_address", &[("from_address", "board@dizey")]),1184+ ("from_address", &[("from_address", "board@izlek")]),
1185 ];1185 ];
1186 for (field, overrides) in bad {1186 for (field, overrides) in bad {
1187 let mut form: Vec<(&str, &str)> = vec![1187 let mut form: Vec<(&str, &str)> = vec![
1188 ("host", "smtp.fastmail.com"),1188 ("host", "smtp.fastmail.com"),
1189 ("port", "587"),1189 ("port", "587"),
1190- ("username", "dizey"),1190+ ("username", "izlek"),
1191 ("password", SENDER_PASSWORD),1191 ("password", SENDER_PASSWORD),
1192- ("from_name", "Dizey"),1192+ ("from_name", "Izlek"),
1193- ("from_address", "dizey@dizey.sh"),1193+ ("from_address", "izlek@izlek.sh"),
1194 ];1194 ];
1195 for (key, value) in *overrides {1195 for (key, value) in *overrides {
1196 for slot in form.iter_mut() {1196 for slot in form.iter_mut() {
@@ -1201,7 +1201,7 @@ async fn a_sender_field_that_cannot_work_is_refused_by_name() {
1201 }1201 }
1202 let answer = app1202 let answer = app
1203 .post(1203 .post(
1204- path::<dizey_web::settings::SaveSender>(),1204+ path::<izlek_web::settings::SaveSender>(),
1205 Some(&admin_cookie),1205 Some(&admin_cookie),
1206 &form,1206 &form,
1207 )1207 )
@@ -1220,11 +1220,11 @@ async fn a_sender_field_that_cannot_work_is_refused_by_name() {
1220 async fn saving_a_profile_renames_the_person_asking_and_nobody_else() {1220 async fn saving_a_profile_renames_the_person_asking_and_nobody_else() {
1221 let app = App::open().await;1221 let app = App::open().await;
1222 let admin_cookie = admin(&app).await;1222 let admin_cookie = admin(&app).await;
1223- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1223+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1224 1224
1225 let answer = app1225 let answer = app
1226 .post(1226 .post(
1227- path::<dizey_web::settings::SaveProfile>(),1227+ path::<izlek_web::settings::SaveProfile>(),
1228 Some(&member),1228 Some(&member),
1229 &[("display_name", "Emre Y")],1229 &[("display_name", "Emre Y")],
1230 )1230 )
@@ -1233,7 +1233,7 @@ async fn saving_a_profile_renames_the_person_asking_and_nobody_else() {
1233 1233
1234 let mine = app1234 let mine = app
1235 .post(1235 .post(
1236- path::<dizey_web::settings::CurrentSettings>(),1236+ path::<izlek_web::settings::CurrentSettings>(),
1237 Some(&member),1237 Some(&member),
1238 &[],1238 &[],
1239 )1239 )
@@ -1242,7 +1242,7 @@ async fn saving_a_profile_renames_the_person_asking_and_nobody_else() {
1242 1242
1243 let theirs = app1243 let theirs = app
1244 .post(1244 .post(
1245- path::<dizey_web::settings::CurrentSettings>(),1245+ path::<izlek_web::settings::CurrentSettings>(),
1246 Some(&admin_cookie),1246 Some(&admin_cookie),
1247 &[],1247 &[],
1248 )1248 )
@@ -1257,7 +1257,7 @@ async fn a_profile_cannot_be_saved_without_a_name() {
1257 1257
1258 let answer = app1258 let answer = app
1259 .post(1259 .post(
1260- path::<dizey_web::settings::SaveProfile>(),1260+ path::<izlek_web::settings::SaveProfile>(),
1261 Some(&admin_cookie),1261 Some(&admin_cookie),
1262 &[("display_name", " ")],1262 &[("display_name", " ")],
1263 )1263 )
@@ -1272,7 +1272,7 @@ async fn a_signed_out_browser_cannot_rename_anybody() {
1272 1272
1273 let answer = app1273 let answer = app
1274 .post(1274 .post(
1275- path::<dizey_web::settings::SaveProfile>(),1275+ path::<izlek_web::settings::SaveProfile>(),
1276 None,1276 None,
1277 &[("display_name", "Whoever")],1277 &[("display_name", "Whoever")],
1278 )1278 )
@@ -1286,11 +1286,11 @@ async fn a_signed_out_browser_cannot_rename_anybody() {
1286 async fn a_member_who_posts_new_limits_anyway_is_refused() {1286 async fn a_member_who_posts_new_limits_anyway_is_refused() {
1287 let app = App::open().await;1287 let app = App::open().await;
1288 let admin_cookie = admin(&app).await;1288 let admin_cookie = admin(&app).await;
1289- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1289+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1290 1290
1291 let answer = app1291 let answer = app
1292 .post(1292 .post(
1293- path::<dizey_web::settings::SaveLimits>(),1293+ path::<izlek_web::settings::SaveLimits>(),
1294 Some(&member),1294 Some(&member),
1295 &[1295 &[
1296 ("attachment_limit_mb", "400"),1296 ("attachment_limit_mb", "400"),
@@ -1304,7 +1304,7 @@ async fn a_member_who_posts_new_limits_anyway_is_refused() {
1304 // And the refusal is not cosmetic: the limits are where they were.1304 // And the refusal is not cosmetic: the limits are where they were.
1305 let after = app1305 let after = app
1306 .post(1306 .post(
1307- path::<dizey_web::settings::CurrentSettings>(),1307+ path::<izlek_web::settings::CurrentSettings>(),
1308 Some(&admin_cookie),1308 Some(&admin_cookie),
1309 &[],1309 &[],
1310 )1310 )
@@ -1323,7 +1323,7 @@ async fn an_admin_changes_the_limits_and_they_stay_changed() {
1323 1323
1324 let answer = app1324 let answer = app
1325 .post(1325 .post(
1326- path::<dizey_web::settings::SaveLimits>(),1326+ path::<izlek_web::settings::SaveLimits>(),
1327 Some(&admin_cookie),1327 Some(&admin_cookie),
1328 &[1328 &[
1329 ("attachment_limit_mb", "10"),1329 ("attachment_limit_mb", "10"),
@@ -1336,7 +1336,7 @@ async fn an_admin_changes_the_limits_and_they_stay_changed() {
1336 1336
1337 let after = app1337 let after = app
1338 .post(1338 .post(
1339- path::<dizey_web::settings::CurrentSettings>(),1339+ path::<izlek_web::settings::CurrentSettings>(),
1340 Some(&admin_cookie),1340 Some(&admin_cookie),
1341 &[],1341 &[],
1342 )1342 )
@@ -1360,7 +1360,7 @@ async fn a_limit_outside_what_the_disk_should_promise_is_refused() {
1360 for (attachment, photo) in [("5000", "2"), ("0", "2"), ("25", "0"), ("25", "200")] {1360 for (attachment, photo) in [("5000", "2"), ("0", "2"), ("25", "0"), ("25", "200")] {
1361 let answer = app1361 let answer = app
1362 .post(1362 .post(
1363- path::<dizey_web::settings::SaveLimits>(),1363+ path::<izlek_web::settings::SaveLimits>(),
1364 Some(&admin_cookie),1364 Some(&admin_cookie),
1365 &[1365 &[
1366 ("attachment_limit_mb", attachment),1366 ("attachment_limit_mb", attachment),
@@ -1382,7 +1382,7 @@ async fn a_file_type_that_is_not_an_extension_is_refused() {
1382 1382
1383 let answer = app1383 let answer = app
1384 .post(1384 .post(
1385- path::<dizey_web::settings::SaveLimits>(),1385+ path::<izlek_web::settings::SaveLimits>(),
1386 Some(&admin_cookie),1386 Some(&admin_cookie),
1387 &[1387 &[
1388 ("attachment_limit_mb", "25"),1388 ("attachment_limit_mb", "25"),
@@ -1400,32 +1400,32 @@ async fn a_file_type_that_is_not_an_extension_is_refused() {
1400 async fn a_member_is_not_sent_the_member_list() {1400 async fn a_member_is_not_sent_the_member_list() {
1401 let app = App::open().await;1401 let app = App::open().await;
1402 let admin_cookie = admin(&app).await;1402 let admin_cookie = admin(&app).await;
1403- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1403+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1404- let _ = invited(&app, &admin_cookie, "quiet@dizey.sh", "Quiet", Role::Viewer).await;1404+ let _ = invited(&app, &admin_cookie, "quiet@izlek.sh", "Quiet", Role::Viewer).await;
1405 1405
1406 let answer = app1406 let answer = app
1407 .post(1407 .post(
1408- path::<dizey_web::settings::CurrentSettings>(),1408+ path::<izlek_web::settings::CurrentSettings>(),
1409 Some(&member),1409 Some(&member),
1410 &[],1410 &[],
1411 )1411 )
1412 .await;1412 .await;
1413 assert!(answer.body.contains("\"members\":null"), "{}", answer.body);1413 assert!(answer.body.contains("\"members\":null"), "{}", answer.body);
1414- assert!(!answer.body.contains("quiet@dizey.sh"), "{}", answer.body);1414+ assert!(!answer.body.contains("quiet@izlek.sh"), "{}", answer.body);
1415 }1415 }
1416 1416
1417 #[tokio::test]1417 #[tokio::test]
1418 async fn an_admin_sees_who_has_a_password_and_never_a_hash() {1418 async fn an_admin_sees_who_has_a_password_and_never_a_hash() {
1419 let app = App::open().await;1419 let app = App::open().await;
1420 let admin_cookie = admin(&app).await;1420 let admin_cookie = admin(&app).await;
1421- let _ = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1421+ let _ = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1422 // Invited and never signed in: the account exists, the password does not.1422 // Invited and never signed in: the account exists, the password does not.
1423 let answer = app1423 let answer = app
1424 .post(1424 .post(
1425- path::<dizey_web::auth::InviteMember>(),1425+ path::<izlek_web::auth::InviteMember>(),
1426 Some(&admin_cookie),1426 Some(&admin_cookie),
1427 &[1427 &[
1428- ("email", "mert@dizey.sh"),1428+ ("email", "mert@izlek.sh"),
1429 ("display_name", "Mert"),1429 ("display_name", "Mert"),
1430 ("role", "member"),1430 ("role", "member"),
1431 ],1431 ],
@@ -1435,12 +1435,12 @@ async fn an_admin_sees_who_has_a_password_and_never_a_hash() {
1435 1435
1436 let answer = app1436 let answer = app
1437 .post(1437 .post(
1438- path::<dizey_web::settings::CurrentSettings>(),1438+ path::<izlek_web::settings::CurrentSettings>(),
1439 Some(&admin_cookie),1439 Some(&admin_cookie),
1440 &[],1440 &[],
1441 )1441 )
1442 .await;1442 .await;
1443- assert!(answer.body.contains("mert@dizey.sh"), "{}", answer.body);1443+ assert!(answer.body.contains("mert@izlek.sh"), "{}", answer.body);
1444 assert!(answer.body.contains("\"has_password\":false"), "{}", answer.body);1444 assert!(answer.body.contains("\"has_password\":false"), "{}", answer.body);
1445 assert!(answer.body.contains("\"has_password\":true"), "{}", answer.body);1445 assert!(answer.body.contains("\"has_password\":true"), "{}", answer.body);
1446 assert!(1446 assert!(
@@ -1456,13 +1456,13 @@ async fn an_admin_sees_who_has_a_password_and_never_a_hash() {
1456 async fn a_member_who_posts_a_resend_anyway_is_refused() {1456 async fn a_member_who_posts_a_resend_anyway_is_refused() {
1457 let app = App::open().await;1457 let app = App::open().await;
1458 let admin_cookie = admin(&app).await;1458 let admin_cookie = admin(&app).await;
1459- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1459+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1460 let mert = app1460 let mert = app
1461 .post(1461 .post(
1462- path::<dizey_web::auth::InviteMember>(),1462+ path::<izlek_web::auth::InviteMember>(),
1463 Some(&admin_cookie),1463 Some(&admin_cookie),
1464 &[1464 &[
1465- ("email", "mert@dizey.sh"),1465+ ("email", "mert@izlek.sh"),
1466 ("display_name", "Mert"),1466 ("display_name", "Mert"),
1467 ("role", "member"),1467 ("role", "member"),
1468 ],1468 ],
@@ -1471,7 +1471,7 @@ async fn a_member_who_posts_a_resend_anyway_is_refused() {
1471 assert_eq!(mert.status, StatusCode::OK, "{}", mert.body);1471 assert_eq!(mert.status, StatusCode::OK, "{}", mert.body);
1472 let members = app1472 let members = app
1473 .post(1473 .post(
1474- path::<dizey_web::settings::CurrentSettings>(),1474+ path::<izlek_web::settings::CurrentSettings>(),
1475 Some(&admin_cookie),1475 Some(&admin_cookie),
1476 &[],1476 &[],
1477 )1477 )
@@ -1485,7 +1485,7 @@ async fn a_member_who_posts_a_resend_anyway_is_refused() {
1485 1485
1486 let answer = app1486 let answer = app
1487 .post(1487 .post(
1488- path::<dizey_web::settings::ResendLink>(),1488+ path::<izlek_web::settings::ResendLink>(),
1489 Some(&member),1489 Some(&member),
1490 &[("user_id", &mert_id)],1490 &[("user_id", &mert_id)],
1491 )1491 )
@@ -1502,10 +1502,10 @@ async fn a_resent_link_opens_the_same_account() {
1502 let admin_cookie = admin(&app).await;1502 let admin_cookie = admin(&app).await;
1503 let invitation = app1503 let invitation = app
1504 .post(1504 .post(
1505- path::<dizey_web::auth::InviteMember>(),1505+ path::<izlek_web::auth::InviteMember>(),
1506 Some(&admin_cookie),1506 Some(&admin_cookie),
1507 &[1507 &[
1508- ("email", "mert@dizey.sh"),1508+ ("email", "mert@izlek.sh"),
1509 ("display_name", "Mert"),1509 ("display_name", "Mert"),
1510 ("role", "member"),1510 ("role", "member"),
1511 ],1511 ],
@@ -1515,14 +1515,14 @@ async fn a_resent_link_opens_the_same_account() {
1515 1515
1516 let list = app1516 let list = app
1517 .post(1517 .post(
1518- path::<dizey_web::settings::CurrentSettings>(),1518+ path::<izlek_web::settings::CurrentSettings>(),
1519 Some(&admin_cookie),1519 Some(&admin_cookie),
1520 &[],1520 &[],
1521 )1521 )
1522 .await;1522 .await;
1523 let mert_id = list1523 let mert_id = list
1524 .body1524 .body
1525- .split_once("mert@dizey.sh")1525+ .split_once("mert@izlek.sh")
1526 .map(|(before, _)| before)1526 .map(|(before, _)| before)
1527 .and_then(|before| before.rsplit_once("\"id\":\""))1527 .and_then(|before| before.rsplit_once("\"id\":\""))
1528 .and_then(|(_, rest)| rest.split('"').next())1528 .and_then(|(_, rest)| rest.split('"').next())
@@ -1531,7 +1531,7 @@ async fn a_resent_link_opens_the_same_account() {
1531 1531
1532 let answer = app1532 let answer = app
1533 .post(1533 .post(
1534- path::<dizey_web::settings::ResendLink>(),1534+ path::<izlek_web::settings::ResendLink>(),
1535 Some(&admin_cookie),1535 Some(&admin_cookie),
1536 &[("user_id", &mert_id)],1536 &[("user_id", &mert_id)],
1537 )1537 )
@@ -1545,7 +1545,7 @@ async fn a_resent_link_opens_the_same_account() {
1545 1545
1546 let redeemed = app1546 let redeemed = app
1547 .post(1547 .post(
1548- path::<dizey_web::auth::RedeemLink>(),1548+ path::<izlek_web::auth::RedeemLink>(),
1549 None,1549 None,
1550 &[("token", &token), ("password", "lantern gravel spoon meadow")],1550 &[("token", &token), ("password", "lantern gravel spoon meadow")],
1551 )1551 )
@@ -1564,10 +1564,10 @@ async fn an_invitation_names_the_admin_who_made_it_and_not_the_invitee() {
1564 1564
1565 let answer = app1565 let answer = app
1566 .post(1566 .post(
1567- path::<dizey_web::auth::InviteMember>(),1567+ path::<izlek_web::auth::InviteMember>(),
1568 Some(&admin_cookie),1568 Some(&admin_cookie),
1569 &[1569 &[
1570- ("email", "grace@dizey.sh"),1570+ ("email", "grace@izlek.sh"),
1571 ("display_name", "Grace Hopper"),1571 ("display_name", "Grace Hopper"),
1572 ("role", "member"),1572 ("role", "member"),
1573 ],1573 ],
@@ -1583,7 +1583,7 @@ async fn an_invitation_names_the_admin_who_made_it_and_not_the_invitee() {
1583 1583
1584 let answer = app1584 let answer = app
1585 .post(1585 .post(
1586- path::<dizey_web::auth::Invitation>(),1586+ path::<izlek_web::auth::Invitation>(),
1587 None,1587 None,
1588 &[("token", token.as_str())],1588 &[("token", token.as_str())],
1589 )1589 )
@@ -1611,7 +1611,7 @@ async fn signing_out_stops_the_session_being_worth_anything() {
1611 1611
1612 let works = app1612 let works = app
1613 .post(1613 .post(
1614- path::<dizey_web::settings::CurrentSettings>(),1614+ path::<izlek_web::settings::CurrentSettings>(),
1615 Some(&cookie),1615 Some(&cookie),
1616 &[],1616 &[],
1617 )1617 )
@@ -1619,14 +1619,14 @@ async fn signing_out_stops_the_session_being_worth_anything() {
1619 assert!(works.body.contains("administers"), "{}", works.body);1619 assert!(works.body.contains("administers"), "{}", works.body);
1620 1620
1621 let out = app1621 let out = app
1622- .post(path::<dizey_web::auth::SignOut>(), Some(&cookie), &[])1622+ .post(path::<izlek_web::auth::SignOut>(), Some(&cookie), &[])
1623 .await;1623 .await;
1624 assert_eq!(out.status, StatusCode::OK, "{}", out.body);1624 assert_eq!(out.status, StatusCode::OK, "{}", out.body);
1625 1625
1626 // The same cookie, replayed. The server has to be the one refusing.1626 // The same cookie, replayed. The server has to be the one refusing.
1627 let after = app1627 let after = app
1628 .post(1628 .post(
1629- path::<dizey_web::settings::CurrentSettings>(),1629+ path::<izlek_web::settings::CurrentSettings>(),
1630 Some(&cookie),1630 Some(&cookie),
1631 &[],1631 &[],
1632 )1632 )
@@ -1648,9 +1648,9 @@ async fn signing_out_without_script_lands_on_the_sign_in_page() {
1648 1648
1649 let out = app1649 let out = app
1650 .post_without_script(1650 .post_without_script(
1651- path::<dizey_web::auth::SignOut>(),1651+ path::<izlek_web::auth::SignOut>(),
1652 Some(&cookie),1652 Some(&cookie),
1653- "http://dizey.test/settings",1653+ "http://izlek.test/settings",
1654 &[],1654 &[],
1655 )1655 )
1656 .await;1656 .await;
@@ -1665,16 +1665,16 @@ async fn signing_out_without_script_lands_on_the_sign_in_page() {
1665 async fn signing_out_leaves_every_other_session_alone() {1665 async fn signing_out_leaves_every_other_session_alone() {
1666 let app = App::open().await;1666 let app = App::open().await;
1667 let admin_cookie = admin(&app).await;1667 let admin_cookie = admin(&app).await;
1668- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1668+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1669 1669
1670 let out = app1670 let out = app
1671- .post(path::<dizey_web::auth::SignOut>(), Some(&member), &[])1671+ .post(path::<izlek_web::auth::SignOut>(), Some(&member), &[])
1672 .await;1672 .await;
1673 assert_eq!(out.status, StatusCode::OK, "{}", out.body);1673 assert_eq!(out.status, StatusCode::OK, "{}", out.body);
1674 1674
1675 let still = app1675 let still = app
1676 .post(1676 .post(
1677- path::<dizey_web::settings::CurrentSettings>(),1677+ path::<izlek_web::settings::CurrentSettings>(),
1678 Some(&admin_cookie),1678 Some(&admin_cookie),
1679 &[],1679 &[],
1680 )1680 )
@@ -1686,11 +1686,11 @@ async fn signing_out_leaves_every_other_session_alone() {
1686 async fn a_member_may_not_press_the_test_button() {1686 async fn a_member_may_not_press_the_test_button() {
1687 let app = App::open().await;1687 let app = App::open().await;
1688 let admin_cookie = admin(&app).await;1688 let admin_cookie = admin(&app).await;
1689- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1689+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1690 1690
1691 let answer = app1691 let answer = app
1692 .post(1692 .post(
1693- path::<dizey_web::settings::SendTestMail>(),1693+ path::<izlek_web::settings::SendTestMail>(),
1694 Some(&member),1694 Some(&member),
1695 &[],1695 &[],
1696 )1696 )
@@ -1704,11 +1704,11 @@ async fn a_member_may_not_press_the_test_button() {
1704 async fn a_viewer_may_not_press_the_test_button() {1704 async fn a_viewer_may_not_press_the_test_button() {
1705 let app = App::open().await;1705 let app = App::open().await;
1706 let admin_cookie = admin(&app).await;1706 let admin_cookie = admin(&app).await;
1707- let viewer = invited(&app, &admin_cookie, "pinar@dizey.sh", "Pinar", Role::Viewer).await;1707+ let viewer = invited(&app, &admin_cookie, "pinar@izlek.sh", "Pinar", Role::Viewer).await;
1708 1708
1709 let answer = app1709 let answer = app
1710 .post(1710 .post(
1711- path::<dizey_web::settings::SendTestMail>(),1711+ path::<izlek_web::settings::SendTestMail>(),
1712 Some(&viewer),1712 Some(&viewer),
1713 &[],1713 &[],
1714 )1714 )
@@ -1723,7 +1723,7 @@ async fn a_signed_out_browser_may_not_press_the_test_button() {
1723 let app = App::open().await;1723 let app = App::open().await;
1724 1724
1725 let answer = app1725 let answer = app
1726- .post(path::<dizey_web::settings::SendTestMail>(), None, &[])1726+ .post(path::<izlek_web::settings::SendTestMail>(), None, &[])
1727 .await;1727 .await;
1728 1728
1729 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);1729 assert_eq!(answer.status, StatusCode::OK, "{}", answer.body);
@@ -1737,7 +1737,7 @@ async fn testing_a_sender_that_was_never_filled_in_says_so_rather_than_sending()
1737 1737
1738 let answer = app1738 let answer = app
1739 .post(1739 .post(
1740- path::<dizey_web::settings::SendTestMail>(),1740+ path::<izlek_web::settings::SendTestMail>(),
1741 Some(&admin_cookie),1741 Some(&admin_cookie),
1742 &[],1742 &[],
1743 )1743 )
@@ -1750,7 +1750,7 @@ async fn testing_a_sender_that_was_never_filled_in_says_so_rather_than_sending()
1750 // Nothing was recorded either: the panel still has no test line to show.1750 // Nothing was recorded either: the panel still has no test line to show.
1751 let seen = app1751 let seen = app
1752 .post(1752 .post(
1753- path::<dizey_web::settings::CurrentSettings>(),1753+ path::<izlek_web::settings::CurrentSettings>(),
1754 Some(&admin_cookie),1754 Some(&admin_cookie),
1755 &[],1755 &[],
1756 )1756 )
@@ -1762,7 +1762,7 @@ async fn testing_a_sender_that_was_never_filled_in_says_so_rather_than_sending()
1762 async fn rule_written(app: &App, admin: &str, column_id: &str, subject: &str) -> bool {1762 async fn rule_written(app: &App, admin: &str, column_id: &str, subject: &str) -> bool {
1763 let answer = app1763 let answer = app
1764 .post(1764 .post(
1765- path::<dizey_web::rules::CreateRule>(),1765+ path::<izlek_web::rules::CreateRule>(),
1766 Some(admin),1766 Some(admin),
1767 &[1767 &[
1768 ("trigger", "status"),1768 ("trigger", "status"),
@@ -1778,7 +1778,7 @@ async fn rule_written(app: &App, admin: &str, column_id: &str, subject: &str) ->
1778 /// The id of the one rule the workspace has.1778 /// The id of the one rule the workspace has.
1779 async fn only_rule(app: &App, admin: &str) -> String {1779 async fn only_rule(app: &App, admin: &str) -> String {
1780 let answer = app1780 let answer = app
1781- .post(path::<dizey_web::rules::CurrentRules>(), Some(admin), &[])1781+ .post(path::<izlek_web::rules::CurrentRules>(), Some(admin), &[])
1782 .await;1782 .await;
1783 answer1783 answer
1784 .body1784 .body
@@ -1800,7 +1800,7 @@ async fn an_admin_writes_a_rule_and_reads_it_back_as_a_sentence() {
1800 1800
1801 let answer = app1801 let answer = app
1802 .post(1802 .post(
1803- path::<dizey_web::rules::CurrentRules>(),1803+ path::<izlek_web::rules::CurrentRules>(),
1804 Some(&admin_cookie),1804 Some(&admin_cookie),
1805 &[],1805 &[],
1806 )1806 )
@@ -1832,7 +1832,7 @@ async fn a_rule_with_no_subject_is_refused_and_says_why() {
1832 1832
1833 let answer = app1833 let answer = app
1834 .post(1834 .post(
1835- path::<dizey_web::rules::CreateRule>(),1835+ path::<izlek_web::rules::CreateRule>(),
1836 Some(&admin_cookie),1836 Some(&admin_cookie),
1837 &[1837 &[
1838 ("trigger", "status"),1838 ("trigger", "status"),
@@ -1852,7 +1852,7 @@ async fn a_rule_may_not_be_hung_off_a_column_that_is_not_on_this_board() {
1852 1852
1853 let answer = app1853 let answer = app
1854 .post(1854 .post(
1855- path::<dizey_web::rules::CreateRule>(),1855+ path::<izlek_web::rules::CreateRule>(),
1856 Some(&admin_cookie),1856 Some(&admin_cookie),
1857 &[1857 &[
1858 ("trigger", "status"),1858 ("trigger", "status"),
@@ -1866,7 +1866,7 @@ async fn a_rule_may_not_be_hung_off_a_column_that_is_not_on_this_board() {
1866 1866
1867 let seen = app1867 let seen = app
1868 .post(1868 .post(
1869- path::<dizey_web::rules::CurrentRules>(),1869+ path::<izlek_web::rules::CurrentRules>(),
1870 Some(&admin_cookie),1870 Some(&admin_cookie),
1871 &[],1871 &[],
1872 )1872 )
@@ -1882,7 +1882,7 @@ async fn an_audience_the_screen_never_offers_is_refused() {
1882 1882
1883 let answer = app1883 let answer = app
1884 .post(1884 .post(
1885- path::<dizey_web::rules::CreateRule>(),1885+ path::<izlek_web::rules::CreateRule>(),
1886 Some(&admin_cookie),1886 Some(&admin_cookie),
1887 &[1887 &[
1888 ("trigger", "status"),1888 ("trigger", "status"),
@@ -1905,7 +1905,7 @@ async fn switching_a_rule_off_leaves_it_listed_and_switched_off() {
1905 1905
1906 let answer = app1906 let answer = app
1907 .post(1907 .post(
1908- path::<dizey_web::rules::SetRuleEnabled>(),1908+ path::<izlek_web::rules::SetRuleEnabled>(),
1909 Some(&admin_cookie),1909 Some(&admin_cookie),
1910 &[("rule_id", &rule), ("enabled", "false")],1910 &[("rule_id", &rule), ("enabled", "false")],
1911 )1911 )
@@ -1915,7 +1915,7 @@ async fn switching_a_rule_off_leaves_it_listed_and_switched_off() {
1915 // The screen lists what exists, not what is live.1915 // The screen lists what exists, not what is live.
1916 let seen = app1916 let seen = app
1917 .post(1917 .post(
1918- path::<dizey_web::rules::CurrentRules>(),1918+ path::<izlek_web::rules::CurrentRules>(),
1919 Some(&admin_cookie),1919 Some(&admin_cookie),
1920 &[],1920 &[],
1921 )1921 )
@@ -1935,8 +1935,8 @@ async fn a_rule_id_this_workspace_does_not_own_is_refused() {
1935 let stranger = Uuid::new_v4().to_string();1935 let stranger = Uuid::new_v4().to_string();
1936 1936
1937 for path in [1937 for path in [
1938- path::<dizey_web::rules::SetRuleEnabled>(),1938+ path::<izlek_web::rules::SetRuleEnabled>(),
1939- path::<dizey_web::rules::DeleteRule>(),1939+ path::<izlek_web::rules::DeleteRule>(),
1940 ] {1940 ] {
1941 let answer = app1941 let answer = app
1942 .post(1942 .post(
@@ -1959,7 +1959,7 @@ async fn deleting_a_rule_takes_it_off_the_screen() {
1959 1959
1960 let answer = app1960 let answer = app
1961 .post(1961 .post(
1962- path::<dizey_web::rules::DeleteRule>(),1962+ path::<izlek_web::rules::DeleteRule>(),
1963 Some(&admin_cookie),1963 Some(&admin_cookie),
1964 &[("rule_id", &rule)],1964 &[("rule_id", &rule)],
1965 )1965 )
@@ -1968,7 +1968,7 @@ async fn deleting_a_rule_takes_it_off_the_screen() {
1968 1968
1969 let seen = app1969 let seen = app
1970 .post(1970 .post(
1971- path::<dizey_web::rules::CurrentRules>(),1971+ path::<izlek_web::rules::CurrentRules>(),
1972 Some(&admin_cookie),1972 Some(&admin_cookie),
1973 &[],1973 &[],
1974 )1974 )
@@ -1984,18 +1984,18 @@ async fn only_an_admin_may_read_or_write_the_rules() {
1984 assert!(rule_written(&app, &admin_cookie, &column, "Task completed").await);1984 assert!(rule_written(&app, &admin_cookie, &column, "Task completed").await);
1985 let rule = only_rule(&app, &admin_cookie).await;1985 let rule = only_rule(&app, &admin_cookie).await;
1986 1986
1987- let member = invited(&app, &admin_cookie, "emre@dizey.sh", "Emre", Role::Member).await;1987+ let member = invited(&app, &admin_cookie, "emre@izlek.sh", "Emre", Role::Member).await;
1988- let viewer = invited(&app, &admin_cookie, "pinar@dizey.sh", "Pinar", Role::Viewer).await;1988+ let viewer = invited(&app, &admin_cookie, "pinar@izlek.sh", "Pinar", Role::Viewer).await;
1989 1989
1990 for who in [&member, &viewer] {1990 for who in [&member, &viewer] {
1991 let read = app1991 let read = app
1992- .post(path::<dizey_web::rules::CurrentRules>(), Some(who), &[])1992+ .post(path::<izlek_web::rules::CurrentRules>(), Some(who), &[])
1993 .await;1993 .await;
1994 assert!(read.body.contains("Forbidden"), "{}", read.body);1994 assert!(read.body.contains("Forbidden"), "{}", read.body);
1995 1995
1996 let written = app1996 let written = app
1997 .post(1997 .post(
1998- path::<dizey_web::rules::CreateRule>(),1998+ path::<izlek_web::rules::CreateRule>(),
1999 Some(who),1999 Some(who),
2000 &[2000 &[
2001 ("trigger", "status"),2001 ("trigger", "status"),
@@ -2009,7 +2009,7 @@ async fn only_an_admin_may_read_or_write_the_rules() {
2009 2009
2010 let switched = app2010 let switched = app
2011 .post(2011 .post(
2012- path::<dizey_web::rules::SetRuleEnabled>(),2012+ path::<izlek_web::rules::SetRuleEnabled>(),
2013 Some(who),2013 Some(who),
2014 &[("rule_id", &rule), ("enabled", "false")],2014 &[("rule_id", &rule), ("enabled", "false")],
2015 )2015 )
@@ -2018,7 +2018,7 @@ async fn only_an_admin_may_read_or_write_the_rules() {
2018 2018
2019 let deleted = app2019 let deleted = app
2020 .post(2020 .post(
2021- path::<dizey_web::rules::DeleteRule>(),2021+ path::<izlek_web::rules::DeleteRule>(),
2022 Some(who),2022 Some(who),
2023 &[("rule_id", &rule)],2023 &[("rule_id", &rule)],
2024 )2024 )
@@ -2029,7 +2029,7 @@ async fn only_an_admin_may_read_or_write_the_rules() {
2029 // And the rule is untouched: still there, still on.2029 // And the rule is untouched: still there, still on.
2030 let seen = app2030 let seen = app
2031 .post(2031 .post(
2032- path::<dizey_web::rules::CurrentRules>(),2032+ path::<izlek_web::rules::CurrentRules>(),
2033 Some(&admin_cookie),2033 Some(&admin_cookie),
2034 &[],2034 &[],
2035 )2035 )
@@ -2052,11 +2052,11 @@ async fn a_signed_out_browser_may_not_touch_the_rules() {
2052 2052
2053 for (path, form) in [2053 for (path, form) in [
2054 (2054 (
2055- path::<dizey_web::rules::CurrentRules>(),2055+ path::<izlek_web::rules::CurrentRules>(),
2056 vec![] as Vec<(&str, &str)>,2056 vec![] as Vec<(&str, &str)>,
2057 ),2057 ),
2058 (2058 (
2059- path::<dizey_web::rules::CreateRule>(),2059+ path::<izlek_web::rules::CreateRule>(),
2060 vec![2060 vec![
2061 ("trigger", "status"),2061 ("trigger", "status"),
2062 ("column_id", column.as_str()),2062 ("column_id", column.as_str()),
@@ -2065,11 +2065,11 @@ async fn a_signed_out_browser_may_not_touch_the_rules() {
2065 ],2065 ],
2066 ),2066 ),
2067 (2067 (
2068- path::<dizey_web::rules::SetRuleEnabled>(),2068+ path::<izlek_web::rules::SetRuleEnabled>(),
2069 vec![("rule_id", rule.as_str()), ("enabled", "false")],2069 vec![("rule_id", rule.as_str()), ("enabled", "false")],
2070 ),2070 ),
2071 (2071 (
2072- path::<dizey_web::rules::DeleteRule>(),2072+ path::<izlek_web::rules::DeleteRule>(),
2073 vec![("rule_id", rule.as_str())],2073 vec![("rule_id", rule.as_str())],
2074 ),2074 ),
2075 ] {2075 ] {
@@ -2148,7 +2148,7 @@ async fn the_files_section_is_on_the_detail_page() {
2148 );2148 );
2149 }2149 }
2150 2150
2151-/// The id of the file named `name` in a [`dizey_web::detail::FetchTask`]2151+/// The id of the file named `name` in a [`izlek_web::detail::FetchTask`]
2152 /// snapshot's body, read the way the page would: found by its name, then the2152 /// snapshot's body, read the way the page would: found by its name, then the
2153 /// `id` field that comes right before it on the wire.2153 /// `id` field that comes right before it on the wire.
2154 fn attachment_id_named(body: &str, name: &str) -> String {2154 fn attachment_id_named(body: &str, name: &str) -> String {
@@ -2168,7 +2168,7 @@ fn attachment_id_named(body: &str, name: &str) -> String {
2168 async fn a_viewer_who_posts_an_upload_anyway_is_refused() {2168 async fn a_viewer_who_posts_an_upload_anyway_is_refused() {
2169 let app = App::open().await;2169 let app = App::open().await;
2170 let admin = admin(&app).await;2170 let admin = admin(&app).await;
2171- let viewer = invited(&app, &admin, "quiet@dizey.sh", "Quiet Reader", Role::Viewer).await;2171+ let viewer = invited(&app, &admin, "quiet@izlek.sh", "Quiet Reader", Role::Viewer).await;
2172 let column = first_column(&app, &admin).await;2172 let column = first_column(&app, &admin).await;
2173 let task = a_task(&app, &admin, &column, "Viewers cannot attach").await;2173 let task = a_task(&app, &admin, &column, "Viewers cannot attach").await;
2174 2174
@@ -2191,7 +2191,7 @@ async fn a_viewer_who_posts_an_upload_anyway_is_refused() {
2191 async fn a_member_uploads_a_file_and_the_chip_comes_back() {2191 async fn a_member_uploads_a_file_and_the_chip_comes_back() {
2192 let app = App::open().await;2192 let app = App::open().await;
2193 let admin = admin(&app).await;2193 let admin = admin(&app).await;
2194- let member = invited(&app, &admin, "mo@dizey.sh", "Mo Dubois", Role::Member).await;2194+ let member = invited(&app, &admin, "mo@izlek.sh", "Mo Dubois", Role::Member).await;
2195 let column = first_column(&app, &admin).await;2195 let column = first_column(&app, &admin).await;
2196 let task = a_task(&app, &admin, &column, "Attach the spec").await;2196 let task = a_task(&app, &admin, &column, "Attach the spec").await;
2197 2197
@@ -2212,7 +2212,7 @@ async fn a_member_uploads_a_file_and_the_chip_comes_back() {
2212 2212
2213 let snapshot = app2213 let snapshot = app
2214 .post(2214 .post(
2215- path::<dizey_web::detail::FetchTask>(),2215+ path::<izlek_web::detail::FetchTask>(),
2216 Some(&member),2216 Some(&member),
2217 &[("task_id", &task)],2217 &[("task_id", &task)],
2218 )2218 )
@@ -2242,7 +2242,7 @@ async fn a_file_past_the_workspace_limit_is_refused_before_it_is_kept() {
2242 2242
2243 let answer = app2243 let answer = app
2244 .post(2244 .post(
2245- path::<dizey_web::settings::SaveLimits>(),2245+ path::<izlek_web::settings::SaveLimits>(),
2246 Some(&admin_cookie),2246 Some(&admin_cookie),
2247 &[2247 &[
2248 ("attachment_limit_mb", "1"),2248 ("attachment_limit_mb", "1"),
@@ -2270,7 +2270,7 @@ async fn a_file_past_the_workspace_limit_is_refused_before_it_is_kept() {
2270 2270
2271 let snapshot = app2271 let snapshot = app
2272 .post(2272 .post(
2273- path::<dizey_web::detail::FetchTask>(),2273+ path::<izlek_web::detail::FetchTask>(),
2274 Some(&admin_cookie),2274 Some(&admin_cookie),
2275 &[("task_id", &task)],2275 &[("task_id", &task)],
2276 )2276 )
@@ -2287,7 +2287,7 @@ async fn a_file_type_off_the_list_is_refused() {
2287 2287
2288 let answer = app2288 let answer = app
2289 .post(2289 .post(
2290- path::<dizey_web::settings::SaveLimits>(),2290+ path::<izlek_web::settings::SaveLimits>(),
2291 Some(&admin_cookie),2291 Some(&admin_cookie),
2292 &[2292 &[
2293 ("attachment_limit_mb", "25"),2293 ("attachment_limit_mb", "25"),
@@ -2355,7 +2355,7 @@ async fn the_stored_type_is_what_the_bytes_are_not_what_the_upload_claimed() {
2355 2355
2356 let snapshot = app2356 let snapshot = app
2357 .post(2357 .post(
2358- path::<dizey_web::detail::FetchTask>(),2358+ path::<izlek_web::detail::FetchTask>(),
2359 Some(&admin_cookie),2359 Some(&admin_cookie),
2360 &[("task_id", &task)],2360 &[("task_id", &task)],
2361 )2361 )
@@ -2385,7 +2385,7 @@ async fn a_file_name_that_is_a_path_is_kept_as_a_label() {
2385 2385
2386 let snapshot = app2386 let snapshot = app
2387 .post(2387 .post(
2388- path::<dizey_web::detail::FetchTask>(),2388+ path::<izlek_web::detail::FetchTask>(),
2389 Some(&admin_cookie),2389 Some(&admin_cookie),
2390 &[("task_id", &task)],2390 &[("task_id", &task)],
2391 )2391 )
@@ -2437,7 +2437,7 @@ async fn a_file_from_another_workspace_is_not_found() {
2437 assert_eq!(answer.status, StatusCode::SEE_OTHER);2437 assert_eq!(answer.status, StatusCode::SEE_OTHER);
2438 let snapshot = app_b2438 let snapshot = app_b
2439 .post(2439 .post(
2440- path::<dizey_web::detail::FetchTask>(),2440+ path::<izlek_web::detail::FetchTask>(),
2441 Some(&admin_b),2441 Some(&admin_b),
2442 &[("task_id", &task_b)],2442 &[("task_id", &task_b)],
2443 )2443 )
@@ -2469,8 +2469,8 @@ async fn an_upload_without_a_file_is_refused() {
2469 async fn only_the_uploader_or_an_admin_may_delete_a_file() {2469 async fn only_the_uploader_or_an_admin_may_delete_a_file() {
2470 let app = App::open().await;2470 let app = App::open().await;
2471 let admin_cookie = admin(&app).await;2471 let admin_cookie = admin(&app).await;
2472- let member_a = invited(&app, &admin_cookie, "asha@dizey.sh", "Asha", Role::Member).await;2472+ let member_a = invited(&app, &admin_cookie, "asha@izlek.sh", "Asha", Role::Member).await;
2473- let member_b = invited(&app, &admin_cookie, "beau@dizey.sh", "Beau", Role::Member).await;2473+ let member_b = invited(&app, &admin_cookie, "beau@izlek.sh", "Beau", Role::Member).await;
2474 let column = first_column(&app, &admin_cookie).await;2474 let column = first_column(&app, &admin_cookie).await;
2475 let task = a_task(&app, &admin_cookie, &column, "Two uploaders, one task").await;2475 let task = a_task(&app, &admin_cookie, &column, "Two uploaders, one task").await;
2476 2476
@@ -2495,7 +2495,7 @@ async fn only_the_uploader_or_an_admin_may_delete_a_file() {
2495 2495
2496 let snapshot = app2496 let snapshot = app
2497 .post(2497 .post(
2498- path::<dizey_web::detail::FetchTask>(),2498+ path::<izlek_web::detail::FetchTask>(),
2499 Some(&admin_cookie),2499 Some(&admin_cookie),
2500 &[("task_id", &task)],2500 &[("task_id", &task)],
2501 )2501 )
@@ -2505,7 +2505,7 @@ async fn only_the_uploader_or_an_admin_may_delete_a_file() {
2505 2505
2506 let answer = app2506 let answer = app
2507 .post(2507 .post(
2508- path::<dizey_web::detail::DeleteFile>(),2508+ path::<izlek_web::detail::DeleteFile>(),
2509 Some(&member_b),2509 Some(&member_b),
2510 &[("file_id", &file_a)],2510 &[("file_id", &file_a)],
2511 )2511 )
@@ -2514,7 +2514,7 @@ async fn only_the_uploader_or_an_admin_may_delete_a_file() {
2514 2514
2515 let answer = app2515 let answer = app
2516 .post(2516 .post(
2517- path::<dizey_web::detail::DeleteFile>(),2517+ path::<izlek_web::detail::DeleteFile>(),
2518 Some(&member_a),2518 Some(&member_a),
2519 &[("file_id", &file_a)],2519 &[("file_id", &file_a)],
2520 )2520 )
@@ -2523,7 +2523,7 @@ async fn only_the_uploader_or_an_admin_may_delete_a_file() {
2523 2523
2524 let answer = app2524 let answer = app
2525 .post(2525 .post(
2526- path::<dizey_web::detail::DeleteFile>(),2526+ path::<izlek_web::detail::DeleteFile>(),
2527 Some(&admin_cookie),2527 Some(&admin_cookie),
2528 &[("file_id", &file_b)],2528 &[("file_id", &file_b)],
2529 )2529 )
@@ -2532,7 +2532,7 @@ async fn only_the_uploader_or_an_admin_may_delete_a_file() {
2532 2532
2533 let snapshot = app2533 let snapshot = app
2534 .post(2534 .post(
2535- path::<dizey_web::detail::FetchTask>(),2535+ path::<izlek_web::detail::FetchTask>(),
2536 Some(&admin_cookie),2536 Some(&admin_cookie),
2537 &[("task_id", &task)],2537 &[("task_id", &task)],
2538 )2538 )
style/main.scssmodified+1 -1
@@ -1,4 +1,4 @@
1-// Design tokens taken from the Dizey artboards.1+// Design tokens taken from the Izlek artboards.
2 :root {2 :root {
3 --bg: #f7f6f2;3 --bg: #f7f6f2;
4 --surface: #fffefb;4 --surface: #fffefb;