Implement deeper analysis of people and access to the underlying data in the database

This commit is contained in:
2026-02-15 18:02:52 +00:00
parent 27aa54a819
commit 5378a8ec91
4 changed files with 398 additions and 96 deletions

View File

@@ -47,13 +47,21 @@
<div class="column is-7">
<div class="box">
<p class="heading">History</p>
<div style="height: 360px;">
<canvas id="metric-detail-chart"></canvas>
</div>
{% if not graph_points %}
<p class="is-size-7 has-text-grey" style="margin-top: 0.65rem;">
No historical points yet for this metric.
</p>
{% if graph_applicable %}
<div style="height: 360px;">
<canvas id="metric-detail-chart"></canvas>
</div>
{% if not graph_points %}
<p class="is-size-7 has-text-grey" style="margin-top: 0.65rem;">
No historical points yet for this metric.
</p>
{% endif %}
{% else %}
<article class="message is-light">
<div class="message-body">
This is a point-in-time metric and is not charted.
</div>
</article>
{% endif %}
</div>
</div>
@@ -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();