fix(review): apply autofix feedback

This commit is contained in:
gsxdsm
2026-06-04 02:50:54 -07:00
parent eee715218e
commit 30e2fd7b09
18 changed files with 248 additions and 61 deletions

View File

@@ -5075,8 +5075,18 @@ export function selectTaskWorkflow(
taskId: string,
workflowId: string | null,
projectId?: string,
): Promise<{ workflowId: string | null; enabledWorkflowSteps: string[] }> {
return api<{ workflowId: string | null; enabledWorkflowSteps: string[] }>(
): Promise<{
workflowId: string | null;
enabledWorkflowSteps: string[];
// U5 (R20): present (flag ON) when the switch re-homed the card; `preserved`
// false means the card moved columns and the board needs a refresh.
reconciliation?: { preserved: boolean; fromColumn: string; toColumn: string };
}> {
return api<{
workflowId: string | null;
enabledWorkflowSteps: string[];
reconciliation?: { preserved: boolean; fromColumn: string; toColumn: string };
}>(
withProjectId(`/tasks/${encodeURIComponent(taskId)}/workflow`, projectId),
{
method: "PUT",