From c9b8984df23a578d9f1f6deba1aafc40688d2040 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:42:49 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(deadline):=20the=20day=20you?= =?UTF-8?q?=20press=20is=20the=20day=20that=20is=20saved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The picker closed on the day you pressed and left the value sitting in a form, waiting for a Save button that was no longer on screen. Every deadline chosen that way was quietly discarded. The grid autosubmits now, which is what the log filters, the status select and the member role select already do — the deadline was the one control asking for a second gesture to commit a single value, and there is nothing to review between choosing a date and meaning it. Escape and a click outside are what closing without choosing is for. The new-task modal keeps its Save: there the date is one field of a form still being assembled. --- crates/izlek-web/src/detail.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index a7108ca..ed67b42 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -1120,6 +1120,14 @@ async fn description_control(cx: &Cx, task: &TaskDetail, may_write: bool, lang: } } +/// The deadline field: a calendar popover that commits on the day you press. +/// +/// It used to carry Save and Cancel under the grid, which put the commit two +/// gestures away from the choice — and picking a day closes the popover, so +/// the Save it was waiting for was no longer on screen. Every date chosen +/// this way was silently discarded. The grid now autosubmits, the way the +/// log filters already did, and closing is what Escape and a click outside +/// are for. async fn deadline_control( cx: &Cx, task: &TaskDetail, @@ -1160,11 +1168,7 @@ async fn deadline_control(
- (datepicker_grid(cx, "deadline", &input_value, false, lang).await?) -
- - -
+ (datepicker_grid(cx, "deadline", &input_value, true, lang).await?)
(refused(cx, "save_task", lang).await?)