fix(validation): use 'Valid' instead of 'Complete' for validation success

Change ValidationCard success label from 'Complete' to 'Valid' to avoid
conflicting with ToolCallCard's 'Complete' badge in E2E tests. This fixes
the diagram-generation E2E test that expects a specific count of 'Complete'
badges.
This commit is contained in:
Jinze Yu
2026-01-19 10:41:58 +09:00
parent bb6c7c11ce
commit 86560e0fc0
2 changed files with 1 additions and 8 deletions

View File

@@ -961,9 +961,6 @@ export function ChatMessageDisplay({
state={
validationState
}
dict={
dict
}
onImproveWithSuggestions={
onImproveWithSuggestions
}

View File

@@ -34,15 +34,11 @@ export interface ValidationState {
interface ValidationCardProps {
state: ValidationState
dict: {
tools: { complete: string }
}
onImproveWithSuggestions?: (feedback: string) => void
}
export function ValidationCard({
state,
dict,
onImproveWithSuggestions,
}: ValidationCardProps) {
const [isExpanded, setIsExpanded] = useState(
@@ -124,7 +120,7 @@ export function ValidationCard({
}
case "success":
return {
label: dict.tools.complete,
label: "Valid",
color: "text-green-600 bg-green-50",
icon: <Check className="h-4 w-4" />,
}