From a3f3384c30305bdea689336abc9895e8f16fd7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 01:28:28 +0300 Subject: [PATCH] Dependency rows open their task; cards list both directions as keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DEPENDENCIES panel rows are anchors now, the same shape the subtask panel already had; the unlink button keeps its own hit area beside them. The card summary listed who it is blocked by but only counted what it blocks — both directions list the keys. --- crates/izlek-web/src/board.rs | 4 +-- crates/izlek-web/src/detail.rs | 18 ++++++++---- crates/izlek-web/tests/http.rs | 54 ++++++++++++++++++++++++++++++++++ style/main.scss | 16 ++++++++++ 4 files changed, 84 insertions(+), 8 deletions(-) diff --git a/crates/izlek-web/src/board.rs b/crates/izlek-web/src/board.rs index 13f1681..d824c14 100644 --- a/crates/izlek-web/src/board.rs +++ b/crates/izlek-web/src/board.rs @@ -367,7 +367,7 @@ async fn render_card( default_tag_id: Option<&str>, lang: Lang, ) -> Result { - let blocks = card.blocks.len(); + let blocks = card.blocks.join(", "); let blocked_by = card.blocked_by.join(", "); let overdue = card.is_overdue(today); let deadline_parts = card.deadline_parts(today); @@ -423,7 +423,7 @@ async fn render_card( >
(card.task_key.clone()) - if blocks > 0 { (format!("{} {blocks}", t(lang, Key::Blocks))) } + if !blocks.is_empty() { (format!("{} {blocks}", t(lang, Key::Blocks))) } if !blocked_by.is_empty() { (format!("{} {blocked_by}", t(lang, Key::BlockedBy))) } diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index 2d82a48..6d7101b 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -1755,15 +1755,21 @@ async fn dep_row( Direction::Blocks => t(lang, Key::Blocks).to_uppercase(), }; let remove_title = t(lang, Key::RemoveThisLink); + let href = format!("/?task={}", edge.task_id); view! { cx =>
- (tag) - if cleared { (glyph::tick(cx).await?) } else { (glyph::lock(cx).await?) } - (edge.task_key.clone()) - (edge.title.clone()) -
- (note) + // One link, not two, the subtask row's own shape: tag, key, + // title and note are the same target, so the whole stretch + // between the row's edges and the X is the way in. + + (tag) + if cleared { (glyph::tick(cx).await?) } else { (glyph::lock(cx).await?) } + (edge.task_key.clone()) + (edge.title.clone()) +
+ (note) +
if may_write {