fix: ui fixes (#21731)

This commit is contained in:
Krish Dholakia 2026-02-20 19:29:55 -08:00 • committed by GitHub
parent 08520a9ed7
commit 0888e17272
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 3 deletions

View file

@ -860,6 +860,27 @@ const AddGuardrailForm: React.FC<AddGuardrailFormProps> = ({ visible, onClose, a
);
};
const getStepConfigs = () => {
if (shouldRenderContentFilterConfigSettings(selectedProvider)) {
return [
{ title: "Basic Info", optional: false },
{ title: "Default Categories", optional: false },
{ title: "Patterns", optional: false },
{ title: "Keywords", optional: false },
];
}
if (shouldRenderPIIConfigSettings(selectedProvider)) {
return [
{ title: "Basic Info", optional: false },
{ title: "PII Configuration", optional: false },
];
}
return [
{ title: "Basic Info", optional: false },
{ title: "Provider Configuration", optional: false },
];
};
const stepConfigs = getStepConfigs();
return (

View file

@ -581,9 +581,8 @@ export default function ComplianceUI({
isMatch: false,
triggeredBy: `Error: ${errorMessage}`,
status: "complete" as const,
};
}
setTestResults([...updatedResults]);
}))
);
}
setIsRunning(false);
}, [