D1, terza parte: Dashboard come pagina iniziale ovunque, miniature anche del Giro

Richiesta di Alberto (#59, parte b): la Dashboard al posto di Attività, prima voce e
pagina iniziale, compatta, con l'anteprima del browser sempre visibile e le miniature di
ciò che è arrivato. La prima parte (d6c0ef8) aveva già pagina, rotte e anteprima; qui si
chiude ciò che mancava.

- La finestra di Febe per Windows apre /dashboard?gettone=… (non più /): tolto il
  gettone l'indirizzo resta /dashboard.
- La voce Dashboard ha un'icona sua, layout-dashboard, disegnata in casa.
- Cronologia: anche le righe del Giro dei seguiti, che non hanno un account, mostrano le
  miniature di ciò che è arrivato di tutti gli account; mai gli elementi importati. Indice
  ix_entry_discovered nella migrazione 0002 (non ancora unita), così la domanda legge
  solo le righe dei minuti della ricetta anche con 200.000 elementi.
- Anteprima ingrandita: le frecce funzionano anche con il fuoco sui pulsanti del piede,
  «Apri l'account» segue l'elemento mostrato, chiudendo non si disegna più nulla.
- Al telefono il cruscotto è più basso (anteprima 196 px, miniature 40 px).
- Guida: «Attività e arresti» diventa «Dashboard e arresti», collegamenti e testi delle
  altre pagine aggiornati; differenze dai mockup in docs/schermate/differenze.md; quattro
  righe in docs/decisioni.md.
- Prove: DashboardApiTests (riga del Giro, importati esclusi, domande sbagliate),
  DesktopCompositionTests (/dashboard), GuideTests; DashboardInterfaceTests con Chromium
  (miniature, anteprima, frecce, Esc, una colonna sotto i 1000 px), solo nella CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-25 16:00:02 +01:00
1 parent 0547c747c5
commit 34fe5e9073
31 files changed
+265 -78

No files matched your search

+1 -1
View File
@@ -531,7 +531,7 @@ public sealed class EngineMonitor : IEngineMonitor
r.Detail,
r.Badge,
false,
r.NewEntries > 0 ? r.AccountId : null,
r.NewEntries > 0 ? r.AccountId : null, // none for the Giro dei seguiti: what arrived of every account
r.NewEntries > 0 ? r.StartedAt : null,
r.NewEntries)));
return views;
+2 -1
View File
@@ -139,7 +139,8 @@ public sealed record QueueItem(long TaskId, EngineTaskKind Kind, long? AccountId
/// <summary>A line of the history of the Dashboard («Appena fatto»).</summary>
/// <param name="AccountId">Account of the recipe, when it has one and saved something: with <see cref="From"/> and
/// <see cref="At"/> it tells the page which entries arrived, for their thumbnails (spec §7.9, tappa D1).</param>
/// <param name="From">When the recipe started.</param>
/// <param name="From">When the recipe started, when it saved something; with no account (the Giro dei seguiti) the
/// thumbnails are what arrived of every account in that time.</param>
/// <param name="NewEntries">Entries saved by the recipe.</param>
public sealed record RecentActionView(
DateTimeOffset At,
+4 -3
View File
@@ -67,10 +67,11 @@ public interface IEntryStore
Task<IReadOnlyList<Entry>> ListByAccountAsync(long accountId, EntryListOptions? options = null, CancellationToken ct = default);
/// <summary>
/// What a recipe saved (spec §7.9, thumbnails of the history of the Dashboard): the entries of the account discovered
/// in [from, to], newest first, at most <paramref name="limit"/>, with how many there are in all.
/// What a recipe saved (spec §7.9, thumbnails of the history of the Dashboard): the entries Febe downloaded (never
/// the imported ones) discovered in [from, to], of the account or, with null, of every account (the Giro dei
/// seguiti), newest first, at most <paramref name="limit"/>, with how many there are in all.
/// </summary>
Task<ArrivedEntries> ListDiscoveredAsync(long accountId, DateTimeOffset from, DateTimeOffset to, int limit, CancellationToken ct = default);
Task<ArrivedEntries> ListDiscoveredAsync(long? accountId, DateTimeOffset from, DateTimeOffset to, int limit, CancellationToken ct = default);
/// <summary>Entries of (account, kind) discovered in [from, to): per-account daily backfill limit.</summary>
Task<int> CountDiscoveredAsync(long accountId, EntryKind kind, DateTimeOffset from, DateTimeOffset to, CancellationToken ct = default);