Combine active jobs and completed cards on backfill dashboard

This commit is contained in:
Graham McIntire 2026-04-06 09:03:44 -05:00
parent bb32e12c6a
commit 5bee273442
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -309,16 +309,20 @@ defmodule MicrowavepropWeb.BackfillLive do
<% end %>
</div>
</div>
<div class="bg-base-200 rounded-box p-4">
<div class="text-xs opacity-60">Active/Queued Jobs</div>
<div class="text-2xl font-bold">
{Enum.reduce(@stats.by_worker, 0, fn w, acc -> acc + w.total end)}
<div class="bg-base-200 rounded-box p-4 md:col-span-2">
<div class="flex gap-8">
<div>
<div class="text-xs opacity-60">Active/Queued Jobs</div>
<div class="text-2xl font-bold">
{Enum.reduce(@stats.by_worker, 0, fn w, acc -> acc + w.total end)}
</div>
</div>
<div>
<div class="text-xs opacity-60">Completed (last hour)</div>
<div class="text-2xl font-bold">{format_number(@stats.completed_1h)}</div>
</div>
</div>
</div>
<div class="bg-base-200 rounded-box p-4">
<div class="text-xs opacity-60">Completed (last hour)</div>
<div class="text-2xl font-bold">{@stats.completed_1h}</div>
</div>
</div>
<div class="bg-base-200 rounded-box p-4 mb-6">