D1, prima parte: Dashboard al posto di Attività e «Cosa scaricare prima» generale
Richiesta di Alberto (#59): decidere cosa scaricare prima, una Dashboard compatta come pagina iniziale da guardare mentre il motore lavora, e le miniature di ciò che è arrivato. - Dashboard (§7.9, §10.2): /dashboard è la pagina iniziale e la prima voce della barra; /, /attivita, «Ho finito» del browser, il riquadro di stato e il ritorno dopo l'accesso portano lì. In alto l'anteprima del browser sempre visibile, chiesta ogni secondo mentre il motore lavora (LiveBrowserPreview cattura al più un fotogramma al secondo), accanto cosa sta facendo e i quattro tetti; poi la striscia più bassa, la cronologia con le miniature e la coda ridotta alle prime righe con «Mostra tutta». Sotto i 1000 px una colonna sola. - Miniature della cronologia: /api/activity/arrived dà gli elementi che una ricetta ha salvato (account, inizio e fine della ricetta), chiesti solo quando la riga entra in vista, al più otto con «+N». Un clic apre un'anteprima leggera con foto o video senza audio, frecce fra i file della riga, Esc, «Apri nella Libreria» e «Apri l'account». - «Cosa scaricare prima» (§7.2, §6.5): ordine generale dei tipi in Impostazioni → Limiti e comportamento (trascinare, «Su» e «Giù», nota sulle storie che scadono), predefinito storie, evidenza, post, reel, taggati. Dopo il giro, il lavoro dovuto si estrae con il peso dell'account per il peso del tipo (16, 8, 4, 2, 1): pesa, non rende fisso. La coda dei file segue lo stesso ordine. - Prove: DownloadOrderTests (ordine, pesi, coda, motore con seme fisso: il primo tipo viene più spesso ma non sempre, il giro resta primo, un tipo senza lavoro non si visita), DashboardApiTests, una prova dell'interfaccia per / e /attivita. Non ancora fatto: ordine per account e segno del reel (serve una migrazione da concordare con E1), «Raggruppa i post» / «Tutte le foto», confronto con i mockup, revisione del resto della guida che nomina ancora Attività. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2068dd28f3
commit
d6c0ef851d
38 files changed
+1468
-479
No files matched your search
@@ -60,6 +60,12 @@ public interface IEntryStore
|
||||
/// <summary>Entries of an account ordered by publication time, newest first (account tabs, collection pipeline).</summary>
|
||||
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.
|
||||
/// </summary>
|
||||
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);
|
||||
|
||||
@@ -74,3 +80,6 @@ public interface IEntryStore
|
||||
/// <summary>Tiles for given entries, in the given order (e.g. the items of a highlight collection).</summary>
|
||||
Task<IReadOnlyList<LibraryTile>> GetTilesAsync(IReadOnlyList<long> entryIds, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
/// <summary>Entries saved by a recipe: the first ones, newest first, and how many in all.</summary>
|
||||
public sealed record ArrivedEntries(IReadOnlyList<long> EntryIds, int Total);
|
||||
@@ -30,6 +30,13 @@ public interface IMediaStore
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<PendingDownload>> ListPendingDownloadsAsync(int limit, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Files waiting to be downloaded in the order of «Cosa scaricare prima» (spec §6.5, §7.2): the files of the entry kind
|
||||
/// that comes first in <paramref name="kindOrder"/>, then the other kinds in that order, and within a kind the ones
|
||||
/// that expire first, then the oldest waiting. A kind left out of the list goes last.
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<PendingDownload>> ListPendingDownloadsAsync(int limit, IReadOnlyList<EntryKind> kindOrder, CancellationToken ct = default);
|
||||
|
||||
/// <summary>Files waiting to be downloaded, for one account or overall («lo storico non corre più veloce dei download»).</summary>
|
||||
Task<int> CountPendingDownloadsAsync(long? accountId = null, CancellationToken ct = default);
|
||||
|
||||
|
||||
Reference in new issue
Block a user