From e7aac36ef9a0284bae47f24660742dc92e1644a9 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 15 Feb 2026 18:02:52 +0000 Subject: [PATCH] Implement deeper analysis of people and access to the underlying data in the database --- .../pages/ai-workspace-insight-detail.html | 26 +- core/templates/partials/compose-panel.html | 290 ++++++++++++++---- core/views/compose.py | 128 +++++++- core/views/workspace.py | 50 ++- 4 files changed, 398 insertions(+), 96 deletions(-) diff --git a/core/templates/pages/ai-workspace-insight-detail.html b/core/templates/pages/ai-workspace-insight-detail.html index a1af885..8f71702 100644 --- a/core/templates/pages/ai-workspace-insight-detail.html +++ b/core/templates/pages/ai-workspace-insight-detail.html @@ -47,13 +47,21 @@

History

-
- -
- {% if not graph_points %} -

- No historical points yet for this metric. -

+ {% if graph_applicable %} +
+ +
+ {% if not graph_points %} +

+ No historical points yet for this metric. +

+ {% endif %} + {% else %} +
+
+ This is a point-in-time metric and is not charted. +
+
{% endif %}
@@ -68,6 +76,10 @@ return; } var points = JSON.parse(node.textContent || "[]"); + var shouldRender = {{ graph_applicable|yesno:"true,false" }}; + if (!shouldRender) { + return; + } var labels = points.map(function(row) { var dt = new Date(row.x); return dt.toLocaleString(); diff --git a/core/templates/partials/compose-panel.html b/core/templates/partials/compose-panel.html index 4b1f6f0..7b72bc5 100644 --- a/core/templates/partials/compose-panel.html +++ b/core/templates/partials/compose-panel.html @@ -37,6 +37,7 @@ {% include "partials/compose-send-status.html" %} +