- /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>
65 lines
4.4 KiB
C#
65 lines
4.4 KiB
C#
namespace Febe.Schermate;
|
|
|
|
/// <summary>One screenshot: the page (path and query on the demo), the file, the viewport, the wait and an optional step.</summary>
|
|
internal sealed record Shot(string Page, string File, int Width = 1440, int Height = 900, int WaitMs = 3000, string? Step = null);
|
|
|
|
/// <summary>The screenshots of docs/schermate (spec §10.7), in the order they are taken.</summary>
|
|
internal static class Shots
|
|
{
|
|
/// <summary>
|
|
/// One at a time: Chromium and the demo share the computer. The stopped scenes come first where it matters:
|
|
/// «Riprendi» stays off until the browser has been used (spec §7.6).
|
|
/// </summary>
|
|
public static IReadOnlyList<Shot> All { get; } =
|
|
[
|
|
new("/libreria?tema=chiaro", "01-libreria.png", Step: "puntatore.js"),
|
|
new("/libreria?tema=chiaro", "01-libreria-tutte-le-foto.png", Step: "tutte-le-foto.js"),
|
|
new("/libreria?tema=chiaro", "02-visualizzatore.png", Step: "visualizzatore.js"),
|
|
new("/account?tema=chiaro", "03-account.png"),
|
|
new("/account?tema=chiaro", "03-account-telefono.png", 390, 844),
|
|
new("/account?dialogo=aggiungi&tema=chiaro", "04-aggiungi-account.png", Step: "aggiungi.js"),
|
|
new("/account/3/impostazioni?tema=chiaro", "05-account-impostazioni.png"),
|
|
new("/libreria?scena=fermo&tema=scuro", "11-libreria-fermo-tema-scuro.png"),
|
|
new("/account/2?tema=scuro&tipo=storie", "12-account-storie-tema-scuro.png"),
|
|
new("/libreria?tema=chiaro", "14-finestra-stretta.png", 860, 900),
|
|
new("/libreria?tema=chiaro", "14-telefono.png", 390, 844),
|
|
new("/account/2/cronologia?tema=chiaro", "account-cronologia.png"),
|
|
|
|
// Part 2: Dashboard (once Attività: the files keep the names of mockups 06, 11 and 14), Impostazioni, Collegamento,
|
|
// Importa, doppioni, primo avvio, errore di configurazione.
|
|
new("/dashboard?scena=fermo&tema=scuro", "11-attivita-fermo-tema-scuro.png"),
|
|
new("/dashboard?scena=sessione&tema=chiaro", "06-attivita.png"),
|
|
new("/dashboard?scena=sessione&tema=chiaro", "06-attivita-tutti-i-tetti.png", Step: "tutti-tetti.js"),
|
|
new("/dashboard?scena=sessione&tema=chiaro", "14-attivita-finestra-stretta.png", 860, 900),
|
|
new("/dashboard?scena=sessione&tema=chiaro", "14-attivita-telefono.png", 390, 844),
|
|
new("/dashboard?scena=normale&tema=chiaro", "14-attivita-finestra-stretta-normale.png", 860, 900),
|
|
new("/dashboard?scena=normale&tema=chiaro", "14-attivita-telefono-normale.png", 390, 844),
|
|
new("/impostazioni/limiti?tema=chiaro", "07-limiti-e-comportamento.png", 1440, 1470),
|
|
new("/impostazioni/limiti?tema=chiaro", "07-limiti-su-misura.png", Step: "su-misura.js"),
|
|
new("/impostazioni/generali?tema=chiaro", "08-impostazioni-generali.png"),
|
|
new("/impostazioni/notifiche?tema=chiaro", "impostazioni-notifiche.png"),
|
|
new("/impostazioni/dati?tema=chiaro", "impostazioni-dati.png"),
|
|
new("/impostazioni/informazioni?tema=chiaro", "impostazioni-informazioni.png"),
|
|
new("/importa?passo=1&tema=chiaro&veste=docker", "09-importa-sorgente.png"),
|
|
new("/importa?passo=3&tema=chiaro", "09-importa-revisione.png", Step: "doppione-scelto.js"),
|
|
new("/importa?passo=3&tema=chiaro", "09-importa-telefono.png", 390, 844),
|
|
new("/impostazioni/collegamento?scena=scollegato&tema=chiaro&veste=docker", "10-collegamento-instagram.png"),
|
|
new("/impostazioni/collegamento?scena=scollegato&tema=chiaro&veste=windows", "10-collegamento-windows.png"),
|
|
new("/impostazioni/collegamento?scena=normale&tema=chiaro&veste=docker", "10-collegamento-collegato.png"),
|
|
new("/browser?scena=fermo&tema=chiaro&veste=docker", "10-browser.png"),
|
|
new("/doppioni?tema=chiaro", "doppioni-download.png"),
|
|
new("/libreria?scena=scollegato&tema=chiaro", "primo-avvio.png", Step: "benvenuto.js"),
|
|
new("/libreria?scena=errore&tema=chiaro", "errore-configurazione.png"),
|
|
];
|
|
|
|
/// <summary>
|
|
/// Only Febe's own interface on this computer: http or https to 127.0.0.1, localhost or [::1]. Instagram is never
|
|
/// opened this way (spec §2, rule 4).
|
|
/// </summary>
|
|
public static bool IsOnThisComputer(Uri address) =>
|
|
address.IsAbsoluteUri
|
|
&& (address.Scheme == Uri.UriSchemeHttp || address.Scheme == Uri.UriSchemeHttps)
|
|
&& string.IsNullOrEmpty(address.UserInfo)
|
|
&& address.Host is "127.0.0.1" or "localhost" or "[::1]";
|
|
}
|