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" %} +