From 9a11050d3b387b5eea9d1ce7bf322d72076bcf9d Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 22 Jul 2026 15:12:17 -0400 Subject: [PATCH] feat: show last-run duration on the groups list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit groups_index attaches last_duration_s from the latest group run; groups.html renders it as a new right-aligned duration column (— when never run). Co-Authored-By: Claude Opus 4.8 --- pipekit/web/app.py | 2 ++ pipekit/web/templates/groups.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pipekit/web/app.py b/pipekit/web/app.py index dbcfc2f..4d951de 100644 --- a/pipekit/web/app.py +++ b/pipekit/web/app.py @@ -1333,9 +1333,11 @@ def groups_index(request: Request): if recent: g["last_run_at"] = recent[0]["started_at"] g["last_status"] = recent[0]["status"] + g["last_duration_s"] = recent[0]["duration_s"] else: g["last_run_at"] = None g["last_status"] = None + g["last_duration_s"] = None return _templates.TemplateResponse( request, "groups.html", _ctx(groups=groups), diff --git a/pipekit/web/templates/groups.html b/pipekit/web/templates/groups.html index 007d4a6..41668d1 100644 --- a/pipekit/web/templates/groups.html +++ b/pipekit/web/templates/groups.html @@ -19,6 +19,7 @@ name members last run + duration status @@ -29,6 +30,7 @@ {{ g.name }} {{ g.member_count }} {{ g.last_run_at | localtime }} + {{ g.last_duration_s | duration }} {% if g.last_status %} {{ g.last_status }}