From ba4710b2433bee54bd2f82a44a254232b8391df9 Mon Sep 17 00:00:00 2001 From: grabowski Date: Tue, 11 Aug 2026 15:58:28 +0700 Subject: [PATCH] feat: 'Last N' labels on history ranges; dropdown mirrors into date pickers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quick-range options read 'Last 24 hours' … 'Last 90 days'; choosing one fills the from/to date inputs with today and today-N (All time clears them). Dropdown-driven loads still fetch the precise trailing-hours window; hand-edited dates take over via state.useDates. --- src/static/dashboard.html | 22 +++++++++++++++++----- tests/test_dashboard.py | 2 ++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/static/dashboard.html b/src/static/dashboard.html index b8cf5a2..72befea 100644 --- a/src/static/dashboard.html +++ b/src/static/dashboard.html @@ -263,7 +263,7 @@

Station history

Select a station to load the last 7 days

- + @@ -286,7 +286,7 @@