docs: enterprise refactor plan with ralph specs

This commit is contained in:
debian
2026-03-04 16:17:03 -05:00
parent 4c92712d20
commit f8191133c8
204 changed files with 32722 additions and 422 deletions

View File

@@ -0,0 +1,23 @@
import type { Severity } from '../types';
const STYLES: Record<Severity, string> = {
critical: 'bg-red-500 text-white',
high: 'bg-orange-500 text-white',
medium: 'bg-yellow-500 text-black',
low: 'bg-blue-500 text-white',
};
interface Props {
severity: Severity;
className?: string;
}
export function SeverityBadge({ severity, className = '' }: Props) {
return (
<span
className={`text-xs font-bold px-2 py-1 rounded ${STYLES[severity] ?? 'bg-gray-600 text-white'} ${className}`}
>
{severity.toUpperCase()}
</span>
);
}