namespace Nexus.Api.Models; /// /// Compact task representation used by the paged mission-control board. /// Child tasks are represented by their own cards and linked through /// so the client can build the hierarchy in O(n). /// public sealed record TaskBoardCardDto( Guid Id, string Title, string? Detail, string Source, string State, string Priority, string? AssignedTo, Guid? ParentTaskId, Guid? ProjectId, DateTimeOffset? DueDate, DateTimeOffset CreatedAt, DateTimeOffset UpdatedAt, bool IsAgentTask, string? ExpectedFrom, string? LastActivityMessage, DateTimeOffset? LastActivityAt, int ChildTaskCount, int OpenChildTaskCount, bool HasVisibleDelegation); /// /// Initial task-board page. Active columns are complete; the Done column is /// keyset-paginated by (UpdatedAt DESC, Id DESC). /// public sealed record TaskBoardPageDto( string Revision, IReadOnlyList Offen, IReadOnlyList InProgress, IReadOnlyList Review, IReadOnlyList Blocked, IReadOnlyList Done, string? NextDoneCursor, bool HasMoreDone);