forge
Explore
Log in

Don't you dare go Hollow

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 commit

29cf5413bfae64668fbae0e154fbb239dc597658Ahmet Kaan GümüşParent: cf63971
crates/iz-core/Cargo.tomlmodified+1 -1
@@ -4,7 +4,7 @@ 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 İz"7+description = "Domain model and storage for iz"
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/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 -- One plain SQL file, applied at boot to an empty database: Turso has no3 -- One plain SQL file, applied at boot to an empty database: Turso has no
4 -- migration runner of its own, and keeping the schema as SQL is what makes4 -- migration runner of its own, and keeping the schema as SQL is what makes
@@ -8,7 +8,7 @@
8 -- borrow its tail.8 -- borrow its tail.
9 --9 --
10 -- This file is the first migration, not the whole schema any more. It is the10 -- 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 -- everything after it is a numbered `0002_*.sql` beside it, and an empty12 -- everything after it is a numbered `0002_*.sql` beside it, and an empty
13 -- database is built by applying them in order. A live database is brought up13 -- database is built by applying them in order. A live database is brought up
14 -- by `iz reconcile`, not by re-running the files, so a change to a table14 -- 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 //! 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 İz quietly6+//! `database` does not mean "no data", it means a second iz 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.9 //! reconcilable afterwards.
@@ -50,12 +50,12 @@ database = "iz.db"
50 # Where attachments live as files, created on boot.50 # Where attachments live as files, created on boot.
51 storage = "storage"51 storage = "storage"
52 # The address the server listens on. Environment variables are ignored —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 the53+# this is the only thing that decides where iz binds. It is also the
54 # address mail links fall back to, until an admin sets one in Settings.54 # address mail links fall back to, until an admin sets one in Settings.
55 listen = "127.0.0.1:7654"55 listen = "127.0.0.1:7654"
56 # This app's public address, when it differs from `listen` — a proxy in56 # This app's public address, when it differs from `listen` — a proxy in
57 # front, for instance. It is where a sign-out sends the browser back to,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 key58+# and the address iz files itself under in im's family list, as the key
59 # "iz", so the family's switcher finds it without an admin typing it. A59 # "iz", so the family's switcher finds it without an admin typing it. A
60 # deployment the family reaches by name sets it. Empty: derived from60 # deployment the family reaches by name sets it. Empty: derived from
61 # `listen`.61 # `listen`.
@@ -68,9 +68,9 @@ live_seconds = 300
68 [oidc]68 [oidc]
69 # The provider that signs people in. Required: no default is guessed.69 # The provider that signs people in. Required: no default is guessed.
70 issuer = ""70 issuer = ""
71-# The client id İz presents to the provider. Required.71+# The client id iz presents to the provider. Required.
72 client_id = ""72 client_id = ""
73-# The client secret İz presents to the provider. Required. The file holds a73+# The client secret iz presents to the provider. Required. The file holds a
74 # live credential once this is filled in, so it is created mode 0600.74 # live credential once this is filled in, so it is created mode 0600.
75 client_secret = ""75 client_secret = ""
76 # Where the provider sends the browser back after sign-in. Not written here:76 # Where the provider sends the browser back after sign-in. Not written here:
@@ -107,7 +107,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[
107 "listen",107 "listen",
108 concat!(108 concat!(
109 "# The address the server listens on. Environment variables are ignored —\n",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 "# address mail links fall back to, until an admin sets one in Settings.\n",111 "# address mail links fall back to, until an admin sets one in Settings.\n",
112 "listen = \"127.0.0.1:7654\"\n"112 "listen = \"127.0.0.1:7654\"\n"
113 ),113 ),
@@ -126,7 +126,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[
126 concat!(126 concat!(
127 "# This app's public address, when it differs from `listen` — a proxy\n",127 "# This app's public address, when it differs from `listen` — a proxy\n",
128 "# in front, for instance. It is where a sign-out sends the browser\n",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 "# list, as the key \"iz\", so the family's switcher finds it without\n",130 "# list, as the key \"iz\", so the family's switcher finds it without\n",
131 "# an admin typing it. A deployment the family reaches by name sets\n",131 "# an admin typing it. A deployment the family reaches by name sets\n",
132 "# it. Empty: derived from `listen`.\n",132 "# it. Empty: derived from `listen`.\n",
@@ -163,14 +163,14 @@ struct Toml {
163 other: std::collections::BTreeMap<String, toml::Value>,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 #[derive(Clone, Debug, PartialEq, Eq)]167 #[derive(Clone, Debug, PartialEq, Eq)]
168 pub struct OidcConfig {168 pub struct OidcConfig {
169 /// The provider's issuer URL. Sign-ins from anywhere else are refused.169 /// The provider's issuer URL. Sign-ins from anywhere else are refused.
170 pub issuer: String,170 pub issuer: String,
171- /// The client id İz presents to the provider.171+ /// The client id iz presents to the provider.
172 pub client_id: String,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 pub client_secret: String,174 pub client_secret: String,
175 /// Where the provider sends the browser after sign-in. Defaults from175 /// Where the provider sends the browser after sign-in. Defaults from
176 /// `listen` when the file is silent about it.176 /// `listen` when the file is silent about it.
@@ -201,7 +201,7 @@ pub struct Config {
201 /// `redirect_uri` has. It is where the family sends the browser back201 /// `redirect_uri` has. It is where the family sends the browser back
202 /// to after a sign-out that started here.202 /// to after a sign-out that started here.
203 pub base_url: String,203 pub base_url: String,
204- /// The OIDC provider İz trusts.204+ /// The OIDC provider iz trusts.
205 pub oidc: OidcConfig,205 pub oidc: OidcConfig,
206 /// Whether `config/iz.toml` did not exist and was just written with the206 /// Whether `config/iz.toml` did not exist and was just written with the
207 /// development defaults this boot.207 /// development defaults this boot.
@@ -365,7 +365,7 @@ impl Config {
365 /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere365 /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere
366 /// and is reachable at none of it by name, so the loopback stands in: a366 /// and is reachable at none of it by name, so the loopback stands in: a
367 /// link somebody on the box can click beats a link nobody can. Whoever367 /// 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 is368+ /// puts iz behind a proxy sets the real address in Settings, which is
369 /// the only thing this defers to.369 /// the only thing this defers to.
370 pub fn listen_url(&self) -> String {370 pub fn listen_url(&self) -> String {
371 listen_url_of(&self.listen)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 //! 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/iz-core/src/mail.rsmodified+3 -3
@@ -184,8 +184,8 @@ impl Engine {
184 pub async fn send_test(&self, to: &str) -> std::result::Result<Duration, MailError> {184 pub async fn send_test(&self, to: &str) -> std::result::Result<Duration, MailError> {
185 let mail = Outgoing {185 let mail = Outgoing {
186 to: to.to_string(),186 to: to.to_string(),
187- subject: "İz test mail".to_string(),187+ subject: "iz test mail".to_string(),
188- body: "Somebody pressed the test button in İz's settings, and this \188+ body: "Somebody pressed the test button in iz's settings, and this \
189 is what came out. Nothing else was sent, and nobody else was \189 is what came out. Nothing else was sent, and nobody else was \
190 written to.\n"190 written to.\n"
191 .to_string(),191 .to_string(),
@@ -544,7 +544,7 @@ impl Engine {
544 .await?;544 .await?;
545 return Ok(());545 return Ok(());
546 }546 }
547- // The workspace's quiet window. Zero is what İz did before it had547+ // The workspace's quiet window. Zero is what iz did before it had
548 // one: every trigger its own mail, sent as soon as it is owed.548 // one: every trigger its own mail, sent as soon as it is owed.
549 let window = self549 let window = self
550 .store550 .store
crates/iz-core/src/store/turso_store.rsmodified+2 -2
@@ -1275,7 +1275,7 @@ impl Store for TursoStore {
1275 let workspace_id = Ulid::new().to_string();1275 let workspace_id = Ulid::new().to_string();
1276 let board_id = Ulid::new().to_string();1276 let board_id = Ulid::new().to_string();
1277 tx.execute(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 params![workspace_id.clone(), now.clone()],1279 params![workspace_id.clone(), now.clone()],
1280 )1280 )
1281 .await1281 .await
@@ -5238,7 +5238,7 @@ mod probe {
5238 port: 587,5238 port: 587,
5239 username: "iz".into(),5239 username: "iz".into(),
5240 password: Some("hunter2-and-then-some".into()),5240 password: Some("hunter2-and-then-some".into()),
5241- from_name: "İz".into(),5241+ from_name: "iz".into(),
5242 from_address: "iz@iz.sh".into(),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 -- 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.
@@ -11,7 +11,7 @@
11 -- database it describes is recreated — twenty migrations were collapsed into11 -- database it describes is recreated — twenty migrations were collapsed into
12 -- this file once for that reason, and a twenty-first would start the same rot12 -- this file once for that reason, and a twenty-first would start the same rot
13 -- over. The reasoning the old migrations carried is kept, on the tables it13 -- 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 next14+-- explains. The day iz runs somewhere with data worth keeping, the next
15 -- change becomes 0002 and this note goes away.15 -- change becomes 0002 and this note goes away.
16 16
17 CREATE TABLE workspace (17 CREATE TABLE workspace (
@@ -226,7 +226,7 @@ CREATE INDEX comment_by_task ON comment(task_id);
226 226
227 -- Attachments live in the database file, not on disk beside it.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 a229+-- iz is one process over one file, and a second place to keep state is a
230 -- second thing to back up, to lock, and to get out of step with the rows that230 -- second thing to back up, to lock, and to get out of step with the rows that
231 -- name it. And a path is exactly where an uploaded file name must never end231 -- name it. And a path is exactly where an uploaded file name must never end
232 -- up: `../../etc` is a valid file name and a terrible path. Keeping the bytes232 -- 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 // schema (its CREATE TABLE would fail on the first one) and must not114 // schema (its CREATE TABLE would fail on the first one) and must not
115 // lose what the first open wrote.115 // lose what the first open wrote.
116 let second = TursoStore::open(&path, &dir.join("storage")).await.unwrap();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 drop(second);118 drop(second);
119 let _ = std::fs::remove_dir_all(&dir);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 port: 587,694 port: 587,
695 username: "iz".into(),695 username: "iz".into(),
696 password: Some("a-very-secret-string".into()),696 password: Some("a-very-secret-string".into()),
697- from_name: "İz".into(),697+ from_name: "iz".into(),
698 from_address: "iz@iz.sh".into(),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 assert_eq!(ws.smtp_host.as_deref(), Some("smtp.fastmail.com"));705 assert_eq!(ws.smtp_host.as_deref(), Some("smtp.fastmail.com"));
706 assert_eq!(ws.smtp_port, Some(587));706 assert_eq!(ws.smtp_port, Some(587));
707 assert_eq!(ws.smtp_username.as_deref(), Some("iz"));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 assert_eq!(ws.smtp_from_address.as_deref(), Some("iz@iz.sh"));709 assert_eq!(ws.smtp_from_address.as_deref(), Some("iz@iz.sh"));
710 assert!(ws.smtp_password_set, "the screen must be able to say 'set'");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 port: 587,727 port: 587,
728 username: "iz".into(),728 username: "iz".into(),
729 password: Some("keep-me".into()),729 password: Some("keep-me".into()),
730- from_name: "İz".into(),730+ from_name: "iz".into(),
731 from_address: "iz@iz.sh".into(),731 from_address: "iz@iz.sh".into(),
732 };732 };
733 scratch733 scratch
@@ -764,7 +764,7 @@ async fn a_typed_password_replaces_the_stored_one() {
764 port: 587,764 port: 587,
765 username: "iz".into(),765 username: "iz".into(),
766 password: Some("the-old-one".into()),766 password: Some("the-old-one".into()),
767- from_name: "İz".into(),767+ from_name: "iz".into(),
768 from_address: "iz@iz.sh".into(),768 from_address: "iz@iz.sh".into(),
769 };769 };
770 scratch770 scratch
@@ -801,7 +801,7 @@ async fn the_stored_password_is_not_the_plaintext_on_disk() {
801 port: 587,801 port: 587,
802 username: "iz".into(),802 username: "iz".into(),
803 password: Some("a-very-secret-string".into()),803 password: Some("a-very-secret-string".into()),
804- from_name: "İz".into(),804+ from_name: "iz".into(),
805 from_address: "iz@iz.sh".into(),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 port: 587,855 port: 587,
856 username: "iz".into(),856 username: "iz".into(),
857 password: Some("a-very-secret-string".into()),857 password: Some("a-very-secret-string".into()),
858- from_name: "İz".into(),858+ from_name: "iz".into(),
859 from_address: "iz@iz.sh".into(),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 port: 587,889 port: 587,
890 username: "iz".into(),890 username: "iz".into(),
891 password: Some("a-fresh-password".into()),891 password: Some("a-fresh-password".into()),
892- from_name: "İz".into(),892+ from_name: "iz".into(),
893 from_address: "iz@iz.sh".into(),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 let now = OffsetDateTime::now_utc();4368 let now = OffsetDateTime::now_utc();
4369 4369
4370 let invite = store4370 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 .await4372 .await
4373 .unwrap();4373 .unwrap();
4374 assert_eq!(invite.rule_id, None);4374 assert_eq!(invite.rule_id, None);
@@ -4391,7 +4391,7 @@ async fn an_invite_mail_with_no_sender_is_held_not_failed() {
4391 let (dir, store, _workspace, _admin) = shared().await;4391 let (dir, store, _workspace, _admin) = shared().await;
4392 let now = OffsetDateTime::now_utc();4392 let now = OffsetDateTime::now_utc();
4393 store4393 store
4394- .queue_invite("newcomer@iz.sh", "Join İz", "Come aboard.", now)4394+ .queue_invite("newcomer@iz.sh", "Join iz", "Come aboard.", now)
4395 .await4395 .await
4396 .unwrap();4396 .unwrap();
4397 4397
@@ -4438,7 +4438,7 @@ async fn two_passes_over_one_owed_mail_send_it_once() {
4438 let (dir, store, _workspace, _admin) = shared().await;4438 let (dir, store, _workspace, _admin) = shared().await;
4439 let now = OffsetDateTime::now_utc();4439 let now = OffsetDateTime::now_utc();
4440 store4440 store
4441- .queue_invite("newcomer@iz.sh", "Join İz", "Come aboard.", now)4441+ .queue_invite("newcomer@iz.sh", "Join iz", "Come aboard.", now)
4442 .await4442 .await
4443 .unwrap();4443 .unwrap();
4444 4444
@@ -4525,7 +4525,7 @@ async fn a_lease_that_expires_gives_the_mail_back() {
4525 let store = &scratch.store;4525 let store = &scratch.store;
4526 let now = OffsetDateTime::now_utc();4526 let now = OffsetDateTime::now_utc();
4527 let invite = store4527 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 .await4529 .await
4530 .unwrap();4530 .unwrap();
4531 4531
@@ -5659,7 +5659,7 @@ async fn a_sender_check_is_recorded_apart_from_a_test_and_cleared_on_edit() {
5659 port: 465,5659 port: 465,
5660 username: "iz".into(),5660 username: "iz".into(),
5661 password: Some("hunter2".into()),5661 password: Some("hunter2".into()),
5662- from_name: "İz".into(),5662+ from_name: "iz".into(),
5663 from_address: "iz@iz.sh".into(),5663 from_address: "iz@iz.sh".into(),
5664 };5664 };
5665 store5665 store
@@ -5722,7 +5722,7 @@ async fn a_sender_check_is_recorded_apart_from_a_test_and_cleared_on_edit() {
5722 // carries a live-shaped database across it.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 actually5725+/// Builds a database at the PRE-COLLAPSE schema — the shape iz was actually
5726 /// deployed with, kept verbatim in `tests/fixtures/` — and fills it with the5726 /// deployed with, kept verbatim in `tests/fixtures/` — and fills it with the
5727 /// kinds of row a live workspace holds, blobs included.5727 /// kinds of row a live workspace holds, blobs included.
5728 async fn live_shaped_database() -> (PathBuf, String) {5728 async fn live_shaped_database() -> (PathBuf, String) {
@@ -5820,7 +5820,7 @@ fn backups_beside(dir: &PathBuf) -> Vec<String> {
5820 found5820 found
5821 }5821 }
5822 5822
5823-/// Brings a `live_shaped_database` up to the shape İz deployed between the5823+/// Brings a `live_shaped_database` up to the shape iz deployed between the
5824 /// schema collapse and today: the `tag` table exists, tasks wear `tag_id`,5824 /// schema collapse and today: the `tag` table exists, tasks wear `tag_id`,
5825 /// and each board carries its default `General` plus a tag the admin made —5825 /// and each board carries its default `General` plus a tag the admin made —
5826 /// with the four declared-schema objects a live database still lacks absent,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 let _ = std::fs::remove_dir_all(&dir);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, sent6732+/// A workspace with no window is iz as it was: a trigger is a mail, sent
6733 /// the moment it is owed.6733 /// the moment it is owed.
6734 #[tokio::test]6734 #[tokio::test]
6735 async fn no_window_sends_each_trigger_as_it_happens() {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 edition.workspace = true4 edition.workspace = true
5 license.workspace = true5 license.workspace = true
6 repository.workspace = true6 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 [dependencies]9 [dependencies]
10 topcoat = { version = "0.6.2", default-features = false, features = [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 for entry in &detail.activity {2228 for entry in &detail.activity {
2229 <div class="activity-line">2229 <div class="activity-line">
2230 <span class="activity-stamp">(entry.moment_in(zone))</span>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 <span class="activity-what">(entry.sentence())</span>2232 <span class="activity-what">(entry.sentence())</span>
2233 </div>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 /// true for a mime type a browser renders on its own ([`renders_inline`]) and120 /// true for a mime type a browser renders on its own ([`renders_inline`]) and
121 /// the caller did not ask for a forced download (`?dl=1`) — an uploaded HTML121 /// the caller did not ask for a forced download (`?dl=1`) — an uploaded HTML
122 /// or SVG file stays `attachment` either way, so it is offered to save rather122 /// 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 no123+/// than run on iz's origin. The ASCII fallback keeps only characters no
124 /// quoting scheme could turn into a delimiter or a control character;124 /// quoting scheme could turn into a delimiter or a control character;
125 /// `filename*` carries the real name, percent-encoded, for browsers that read125 /// `filename*` carries the real name, percent-encoded, for browsers that read
126 /// it.126 /// it.
@@ -173,7 +173,7 @@ pub(crate) enum ViewerKind {
173 Video,173 Video,
174 Audio,174 Audio,
175 Pdf,175 Pdf,
176- /// A spreadsheet İz reads itself and lays out as a table — no browser176+ /// A spreadsheet iz reads itself and lays out as a table — no browser
177 /// renders one, so this is the only viewer whose bytes are parsed here177 /// renders one, so this is the only viewer whose bytes are parsed here
178 /// rather than handed to an element.178 /// rather than handed to an element.
179 Sheet,179 Sheet,
crates/iz-web/src/layout.rsmodified+7 -7
@@ -16,7 +16,7 @@ use topcoat::{
16 use crate::i18n::{Key, Lang, t};16 use crate::i18n::{Key, Lang, t};
17 use crate::server::{FAMILY_KEY, current_user, store};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 /// inlined because it must carry its own colours — a data URI has no page to20 /// inlined because it must carry its own colours — a data URI has no page to
21 /// inherit `currentColor` or the accent token from, so the two themes are21 /// inherit `currentColor` or the accent token from, so the two themes are
22 /// spelled out in a media query inside the SVG.22 /// spelled out in a media query inside the SVG.
@@ -30,19 +30,19 @@ const FAVICON: &str = "data:image/svg+xml,\
30 <path class='s' d='M11.4 10.6h9.3L11.4 19.8h9.5' fill='none' \30 <path class='s' d='M11.4 10.6h9.3L11.4 19.8h9.5' fill='none' \
31 stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>";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 product33+/// The iz monogram — a dotted `i` beside a stroked `z`, the trace the product
34 /// is named for. It takes `currentColor` for its strokes and the accent for34 /// is named for. It takes `currentColor` for its strokes and the accent for
35 /// its tittle, so one drawing serves both skins and both themes.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 the37+/// The monogram and the wordmark are alternates, never a pair: `iz` spells the
38-/// first two letters of `İz`, so standing them side by side reads as a38+/// first two letters of `iz`, so standing them side by side reads as a
39 /// stutter no amount of space or framing repairs. The mark carries the chrome,39 /// stutter no amount of space or framing repairs. The mark carries the chrome,
40 /// where the name is already known and the room is 44px; the word carries the40 /// where the name is already known and the room is 44px; the word carries the
41 /// front door, where a stranger arrives and nothing else has said it yet.41 /// front door, where a stranger arrives and nothing else has said it yet.
42 pub(crate) async fn mark(cx: &Cx) -> Result {42 pub(crate) async fn mark(cx: &Cx) -> Result {
43 view! {43 view! {
44 cx =>44 cx =>
45- <a class="wordmark" href="/" aria-label="İz">45+ <a class="wordmark" href="/" aria-label="iz">
46 <svg class="wordmark-mark" width="24" height="24" viewBox="0 0 24 24"46 <svg class="wordmark-mark" width="24" height="24" viewBox="0 0 24 24"
47 aria-hidden="true">47 aria-hidden="true">
48 <rect x="3.1" y="9.4" width="4.4" height="11.6" rx="2.2"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 view! {62 view! {
63 cx =>63 cx =>
64 <a class="wordmark wordmark-lone" href="/">64 <a class="wordmark wordmark-lone" href="/">
65- <span class="wordmark-text">"İz"</span>65+ <span class="wordmark-text">"iz"</span>
66 </a>66 </a>
67 }67 }
68 }68 }
@@ -978,7 +978,7 @@ async fn root_layout(cx: &Cx, slot: Result) -> Result {
978 rel="stylesheet"978 rel="stylesheet"
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"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 <link rel="icon" href=(FAVICON)>982 <link rel="icon" href=(FAVICON)>
983 <link rel="stylesheet" href=(STYLE)>983 <link rel="stylesheet" href=(STYLE)>
984 topcoat::runtime::script()984 topcoat::runtime::script()
crates/iz-web/src/main.rsmodified+1 -1
@@ -56,7 +56,7 @@ async fn main() {
56 // config/iz.toml is read here, before anything is opened, and written with56 // config/iz.toml is read here, before anything is opened, and written with
57 // development defaults if it is not there yet. A broken key stops the57 // development defaults if it is not there yet. A broken key stops the
58 // boot with its name in the message: the failure this prevents is not an58 // 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 while59+ // empty database, it is a second iz writing a different file while
60 // everyone believes they share a board.60 // everyone believes they share a board.
61 let config = match iz_core::Config::load() {61 let config = match iz_core::Config::load() {
62 Ok(config) => config,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 /// function handler answers with a redirect back to the page it came from, and685 /// function handler answers with a redirect back to the page it came from, and
686 /// the value — the whole refusal — sits in a body nobody will ever look at.686 /// the value — the whole refusal — sits in a body nobody will ever look at.
687 /// The click then looks like nothing happening, which is the worst answer687 /// The click then looks like nothing happening, which is the worst answer
688-/// İz can give.688+/// iz can give.
689 ///689 ///
690 /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`,690 /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`,
691 /// and the page renders it from the query. This is one place rather than691 /// 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 // The Location we are rewriting came from the form post's Referer, and on a764 // The Location we are rewriting came from the form post's Referer, and on a
765 // cross-origin post the Referer is whatever the other site is. Sending the765 // 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 is766+ // browser back there would make iz an open redirect, so the address is
767 // rebuilt from its path and query alone and anything that is not a plain767 // rebuilt from its path and query alone and anything that is not a plain
768 // absolute path is answered with the board.768 // absolute path is answered with the board.
769 let here = same_origin(location);769 let here = same_origin(location);
@@ -866,7 +866,7 @@ mod refusal_redirect_tests {
866 }866 }
867 867
868 // The Referer of a cross-origin post is the other site's address, and it868 // 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 or869+ // reaches this function as the Location. iz answers on its own ground or
870 // not at all.870 // not at all.
871 #[test]871 #[test]
872 fn another_site_cannot_be_redirected_to() {872 fn another_site_cannot_be_redirected_to() {
@@ -885,7 +885,7 @@ mod refusal_redirect_tests {
885 }885 }
886 // An address with a path keeps the path — it is read as a path on this886 // An address with a path keeps the path — it is read as a path on this
887 // site, which is the point: whatever the Referer claimed, the browser887 // site, which is the point: whatever the Referer claimed, the browser
888- // is sent somewhere on İz.888+ // is sent somewhere on iz.
889 let carried = carrying(889 let carried = carrying(
890 "http://elsewhere.example/steal?task=DZ-01",890 "http://elsewhere.example/steal?task=DZ-01",
891 "cycle",891 "cycle",
crates/iz-web/src/settings.rsmodified+3 -3
@@ -443,7 +443,7 @@ async fn save_sender(
443 /// went so the answer survives a reload.443 /// went so the answer survives a reload.
444 ///444 ///
445 /// It goes to their own address and nowhere else. A test that could be445 /// 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 a446+/// pointed at an address somebody typed would be a way to make iz mail a
447 /// stranger on demand, which is a thing worth not building.447 /// stranger on demand, which is a thing worth not building.
448 /// How long to wait for a mail server before writing the attempt off.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 /// Whether a typed address is an origin a link can be built on: an http or1098 /// Whether a typed address is an origin a link can be built on: an http or
1099 /// https scheme, a host after it, and no whitespace anywhere. A path is1099 /// 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 a1100+/// allowed — iz behind `example.com/iz` is a real deployment — but a
1101 /// bare host or a mail address is not.1101 /// bare host or a mail address is not.
1102 fn is_origin(value: &str) -> bool {1102 fn is_origin(value: &str) -> bool {
1103 let Some(rest) = value1103 let Some(rest) = value
@@ -1407,7 +1407,7 @@ async fn settings_page(cx: &Cx) -> Result {
1407 type="text"1407 type="text"
1408 name="from_name"1408 name="from_name"
1409 value=(sender.from_name.clone())1409 value=(sender.from_name.clone())
1410- placeholder="İz"1410+ placeholder="iz"
1411 >1411 >
1412 </label>1412 </label>
1413 <label class="field">1413 <label class="field">
crates/iz-web/tests/browser/run.shmodified+2 -2
@@ -1,5 +1,5 @@
1 #!/usr/bin/env bash1 #!/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 # its own database, its own ports, torn down after. Never touches3 # its own database, its own ports, torn down after. Never touches
4 # config/iz.toml or iz.db — the server reads its config from the working4 # config/iz.toml or iz.db — the server reads its config from the working
5 # directory, so it is given a directory of its own.5 # directory, so it is given a directory of its own.
@@ -12,7 +12,7 @@
12 #12 #
13 # crates/iz-web/tests/browser/run.sh13 # crates/iz-web/tests/browser/run.sh
14 #14 #
15-# Playwright is not a dependency of this repo and never will be: İz has15+# Playwright is not a dependency of this repo and never will be: iz has
16 # no node in it. It is installed once into ~/.cache/iz/browser-tests16 # no node in it. It is installed once into ~/.cache/iz/browser-tests
17 # (Chromium included, ~120MB) the first time this runs, and found there17 # (Chromium included, ~120MB) the first time this runs, and found there
18 # every time after. IZ_PLAYWRIGHT and PLAYWRIGHT_BROWSERS_PATH override18 # 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 // The one check `cargo test` cannot make: that the soft swap actually holds1 // 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 // only a real engine runs it.3 // only a real engine runs it.
4 //4 //
5 // Guards the URL-lag class. `swap()` (`src/layout.rs`) replaces the body,5 // Guards the URL-lag class. `swap()` (`src/layout.rs`) replaces the body,
@@ -15,7 +15,7 @@
15 // round-trip. That first request is also what provisions the workspace15 // round-trip. That first request is also what provisions the workspace
16 // owner, the fake's admin:true doing what the claim did.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 and18+// Playwright lives outside the repo — iz has no node dependency and
19 // gains none here. Point PLAYWRIGHT_BROWSERS_PATH at the browser download19 // gains none here. Point PLAYWRIGHT_BROWSERS_PATH at the browser download
20 // and IZ_PLAYWRIGHT at the installed package (ESM resolves imports from20 // and IZ_PLAYWRIGHT at the installed package (ESM resolves imports from
21 // this file's directory, not the working one, so a bare name will not do).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 ("port", "465"),811 ("port", "465"),
812 ("username", "iz"),812 ("username", "iz"),
813 ("password", SENDER_PASSWORD),813 ("password", SENDER_PASSWORD),
814- ("from_name", "İz"),814+ ("from_name", "iz"),
815 ("from_address", "iz@iz.sh"),815 ("from_address", "iz@iz.sh"),
816 ],816 ],
817 )817 )
@@ -2478,7 +2478,7 @@ async fn only_an_admin_may_write_the_sender() {
2478 ("port", "587"),2478 ("port", "587"),
2479 ("username", "emre"),2479 ("username", "emre"),
2480 ("password", "let-me-in"),2480 ("password", "let-me-in"),
2481- ("from_name", "İz"),2481+ ("from_name", "iz"),
2482 ("from_address", "emre@iz.sh"),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 ("port", "587"),2515 ("port", "587"),
2516 ("username", "nobody"),2516 ("username", "nobody"),
2517 ("password", "let-me-in"),2517 ("password", "let-me-in"),
2518- ("from_name", "İz"),2518+ ("from_name", "iz"),
2519 ("from_address", "nobody@iz.sh"),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 ("port", "587"),2549 ("port", "587"),
2550 ("username", "iz"),2550 ("username", "iz"),
2551 ("password", ""),2551 ("password", ""),
2552- ("from_name", "İz"),2552+ ("from_name", "iz"),
2553 ("from_address", "iz@iz.sh"),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 ("port", "587"),2586 ("port", "587"),
2587 ("username", "iz"),2587 ("username", "iz"),
2588 ("password", ""),2588 ("password", ""),
2589- ("from_name", "İz"),2589+ ("from_name", "iz"),
2590 ("from_address", "iz@iz.sh"),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 ("port", "587"),2645 ("port", "587"),
2646 ("username", "iz"),2646 ("username", "iz"),
2647 ("password", SENDER_PASSWORD),2647 ("password", SENDER_PASSWORD),
2648- ("from_name", "İz"),2648+ ("from_name", "iz"),
2649 ("from_address", "iz@iz.sh"),2649 ("from_address", "iz@iz.sh"),
2650 ];2650 ];
2651 for (key, value) in *overrides {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 workbook6887+/// A spreadsheet has no browser element behind it: iz reads the workbook
6888 /// itself and lays the sheet out as a table, tab strip and all. The upload is6888 /// itself and lays the sheet out as a table, tab strip and all. The upload is
6889 /// a real xlsx, so this covers the sniffer, the reader and the view together.6889 /// a real xlsx, so this covers the sniffer, the reader and the view together.
6890 #[tokio::test]6890 #[tokio::test]
@@ -7061,7 +7061,7 @@ async fn an_admin_sets_the_address_mail_links_point_at() {
7061 ("port", "465"),7061 ("port", "465"),
7062 ("username", "iz"),7062 ("username", "iz"),
7063 ("password", SENDER_PASSWORD),7063 ("password", SENDER_PASSWORD),
7064- ("from_name", "İz"),7064+ ("from_name", "iz"),
7065 ("from_address", "iz@iz.sh"),7065 ("from_address", "iz@iz.sh"),
7066 ("public_url", public_url),7066 ("public_url", public_url),
7067 ],7067 ],