From 6c2d53c232dc6cbe3ace1322fb7f0d42f9c95822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 13 Sep 2026 20:13:58 +0300 Subject: [PATCH] iz-web: create assignee picker uses the edit pop-row Native checkboxes were a second widget. The create list is the same .pop-row as the task modal; the checkbox stays in the form, visually hidden. --- crates/iz-web/src/detail.rs | 28 ++++++++++++++++------------ style/main.scss | 2 ++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/crates/iz-web/src/detail.rs b/crates/iz-web/src/detail.rs index 95471b0..0353e30 100644 --- a/crates/iz-web/src/detail.rs +++ b/crates/iz-web/src/detail.rs @@ -140,7 +140,11 @@ pub enum Direction { /// Which task is `blocked` and which is `blocking`, from the task the modal /// is open on, the other task it names, and which way the form said the link /// runs. -pub(crate) fn resolve_direction(task_id: &str, other_id: &str, direction: Direction) -> (String, String) { +pub(crate) fn resolve_direction( + task_id: &str, + other_id: &str, + direction: Direction, +) -> (String, String) { match direction { Direction::BlockedBy => (task_id.to_string(), other_id.to_string()), Direction::Blocks => (other_id.to_string(), task_id.to_string()), @@ -378,7 +382,9 @@ async fn load_snapshot( None => { let rule = store.mail_rule(&decision.rule_id).await?; rules_cache.insert(decision.rule_id.clone(), rule); - rules_cache.get(decision.rule_id.as_str()).expect("just inserted") + rules_cache + .get(decision.rule_id.as_str()) + .expect("just inserted") } }; let rule_name = may_administer.then(|| { @@ -1819,14 +1825,12 @@ async fn dep_row<'a>( let cleared = edge.is_cleared(); let note = match direction { Direction::BlockedBy => match (edge.cleared_at, edge.done_at) { - (Some(at), _) => crate::i18n::cleared_dep_label( - lang, - &iz_core::board::day_label(at.date()), - ), - (None, Some(at)) => crate::i18n::done_dep_label( - lang, - &iz_core::board::day_label(at.date()), - ), + (Some(at), _) => { + crate::i18n::cleared_dep_label(lang, &iz_core::board::day_label(at.date())) + } + (None, Some(at)) => { + crate::i18n::done_dep_label(lang, &iz_core::board::day_label(at.date())) + } (None, None) => t(lang, Key::BlocksThisTask).to_string(), }, Direction::Blocks if cleared => t(lang, Key::NoLongerWaiting).to_string(), @@ -2962,8 +2966,8 @@ pub async fn new_task_modal<'a>(
for person in people { -