diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index ed67b42..f987af4 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -98,6 +98,15 @@ pub struct SendLine { /// The chip's tone — see `logs.rs`'s `QueueLine::state_kind`. pub state_kind: String, pub attempts: u32, + /// What the mail server said when it refused, and `None` for anyone who + /// may not administer — the same gate `rule_name` gets, for the same + /// reason. Which people a task mailed, and whether it arrived, is a fact + /// about the task and belongs to everyone who can read it. *Why the mail + /// server refused* is a fact about the workspace's sender — a host, an + /// account, a rejected credential — and this app keeps that admin-only + /// everywhere else (`/api/current_logs` is admin-gated; the live channel + /// will not even name `Topic::Queue` to a member). Gated here, where the + /// line is built, so no view can print what it was never given. pub last_error: Option, pub sent_at: Option, } @@ -397,7 +406,7 @@ async fn load_snapshot( state: state.to_string(), state_kind: state_kind.to_string(), attempts: send.attempts, - last_error: send.last_error.clone(), + last_error: may_administer.then(|| send.last_error.clone()).flatten(), sent_at: send.sent_at.map(|at| moment_label_in(at, zone)), } }) diff --git a/crates/izlek-web/src/settings.rs b/crates/izlek-web/src/settings.rs index e6081b6..17732e7 100644 --- a/crates/izlek-web/src/settings.rs +++ b/crates/izlek-web/src/settings.rs @@ -1532,10 +1532,10 @@ async fn settings_page(cx: &Cx) -> Result { - - - - + + + + @@ -1555,7 +1555,7 @@ async fn settings_page(cx: &Cx) -> Result { has_photo: member.has_photo, }; - - - + -
(t(lang, Key::NameCol))(t(lang, Key::AddressCol))(t(lang, Key::RoleCol))(t(lang, Key::AccountCol))(t(lang, Key::NameCol))(t(lang, Key::AddressCol))(t(lang, Key::RoleCol))
+ (crate::layout::avatar(cx, &member_person, "avatar-sm").await?) (member.display_name.clone()) @@ -1564,8 +1564,8 @@ async fn settings_page(cx: &Cx) -> Result { } (member.email.clone()) + (member.email.clone()) if member.is_owner || member.is_you { (member.role.as_str().to_string()) } else { @@ -1580,7 +1580,7 @@ async fn settings_page(cx: &Cx) -> Result { }