fix(webui): drop dead Task.stage readers, split stateStoreDeps for cyclop
The task-list table and NeedsYouCard read a task.stage field the API stopped emitting once tasks.stage dropped; remove the column and the fallback rather than let it render an empty cell forever. stateStoreDeps grew a fourth optional-capability branch (StepReader, alongside Pi's ExecutionCanceller and the RecoverStale rebase) and tripped golangci-lint's cyclop gate; split the execution-tree surfaces into executionDeps, mirroring the existing accessDeps split.
This commit is contained in:
5 files changed
+22
-18
No files matched your search
@@ -18,7 +18,7 @@ const waiting = computed(() => {
|
||||
|
||||
function meta(task: AttentionTask): string {
|
||||
const where = task.owner && task.repo ? `${task.owner}/${task.repo}${task.issue_number ? ` #${task.issue_number}` : ""}` : "";
|
||||
return [where, task.workflow, task.park_reason || task.stage].filter(Boolean).join(" · ");
|
||||
return [where, task.workflow, task.park_reason].filter(Boolean).join(" · ");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ export interface Task {
|
||||
park_reason?: string;
|
||||
tokens_used?: number;
|
||||
workflow?: string;
|
||||
stage?: string;
|
||||
attempt?: number;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
@@ -173,7 +172,6 @@ function open() {
|
||||
<TableCell class="text-fg-muted">{{
|
||||
props.task.workflow || "—"
|
||||
}}</TableCell>
|
||||
<TableCell class="text-fg-muted">{{ props.task.stage || "—" }}</TableCell>
|
||||
<TableCell
|
||||
class="text-fg-muted"
|
||||
:title="
|
||||
|
||||
@@ -24,7 +24,7 @@ const props = withDefaults(
|
||||
|
||||
const emit = defineEmits<{ done: [taskId: Task["id"]] }>();
|
||||
|
||||
const columns = computed(() => (props.showRepo ? 8 : 7));
|
||||
const columns = computed(() => (props.showRepo ? 7 : 6));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -38,7 +38,6 @@ const columns = computed(() => (props.showRepo ? 8 : 7));
|
||||
<TableHead class="w-full">Title</TableHead>
|
||||
<TableHead>Status</TableHead>
|
||||
<TableHead>Workflow</TableHead>
|
||||
<TableHead>Stage</TableHead>
|
||||
<TableHead>Last activity</TableHead>
|
||||
<TableHead>Action</TableHead>
|
||||
</TableRow>
|
||||
|
||||
Reference in new issue
Block a user