All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 13s
Add 3 new stat cards (Last Workout, Personal Records, Adherence Rate), recent activity table, progression timeline chart, and muscle group recency heatmap to the dashboard. Remove Total Volume card. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
64 lines
1.5 KiB
HTML
64 lines
1.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Dashboard -- SneakySwole{% endblock %}
|
|
|
|
{% block head_extra %}
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@4"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns@3"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<hgroup>
|
|
<h1>Progress Dashboard</h1>
|
|
{% if active_profile %}
|
|
<p>{{ active_profile.display_name }}'s training overview</p>
|
|
{% else %}
|
|
<p>No profile selected -- <a href="/profiles">select one</a></p>
|
|
{% endif %}
|
|
</hgroup>
|
|
|
|
{% if stats %}
|
|
<!-- Summary Stats -->
|
|
<div class="grid">
|
|
{% include "partials/stats_card.html" %}
|
|
</div>
|
|
|
|
<!-- Volume by Day Chart -->
|
|
<article>
|
|
<header><h3>Volume by Workout Day</h3></header>
|
|
{% include "partials/volume_chart.html" %}
|
|
</article>
|
|
|
|
<!-- Recent Activity -->
|
|
{% include "partials/recent_activity.html" %}
|
|
|
|
<!-- Progression Timeline -->
|
|
{% include "partials/progression_chart.html" %}
|
|
|
|
<!-- Muscle Group Heatmap -->
|
|
{% include "partials/muscle_heatmap.html" %}
|
|
|
|
<!-- Exercise Progress Links -->
|
|
<article>
|
|
<header><h3>Per-Exercise Progress</h3></header>
|
|
<ul>
|
|
{% for exercise in exercises %}
|
|
<li>
|
|
<a href="/dashboard/exercise/{{ exercise.id }}">
|
|
{{ exercise.name }}
|
|
</a>
|
|
<small> -- {{ exercise.workout_day }} Day</small>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</article>
|
|
|
|
<!-- Export -->
|
|
{% include "partials/export_form.html" %}
|
|
|
|
{% endif %}
|
|
|
|
<!-- Import -->
|
|
{% include "partials/import_form.html" %}
|
|
{% endblock %}
|