From 51ec18c4613aba2f106168e0cb06cc5df0f20ef7 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 13 Apr 2025 19:20:53 +1000 Subject: [PATCH] feat: Add dismissible exercise progress graph to workout page Adds a feature to view exercise progress directly from the workout page. - Modifies `templates/partials/topset.html`. - Adds a graph icon next to the exercise name in the topset list. - Clicking the icon uses HTMX to fetch and display the progress graph for that exercise inline in a new table row. - Implements a dismiss button using hyperscript to hide the graph after viewing. --- templates/changelog/changelog.html | 16 +++++++++ templates/partials/topset.html | 53 +++++++++++++++++++++++++++--- 2 files changed, 64 insertions(+), 5 deletions(-) diff --git a/templates/changelog/changelog.html b/templates/changelog/changelog.html index 4539372..7db745c 100644 --- a/templates/changelog/changelog.html +++ b/templates/changelog/changelog.html @@ -10,6 +10,22 @@

Updates and changes to the site will be documented here, with the most recent changes listed first.

+ +
+

April 13, 2025

+ +

April 12, 2025

diff --git a/templates/partials/topset.html b/templates/partials/topset.html index 9886cee..36155ec 100644 --- a/templates/partials/topset.html +++ b/templates/partials/topset.html @@ -1,11 +1,24 @@ {% if is_edit|default(false, true) == false %} - {{ exercise_name - }} +
+ {{ exercise_name }} + +
{% else %}