v0.2.2: surface skipped transactions in the transactions list

This commit is contained in:
Bonna
2026-06-08 13:34:14 -05:00
parent 7c253978e2
commit 987b45a56b
4 changed files with 26 additions and 1 deletions

View File

@@ -99,6 +99,13 @@
</details>
{% endif %}
{% if skipped_count %}
<div style="background:#fffbe6;border:1px solid #f5c542;border-radius:var(--radius);padding:0.65rem 1rem;margin-bottom:1rem;display:flex;align-items:center;gap:0.75rem;">
<span>⏭️ <strong>{{ skipped_count }} transaction{{ 's' if skipped_count != 1 else '' }}</strong> still need{{ '' if skipped_count != 1 else 's' }} a category (skipped for now).</span>
<a href="{{ url_for('transactions_view', category='__skipped__') }}" class="btn btn-ghost" style="font-size:0.82rem;padding:0.2rem 0.65rem;">Show them</a>
</div>
{% endif %}
<form method="GET" style="display:flex;gap:0.75rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:1.25rem;background:var(--warm-white);padding:0.85rem 1rem;border-radius:var(--radius);border:1px solid var(--border);">
<div style="flex:1;min-width:180px;">
<label style="display:block;font-size:0.8rem;margin-bottom:0.2rem;">Search</label>
@@ -116,6 +123,7 @@
<label style="display:block;font-size:0.8rem;margin-bottom:0.2rem;">Category</label>
<select name="category" class="budget-input">
<option value="">— all —</option>
<option value="__skipped__" {% if filter_cat == '__skipped__' %}selected{% endif %}>⏭️ Needs category</option>
{% for cat in categories %}
<option value="{{ cat }}" {% if filter_cat == cat %}selected{% endif %}>{{ cat }}</option>
{% endfor %}