From 291da6f2c5e7a6b896f23a4eec5ffed9874321ba Mon Sep 17 00:00:00 2001 From: ueli k Date: Sat, 5 Oct 2024 13:03:29 +0200 Subject: [PATCH] feat(ux): improve timeline usability (#610) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * require fewer clicks for time interval changes. apply bootstrap styles. * notify user, that timeline was not updated / re-rendered on purpose (because there are no matching events to render). addresses issues reported in #395 * update lastUpdate timer display every 500ms * use for loop to render duration buttons. replace sr-only by d-none. * extra margin for small screens. * re-add sync button next to last update label. always show it, and label it "reload" instead of former "update". * Apply suggestions from code review * tests: fixed e2e test for new timeline inputs * fix: minor style improvements to new timeline --------- Co-authored-by: Erik Bjäreholt Co-authored-by: Erik Bjäreholt --- src/components/InputTimeInterval.vue | 111 ++++++++++++++++----------- src/views/Timeline.vue | 11 ++- src/visualizations/VisTimeline.vue | 2 +- test/e2e/screenshot.test.js | 10 +-- 4 files changed, 78 insertions(+), 56 deletions(-) diff --git a/src/components/InputTimeInterval.vue b/src/components/InputTimeInterval.vue index 7b72ac2c..3ae61cf9 100644 --- a/src/components/InputTimeInterval.vue +++ b/src/components/InputTimeInterval.vue @@ -1,55 +1,58 @@ - +