fix(ui): keep blocked tasks out of pinned activity alerts

This commit is contained in:
sam committed 2026-11-09 00:05:39 +11:00
1 parent 011d22c24c
commit 81fcea7a03
1 file changed
+6 -1
+6 -1
View File
@@ -60,7 +60,12 @@ const { activity } = storeToRefs(
* own background work. */
const filter = ref<ActivityFilter>("all");
const shown = computed(() => filterActivity(activity.value, filter.value));
const pinned = computed(() => (filter.value === "tasks" ? [] : alerts.value));
// A blocked task already leads the page under Needs attention.
const pinned = computed(() =>
filter.value === "tasks"
? []
: alerts.value.filter((alert) => alert.kind !== "task.needs_decision"),
);
const emptyTitle = computed(() =>
activityEmptyTitle(shown.value.length, filter.value),
);