admin: dashboard instead of the invoice list

/admin redirected to the invoice list, which stopped making sense once
the admin also ran the bingo. Make it a dashboard with one tile per
area: invoice totals, outstanding amount per currency, overdue count and
the five latest invoices; the bingo score, reserve size, latest incident
and card cells still missing a photo. A shared nav links the sections.
Tiles are per area so they can follow user permissions later.

Assisted-by: Claude:opus-5
This commit is contained in:
Sergei Poljanski 2026-10-10 08:23:14 +04:00
commit c2020bf903
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
8 changed files with 134 additions and 5 deletions

View file

@ -1,6 +1,7 @@
<%== erb :'admin/_nav', layout: false %>
<div class="header">
<h1>Invoices</h1>
<p class="tagline"><a href="/admin/invoices/new">+ New invoice</a> · <a href="/admin/bingo">bingo</a></p>
<p class="tagline"><a href="/admin/invoices/new">+ New invoice</a></p>
</div>
<% if @invoices.empty? %>