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>
20 lines
1.5 KiB
SQL
20 lines
1.5 KiB
SQL
-- Febe, schema version 2: «Cosa scaricare prima» (tappa D1, issue #59; spec §7.2, §4.4, §8.3).
|
|
-- Run by the migration runner inside a transaction; PRAGMA user_version is set by the runner.
|
|
-- Only columns and indexes are added: no behaviour changes for the data already stored.
|
|
|
|
-- The order of «Cosa scaricare prima» of the account: the Italian names of the five kinds, comma separated
|
|
-- («storie,evidenza,post,reel,taggati»). NULL: «Come le impostazioni generali» (setting scaricamento.ordine).
|
|
ALTER TABLE account ADD COLUMN download_order TEXT;
|
|
|
|
-- A post that Febe knows to be a reel (found in the Reel tab, or marked so in the response): it counts as a reel in
|
|
-- the queue of the files. 0 for every post stored before, which Febe cannot tell apart without asking the site again.
|
|
ALTER TABLE entry ADD COLUMN is_reel INTEGER NOT NULL DEFAULT 0 CHECK (is_reel IN (0, 1));
|
|
|
|
-- What a recipe saved, for the thumbnails of the history of the Dashboard (spec §7.9): the entries discovered in the
|
|
-- few minutes of the recipe, of one account or of all (the Giro dei seguiti), read by range whatever the library's size.
|
|
CREATE INDEX ix_entry_discovered ON entry (discovered_at);
|
|
|
|
-- «Tutte le foto» (spec §4.6): the files of an entry that are in the library, and of which kind, read from the index
|
|
-- alone, so the counts of the days and the total of the files stay within the times of the scale test (200,000 entries).
|
|
CREATE INDEX ix_media_entry_files ON media (entry_id, state, kind);
|