feat(tests): dispute resolution UI — manager escalation + red/blue queue selector
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled

This commit is contained in:
kitos
2026-07-06 12:40:21 +02:00
parent f53e124c50
commit 19c4866103
4 changed files with 158 additions and 4 deletions
+13
View File
@@ -248,6 +248,19 @@ export async function validateAsBlueLead(
return data;
}
// ── Dispute resolution ───────────────────────────────────────────────
export interface ResolveDisputePayload {
target_team: "red" | "blue";
notes?: string;
}
/** The approving lead flips to reject, choosing which team must redo the work. */
export async function resolveDispute(testId: string, payload: ResolveDisputePayload): Promise<Test> {
const { data } = await client.post<Test>(`/tests/${testId}/resolve-dispute`, payload);
return data;
}
// ── Reopen ─────────────────────────────────────────────────────────
/** Reopen a rejected test — moves back to draft. */