D1, quarta parte: «Raggruppa i post» o «Tutte le foto» in Libreria e scheda account
Un post con più foto era una tessera sola: per vederle tutte bisognava aprirlo. Ora un interruttore nella riga degli strumenti (Libreria e Contenuti dell'account, non «In evidenza») passa a una tessera per file, video dei caroselli compresi, con la posizione «2/4» sulla tessera; la scelta resta nel browser, una per pagina, e il predefinito è raggruppato (§4.6). - API: /api/library e /api/library/days accettano mode=files; il cursore diventa «ms.elemento.posizione», i giorni contano file e il totale dice anche quanti file. Le finestre restano a chiavi sull'indice di pubblicazione; per i conteggi un indice ix_media_entry_files (entry_id, state, kind) nella migrazione 0002 non ancora unita. Prova di scala a 200.000 elementi: finestre 6-11 ms, conteggi 0,2-0,3 s. - Visualizzatore: si apre sul file della tessera e va di file in file, anche da un elemento al successivo («Libreria, file 12 di 30.340»). - Selezione di file; elenco CSV ed «Elimina» lavorano sugli elementi interi e lo dicono («3 file scelti appartengono a 2 elementi: elimino gli elementi interi, 9 file»). «Copia in…» non è in questo ramo. - Dimostrazione: alcune serie hanno un video in seconda posizione, scelto dall'identificativo senza toccare la sequenza casuale. - Prove di archivio, API, dimostrazione e interfaccia (queste ultime con Chromium, solo nella CI); guida e decisioni aggiornate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
34fe5e9073
commit
30e159cbd4
23 files changed
+1126
-130
No files matched your search
@@ -41,7 +41,10 @@ public sealed record PreferencesDto(string Theme);
|
||||
/// <summary>The cover of a tile. <see cref="Thumb"/> is the thumbnail key (null: neutral tile).</summary>
|
||||
public sealed record CoverDto(long MediaId, string Kind, int? Width, int? Height, double? Duration, string? Thumb);
|
||||
|
||||
/// <summary>A tile of the mosaic: one entry.</summary>
|
||||
/// <summary>
|
||||
/// A tile of the mosaic: one entry, or with «Tutte le foto» one file of it (the cover is that file and
|
||||
/// <see cref="Position"/> its place in the series; null for an entry tile).
|
||||
/// </summary>
|
||||
public sealed record TileDto(
|
||||
long Id,
|
||||
long AccountId,
|
||||
@@ -53,7 +56,8 @@ public sealed record TileDto(
|
||||
string Provenance,
|
||||
string State,
|
||||
int Files,
|
||||
CoverDto? Cover);
|
||||
CoverDto? Cover,
|
||||
int? Position = null);
|
||||
|
||||
/// <summary>A window of tiles; cursors continue it (null: nothing more that way).</summary>
|
||||
public sealed record LibraryPageDto(IReadOnlyList<TileDto> Tiles, string? Older, string? Newer);
|
||||
@@ -64,7 +68,8 @@ public sealed record ArrivedDto(IReadOnlyList<TileDto> Tiles, int Total);
|
||||
/// <summary>A day of the mosaic: its count and the cursor that starts at its end.</summary>
|
||||
public sealed record DayDto(string Day, int Count, string Cursor);
|
||||
|
||||
public sealed record LibraryDaysDto(long Now, string Today, int Entries, int Accounts, IReadOnlyList<DayDto> Days);
|
||||
/// <summary>Days of the mosaic with the totals; <see cref="Files"/> only with «Tutte le foto» (the files of the entries).</summary>
|
||||
public sealed record LibraryDaysDto(long Now, string Today, int Entries, int Accounts, IReadOnlyList<DayDto> Days, int? Files = null);
|
||||
|
||||
public sealed record AccountBriefDto(long Id, string Username, string? DisplayName, bool IsPrivate, bool IsFollowed, bool IsMine, string State, string? Avatar);
|
||||
|
||||
|
||||
Reference in new issue
Block a user