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:
1 parent
30e159cbd4
commit
58ff4e48b3
44 files changed
+261
-118
No files matched your search
@@ -94,7 +94,7 @@ public static class AlertEventCodes
|
||||
/// </summary>
|
||||
public static class AlertCatalog
|
||||
{
|
||||
/// <summary>Codes shown in the «Avvisi» list of Attività: the alerts and the failed deliveries.</summary>
|
||||
/// <summary>Codes shown in the «Avvisi» list of the Dashboard: the alerts and the failed deliveries.</summary>
|
||||
public static IReadOnlyList<string> Codes { get; } =
|
||||
[
|
||||
EngineEventCodes.ChallengeStop,
|
||||
@@ -193,7 +193,7 @@ public static class AlertCatalog
|
||||
|
||||
/// <summary>
|
||||
/// The engine's sentence without its first words when they repeat the title: «Instagram ha chiesto di rallentare
|
||||
/// (segnale http-429). Ho chiuso…» becomes «Ho chiuso…» (the signal stays in the stops of Attività).
|
||||
/// (segnale http-429). Ho chiuso…» becomes «Ho chiuso…» (the signal stays in the stops of the Dashboard).
|
||||
/// </summary>
|
||||
private static string WithoutTitle(string message, string title)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ public sealed record AlertServiceOptions
|
||||
/// stops and resumes, backfills completed, unknown formats, suspended recipes) and checks the free space of the
|
||||
/// library and the Data folder; each alert goes to the channels switched on in Impostazioni ▸ Notifiche (Windows
|
||||
/// notification on the desktop, Telegram when token and chat are set). The red strip of the interface is not its
|
||||
/// job: the engine snapshot always shows a stop, and every alert is a line of the «Avvisi» list in Attività.
|
||||
/// job: the engine snapshot always shows a stop, and every alert is a line of the «Avvisi» list of the Dashboard.
|
||||
/// <list type="bullet">
|
||||
/// <item>Same kind and key within <see cref="AlertCatalog.MinimumInterval"/>: not sent again (the times are kept in the
|
||||
/// settings, so a restart does not send it again either).</item>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -66,7 +66,7 @@ public sealed class EngineHost : IAsyncDisposable
|
||||
|
||||
public EngineServices Services => _s;
|
||||
|
||||
/// <summary>What the interface shows of the engine (Attività, sidebar, account settings panel).</summary>
|
||||
/// <summary>What the interface shows of the engine (Dashboard, sidebar, account settings panel).</summary>
|
||||
public IEngineMonitor Monitor { get; }
|
||||
|
||||
/// <summary>Recipes suspended after repeated unrecognized formats, with when.</summary>
|
||||
|
||||
@@ -1227,7 +1227,7 @@ internal sealed class SessionComposer
|
||||
|
||||
/// <summary>
|
||||
/// The history of the account is complete: «Aggiornato» (or «In pausa» with «Tieni aggiornato» off) and the one
|
||||
/// «storico completato» line of Attività, which is also the alert (spec §13.3). The recipes write no line of their
|
||||
/// «storico completato» line of the Dashboard, which is also the alert (spec §13.3). The recipes write no line of their
|
||||
/// own for it. Called once per history: after it the account is no longer «Storico in corso». Returns the account
|
||||
/// as it is now.
|
||||
/// </summary>
|
||||
@@ -1292,7 +1292,7 @@ internal sealed class SessionComposer
|
||||
await _s.Events.WriteAsync(
|
||||
EventSeverity.Error,
|
||||
EngineEventCodes.RecipeSuspended,
|
||||
$"«{ItalianText.Capitalize(RecipeName(kind))}» è sospeso dopo {ItalianText.Number(threshold)} problemi di fila: Instagram potrebbe essere cambiato. Serve un campione nuovo con la modalità sonda; poi si riattiva da Attività.",
|
||||
$"«{ItalianText.Capitalize(RecipeName(kind))}» è sospeso dopo {ItalianText.Number(threshold)} problemi di fila: Instagram potrebbe essere cambiato. Serve un campione nuovo con la modalità sonda; poi si riattiva dalla Dashboard («Riattiva»).",
|
||||
account?.Id,
|
||||
ct: ct).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ public interface ITaskStore
|
||||
/// <summary>Pending tasks due at <paramref name="now"/>: highest priority first, then earliest due, then oldest.</summary>
|
||||
Task<IReadOnlyList<EngineTask>> PeekDueAsync(DateTimeOffset now, int limit, CancellationToken ct = default);
|
||||
|
||||
/// <summary>Pending tasks by due time (the queue shown in Attività, «verso le»).</summary>
|
||||
/// <summary>Pending tasks by due time (the queue shown in the Dashboard, «verso le»).</summary>
|
||||
Task<IReadOnlyList<EngineTask>> ListPendingAsync(int limit, CancellationToken ct = default);
|
||||
|
||||
/// <summary>Pending → Running, atomically. False if the task was not pending any more.</summary>
|
||||
|
||||
@@ -81,15 +81,11 @@ public interface IEntryStore
|
||||
|
||||
Task<LibraryTotals> GetLibraryTotalsAsync(LibraryFilter filter, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Files of the entries of the filter that are in the library (downloaded or imported): the tiles of
|
||||
/// «Tutte le foto». With «Foto» and «Video» only the files of that kind.
|
||||
/// </summary>
|
||||
Task<int> CountLibraryFilesAsync(LibraryFilter filter, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Entries (or, with <see cref="MosaicMode.Files"/>, files) per local calendar day in Alberto's zone, newest day
|
||||
/// first. A day without files is left out in that mode.
|
||||
/// first. A day without files is left out in that mode. In that mode the files are those in the library
|
||||
/// (downloaded or imported), the tiles of «Tutte le foto», with «Foto» and «Video» only the files of that kind; their
|
||||
/// total is the sum of the days (one pass over the files, not a second count).
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<DayCount>> CountLibraryByDayAsync(LibraryFilter filter, TimeZoneInfo zone, MosaicMode mode = MosaicMode.Grouped, CancellationToken ct = default);
|
||||
|
||||
|
||||
Reference in new issue
Block a user