diff --git a/ui/src/dashboard/NeedsAttentionCard.vue b/ui/src/dashboard/NeedsAttentionCard.vue index fa9a03088..c56eb9209 100644 --- a/ui/src/dashboard/NeedsAttentionCard.vue +++ b/ui/src/dashboard/NeedsAttentionCard.vue @@ -22,6 +22,10 @@ const waiting = computed(() => { return ((tasks.value ?? []) as AttentionTask[]).filter((t) => t.status && ids.has(t.status)); }); +// Each row mounts its own action menu, so an unbounded list freezes the page +// when many tasks park at once; the rest are one click away on the tasks page. +const shown = computed(() => waiting.value.slice(0, 5)); + function meta(task: AttentionTask): string { const where = task.owner && task.repo ? `${task.owner}/${task.repo}${task.issue_url && task.issue_number ? ` #${task.issue_number}` : ""}` : ""; return [where, task.workflow, task.park_reason || task.plan].filter(Boolean).join(" ยท "); @@ -31,10 +35,10 @@ function meta(task: AttentionTask): string {