Redesign dashboard with weighted metrics, compact map, share bars and empty-state onboarding

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-15 19:29:11 +01:00
1 parent de22f035dc
commit 31bb8b21c2
6 files changed
+333 -92

No files matched your search

@@ -1,9 +1,10 @@
@using System.Globalization
@using Flypaper.Storage.Dashboard
<section class="card">
<h2>@Title</h2>
@if (Entries.Count == 0)
{
<p class="muted">Keine Daten.</p>
<p class="empty">Noch keine Einträge.</p>
}
else
{
@@ -23,8 +24,9 @@
<tbody>
@foreach (var entry in Entries)
{
<tr data-expand="@($"{KeyLabel}:{entry.Key}")" tabindex="0" aria-expanded="false">
<td class="mono clip" title="@Display(entry)">@(ShowFlags ? $"{Formatting.Flag(entry.Key)} " : "")@Display(entry)</td>
var share = (entry.Count * 100.0 / Entries[0].Count).ToString("0.#", CultureInfo.InvariantCulture);
<tr data-expand="@($"{KeyLabel}:{entry.Key}")" tabindex="0" aria-expanded="false" style="--share: @(share)%">
<td class="mono clip bar" title="@Display(entry)">@(ShowFlags ? $"{Formatting.Flag(entry.Key)} " : "")@Display(entry)</td>
<td class="num">@entry.Count.ToString("N0")</td>
<td class="num">@Formatting.Duration(entry.HoldTime)</td>
</tr>