06/02 Optimize app 2

This commit is contained in:
2026-06-02 16:34:16 -04:00
parent de948156b9
commit c9eb1b89fc
6 changed files with 131 additions and 7 deletions
+15 -6
View File
@@ -140,12 +140,21 @@
<div class="pcard">
<div class="d-flex justify-content-between align-items-center mb-3">
<span class="pcard-title mb-0">Net Worth History</span>
<form method="POST" action="{{ url_for('reports.manual_snapshot') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-sm btn-outline-secondary" style="font-size:11px;" title="Save today's snapshot">
<i class="bi bi-camera me-1"></i>Snapshot Now
</button>
</form>
<div class="d-flex gap-2">
<form method="POST" action="{{ url_for('reports.manual_snapshot') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-sm btn-outline-secondary" style="font-size:11px;" title="Save today's snapshot">
<i class="bi bi-camera me-1"></i>Snapshot Now
</button>
</form>
<form method="POST" action="{{ url_for('reports.rebuild_snapshot') }}"
onsubmit="return confirm('Recalculate all balances and rebuild today\'s snapshot?\nThis fixes the current net worth data point.')">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-sm btn-outline-warning" style="font-size:11px;" title="Recalculate all balances then rebuild today's snapshot">
<i class="bi bi-arrow-repeat me-1"></i>Rebuild
</button>
</form>
</div>
</div>
{% if nw_history.count > 1 %}
<div style="position:relative;height:200px;"><canvas id="nwChart"></canvas></div>