From 8974ec96d0c487c2e84e225f165cbd9ae4dc47f1 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 29 Jan 2026 01:20:09 +0000 Subject: Add Red Team fields to makima/frontend contract creation - Add redTeamEnabled and redTeamPrompt state to contracts.tsx - Add UI toggle checkbox for 'Enable Red Team monitoring' - Add conditional textarea for 'Custom review criteria' - Include red_team_enabled and red_team_prompt in CreateContractRequest - Reset red team fields on form cancel/success - Add redTeamEnabled to ContractSummary type in api.ts - Add redTeamEnabled/redTeamPrompt to CreateContractRequest type - Add red team badge to ContractList.tsx contract items Co-Authored-By: Claude Opus 4.5 --- makima/frontend/src/components/contracts/ContractList.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'makima/frontend/src/components/contracts') diff --git a/makima/frontend/src/components/contracts/ContractList.tsx b/makima/frontend/src/components/contracts/ContractList.tsx index 98f8ff6..d56c9fd 100644 --- a/makima/frontend/src/components/contracts/ContractList.tsx +++ b/makima/frontend/src/components/contracts/ContractList.tsx @@ -136,6 +136,11 @@ export function ContractList({ Local )} + {contract.redTeamEnabled && ( + + Red Team + + )}