Interfaccia: correzioni della revisione (web-1, web-2, web-3, web-4, web-5, web-6, web-7, web-9, web-10, web-11, web-12, web-13, web-14, web-15)

Il browser preso dalle pagine Browser e Collegamento si restituisce uscendo senza «Ho finito» (anche chiudendo o ricaricando la scheda); dopo «Ho finito» la vista remota si chiude e non si riprende il browser. Vista remota: AltGr/Option come testo, pulsante rilasciato anche fuori dalla vista. Mosaico e scheda account senza risposte vecchie né viste sovrascritte; nuovi elementi dopo la libreria vuota; intestazione sempre aggiornata. Indietro del browser con la richiesta delle modifiche non salvate; nulla resta registrato da una pagina lasciata mentre caricava; maniglie della fascia trascinabili. «Da una data» come giorno locale; niente «@null» nel riquadro di stato; orari futuri dei fermi «verso le». Prove nel browser vero (InterfaceTests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-14 01:38:13 +00:00
1 parent 78c92eb2a4
commit 0ceffffe50
27 files changed
+1365 -59

No files matched your search

@@ -68,36 +68,59 @@ internal sealed class FixedProblems(params ConfigurationProblem[] problems) : IC
/// <summary>A connection service that records what the API asks.</summary>
internal sealed class RecordingConnection : IConnectionService
{
private readonly Lock _gate = new();
public List<string> Calls { get; } = [];
public ConnectionStatus Status { get; set; } = new(ConnectionState.NotConnected, null, null, false, "https://www.instagram.com/accounts/login/");
/// <summary>The status after «Ho finito» (connected by default; a verification still pending is the other case).</summary>
public ConnectionStatus StatusAfterFinish { get; set; } = new(ConnectionState.Connected, "tuo.profilo", "Il tuo profilo", false, null);
/// <summary>The calls so far, safe to read while the interface keeps sending.</summary>
public string[] Snapshot()
{
lock (_gate)
{
return [.. Calls];
}
}
public Task<ConnectionStatus> GetStatusAsync(CancellationToken ct) => Task.FromResult(Status);
public Task BeginUserDrivingAsync(bool openLogin, CancellationToken ct)
{
Calls.Add("begin:" + openLogin);
Record("begin:" + openLogin);
Status = Status with { UserIsDriving = true };
return Task.CompletedTask;
}
public Task<FinishResult> FinishAsync(CancellationToken ct)
{
Calls.Add("finish");
Status = new ConnectionStatus(ConnectionState.Connected, "tuo.profilo", "Il tuo profilo", false, null);
Record("finish");
Status = StatusAfterFinish;
return Task.FromResult(new FinishResult(true, "Sei collegato come @tuo.profilo."));
}
public Task CancelAsync(CancellationToken ct)
{
Calls.Add("cancel");
Record("cancel");
Status = Status with { UserIsDriving = false };
return Task.CompletedTask;
}
public Task DisconnectAsync(CancellationToken ct)
{
Calls.Add("disconnect");
Record("disconnect");
Status = new ConnectionStatus(ConnectionState.NotConnected, null, null, false, null);
return Task.CompletedTask;
}
private void Record(string call)
{
lock (_gate)
{
Calls.Add(call);
}
}
}