fix(ci): widen Column to ColumnId in plugins + drop unused import after #1403 widening
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { Column, Task } from "@fusion/core";
|
||||
import type { ColumnId, Task } from "@fusion/core";
|
||||
|
||||
export const INCLUDED_COLUMNS: ReadonlySet<Column> = new Set(["triage", "todo", "in-progress", "in-review"]);
|
||||
export const EXCLUDED_COLUMNS: ReadonlySet<Column> = new Set(["done", "archived"]);
|
||||
export const INCLUDED_COLUMNS: ReadonlySet<ColumnId> = new Set(["triage", "todo", "in-progress", "in-review"]);
|
||||
export const EXCLUDED_COLUMNS: ReadonlySet<ColumnId> = new Set(["done", "archived"]);
|
||||
|
||||
export function filterGraphTasks(tasks: Task[]): Task[] {
|
||||
return tasks.filter((task) => INCLUDED_COLUMNS.has(task.column));
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { Task, Column } from "@fusion/core";
|
||||
import type { Task, ColumnId } from "@fusion/core";
|
||||
import type { NotificationEvent, Snapshot } from "./types.js";
|
||||
|
||||
export function diffSnapshots(
|
||||
prev: Snapshot,
|
||||
next: ReadonlyArray<Task>,
|
||||
opts: { notifyOnColumns: ReadonlySet<Column>; alsoNotifyOnDone?: boolean },
|
||||
opts: { notifyOnColumns: ReadonlySet<ColumnId>; alsoNotifyOnDone?: boolean },
|
||||
): NotificationEvent[] {
|
||||
const events: NotificationEvent[] = [];
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import type { Column } from "@fusion/core";
|
||||
import type { ColumnId } from "@fusion/core";
|
||||
|
||||
export type NotificationReason = "entered-column" | "new-task" | "left-column" | "completed";
|
||||
|
||||
export interface NotificationEvent {
|
||||
taskId: string;
|
||||
reason: NotificationReason;
|
||||
column: Column;
|
||||
previousColumn: Column | null;
|
||||
column: ColumnId;
|
||||
previousColumn: ColumnId | null;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface SnapshotRow {
|
||||
taskId: string;
|
||||
lastColumn: Column;
|
||||
lastColumn: ColumnId;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user