From 3fa3cdcf357bdc888f4dad14ee125d0bd18ad167 Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Thu, 23 Apr 2026 13:07:39 +0200 Subject: [PATCH] style(report): swap date picker columns to 'From (optional) | Until' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Konrad's clarification on the Checkpoint-1 UX revision: the visual order should follow English reading — "from X until Y" reads left-to-right, so "From" belongs on the left and "Until" on the right. Previous commit 71f8558 placed Until on the left because it's the always-filled anchor, but that fights the natural sentence order and was confusing. Optionality is unchanged: - Until (right, always filled) = anchor month - From (left, optional) = blank means single-month report No JS change needed — input IDs (popoverFromMonth / popoverToMonth) stay the same; only column positions in the
were swapped. Co-Authored-By: Claude Opus 4.7 (1M context) --- core/templates/core/report.html | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/core/templates/core/report.html b/core/templates/core/report.html index bdb73c7..dd515b2 100644 --- a/core/templates/core/report.html +++ b/core/templates/core/report.html @@ -62,15 +62,12 @@
{# --- Month-mode pickers --- #} - {# "Until" is the anchor: always filled (URL to_month or current #} - {# month). "From" is optional: blank means single-month report #} - {# (JS submits from_month = to_month). Reduces the common "this #} - {# month" and "up to now, going back N months" flows. #} + {# Visual order follows English reading: "From (optional) ... Until". #} + {# "Until" is the anchor — always filled, defaults to the URL's #} + {# to_month or the current YYYY-MM when there's no filter. #} + {# "From" is optional — blank means a single-month report and the #} + {# JS submits from_month = to_month. #}
-
- - -
+
+ + +