Interfaccia, parte 2: Attività, Impostazioni, collegamento, Importa, doppioni, primo avvio ed errori di configurazione

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-13 20:27:34 +00:00
1 parent 0515776b04
commit d614050ee5
90 files changed
+7825 -49

No files matched your search

@@ -0,0 +1,23 @@
using Febe.Web.Api;
namespace Febe.Web.Connection;
/// <summary>
/// The default <see cref="IConnectionService"/> when the composition registers none: «browser non disponibile». The
/// pages say so and offer nothing that would pretend to work.
/// </summary>
public sealed class UnavailableConnectionService : IConnectionService
{
public const string Message = "Il browser di Febe non è disponibile: il programma non lo ha avviato. Controlla il registro e riavvia Febe; se il problema resta, guarda la pagina dei problemi comuni nella guida.";
public Task<ConnectionStatus> GetStatusAsync(CancellationToken ct) =>
Task.FromResult(new ConnectionStatus(ConnectionState.BrowserUnavailable, null, null, false, null));
public Task BeginUserDrivingAsync(bool openLogin, CancellationToken ct) => throw new BadRequestException(Message);
public Task<FinishResult> FinishAsync(CancellationToken ct) => Task.FromResult(new FinishResult(false, Message));
public Task CancelAsync(CancellationToken ct) => Task.CompletedTask;
public Task DisconnectAsync(CancellationToken ct) => throw new BadRequestException(Message);
}