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

+9 -3
View File
@@ -94,7 +94,7 @@ public sealed class DesktopPlatform : IFebePlatform
};
}
/// <summary>The token of this start: the interface window opens <c>/?gettone=…</c> once. Never logged.</summary>
/// <summary>The token of this start: the interface window opens <c>/dashboard?gettone=…</c> once. Never logged.</summary>
public string AccessToken { get; } = Febe.Web.Security.AccessToken.Create();
public FebeWebOptions WebOptions { get; }
@@ -105,13 +105,19 @@ public sealed class DesktopPlatform : IFebePlatform
/// <summary>The hosting actually used (after a missing Edge fell back to the window).</summary>
public BrowserHosting? Hosting { get; private set; }
/// <summary>The address the interface window opens once: the token becomes a cookie and leaves the address.</summary>
/// <summary>
/// The address the interface window opens once: the Dashboard, Febe's start page (spec §7.9, §12, tappa D1). The
/// token becomes a cookie and leaves the address, which stays <c>/dashboard</c>.
/// </summary>
public Uri FirstAddress(Uri address)
{
ArgumentNullException.ThrowIfNull(address);
return new Uri(address, "/?" + Febe.Web.Security.AccessToken.QueryName + "=" + Uri.EscapeDataString(AccessToken));
return new Uri(address, StartPage + "?" + Febe.Web.Security.AccessToken.QueryName + "=" + Uri.EscapeDataString(AccessToken));
}
/// <summary>The page the interface window opens on.</summary>
public const string StartPage = "/dashboard";
public IReadOnlyList<ConfigurationProblem> CheckConfiguration(FebeAppOptions options, DataFolderCheck dataFolderCheck)
{
ArgumentNullException.ThrowIfNull(options);