review status

This commit is contained in:
Ian Gulliver
2026-10-16 08:37:24 -07:00
parent 3274bf0498
commit 5320a63358
15 changed files with 219 additions and 197 deletions
+4 -4
View File
@@ -2,7 +2,7 @@ import { get, post, type ByreEvent, type Project, type Schemas, type Task } from
import { errorText, h, replace, showAlert } from "./dom.js";
import { markdown } from "./markdown.js";
import { models } from "./task.js";
import { currentSession, focusedProject, focusTask, on, onEach, state } from "./state.js";
import { currentSession, focusedProject, focusTask, on, onEach, state, taskState } from "./state.js";
import { taskStyle } from "./taskcolor.js";
type Todo = Schemas["Todo"];
@@ -114,7 +114,7 @@ function tasksBlock(active: Task[]): HTMLElement {
"ul",
{ class: "task-list" },
...active.map((task) => {
const sess = currentSession(task.id);
const ts = taskState(task);
const count = state.inbox.filter((item) => item.task_id === task.id).length;
return h(
"li",
@@ -128,11 +128,11 @@ function tasksBlock(active: Task[]): HTMLElement {
focusTask(task.id);
},
},
h("span", { class: `dot ${sess?.state ?? "none"}`, title: sess?.state ?? "no session" }),
h("span", { class: `dot ${ts ?? "none"}`, title: ts ?? "no session" }),
h("span", { class: "task-title task-name" }, task.title),
count > 0 && h("span", { class: "badge", title: "inbox items" }, count),
task.merge_queued_at !== undefined && h("span", { class: "task-state warn", title: "Waiting for the merge in progress in this project to finish" }, "merge held"),
h("span", { class: "task-state" }, sess?.state ?? "no agent"),
h("span", { class: "task-state" }, ts ?? "no agent"),
),
);
}),