Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
705 B
Raw Blame
import type { IssueSurfaceQueryPlan } from "./query-plan";
import { projectGanttIssuesOptions } from "../queries";

/**
 * Issue surface repository — resolves a {@link IssueSurfaceQueryPlan} to
 * concrete query options. Every list-shaped mode (table, list, board,
 * swimlane) is served by the server-owned Table query channel; the Gantt
 * projection below is the one remaining scoped fetch, and it compiles its
 * assignee-type narrowing from the same plan as everything else.
 */
export function issueSurfaceGanttOptions(
  wsId: string,
  projectId: string,
  plan: IssueSurfaceQueryPlan,
) {
  return projectGanttIssuesOptions(
    wsId,
    projectId,
    plan.queryFilter.assignee_types,
  );
}