mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-02 01:20:23 +08:00
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:
@@ -961,9 +961,6 @@ export function ChatMessageDisplay({
|
||||
state={
|
||||
validationState
|
||||
}
|
||||
dict={
|
||||
dict
|
||||
}
|
||||
onImproveWithSuggestions={
|
||||
onImproveWithSuggestions
|
||||
}
|
||||
|
||||
@@ -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" />,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user