From 2258902789cf7ac465b4120c299aabb5a162f610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 30 Aug 2026 21:59:11 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(members):=20the=20columns=20?= =?UTF-8?q?are=20named,=20and=20only=20the=20address=20is=20elastic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The table was `table-layout: fixed` with one hardcoded `width: 30%` on the last column, which made the other three exactly a third of the remainder each — a geometry decided without reference to anything that would be in it. A mono-spaced address longer than that third ran out from under its own cell and printed across the role select beside it. The cells were `height: 48px` too, so the account cell — a word and a button — outgrew its row and hung over the border into the next one. Auto layout asks the content instead. Every column takes the width it needs, the row is as tall as the tallest thing in it, and the address — the one column whose length is somebody else's decision — absorbs the slack and ends in an ellipsis rather than in its neighbour. The columns carry names now rather than being addressed by position, so a fifth column cannot silently re-point a rule written as `:last-child`. Also: the mail server's own words are admin-only. Whether a task's mail reached somebody is a fact about the task and stays visible to everyone who can read it — that is deliberate and tested. But when a send failed, the chip printed `last_error` verbatim, which is a fact about the workspace's sender: a host, an account, a rejected credential. This app keeps that admin-only everywhere else, and `rule_name` on the very same line was already gated. Now gated where the line is built, so no view can print what it was never given. --- crates/izlek-web/src/detail.rs | 11 +++++++- crates/izlek-web/src/settings.rs | 16 +++++------ crates/izlek-web/tests/http.rs | 47 ++++++++++++++++++++++++++++++++ style/main.scss | 42 ++++++++++++++++++++++++---- 4 files changed, 101 insertions(+), 15 deletions(-) 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 { }