feat(ui): add "move to list" to the task row context menu
Reuses the existing drag-drop move (MoveTaskToListAsync) so the same running/worktree guards apply — only ListId changes. Also count WaitingForReview tasks (not Done-with-a-branch) for the review portion of the status pill, and localize the pill and open-task count strings that were still hardcoded English.
This commit is contained in:
@@ -806,14 +806,16 @@ public sealed partial class TasksIslandViewModel : ViewModelBase, IDisposable
|
||||
var now = DateTime.Now;
|
||||
var open = Items.Count(i => !i.Done);
|
||||
var running = Items.Count(i => i.Status == TaskStatus.Running);
|
||||
var review = Items.Count(i => i.Status == TaskStatus.Done && i.Branch != null);
|
||||
var review = Items.Count(i => i.Status == TaskStatus.WaitingForReview);
|
||||
|
||||
// The notes list holds no tasks — an "0 open tasks" line under its header is just noise.
|
||||
Subtitle = IsNotesList ? "" : open == 1 ? "1 open task" : $"{open} open tasks";
|
||||
Subtitle = IsNotesList ? ""
|
||||
: open == 1 ? Loc.T("vm.tasksIsland.openTaskOne")
|
||||
: Loc.T("vm.tasksIsland.openTasks", open);
|
||||
|
||||
if (running > 0 || review > 0)
|
||||
{
|
||||
StatusPill = $"{running} running · {review} review";
|
||||
StatusPill = Loc.T("vm.tasksIsland.statusPill", running, review);
|
||||
HasStatusPill = true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user