La dimostrazione mostra le copie automatiche senza avviare il lavoratore: «Studio Lumen» è automatica con «Solo i nuovi» dall'inizio dei suoi file più recenti non copiati; un lavoro automatico del motore vero (su un orologio spostato indietro) ne ha copiati alcuni e un lavoro automatico interrotto tiene esattamente il resto. «Riconosci le copie già presenti» gira davvero in «Studio Lumen» (una copia riconosciuta, un file diverso): in «Disco USB» avrebbe allungato ogni avvio della dimostrazione di 47 s. Le prove della dimostrazione controllano questi dati e che un lavoratore di prova riprenda solo il lavoro interrotto. Le prove dell'interfaccia (nella CI) coprono la domanda «Solo i nuovi», la nota allo spegnimento, l'etichetta «Automatica dal …», «Riconosci» con il suo lavoro nella Dashboard, la pausa con i file che aspettano e la conferma di «Usa la cartella generale». Schermata nuova 32, rifatte 15, 16, 17 e 21, con le differenze dai mockup in differenze.md e una riga in decisioni.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
100 lines
7.8 KiB
C#
100 lines
7.8 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"),
|
||
|
||
// Part 3: copie esterne (tappa E2, spec §4.10 and §10.3, composed from mockups 08, 07, 05, 13, 09, 01, 02, 06).
|
||
// No step starts a copy: the demo's copies stay as they were seeded.
|
||
new("/impostazioni/esportazione?tema=chiaro", "15-impostazioni-esportazione.png", 1440, 1470),
|
||
new("/impostazioni/esportazione?tema=chiaro&veste=docker", "15-impostazioni-esportazione-docker.png"),
|
||
new("/impostazioni/esportazione?tema=chiaro", "16-destinazione.png", 1440, 1000, Step: "destinazione.js"),
|
||
new("/account/3/impostazioni?tema=chiaro", "17-account-copie-esterne.png", 1440, 1000, Step: "account-copie.js"),
|
||
new("/libreria?tema=chiaro", "18-copia-in.png", Step: "copia-in.js"),
|
||
new("/libreria?copie=copiati&tema=chiaro", "19-libreria-copie.png", Step: "menu-csv.js"),
|
||
new("/libreria?copie=tolti&tema=chiaro", "20-visualizzatore-copie.png", Step: "visualizzatore-copie.js"),
|
||
new("/dashboard/esportazione?tema=chiaro", "21-dashboard-esportazione.png"),
|
||
|
||
// Part 4: formati e fotogrammi (tappa E3, spec §4.10 and §10.3, composed from mockups 13, 09, 08, 07, 02 and 01).
|
||
// 15–21 above show the formats too. No step converts, downloads or copies: the question and the dialogs stay open.
|
||
new("/libreria?tema=chiaro", "22-fotogrammi-visualizzatore.png", 1440, 1000, Step: "fotogrammi-visualizzatore.js"),
|
||
new("/libreria?tema=chiaro", "22-fotogrammi-striscia.png", 1440, 1000, Step: "fotogrammi-striscia.js"),
|
||
new("/libreria?account=2&tema=chiaro", "23-fotogrammi-selezione.png", 1440, 1000, Step: "fotogrammi-selezione.js"),
|
||
new("/libreria?tema=chiaro", "24-visualizzatore-fotogramma.png", Step: "visualizzatore-fotogramma.js"),
|
||
new("/libreria?tema=chiaro", "25-copia-in-formati.png", 1440, 1000, Step: "copia-in-formati.js"),
|
||
new("/impostazioni/esportazione?tema=chiaro", "26-conversione-libreria.png", Step: "conversione-libreria.js"),
|
||
|
||
// Part 6: copie automatiche (tappa E5, spec §4.10 and §10.3, composed from the dialogs of mockup 13). 15–17 and 21
|
||
// above show «Automatica dal …», «Riconosci le copie già presenti» and the automatic jobs the demo seeds. The step
|
||
// turns the switch on without saving. Before part 5, whose last screenshot starts a job.
|
||
new("/impostazioni/esportazione?tema=chiaro", "32-destinazione-automatica.png", 1440, 1000, Step: "destinazione-automatica.js"),
|
||
|
||
// Part 5: video fermi (tappa E4, spec §4.10 and §10.3, composed from mockups 02, 13, 01 and 06). The last one starts
|
||
// «Cerca i video fermi» (an analysis, nothing is copied or written): it comes after every screenshot above.
|
||
new("/libreria?tipo=fermi&tema=chiaro", "27-visualizzatore-video-fermo.png", Step: "visualizzatore-video-fermo.js"),
|
||
new("/libreria?tema=chiaro", "27-visualizzatore-da-analizzare.png", Step: "visualizzatore-da-analizzare.js"),
|
||
new("/libreria?tema=chiaro", "27-visualizzatore-non-analizzabile.png", Step: "visualizzatore-non-analizzabile.js"),
|
||
new("/libreria?tipo=fermi&tema=chiaro", "28-salva-fotogramma.png", 1440, 1000, Step: "salva-fotogramma.js"),
|
||
new("/libreria?tipo=fermi&tema=chiaro", "29-libreria-video-fermi.png"),
|
||
new("/libreria?account=2&tema=chiaro", "30-video-fermi-selezione.png", 1440, 1000, Step: "video-fermi-selezione.js"),
|
||
new("/libreria?tema=chiaro", "31-dashboard-video-fermi.png", Step: "dashboard-video-fermi.js"),
|
||
];
|
||
|
||
/// <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]";
|
||
}
|