D1, correzioni della revisione: conteggi della Libreria più rapidi, frecce che seguono le tessere, Dashboard nei testi

- /api/library/days in «Tutte le foto» faceva due volte il passaggio su tutta la tabella media
  a ogni aggiornamento del mosaico: il totale dei file è ora la somma dei giorni
  (CountLibraryFilesAsync tolto).
- I totali e i conteggi per giorno di «Foto» e «Video» su tutta la libreria non pagano più un
  EXISTS per post (1,3-1,6 s): elenco degli elementi con file di quel tipo su un indice di
  copertura, 86-141 ms su 200.000 elementi; nuove misure con limite 600 ms in LibraryScaleTests.
- La quota di chi aspetta non è un minimo per tipo: corretti commento e decisioni, prova con un
  arretrato più vecchio di un altro tipo.
- Visualizzatore in «Tutte le foto»: le frecce saltano i file che non sono tessere (foto sotto
  «Video» e simili) e l'intestazione non dà il numero di un altro file; la voce già scelta
  dell'interruttore non ridisegna il mosaico. Prova d'interfaccia nuova (solo CI).
- «Ricetta sospesa» dice di riattivarla dalla Dashboard, non da Attività; commenti aggiornati.
- Nomi accessibili distinti nella scheda account, variabile in inglese in download-order.js,
  icona activity tolta perché nessuna pagina la usa.
- Schermate 06, 11 e 14 rifatte con /dashboard e nuova 01-libreria-tutte-le-foto, confrontate
  con i mockup in docs/schermate/differenze.md (con quattro difetti visivi ancora da sistemare).
- LEGGIMI del web (mode, cursore, files, moduli riusabili) e guida della Libreria (la scelta del
  mosaico resta nel browser, a differenza del tema).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-25 17:27:33 +01:00
1 parent 30e159cbd4
commit 58ff4e48b3
44 files changed
+261 -118

No files matched your search

@@ -75,11 +75,12 @@ public sealed record DownloadOptions
public int BatchSize { get; init; } = 200;
/// <summary>
/// «Cosa scaricare prima» never starves the later kinds (spec §6.5, §7.2): one file in this many is the one that has
/// waited longest, whatever its kind; the others follow the order. Every file in the queue becomes the longest
/// waiting sooner or later (new files are always younger), so every kind gets at least this share of the downloads
/// while it has files waiting, even when the daily data budget ends each day before the queue does. 0 or 1: the
/// order alone.
/// «Cosa scaricare prima» never makes a file wait for ever (spec §6.5, §7.2): one file in this many is the one that
/// has waited longest, whatever its kind; the others follow the order. Every file in the queue becomes the longest
/// waiting sooner or later (new files are always younger), so every file is downloaded in the end, even when the
/// daily data budget ends each day before the queue does. It is not a share per kind: the place goes to the oldest
/// file of the whole queue, so a kind found after an older backlog of another kind waits until that backlog is done
/// (taggati found after thousands of older posts come after them). 0 or 1: the order alone.
/// </summary>
public int LongestWaitingShare { get; init; } = 8;
@@ -437,7 +437,7 @@ public sealed partial class RecipeRunner
run.Finished = true;
if (walk.IsGrid)
{
// «Storico completato» in Attività, and the new state of the account, are the engine's: one line per
// «Storico completato» in the Dashboard, and the new state of the account, are the engine's: one line per
// history, with its numbers (SessionComposer, from RecipeOutcome.BackfillFinished).
await Env.Storage.Accounts.SetBackfillAsync(account.Id, null, Env.Clock.Now, run.Ct).ConfigureAwait(false);
await settings.SetAsync(walk.MarkKey(account.Id), null, run.Ct).ConfigureAwait(false);