E5: Dashboard e finestra della cartella dicono il vero sulle copie automatiche

«Riprendi» e «Riprendi tutte» restano attivi mentre lavora una copia
automatica, che cede il passo (risposta 49): li spegne solo un lavoro di
Alberto. «Annulla» di un lavoro automatico dice che i file ripartono da
soli; la risposta a «Interrompi» dice l'ora come il resto («all'1:20»,
«domani alle 0:30»), e «dal» si elide («dall'8 dicembre»). Nella
finestra della cartella «Salva» aspetta il conto dei tipi di adesso, un
conto non riuscito si richiede e il suo errore resta, il fuoco della
tastiera non salta; una nota dice perché «Automatica» è spenta senza
cartelle scrivibili. «Riprendi ora» torna attivo se la richiesta
fallisce. Il conto dei file che aspettano si condivide fra letture e non
si fa per la scheda di un account senza cartella sua; sul telefono i
pulsanti della tabella delle cartelle vanno a capo. Prove nuove: chiusura
che ferma prima il lavoratore, percorso troppo lungo, attesa di due
minuti dall'ultimo file e tetto di un quarto d'ora.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-04 20:07:48 +01:00
1 parent 3c48582067
commit 9c7f2f1ad5
16 files changed
+334 -69

No files matched your search

+5 -1
View File
@@ -212,6 +212,10 @@ public static class DemoExport
at = newest + TimeSpan.FromSeconds(1) < now ? newest + TimeSpan.FromSeconds(1) : now - TimeSpan.FromMinutes(2);
}
// Never in the last two minutes: the job left «interrotto» below starts at least a minute after this one,
// whatever minute the demonstration starts at.
at = at > now - TimeSpan.FromMinutes(2) ? now - TimeSpan.FromMinutes(2) : at;
await using var past = newService(new ShiftedClock(clock, at - now));
var held = byEntry.Select(g => g.Key).Where(id => !copiedIds.Contains(id)).ToList();
var start = await past.TryStartAutomaticAsync(new ExportSelection.Automatic([scope], held, Round: true), ct).ConfigureAwait(false);
@@ -236,7 +240,7 @@ public static class DemoExport
var lastRun = (await exports.ListRunsAsync(ct).ConfigureAwait(false)).Where(r => r.DestinationId == own.Id).Select(r => r.StartedAt).DefaultIfEmpty(now - TimeSpan.FromHours(2)).Max();
var started = left.Max(f => f.SavedAt) + TimeSpan.FromMinutes(2);
started = started < lastRun + TimeSpan.FromMinutes(10) ? lastRun + TimeSpan.FromMinutes(10) : started;
started = started > now - TimeSpan.FromMinutes(1) ? now - TimeSpan.FromMinutes(1) : started;
started = started > now - TimeSpan.FromMinutes(1) ? now - TimeSpan.FromMinutes(1) : started; // still after lastRun (≤ now − 2 min)
var run = await exports.CreateRunAsync(
new ExportRun { DestinationId = own.Id, Origin = ExportRunOrigin.Automatic, State = ExportRunState.Interrupted, StartedAt = started, CompletedAt = null },
ct).ConfigureAwait(false);