the name is lowercase everywhere: İz becomes iz — the wordmark, the monogram's label, the tab title, the sender-name placeholder, the activity feed's system actor, the default workspace name a fresh database seeds, the package descriptions, the config file and its template, and every comment that names the app; İzin, İzleyici and İzlek are other words and stay as they are, and the mixed-case mail fixtures that prove address folding keep their case
Browse files at this commit29cf5413bfae64668fbae0e154fbb239dc597658Parent: cf6397118 changed files +72 -72
- crates/iz-core/Cargo.toml +1 -1
- crates/iz-core/migrations/0001_init.sql +2 -2
- crates/iz-core/src/config.rs +13 -13
- crates/iz-core/src/lib.rs +1 -1
- crates/iz-core/src/mail.rs +3 -3
- crates/iz-core/src/store/turso_store.rs +2 -2
- crates/iz-core/tests/fixtures/pre-collapse/0001_init.sql +3 -3
- crates/iz-core/tests/store.rs +16 -16
- crates/iz-web/Cargo.toml +1 -1
- crates/iz-web/src/detail.rs +1 -1
- crates/iz-web/src/files.rs +2 -2
- crates/iz-web/src/layout.rs +7 -7
- crates/iz-web/src/main.rs +1 -1
- crates/iz-web/src/server.rs +4 -4
- crates/iz-web/src/settings.rs +3 -3
- crates/iz-web/tests/browser/run.sh +2 -2
- crates/iz-web/tests/browser/soft-nav.mjs +2 -2
- crates/iz-web/tests/http.rs +8 -8
crates/iz-core/Cargo.tomlmodified+1 -1
| @@ -4,7 +4,7 @@ version.workspace = true | ||
| 4 | 4 | edition.workspace = true |
| 5 | 5 | license.workspace = true |
| 6 | 6 | repository.workspace = true |
| 7 | -description = "Domain model and storage for İz" | |
| 7 | +description = "Domain model and storage for iz" | |
| 8 | 8 | |
| 9 | 9 | [features] |
| 10 | 10 | # The domain vocabulary (roles, record shapes) compiles anywhere, including the |
crates/iz-core/migrations/0001_init.sqlmodified+2 -2
| @@ -1,4 +1,4 @@ | ||
| 1 | --- Iz's schema, whole, in one file. | |
| 1 | +-- iz's schema, whole, in one file. | |
| 2 | 2 | -- |
| 3 | 3 | -- One plain SQL file, applied at boot to an empty database: Turso has no |
| 4 | 4 | -- migration runner of its own, and keeping the schema as SQL is what makes |
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | -- borrow its tail. |
| 9 | 9 | -- |
| 10 | 10 | -- This file is the first migration, not the whole schema any more. It is the |
| 11 | --- shape İz was deployed with before workspace settings could be versioned; | |
| 11 | +-- shape iz was deployed with before workspace settings could be versioned; | |
| 12 | 12 | -- everything after it is a numbered `0002_*.sql` beside it, and an empty |
| 13 | 13 | -- database is built by applying them in order. A live database is brought up |
| 14 | 14 | -- by `iz reconcile`, not by re-running the files, so a change to a table |
crates/iz-core/src/config.rsmodified+13 -13
| @@ -1,9 +1,9 @@ | ||
| 1 | -//! Everything İz reads from `config/iz.toml`, in one place. | |
| 1 | +//! Everything iz reads from `config/iz.toml`, in one place. | |
| 2 | 2 | //! |
| 3 | 3 | //! Nothing here has a silent default once the file exists. A key that is |
| 4 | 4 | //! missing, empty or unusable stops the boot and says which key and which |
| 5 | 5 | //! file, because the alternative is worse than not starting: a wrong |
| 6 | -//! `database` does not mean "no data", it means a second İz quietly | |
| 6 | +//! `database` does not mean "no data", it means a second iz quietly | |
| 7 | 7 | //! writing a different file while everyone believes they are looking at the |
| 8 | 8 | //! same board — and Turso is single-writer, so the two are not even |
| 9 | 9 | //! reconcilable afterwards. |
| @@ -50,12 +50,12 @@ database = "iz.db" | ||
| 50 | 50 | # Where attachments live as files, created on boot. |
| 51 | 51 | storage = "storage" |
| 52 | 52 | # The address the server listens on. Environment variables are ignored — |
| 53 | -# this is the only thing that decides where İz binds. It is also the | |
| 53 | +# this is the only thing that decides where iz binds. It is also the | |
| 54 | 54 | # address mail links fall back to, until an admin sets one in Settings. |
| 55 | 55 | listen = "127.0.0.1:7654" |
| 56 | 56 | # This app's public address, when it differs from `listen` — a proxy in |
| 57 | 57 | # front, for instance. It is where a sign-out sends the browser back to, |
| 58 | -# and the address İz files itself under in im's family list, as the key | |
| 58 | +# and the address iz files itself under in im's family list, as the key | |
| 59 | 59 | # "iz", so the family's switcher finds it without an admin typing it. A |
| 60 | 60 | # deployment the family reaches by name sets it. Empty: derived from |
| 61 | 61 | # `listen`. |
| @@ -68,9 +68,9 @@ live_seconds = 300 | ||
| 68 | 68 | [oidc] |
| 69 | 69 | # The provider that signs people in. Required: no default is guessed. |
| 70 | 70 | issuer = "" |
| 71 | -# The client id İz presents to the provider. Required. | |
| 71 | +# The client id iz presents to the provider. Required. | |
| 72 | 72 | client_id = "" |
| 73 | -# The client secret İz presents to the provider. Required. The file holds a | |
| 73 | +# The client secret iz presents to the provider. Required. The file holds a | |
| 74 | 74 | # live credential once this is filled in, so it is created mode 0600. |
| 75 | 75 | client_secret = "" |
| 76 | 76 | # Where the provider sends the browser back after sign-in. Not written here: |
| @@ -107,7 +107,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[ | ||
| 107 | 107 | "listen", |
| 108 | 108 | concat!( |
| 109 | 109 | "# The address the server listens on. Environment variables are ignored —\n", |
| 110 | - "# this is the only thing that decides where İz binds. It is also the\n", | |
| 110 | + "# this is the only thing that decides where iz binds. It is also the\n", | |
| 111 | 111 | "# address mail links fall back to, until an admin sets one in Settings.\n", |
| 112 | 112 | "listen = \"127.0.0.1:7654\"\n" |
| 113 | 113 | ), |
| @@ -126,7 +126,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[ | ||
| 126 | 126 | concat!( |
| 127 | 127 | "# This app's public address, when it differs from `listen` — a proxy\n", |
| 128 | 128 | "# in front, for instance. It is where a sign-out sends the browser\n", |
| 129 | - "# back to, and the address İz files itself under in im's family\n", | |
| 129 | + "# back to, and the address iz files itself under in im's family\n", | |
| 130 | 130 | "# list, as the key \"iz\", so the family's switcher finds it without\n", |
| 131 | 131 | "# an admin typing it. A deployment the family reaches by name sets\n", |
| 132 | 132 | "# it. Empty: derived from `listen`.\n", |
| @@ -163,14 +163,14 @@ struct Toml { | ||
| 163 | 163 | other: std::collections::BTreeMap<String, toml::Value>, |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | -/// The OIDC provider İz trusts, and how İz presents itself to it. | |
| 166 | +/// The OIDC provider iz trusts, and how iz presents itself to it. | |
| 167 | 167 | #[derive(Clone, Debug, PartialEq, Eq)] |
| 168 | 168 | pub struct OidcConfig { |
| 169 | 169 | /// The provider's issuer URL. Sign-ins from anywhere else are refused. |
| 170 | 170 | pub issuer: String, |
| 171 | - /// The client id İz presents to the provider. | |
| 171 | + /// The client id iz presents to the provider. | |
| 172 | 172 | pub client_id: String, |
| 173 | - /// The client secret İz presents to the provider. Never printed. | |
| 173 | + /// The client secret iz presents to the provider. Never printed. | |
| 174 | 174 | pub client_secret: String, |
| 175 | 175 | /// Where the provider sends the browser after sign-in. Defaults from |
| 176 | 176 | /// `listen` when the file is silent about it. |
| @@ -201,7 +201,7 @@ pub struct Config { | ||
| 201 | 201 | /// `redirect_uri` has. It is where the family sends the browser back |
| 202 | 202 | /// to after a sign-out that started here. |
| 203 | 203 | pub base_url: String, |
| 204 | - /// The OIDC provider İz trusts. | |
| 204 | + /// The OIDC provider iz trusts. | |
| 205 | 205 | pub oidc: OidcConfig, |
| 206 | 206 | /// Whether `config/iz.toml` did not exist and was just written with the |
| 207 | 207 | /// development defaults this boot. |
| @@ -365,7 +365,7 @@ impl Config { | ||
| 365 | 365 | /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere |
| 366 | 366 | /// and is reachable at none of it by name, so the loopback stands in: a |
| 367 | 367 | /// link somebody on the box can click beats a link nobody can. Whoever |
| 368 | - /// puts İz behind a proxy sets the real address in Settings, which is | |
| 368 | + /// puts iz behind a proxy sets the real address in Settings, which is | |
| 369 | 369 | /// the only thing this defers to. |
| 370 | 370 | pub fn listen_url(&self) -> String { |
| 371 | 371 | listen_url_of(&self.listen) |
crates/iz-core/src/lib.rsmodified+1 -1
| @@ -1,4 +1,4 @@ | ||
| 1 | -//! Domain model and storage for İz. | |
| 1 | +//! Domain model and storage for iz. | |
| 2 | 2 | //! |
| 3 | 3 | //! The vocabulary — roles and record shapes — compiles everywhere, so the UI |
| 4 | 4 | //! and the server speak the same types. The `server` feature adds the halves |
crates/iz-core/src/mail.rsmodified+3 -3
| @@ -184,8 +184,8 @@ impl Engine { | ||
| 184 | 184 | pub async fn send_test(&self, to: &str) -> std::result::Result<Duration, MailError> { |
| 185 | 185 | let mail = Outgoing { |
| 186 | 186 | to: to.to_string(), |
| 187 | - subject: "İz test mail".to_string(), | |
| 188 | - body: "Somebody pressed the test button in İz's settings, and this \ | |
| 187 | + subject: "iz test mail".to_string(), | |
| 188 | + body: "Somebody pressed the test button in iz's settings, and this \ | |
| 189 | 189 | is what came out. Nothing else was sent, and nobody else was \ |
| 190 | 190 | written to.\n" |
| 191 | 191 | .to_string(), |
| @@ -544,7 +544,7 @@ impl Engine { | ||
| 544 | 544 | .await?; |
| 545 | 545 | return Ok(()); |
| 546 | 546 | } |
| 547 | - // The workspace's quiet window. Zero is what İz did before it had | |
| 547 | + // The workspace's quiet window. Zero is what iz did before it had | |
| 548 | 548 | // one: every trigger its own mail, sent as soon as it is owed. |
| 549 | 549 | let window = self |
| 550 | 550 | .store |
crates/iz-core/src/store/turso_store.rsmodified+2 -2
| @@ -1275,7 +1275,7 @@ impl Store for TursoStore { | ||
| 1275 | 1275 | let workspace_id = Ulid::new().to_string(); |
| 1276 | 1276 | let board_id = Ulid::new().to_string(); |
| 1277 | 1277 | tx.execute( |
| 1278 | - "INSERT INTO workspace (id, name, created_at) VALUES (?1, 'İz', ?2)", | |
| 1278 | + "INSERT INTO workspace (id, name, created_at) VALUES (?1, 'iz', ?2)", | |
| 1279 | 1279 | params![workspace_id.clone(), now.clone()], |
| 1280 | 1280 | ) |
| 1281 | 1281 | .await |
| @@ -5238,7 +5238,7 @@ mod probe { | ||
| 5238 | 5238 | port: 587, |
| 5239 | 5239 | username: "iz".into(), |
| 5240 | 5240 | password: Some("hunter2-and-then-some".into()), |
| 5241 | - from_name: "İz".into(), | |
| 5241 | + from_name: "iz".into(), | |
| 5242 | 5242 | from_address: "iz@iz.sh".into(), |
| 5243 | 5243 | }, |
| 5244 | 5244 | ) |
crates/iz-core/tests/fixtures/pre-collapse/0001_init.sqlmodified+3 -3
| @@ -1,4 +1,4 @@ | ||
| 1 | --- Iz's schema, whole, in one file. | |
| 1 | +-- iz's schema, whole, in one file. | |
| 2 | 2 | -- |
| 3 | 3 | -- Plain versioned SQL applied at boot: Turso has no migration runner of its |
| 4 | 4 | -- own, and keeping the schema as SQL is what makes the store trait swappable. |
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | -- database it describes is recreated — twenty migrations were collapsed into |
| 12 | 12 | -- this file once for that reason, and a twenty-first would start the same rot |
| 13 | 13 | -- over. The reasoning the old migrations carried is kept, on the tables it |
| 14 | --- explains. The day Iz runs somewhere with data worth keeping, the next | |
| 14 | +-- explains. The day iz runs somewhere with data worth keeping, the next | |
| 15 | 15 | -- change becomes 0002 and this note goes away. |
| 16 | 16 | |
| 17 | 17 | CREATE TABLE workspace ( |
| @@ -226,7 +226,7 @@ CREATE INDEX comment_by_task ON comment(task_id); | ||
| 226 | 226 | |
| 227 | 227 | -- Attachments live in the database file, not on disk beside it. |
| 228 | 228 | -- |
| 229 | --- Iz is one process over one file, and a second place to keep state is a | |
| 229 | +-- iz is one process over one file, and a second place to keep state is a | |
| 230 | 230 | -- second thing to back up, to lock, and to get out of step with the rows that |
| 231 | 231 | -- name it. And a path is exactly where an uploaded file name must never end |
| 232 | 232 | -- up: `../../etc` is a valid file name and a terrible path. Keeping the bytes |
crates/iz-core/tests/store.rsmodified+16 -16
| @@ -114,7 +114,7 @@ async fn the_schema_is_created_once_and_survives_reopen() { | ||
| 114 | 114 | // schema (its CREATE TABLE would fail on the first one) and must not |
| 115 | 115 | // lose what the first open wrote. |
| 116 | 116 | let second = TursoStore::open(&path, &dir.join("storage")).await.unwrap(); |
| 117 | - assert_eq!(second.workspace().await.unwrap().unwrap().name, "İz"); | |
| 117 | + assert_eq!(second.workspace().await.unwrap().unwrap().name, "iz"); | |
| 118 | 118 | drop(second); |
| 119 | 119 | let _ = std::fs::remove_dir_all(&dir); |
| 120 | 120 | } |
| @@ -694,7 +694,7 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() { | ||
| 694 | 694 | port: 587, |
| 695 | 695 | username: "iz".into(), |
| 696 | 696 | password: Some("a-very-secret-string".into()), |
| 697 | - from_name: "İz".into(), | |
| 697 | + from_name: "iz".into(), | |
| 698 | 698 | from_address: "iz@iz.sh".into(), |
| 699 | 699 | }, |
| 700 | 700 | ) |
| @@ -705,7 +705,7 @@ async fn the_workspace_record_carries_the_sender_but_never_its_password() { | ||
| 705 | 705 | assert_eq!(ws.smtp_host.as_deref(), Some("smtp.fastmail.com")); |
| 706 | 706 | assert_eq!(ws.smtp_port, Some(587)); |
| 707 | 707 | assert_eq!(ws.smtp_username.as_deref(), Some("iz")); |
| 708 | - assert_eq!(ws.smtp_from_name.as_deref(), Some("İz")); | |
| 708 | + assert_eq!(ws.smtp_from_name.as_deref(), Some("iz")); | |
| 709 | 709 | assert_eq!(ws.smtp_from_address.as_deref(), Some("iz@iz.sh")); |
| 710 | 710 | assert!(ws.smtp_password_set, "the screen must be able to say 'set'"); |
| 711 | 711 | |
| @@ -727,7 +727,7 @@ async fn a_save_with_no_password_typed_keeps_the_stored_one() { | ||
| 727 | 727 | port: 587, |
| 728 | 728 | username: "iz".into(), |
| 729 | 729 | password: Some("keep-me".into()), |
| 730 | - from_name: "İz".into(), | |
| 730 | + from_name: "iz".into(), | |
| 731 | 731 | from_address: "iz@iz.sh".into(), |
| 732 | 732 | }; |
| 733 | 733 | scratch |
| @@ -764,7 +764,7 @@ async fn a_typed_password_replaces_the_stored_one() { | ||
| 764 | 764 | port: 587, |
| 765 | 765 | username: "iz".into(), |
| 766 | 766 | password: Some("the-old-one".into()), |
| 767 | - from_name: "İz".into(), | |
| 767 | + from_name: "iz".into(), | |
| 768 | 768 | from_address: "iz@iz.sh".into(), |
| 769 | 769 | }; |
| 770 | 770 | scratch |
| @@ -801,7 +801,7 @@ async fn the_stored_password_is_not_the_plaintext_on_disk() { | ||
| 801 | 801 | port: 587, |
| 802 | 802 | username: "iz".into(), |
| 803 | 803 | password: Some("a-very-secret-string".into()), |
| 804 | - from_name: "İz".into(), | |
| 804 | + from_name: "iz".into(), | |
| 805 | 805 | from_address: "iz@iz.sh".into(), |
| 806 | 806 | }, |
| 807 | 807 | ) |
| @@ -855,7 +855,7 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() { | ||
| 855 | 855 | port: 587, |
| 856 | 856 | username: "iz".into(), |
| 857 | 857 | password: Some("a-very-secret-string".into()), |
| 858 | - from_name: "İz".into(), | |
| 858 | + from_name: "iz".into(), | |
| 859 | 859 | from_address: "iz@iz.sh".into(), |
| 860 | 860 | }, |
| 861 | 861 | ) |
| @@ -889,7 +889,7 @@ async fn a_password_that_will_not_decrypt_reads_back_as_none() { | ||
| 889 | 889 | port: 587, |
| 890 | 890 | username: "iz".into(), |
| 891 | 891 | password: Some("a-fresh-password".into()), |
| 892 | - from_name: "İz".into(), | |
| 892 | + from_name: "iz".into(), | |
| 893 | 893 | from_address: "iz@iz.sh".into(), |
| 894 | 894 | }, |
| 895 | 895 | ) |
| @@ -4368,7 +4368,7 @@ async fn an_invite_mail_is_owed_without_a_rule() { | ||
| 4368 | 4368 | let now = OffsetDateTime::now_utc(); |
| 4369 | 4369 | |
| 4370 | 4370 | let invite = store |
| 4371 | - .queue_invite("newcomer@iz.sh", "Join İz", "Come aboard.", now) | |
| 4371 | + .queue_invite("newcomer@iz.sh", "Join iz", "Come aboard.", now) | |
| 4372 | 4372 | .await |
| 4373 | 4373 | .unwrap(); |
| 4374 | 4374 | assert_eq!(invite.rule_id, None); |
| @@ -4391,7 +4391,7 @@ async fn an_invite_mail_with_no_sender_is_held_not_failed() { | ||
| 4391 | 4391 | let (dir, store, _workspace, _admin) = shared().await; |
| 4392 | 4392 | let now = OffsetDateTime::now_utc(); |
| 4393 | 4393 | store |
| 4394 | - .queue_invite("newcomer@iz.sh", "Join İz", "Come aboard.", now) | |
| 4394 | + .queue_invite("newcomer@iz.sh", "Join iz", "Come aboard.", now) | |
| 4395 | 4395 | .await |
| 4396 | 4396 | .unwrap(); |
| 4397 | 4397 | |
| @@ -4438,7 +4438,7 @@ async fn two_passes_over_one_owed_mail_send_it_once() { | ||
| 4438 | 4438 | let (dir, store, _workspace, _admin) = shared().await; |
| 4439 | 4439 | let now = OffsetDateTime::now_utc(); |
| 4440 | 4440 | store |
| 4441 | - .queue_invite("newcomer@iz.sh", "Join İz", "Come aboard.", now) | |
| 4441 | + .queue_invite("newcomer@iz.sh", "Join iz", "Come aboard.", now) | |
| 4442 | 4442 | .await |
| 4443 | 4443 | .unwrap(); |
| 4444 | 4444 | |
| @@ -4525,7 +4525,7 @@ async fn a_lease_that_expires_gives_the_mail_back() { | ||
| 4525 | 4525 | let store = &scratch.store; |
| 4526 | 4526 | let now = OffsetDateTime::now_utc(); |
| 4527 | 4527 | let invite = store |
| 4528 | - .queue_invite("newcomer@iz.sh", "Join İz", "Come aboard.", now) | |
| 4528 | + .queue_invite("newcomer@iz.sh", "Join iz", "Come aboard.", now) | |
| 4529 | 4529 | .await |
| 4530 | 4530 | .unwrap(); |
| 4531 | 4531 | |
| @@ -5659,7 +5659,7 @@ async fn a_sender_check_is_recorded_apart_from_a_test_and_cleared_on_edit() { | ||
| 5659 | 5659 | port: 465, |
| 5660 | 5660 | username: "iz".into(), |
| 5661 | 5661 | password: Some("hunter2".into()), |
| 5662 | - from_name: "İz".into(), | |
| 5662 | + from_name: "iz".into(), | |
| 5663 | 5663 | from_address: "iz@iz.sh".into(), |
| 5664 | 5664 | }; |
| 5665 | 5665 | store |
| @@ -5722,7 +5722,7 @@ async fn a_sender_check_is_recorded_apart_from_a_test_and_cleared_on_edit() { | ||
| 5722 | 5722 | // carries a live-shaped database across it. |
| 5723 | 5723 | // --------------------------------------------------------------------------- |
| 5724 | 5724 | |
| 5725 | -/// Builds a database at the PRE-COLLAPSE schema — the shape İz was actually | |
| 5725 | +/// Builds a database at the PRE-COLLAPSE schema — the shape iz was actually | |
| 5726 | 5726 | /// deployed with, kept verbatim in `tests/fixtures/` — and fills it with the |
| 5727 | 5727 | /// kinds of row a live workspace holds, blobs included. |
| 5728 | 5728 | async fn live_shaped_database() -> (PathBuf, String) { |
| @@ -5820,7 +5820,7 @@ fn backups_beside(dir: &PathBuf) -> Vec<String> { | ||
| 5820 | 5820 | found |
| 5821 | 5821 | } |
| 5822 | 5822 | |
| 5823 | -/// Brings a `live_shaped_database` up to the shape İz deployed between the | |
| 5823 | +/// Brings a `live_shaped_database` up to the shape iz deployed between the | |
| 5824 | 5824 | /// schema collapse and today: the `tag` table exists, tasks wear `tag_id`, |
| 5825 | 5825 | /// and each board carries its default `General` plus a tag the admin made — |
| 5826 | 5826 | /// with the four declared-schema objects a live database still lacks absent, |
| @@ -6729,7 +6729,7 @@ async fn a_hold_never_pulls_a_leased_row_back_under_the_pass_that_took_it() { | ||
| 6729 | 6729 | let _ = std::fs::remove_dir_all(&dir); |
| 6730 | 6730 | } |
| 6731 | 6731 | |
| 6732 | -/// A workspace with no window is İz as it was: a trigger is a mail, sent | |
| 6732 | +/// A workspace with no window is iz as it was: a trigger is a mail, sent | |
| 6733 | 6733 | /// the moment it is owed. |
| 6734 | 6734 | #[tokio::test] |
| 6735 | 6735 | async fn no_window_sends_each_trigger_as_it_happens() { |
crates/iz-web/Cargo.tomlmodified+1 -1
| @@ -4,7 +4,7 @@ version.workspace = true | ||
| 4 | 4 | edition.workspace = true |
| 5 | 5 | license.workspace = true |
| 6 | 6 | repository.workspace = true |
| 7 | -description = "İz web app: topcoat UI, routes and the server" | |
| 7 | +description = "iz web app: topcoat UI, routes and the server" | |
| 8 | 8 | |
| 9 | 9 | [dependencies] |
| 10 | 10 | topcoat = { version = "0.6.2", default-features = false, features = [ |
crates/iz-web/src/detail.rsmodified+1 -1
| @@ -2228,7 +2228,7 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool, tab: Tab) | ||
| 2228 | 2228 | for entry in &detail.activity { |
| 2229 | 2229 | <div class="activity-line"> |
| 2230 | 2230 | <span class="activity-stamp">(entry.moment_in(zone))</span> |
| 2231 | - <strong class="activity-who">(entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "İz".to_string()))</strong> | |
| 2231 | + <strong class="activity-who">(entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "iz".to_string()))</strong> | |
| 2232 | 2232 | <span class="activity-what">(entry.sentence())</span> |
| 2233 | 2233 | </div> |
| 2234 | 2234 | } |
crates/iz-web/src/files.rsmodified+2 -2
| @@ -120,7 +120,7 @@ fn mime_of_extension(ext: &str) -> Option<&'static str> { | ||
| 120 | 120 | /// true for a mime type a browser renders on its own ([`renders_inline`]) and |
| 121 | 121 | /// the caller did not ask for a forced download (`?dl=1`) — an uploaded HTML |
| 122 | 122 | /// or SVG file stays `attachment` either way, so it is offered to save rather |
| 123 | -/// than run on İz's origin. The ASCII fallback keeps only characters no | |
| 123 | +/// than run on iz's origin. The ASCII fallback keeps only characters no | |
| 124 | 124 | /// quoting scheme could turn into a delimiter or a control character; |
| 125 | 125 | /// `filename*` carries the real name, percent-encoded, for browsers that read |
| 126 | 126 | /// it. |
| @@ -173,7 +173,7 @@ pub(crate) enum ViewerKind { | ||
| 173 | 173 | Video, |
| 174 | 174 | Audio, |
| 175 | 175 | Pdf, |
| 176 | - /// A spreadsheet İz reads itself and lays out as a table — no browser | |
| 176 | + /// A spreadsheet iz reads itself and lays out as a table — no browser | |
| 177 | 177 | /// renders one, so this is the only viewer whose bytes are parsed here |
| 178 | 178 | /// rather than handed to an element. |
| 179 | 179 | Sheet, |
crates/iz-web/src/layout.rsmodified+7 -7
| @@ -16,7 +16,7 @@ use topcoat::{ | ||
| 16 | 16 | use crate::i18n::{Key, Lang, t}; |
| 17 | 17 | use crate::server::{FAMILY_KEY, current_user, store}; |
| 18 | 18 | |
| 19 | -/// The İz monogram again, as the tab icon: the same drawing as `wordmark`, | |
| 19 | +/// The iz monogram again, as the tab icon: the same drawing as `wordmark`, | |
| 20 | 20 | /// inlined because it must carry its own colours — a data URI has no page to |
| 21 | 21 | /// inherit `currentColor` or the accent token from, so the two themes are |
| 22 | 22 | /// spelled out in a media query inside the SVG. |
| @@ -30,19 +30,19 @@ const FAVICON: &str = "data:image/svg+xml,\ | ||
| 30 | 30 | <path class='s' d='M11.4 10.6h9.3L11.4 19.8h9.5' fill='none' \ |
| 31 | 31 | stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>"; |
| 32 | 32 | |
| 33 | -/// The İz monogram — a dotted `i` beside a stroked `z`, the trace the product | |
| 33 | +/// The iz monogram — a dotted `i` beside a stroked `z`, the trace the product | |
| 34 | 34 | /// is named for. It takes `currentColor` for its strokes and the accent for |
| 35 | 35 | /// its tittle, so one drawing serves both skins and both themes. |
| 36 | 36 | /// |
| 37 | -/// The monogram and the wordmark are alternates, never a pair: `İz` spells the | |
| 38 | -/// first two letters of `İz`, so standing them side by side reads as a | |
| 37 | +/// The monogram and the wordmark are alternates, never a pair: `iz` spells the | |
| 38 | +/// first two letters of `iz`, so standing them side by side reads as a | |
| 39 | 39 | /// stutter no amount of space or framing repairs. The mark carries the chrome, |
| 40 | 40 | /// where the name is already known and the room is 44px; the word carries the |
| 41 | 41 | /// front door, where a stranger arrives and nothing else has said it yet. |
| 42 | 42 | pub(crate) async fn mark(cx: &Cx) -> Result { |
| 43 | 43 | view! { |
| 44 | 44 | cx => |
| 45 | - <a class="wordmark" href="/" aria-label="İz"> | |
| 45 | + <a class="wordmark" href="/" aria-label="iz"> | |
| 46 | 46 | <svg class="wordmark-mark" width="24" height="24" viewBox="0 0 24 24" |
| 47 | 47 | aria-hidden="true"> |
| 48 | 48 | <rect x="3.1" y="9.4" width="4.4" height="11.6" rx="2.2" |
| @@ -62,7 +62,7 @@ pub(crate) async fn wordmark(cx: &Cx) -> Result { | ||
| 62 | 62 | view! { |
| 63 | 63 | cx => |
| 64 | 64 | <a class="wordmark wordmark-lone" href="/"> |
| 65 | - <span class="wordmark-text">"İz"</span> | |
| 65 | + <span class="wordmark-text">"iz"</span> | |
| 66 | 66 | </a> |
| 67 | 67 | } |
| 68 | 68 | } |
| @@ -978,7 +978,7 @@ async fn root_layout(cx: &Cx, slot: Result) -> Result { | ||
| 978 | 978 | rel="stylesheet" |
| 979 | 979 | href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,wght@0,400;0,600;1,400;1,600&display=swap" |
| 980 | 980 | > |
| 981 | - <title>"İz"</title> | |
| 981 | + <title>"iz"</title> | |
| 982 | 982 | <link rel="icon" href=(FAVICON)> |
| 983 | 983 | <link rel="stylesheet" href=(STYLE)> |
| 984 | 984 | topcoat::runtime::script() |
crates/iz-web/src/main.rsmodified+1 -1
| @@ -56,7 +56,7 @@ async fn main() { | ||
| 56 | 56 | // config/iz.toml is read here, before anything is opened, and written with |
| 57 | 57 | // development defaults if it is not there yet. A broken key stops the |
| 58 | 58 | // boot with its name in the message: the failure this prevents is not an |
| 59 | - // empty database, it is a second İz writing a different file while | |
| 59 | + // empty database, it is a second iz writing a different file while | |
| 60 | 60 | // everyone believes they share a board. |
| 61 | 61 | let config = match iz_core::Config::load() { |
| 62 | 62 | Ok(config) => config, |
crates/iz-web/src/server.rsmodified+4 -4
| @@ -685,7 +685,7 @@ pub fn back_to(cx: &Cx, nowhere: &str) -> String { | ||
| 685 | 685 | /// function handler answers with a redirect back to the page it came from, and |
| 686 | 686 | /// the value — the whole refusal — sits in a body nobody will ever look at. |
| 687 | 687 | /// The click then looks like nothing happening, which is the worst answer |
| 688 | -/// İz can give. | |
| 688 | +/// iz can give. | |
| 689 | 689 | /// |
| 690 | 690 | /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`, |
| 691 | 691 | /// and the page renders it from the query. This is one place rather than |
| @@ -763,7 +763,7 @@ fn carrying(location: &str, code: &str, called: &str) -> Option<String> { | ||
| 763 | 763 | } |
| 764 | 764 | // The Location we are rewriting came from the form post's Referer, and on a |
| 765 | 765 | // cross-origin post the Referer is whatever the other site is. Sending the |
| 766 | - // browser back there would make İz an open redirect, so the address is | |
| 766 | + // browser back there would make iz an open redirect, so the address is | |
| 767 | 767 | // rebuilt from its path and query alone and anything that is not a plain |
| 768 | 768 | // absolute path is answered with the board. |
| 769 | 769 | let here = same_origin(location); |
| @@ -866,7 +866,7 @@ mod refusal_redirect_tests { | ||
| 866 | 866 | } |
| 867 | 867 | |
| 868 | 868 | // The Referer of a cross-origin post is the other site's address, and it |
| 869 | - // reaches this function as the Location. İz answers on its own ground or | |
| 869 | + // reaches this function as the Location. iz answers on its own ground or | |
| 870 | 870 | // not at all. |
| 871 | 871 | #[test] |
| 872 | 872 | fn another_site_cannot_be_redirected_to() { |
| @@ -885,7 +885,7 @@ mod refusal_redirect_tests { | ||
| 885 | 885 | } |
| 886 | 886 | // An address with a path keeps the path — it is read as a path on this |
| 887 | 887 | // site, which is the point: whatever the Referer claimed, the browser |
| 888 | - // is sent somewhere on İz. | |
| 888 | + // is sent somewhere on iz. | |
| 889 | 889 | let carried = carrying( |
| 890 | 890 | "http://elsewhere.example/steal?task=DZ-01", |
| 891 | 891 | "cycle", |
crates/iz-web/src/settings.rsmodified+3 -3
| @@ -443,7 +443,7 @@ async fn save_sender( | ||
| 443 | 443 | /// went so the answer survives a reload. |
| 444 | 444 | /// |
| 445 | 445 | /// It goes to their own address and nowhere else. A test that could be |
| 446 | -/// pointed at an address somebody typed would be a way to make İz mail a | |
| 446 | +/// pointed at an address somebody typed would be a way to make iz mail a | |
| 447 | 447 | /// stranger on demand, which is a thing worth not building. |
| 448 | 448 | /// How long to wait for a mail server before writing the attempt off. |
| 449 | 449 | /// |
| @@ -1097,7 +1097,7 @@ async fn sender_now(cx: &Cx, zone: time::UtcOffset) -> Result<Sender> { | ||
| 1097 | 1097 | |
| 1098 | 1098 | /// Whether a typed address is an origin a link can be built on: an http or |
| 1099 | 1099 | /// https scheme, a host after it, and no whitespace anywhere. A path is |
| 1100 | -/// allowed — İz behind `example.com/iz` is a real deployment — but a | |
| 1100 | +/// allowed — iz behind `example.com/iz` is a real deployment — but a | |
| 1101 | 1101 | /// bare host or a mail address is not. |
| 1102 | 1102 | fn is_origin(value: &str) -> bool { |
| 1103 | 1103 | let Some(rest) = value |
| @@ -1407,7 +1407,7 @@ async fn settings_page(cx: &Cx) -> Result { | ||
| 1407 | 1407 | type="text" |
| 1408 | 1408 | name="from_name" |
| 1409 | 1409 | value=(sender.from_name.clone()) |
| 1410 | - placeholder="İz" | |
| 1410 | + placeholder="iz" | |
| 1411 | 1411 | > |
| 1412 | 1412 | </label> |
| 1413 | 1413 | <label class="field"> |
crates/iz-web/tests/browser/run.shmodified+2 -2
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #!/usr/bin/env bash |
| 2 | -# Runs the browser checks against a throwaway İz and a fake im beside it: | |
| 2 | +# Runs the browser checks against a throwaway iz and a fake im beside it: | |
| 3 | 3 | # its own database, its own ports, torn down after. Never touches |
| 4 | 4 | # config/iz.toml or iz.db — the server reads its config from the working |
| 5 | 5 | # directory, so it is given a directory of its own. |
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | # |
| 13 | 13 | # crates/iz-web/tests/browser/run.sh |
| 14 | 14 | # |
| 15 | -# Playwright is not a dependency of this repo and never will be: İz has | |
| 15 | +# Playwright is not a dependency of this repo and never will be: iz has | |
| 16 | 16 | # no node in it. It is installed once into ~/.cache/iz/browser-tests |
| 17 | 17 | # (Chromium included, ~120MB) the first time this runs, and found there |
| 18 | 18 | # every time after. IZ_PLAYWRIGHT and PLAYWRIGHT_BROWSERS_PATH override |
crates/iz-web/tests/browser/soft-nav.mjsmodified+2 -2
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | // The one check `cargo test` cannot make: that the soft swap actually holds |
| 2 | -// in a browser. `tests/http.rs` asserts the shape of the script İz serves; | |
| 2 | +// in a browser. `tests/http.rs` asserts the shape of the script iz serves; | |
| 3 | 3 | // only a real engine runs it. |
| 4 | 4 | // |
| 5 | 5 | // Guards the URL-lag class. `swap()` (`src/layout.rs`) replaces the body, |
| @@ -15,7 +15,7 @@ | ||
| 15 | 15 | // round-trip. That first request is also what provisions the workspace |
| 16 | 16 | // owner, the fake's admin:true doing what the claim did. |
| 17 | 17 | // |
| 18 | -// Playwright lives outside the repo — İz has no node dependency and | |
| 18 | +// Playwright lives outside the repo — iz has no node dependency and | |
| 19 | 19 | // gains none here. Point PLAYWRIGHT_BROWSERS_PATH at the browser download |
| 20 | 20 | // and IZ_PLAYWRIGHT at the installed package (ESM resolves imports from |
| 21 | 21 | // this file's directory, not the working one, so a bare name will not do). |
crates/iz-web/tests/http.rsmodified+8 -8
| @@ -811,7 +811,7 @@ async fn sender_saved(app: &App, admin: &str) -> bool { | ||
| 811 | 811 | ("port", "465"), |
| 812 | 812 | ("username", "iz"), |
| 813 | 813 | ("password", SENDER_PASSWORD), |
| 814 | - ("from_name", "İz"), | |
| 814 | + ("from_name", "iz"), | |
| 815 | 815 | ("from_address", "iz@iz.sh"), |
| 816 | 816 | ], |
| 817 | 817 | ) |
| @@ -2478,7 +2478,7 @@ async fn only_an_admin_may_write_the_sender() { | ||
| 2478 | 2478 | ("port", "587"), |
| 2479 | 2479 | ("username", "emre"), |
| 2480 | 2480 | ("password", "let-me-in"), |
| 2481 | - ("from_name", "İz"), | |
| 2481 | + ("from_name", "iz"), | |
| 2482 | 2482 | ("from_address", "emre@iz.sh"), |
| 2483 | 2483 | ], |
| 2484 | 2484 | ) |
| @@ -2515,7 +2515,7 @@ async fn a_signed_out_browser_may_not_write_the_sender() { | ||
| 2515 | 2515 | ("port", "587"), |
| 2516 | 2516 | ("username", "nobody"), |
| 2517 | 2517 | ("password", "let-me-in"), |
| 2518 | - ("from_name", "İz"), | |
| 2518 | + ("from_name", "iz"), | |
| 2519 | 2519 | ("from_address", "nobody@iz.sh"), |
| 2520 | 2520 | ], |
| 2521 | 2521 | ) |
| @@ -2549,7 +2549,7 @@ async fn an_edit_with_no_password_typed_keeps_the_stored_one() { | ||
| 2549 | 2549 | ("port", "587"), |
| 2550 | 2550 | ("username", "iz"), |
| 2551 | 2551 | ("password", ""), |
| 2552 | - ("from_name", "İz"), | |
| 2552 | + ("from_name", "iz"), | |
| 2553 | 2553 | ("from_address", "iz@iz.sh"), |
| 2554 | 2554 | ], |
| 2555 | 2555 | ) |
| @@ -2586,7 +2586,7 @@ async fn a_first_sender_with_no_password_is_refused_and_says_why() { | ||
| 2586 | 2586 | ("port", "587"), |
| 2587 | 2587 | ("username", "iz"), |
| 2588 | 2588 | ("password", ""), |
| 2589 | - ("from_name", "İz"), | |
| 2589 | + ("from_name", "iz"), | |
| 2590 | 2590 | ("from_address", "iz@iz.sh"), |
| 2591 | 2591 | ], |
| 2592 | 2592 | ) |
| @@ -2645,7 +2645,7 @@ async fn a_sender_field_that_cannot_work_is_refused_by_name() { | ||
| 2645 | 2645 | ("port", "587"), |
| 2646 | 2646 | ("username", "iz"), |
| 2647 | 2647 | ("password", SENDER_PASSWORD), |
| 2648 | - ("from_name", "İz"), | |
| 2648 | + ("from_name", "iz"), | |
| 2649 | 2649 | ("from_address", "iz@iz.sh"), |
| 2650 | 2650 | ]; |
| 2651 | 2651 | for (key, value) in *overrides { |
| @@ -6884,7 +6884,7 @@ async fn a_member_who_may_only_read_still_gets_the_tab_strip() { | ||
| 6884 | 6884 | ); |
| 6885 | 6885 | } |
| 6886 | 6886 | |
| 6887 | -/// A spreadsheet has no browser element behind it: İz reads the workbook | |
| 6887 | +/// A spreadsheet has no browser element behind it: iz reads the workbook | |
| 6888 | 6888 | /// itself and lays the sheet out as a table, tab strip and all. The upload is |
| 6889 | 6889 | /// a real xlsx, so this covers the sniffer, the reader and the view together. |
| 6890 | 6890 | #[tokio::test] |
| @@ -7061,7 +7061,7 @@ async fn an_admin_sets_the_address_mail_links_point_at() { | ||
| 7061 | 7061 | ("port", "465"), |
| 7062 | 7062 | ("username", "iz"), |
| 7063 | 7063 | ("password", SENDER_PASSWORD), |
| 7064 | - ("from_name", "İz"), | |
| 7064 | + ("from_name", "iz"), | |
| 7065 | 7065 | ("from_address", "iz@iz.sh"), |
| 7066 | 7066 | ("public_url", public_url), |
| 7067 | 7067 | ], |