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

+21
View File
@@ -0,0 +1,21 @@
using Febe.Core.Domain;
using Febe.Core.Storage;
namespace Febe.Web.Engine;
/// <summary>The stops of the last days for the Attività page (spec §7.6: «nella cronologia della pagina Attività»).</summary>
public interface IIncidentHistory
{
/// <summary>Incidents that started in [from, to), newest first.</summary>
Task<IReadOnlyList<Incident>> ListAsync(DateTimeOffset from, DateTimeOffset to, CancellationToken ct);
}
/// <summary>The incidents of the database (table <c>incident</c>).</summary>
public sealed class StoredIncidentHistory(IFebeStorage storage) : IIncidentHistory
{
public async Task<IReadOnlyList<Incident>> ListAsync(DateTimeOffset from, DateTimeOffset to, CancellationToken ct)
{
var list = await storage.Incidents.ListAsync(from, to, ct).ConfigureAwait(false);
return [.. list.OrderByDescending(i => i.At)];
}
}